gdb/
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
05fa9251
YQ
12012-10-23 Yao Qi <yao@codesourcery.com>
2
3 * event-top.c (sigint_token, sighup_token): Replace 'void *'
4 with 'static struct async_signal_handler *'.
5 (sighup_token, sigquit_token, sigstp_token): Likewise.
6
08af7a40
AA
72012-10-22 Ali Anwar <ali_anwar@codesourcery.com>
8
9 * gdbarch.sh (function_list): Use 'pstring' when printing
10 a variable which could return NULL.
11 * gdbarch.c: Regenerate.
12
beb4b03c
JB
132012-10-10 Joel Brobecker <brobecker@adacore.com>
14 Tom Tromey <tromey@redhat.com>
15
16 * rs6000-aix-tdep.c (rs6000_aix_osabi_sniffer): Replace
17 inneffective if condition by gdb assertion. Add function
18 description comment.
19
a5b12627
JB
202012-10-19 Joel Brobecker <brobecker@adacore.com>
21
22 * parser-defs.h (struct exp_descriptor): Document constraint
23 on return value for "op_name" callbacks.
24
0b0865da
TT
252012-10-18 Tom Tromey <tromey@redhat.com>
26
27 * tracepoint.c (print_one_static_tracepoint_marker): Constify.
28 * symtab.c (iterate_over_some_symtabs): Constify.
29 * source.h (symtab_to_fullname): Return 'const char *'.
30 * source.c (symtab_to_fullname): Return 'const char *'.
31 * python/py-symtab.c (stpy_fullname): Constify.
32 * cli/cli-cmds.c (edit_command): Constify.
33 * breakpoint.c (print_breakpoint_location)
34 (update_static_tracepoint): Constify.
35
94b0e70d
TT
362012-10-18 Tom Tromey <tromey@redhat.com>
37
38 * breakpoint.c (compare_breakpoints): Fix comparison.
39
fff10684
TT
402012-10-18 Tom Tromey <tromey@redhat.com>
41
42 * valprint.c (generic_emit_char, generic_printstr): Pass size of
43 gdb_wchar_t to convert_between_encodings.
44
8de0566d
YQ
452012-10-17 Yao Qi <yao@codesourcery.com>
46
47 * breakpoint.c (invalidate_bp_value_on_memory_change): Add one
48 more parameter 'inferior'.
49 * corefile.c (write_memory_with_notification): Caller update.
50
51 * mi/mi-cmd-var.c: Include "mi-main.h".
52 (mi_cmd_var_assign): Set mi_suppress_notification.data_write_memory
53 to 1 and restore it later.
54 * mi/mi-cmds.c (mi_cmd mi_cmds): Update for "data-write-memory"
55 and "data-write-memory-bytes.
56 * mi/mi-interp.c: Include objfiles.h.
57 (mi_interpreter_init): Call observer_attach_memory_changed.
58 (mi_memory_changed): New.
59 * mi/mi-main.h (struct mi_suppress_notification) <memory>:
60 New field.
61
62 * NEWS: Mention new MI notification "memory-changed".
63
6235cdd1
JK
642012-10-16 Jan Kratochvil <jan.kratochvil@redhat.com>
65
66 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Remove comment.
67
07540c15
DE
682012-10-15 Doug Evans <dje@google.com>
69
70 New option -nh: inhibit loading of ~/.gdbinit.
71 * NEWS: Mention -nh.
72 * main.c (captured_main): Recognize and process -nh.
73 (print_gdb_help): Mention -nh.
74 * gdb.1: Mention -nh. Remove erroneous docs on -nx behavior.
75
eab09350
L
762012-10-15 H.J. Lu <hongjiu.lu@intel.com>
77
78 PR backtrace/14646
79 PR gdb/14647
80 * i386-tdep.h (gdbarch_tdep): Remove sp_regnum_from_eax and
81 pc_regnum_from_eax.
82 * i386-tdep.c (i386_gdbarch_init): Don't use sp_regnum_from_eax
83 nor pc_regnum_from_eax.
84 * amd64-tdep.c (amd64_x32_init_abi): Don't set sp_regnum_from_eax
85 nor pc_regnum_from_eax.
86
9e3a7d65
JK
872012-10-15 Jan Kratochvil <jan.kratochvil@redhat.com>
88
89 Fix entry values resolving in inlined frames.
90 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Move func_addr,
91 gdbarch and caller_frame initialization later. Skip INLINE_FRAME
92 entries of FRAME.
93
c83393b9
JB
942012-10-15 Joel Brobecker <brobecker@adacore.com>
95
96 * configure.ac: Build with -DMS_WIN64 if building with Python
97 enabled using GCC on amd64-windows.
98 * configure: Regenerate.
99
801e4185
TT
1002012-10-15 Tom Tromey <tromey@redhat.com>
101
102 PR python/14635:
103 * python/py-symtab.c (del_objfile_sal): Set 'symtab' field
104 to Py_None.
105
74f910c8
TT
1062012-10-15 Tom Tromey <tromey@redhat.com>
107
108 PR python/14634:
109 * python/py-symbol.c (sympy_dealloc): Check for NULL symbol.
110
2a7c8fd5
AB
1112012-10-11 Andrew Burgess <aburgess@broadcom.com>
112
113 * remote-sim.c (gdbsim_create_inferior): Call init_thread_list to
114 reset thread numbering back to 1.
115
7c09e5a0
DE
1162012-10-11 Doug Evans <dje@google.com>
117
118 PR breakpoints/14643.
119 * linespec.c (struct ls_parser): New member keyword_ok.
120 (linespec_lexer_lex_string): Add comment.
121 (linespec_lexer_lex_one): Ignore keywords if it's the wrong place
122 for one.
123 (parse_linespec): Set keyword_ok.
124
a1855c1d
DE
1252012-10-10 Doug Evans <dje@google.com>
126
844226d6
DE
127 * dwarf2read.c (process_psymtab_comp_unit_reader): Remove duplicate
128 "0x" prefix on address in log message.
129
a1855c1d
DE
130 * dwarf2read.c (read_1_byte): Add const to buf parameter.
131 (read_1_signed_byte, read_2_bytes, read_2_signed_bytes): Ditto.
132 (read_4_bytes, read_4_signed_bytes, read_8_bytes): Ditto.
133 (lookup_dwo_file): Add const to dwo_name parameter.
134 (lookup_dwo_comp_unit, lookup_dwo_type_unit): Ditto.
135
2e24f4aa
JK
1362012-10-06 Jan Kratochvil <jan.kratochvil@redhat.com>
137
138 Fix crash during stepping on ppc32.
139 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Test NULL
140 SYM.
141
aa14df25
DE
1422012-10-03 Doug Evans <dje@google.com>
143
144 PR symtab/14601
145 * buildsym.c (buildsym_init): Reset using_directives to NULL.
146
3d468296
AB
1472012-10-02 Andrew Burgess <aburgess@broadcom.com>
148
149 * remote-sim.c (dump_mem): Always dump buffer contents, zero fill
150 output and use uint32_t not long to ensure 4 byte size.
151
8f0ee2eb
JB
1522012-10-02 Joel Brobecker <brobecker@adacore.com>
153
154 * rs6000-nat.c (add_vmap): Set "last" to "next" after having
155 unref'ed it.
156
b3dc46ff
AB
1572012-10-01 Andrew Burgess <aburgess@broadcom.com>
158
159 * target.c (simple_search_memory): Include access length in
160 warning message.
161
f712f01f
EBM
1622012-09-28 Nathan Miller <nathanm2@us.ibm.com>
163 Edjunior Machado <emachado@linux.vnet.ibm.com>
164
165 PR gdb/13989
166 * solib.c (solib_find): Prevent GDB from loading native libraries when
167 debugging a cross-target corefile.
168
39181896
PA
1692012-09-28 selven <pcthegreat@gmail.com>
170
171 Make definition match declaration.
172
173 * regcache.c (regcache_register_status): Change return type to
174 enum register_status.
175
4c2786ba
YQ
1762012-09-28 Yao Qi <yao@codesourcery.com>
177
178 * mi/mi-main.c (mi_cmd_data_write_memory): Call
179 write_memory_with_notification instead of write_memory.
180 (mi_cmd_data_write_memory_bytes): Call write_memory_with_notification
181 instead of target_write_memory.
182
1ae0c35e
YQ
1832012-09-28 Yao Qi <yao@codesourcery.com>
184
185 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Emit error
186 when the length of content is not an even number.
187
7977e5d2
TT
1882012-09-27 Tom Tromey <tromey@redhat.com>
189
190 Fix https://bugzilla.redhat.com/show_bug.cgi?id=849357
191 * cp-valprint.c (cp_print_value_fields): Use get_vptr_fieldno.
192
807160da
JB
1932012-09-27 Joel Brobecker <brobecker@adacore.com>
194
195 * sol-thread.c (sol_thread_fetch_registers)
196 (sol_thread_store_registers): Delete commented out code.
197
43c75337
JB
1982012-09-27 Joel Brobecker <brobecker@adacore.com>
199
200 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
201 Move these functions to sparc-sol-thread.c.
202 * sparc-sol-thread.c: New file.
203 * configure.ac: Add sparc-sol-thread.o to CONFIG_OBS and
204 sparc-sol-thread.c to CONFIG_SRCS for sparc-solaris native
205 configurations.
206 * configure: Regenerate.
207
d292a972
JB
2082012-09-27 Joel Brobecker <brobecker@adacore.com>
209
210 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
211 Remove commented-out code.
212
8c3da003
JB
2132012-09-27 Joel Brobecker <brobecker@adacore.com>
214
215 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
216 Enable this code for sparc hosts only.
217
f00482b6
JB
2182012-09-27 Joel Brobecker <brobecker@adacore.com>
219
220 * procfs.h (procfs_find_LDT_entry): Add declaration.
221 * sol-thread.c (ps_lgetLDT): Delete local declaration of
222 function procfs_find_LDT_entry.
223
337c776f
JB
2242012-09-27 Joel Brobecker <brobecker@adacore.com>
225
226 * procfs.c (proc_get_LDT_entry): Make static.
227
1a04d88f
JB
2282012-09-27 Joel Brobecker <brobecker@adacore.com>
229
230 * procfs.c (proc_find_memory_regions): Fix declaration.
231
bad43aa5
SP
2322012-09-27 Siddhesh Poyarekar <siddhesh@redhat.com>
233
234 * amd64-tdep.c (amd64_return_value): Revert previous change
235 that used TYPE_LENGTH directly.
236 * bfin-tdep.c (bfin_extract_return_value): Likewise.
237 (bfin_store_return_value): Likewise.
238 * cris-tdep.c (cris_store_return_value): Likewise.
239 (cris_extract_return_value): Likewise.
240 * h8300-tdep.c (h8300_extract_return_value): Likewise.
241 * hppa-tdep.c (hppa64_return_value): Likewise.
242 * lm32-tdep.c (lm32_store_return_value): Likewise.
243 * microblaze-tdep.c (microblaze_store_return_value): Likewise.
244 * spu-tdep.c (spu_value_from_register): Likewise.
245 * vax-tdep.c (vax_return_value): Likewise.
246
63375b74
SP
2472012-09-27 Siddhesh Poyarekar <siddhesh@redhat.com>
248
249 * gdbtypes.c (lookup_array_range_type): Expand parameters
250 LOW_BOUND and HIGH_BOUND to LONGEST.
251 (lookup_string_range_type): Likewise.
252 * gdbtypes.h (lookup_array_range_type): Likewise.
253 (lookup_string_range_type): Likewise.
254 * valops.c (value_cstring): Expand parameter LEN to ssize_t.
255 Expand HIGHBOUND to ssize_t.
256 (value_string): Likewise.
257 * value.h (value_cstring): Expand parameter LEN to ssize_t.
258 (value_string): Likewise.
259
19ca11c5
YQ
2602012-09-27 Yao Qi <yao@codesourcery.com>
261
262 PR breakpoints/13898
263 * breakpoint.h (tracepoint_breakpoint_ops): Forward declaration.
264 * mi/mi-cmd-break.c (mi_cmd_break_insert): Set breakpoint_ops
265 per breakpoint type.
266
92107356
PM
2672012-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
268
269 * procfs.c: Add gdb_bfd header.
270 * rs6000-nat.c: Likewise.
271 * solib-pa64.c: Likewise.
272 * spu-linux-nat.c: Likewise.
273 * windows-nat.c: Likewise.
274
9742094a
TT
2752012-09-26 Tom Tromey <tromey@redhat.com>
276
277 * f-lang.h (BLANK_COMMON_NAME_LOCAL): Remove.
278
0971de02
TT
2792012-09-26 Tom Tromey <tromey@redhat.com>
280
281 * dwarf2read.c (mark_common_block_symbol_computed): New function.
282 (read_common_block): Handle child DIEs with
283 DW_AT_data_member_location.
284 (new_symbol_full): Add special case for common blocks.
285
4357ac6c
TT
2862012-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
287 Tom Tromey <tromey@redhat.com>
288
289 * dwarf2read.c (read_common_block): Rewrite.
290 (new_symbol_full): Handle DW_TAG_common_block.
291 * f-lang.c (head_common_list, find_common_for_function):
292 Remove.
293 * f-lang.h (struct common_entry, struct saved_f77_common,
294 SAVED_F77_COMMON, SAVED_F77_COMMON_PTR, COMMON_ENTRY,
295 COMMON_ENTRY_PTR, head_common_list, find_common_for_function,
296 BLANK_COMMON_NAME_LOCAL): Remove.
297 (struct common_block): New.
298 * f-valprint.c (list_all_visible_commons): Remove.
299 (info_common_command_for_block): New function.
300 (info_common_command): Use it.
301 * stack.c (iterate_over_block_locals): Special case for
302 COMMON_BLOCK_DOMAIN.
303 * symtab.h (enum domain_enum_tag) <COMMON_BLOCK_DOMAIN>: New
304 constant.
305 (struct general_symbol_info) <value.common_block>: New field.
306 (SYMBOL_VALUE_COMMON_BLOCK): New define.
307
965f07a8
TT
3082012-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
309 Tom Tromey <tromey@redhat.com>
310
311 * f-lang.c (allocate_saved_bf_node,
312 allocate_saved_function_node, allocate_saved_f77_common_node,
313 allocate_common_entry_node, tail_common_list, current_common,
314 saved_bf_list, saved_bf_list_end, current_head_bf_list,
315 tmp_bf_ptr, add_common_block, add_common_entry,
316 find_first_common_named, patch_common_entries,
317 patch_all_commons_by_name, ADD_BF_SYMNUM, clear_bf_list,
318 global_remote_debug, get_bf_for_fcn, saved_function_list,
319 saved_function_list_end, clear_function_list, struct saved_fcn,
320 struct saved_bf_symnum, SAVED_FUNCTION, SAVED_FUNCTION_PTR,
321 SAVED_BF, SAVED_BF_PTR): Remove.
322 * f-lang.h (tail_common_list, current_common,
323 UNINITIALIZED_SECNUM, COMMON_NEEDS_PATCHING,
324 BLANK_COMMON_NAME_ORIGINAL, BLANK_COMMON_NAME_MF77,
325 DEFAULT_UPPER_BOUND, DEFAULT_LOWER_BOUND, real_main_name,
326 real_main_c_value): Remove.
327 * f-valprint.c (there_is_a_visible_common_named): Remove.
328
6f380991
AB
3292012-09-26 Andrew Burgess <aburgess@broadcom.com>
330
331 * breakpoint.c (update_global_location_list): Ignore previous
332 duplicate status of a breakpoint when starting a new scan for
333 duplicate breakpoints.
334
9ead7ae4 3352012-09-26 Karthik Bhat <kv.bhat@samsung.com>
8b3d5494 336 PR breakpoints/14419
2536b51c
YQ
337 * arm-tdep.c (arm_skip_prologue): Extending producer check to
338 support LLVM compiler.
9ead7ae4 339
8f8a23a2
SP
3402012-09-26 Siddhesh Poyarekar <siddhesh@redhat.com>
341
342 * amd64-tdep.c (amd64_return_value): Use TYPE_LENGTH directly.
343 * bfin-tdep.c (bfin_extract_return_value): Likewise.
344 (bfin_store_return_value): Likewise.
345 * cris-tdep.c (cris_store_return_value): Likewise.
346 (cris_extract_return_value): Likewise.
347 * h8300-tdep.c (h8300_extract_return_value): Likewise.
348 * hppa-tdep.c (hppa64_return_value): Likewise.
349 * lm32-tdep.c (lm32_store_return_value): Likewise.
350 * microblaze-tdep.c (microblaze_store_return_value): Likewise.
351 * spu-tdep.c (spu_value_from_register): Likewise.
352 * vax-tdep.c (vax_return_value): Likewise.
353
d7019589
SP
3542012-09-26 Siddhesh Poyarekar <siddhesh@redhat.com>
355
356 * breakpoint.c (invalidate_bp_value_on_memory_change): Expand
357 parameter LEN to ssize_t.
358
744a8059
SP
3592012-09-25 Siddhesh Poyarekar <siddhesh@redhat.com>
360
361 * ada-valprint.c (ada_val_print_1): Eliminate single-use
362 variable LEN.
363 * alpha-tdep.c (alpha_extract_return_value): Use TYPE_LENGTH
364 directly.
365 (alpha_store_return_value): Likewise.
366 * amd64-tdep.c (amd64_classify_aggregate): Likewise.
367 (amd64_push_arguments): Likewise.
368 * ax-gdb.c (gen_trace_static_fields): Likewise.
369 (gen_traced_pop): Likewise.
370 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
371 * breakpoint.c (update_watchpoint): Likewise.
372 * findcmd.c (parse_find_args): Use local variable for type
373 instead of length.
374 * findvar.c (default_read_var_value): Use TYPE_LENGTH directly.
375 * h8300-tdep.c (h8300h_extract_return_value): Likewise.
376 (h8300_store_return_value): Likewise.
377 * i386-darwin-tdep.c (i386_darwin_push_dummy_call): Likewise.
378 Use i386_darwin_arg_type_alignment directly.
379 * infcall.c (call_function_by_hand): Use TYPE_LENGTH directly.
380 * lm32-tdep.c (lm32_push_dummy_call): Likewise.
381 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
382 (m68hc11_extract_return_value): Likewise.
383 * mep-tdep.c (mep_push_dummy_call): Likewise.
384 * printcmd.c (float_type_from_length): Likewise.
385 * s390-tdep.c (s390_value_from_register): Likewise.
386 * stack.c (read_frame_arg): Likewise.
387 * tracepoint.c (encode_actions_1): Likewise.
388 * valops.c (value_fetch_lazy): Use local variable for type
389 instead of length. Use TYPE_LENGTH directly.
390 * value.c (value_contents_equal): Use TYPE_LENGTH directly.
391
a4b411d6
JB
3922012-09-25 Joel Brobecker <brobecker@adacore.com>
393
394 * symtab.c (skip_prologue_sal): Fix typo in comment.
395
11dba07a
JB
3962012-09-25 Joel Brobecker <brobecker@adacore.com>
397
398 * linespec.c (create_sals_line_offset): Fix typo in comment.
399
318102b9
SP
4002012-09-25 Siddhesh Poyarekar <siddhesh@redhat.com>
401
402 * c-typeprint.c (c_type_print_varspec_suffix): Remove cast and
403 use plongest to print the array size.
404
b4aa388a
SP
4052012-09-24 Siddhesh Poyarekar <siddhesh@redhat.com>
406
407 * m2-typeprint.c (m2_enum): Expand LASTVAL to LONGEST.
408 * p-valprint.c (pascal_type_print_base): Likewise.
409
84cebc4a
YQ
4102012-09-22 Yao Qi <yao@codesourcery.com>
411
412 * remote.c (remote_get_trace_status): Remove setting default
413 values of fields of 'ts'.
414
04e7407c
JK
4152012-09-21 Jan Kratochvil <jan.kratochvil@redhat.com>
416
417 Fix internal error on canonicalization of clang types.
418 * cp-name-parser.y (operator): New comment at make_operator call for
419 new, delete, new[] and delete[].
420 (exp): Use "sizeof ". Add new comment at make_operator call.
421
9bf4bce9
JK
4222012-09-21 Jan Kratochvil <jan.kratochvil@redhat.com>
423
424 Fix disassemble without parameters in tailcall frame.
425 * cli/cli-cmds.c (disassemble_current_function): Use
426 get_frame_address_in_block.
427
1c5b7826
TT
4282012-09-21 Tom Tromey <tromey@redhat.com>
429
430 * c-typeprint.c (c_type_print_base) <TYPE_CODE_STRUCT,
431 TYPE_CODE_UNION>: Unify, removing a goto.
432
62a49610
TT
4332012-09-21 Tom Tromey <tromey@redhat.com>
434
435 * c-typeprint.c (cp_type_print_derivation_info): Fix comment.
436
2603f7ee
AB
4372012-09-21 Andrew Burgess <aburgess@broadcom.com>
438
439 * findvar.c (read_frame_register_value): Mark the result value as
440 optimized out if any of the input registers have been optimized out.
441
810849a3
AS
4422012-09-21 Andreas Schwab <schwab@linux-m68k.org>
443
444 * python/python.c (finalize_python): Only define if HAVE_PYTHON.
445
0953dec1
SP
4462012-09-21 Siddhesh Poyarekar <siddhesh@redhat.com>
447
448 * eval.c (evaluate_subexp_standard): Eliminate single-use
449 variable LOWER.
450
82a90ccf
YQ
4512012-09-21 Yao Qi <yao@codesourcery.com>
452
453 * mi/mi-interp.c: Declare mi_record_changed.
454 (mi_interpreter_init): Call observer_attach_record_changed.
455 (mi_record_changed): New.
456 * record.c (record_open): Call observer_notify_record_changed.
457 (cmd_record_stop): Call observer_notify_record_changed.
458 * NEWS: Mention it.
459
d7de8e3c
TT
4602012-09-20 Tom Tromey <tromey@redhat.com>
461
462 * NEWS: Update.
463 * python/python.c (finalize_python): New function.
464 (_initialize_python): Make a final cleanup.
465
43c7c83d
DE
4662012-09-19 Doug Evans <dje@google.com>
467
468 * buildsym.h (param_symbols): Delete, unused.
469 (context_stack): Delete member "params", unused.
470 * buildsym.c (push_context): Update.
471 * dwarf2read.c (read_func_scope): Update.
472
aa9259cc
TS
4732012-09-19 Thomas Schwinge <thomas@codesourcery.com>
474
a6521d9a
TS
475 * sh-tdep.c (sh_register_convert_to_virtual)
476 (sh_register_convert_to_raw): Add a gdbarch parameter. Update
477 all callers. Just do a memcpy if not the little-endian case.
478
f92589cb
TS
479 * h8300-tdep.c (h8300_gdbarch_init): Invoke
480 set_gdbarch_double_format and set_gdbarch_long_double_format.
481 * m68hc11-tdep.c (m68hc11_gdbarch_init): Invoke
482 set_gdbarch_double_format.
483 * sh-tdep.c (sh_gdbarch_init): Likewise.
484
aa9259cc
TS
485 * NEWS: Document the removal of SH's 'regs' command.
486 * sh-tdep.c (_initialize_sh_tdep): Remove the deprecated 'regs'
487 command.
488
c1d780c2
SDJ
4892012-09-18 Sergio Durigan Junior <sergiodj@redhat.com>
490
491 * infcmd.c (_initialize_infcmd): Register `j' as an alias for
492 `jump'.
493
4ae24af0
JB
4942012-09-18 Joel Brobecker <brobecker@adacore.com>
495
496 * linespec.c (iterate_over_all_matching_symtabs): Use the correct
497 language when iterating over symbols.
498
bb25a15c
YQ
4992012-09-18 Yao Qi <yao@codesourcery.com>
500
501 * mi/mi-interp.c: Declare mi_tsv_created and mi_tsv_deleted.
502 (mi_interpreter_init): Call observer_attach_tsv_created and
503 observer_attach_tsv_deleted.
504 (mi_tsv_created, mi_tsv_deleted): New.
505 * tracepoint.c (delete_trace_state_variable): Call
506 observer_notify_tsv_deleted.
507 (trace_variable_command): Call observer_notify_tsv_created.
508 (delete_trace_variable_command): Call
509 observer_notify_tsv_deleted.
510 (create_tsv_from_upload): Call observer_notify_tsv_created.
511 * NEWS: Mention it.
512
201b4506
YQ
5132012-09-18 Yao Qi <yao@codesourcery.com>
514
515 * tracepoint.c (tfind_1): Call observer_notify_traceframe_changed
516 if traceframe changed.
517 * mi/mi-cmds.c (mi_cmd mi_cmds): Adjust for command
518 "trace-find".
519 * mi/mi-interp.c: Declare 'mi_traceframe_changed'.
520 (mi_interpreter_init): Hook mi_traceframe_changed to observer
521 'traceframe_changed'.
522 (mi_traceframe_changed): New.
523 * mi/mi-main.h (struct mi_suppress_notification) <traceframe>:
524 New field.
525 * NEWS: Mention the new MI notification.
526
eaeb12db
MW
5272012-09-17 Mike Wrighton <wrighton@codesourcery.com>
528
529 * MAINTAINERS (Write After Approval): Add "Mike Wrighton".
530
6e3c039e
JK
5312012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
532
533 * common/linux-ptrace.c: Change __i386__ to __i386__ || __x86_64__.
534 (linux_ptrace_test_ret_to_nx): Extend comment for x86_64. Change
535 __i386__ to __i386__ || __x86_64__. Extend code also for __x86_64__.
536 Extend code also for PaX support. Convert all gdb_assert to warning
537 calls.
538
9a950c7c
JK
5392012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
540
541 Implement auto-load user conveniences suggested by Doug Evans.
542 * auto-load.c: Include top.h.
543 (file_is_auto_load_safe): New variable advice_printed. Print advice.
544 (_initialize_auto_load): New variable scripts_directory_help. Mention
545 GDBPY_AUTO_FILE_NAME and GDB_AUTO_FILE_NAME for set auto-load
546 scripts-directory. Document in online help one can use also files for
547 set auto-load safe-path.
548 * python/py-auto-load.c: (GDBPY_AUTO_FILE_NAME): Move it from here ...
549 * python/python.h (GDBPY_AUTO_FILE_NAME): ... to here.
550
deec9a9d
SP
5512012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
552
553 * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused definition
554 of LEN.
555
354ecfd5
SP
5562012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
557
558 * m2-valprint.c (m2_print_array_contents): Eliminate variable
559 ELTLEN and use TYPE_LENGTH directly.
560 (m2_val_print): Likewise.
561 * m68k-tdep.c (m68k_svr4_extract_return_value): Eliminate
562 variable LEN and use TYPE_LENGTH directly.
563 (m68k_svr4_store_return_value): Likewise.
564 * mips-tdep.c (mips_o32_push_dummy_call): Eliminate variable
565 ARGLEN and use TYPE_LENGTH directly.
566 (mips_o64_push_dummy_call): Likewise.
567 * s390-tdep (s390_function_arg_pass_by_reference): Eliminate
568 variable LENGTH and use TYPE_LENGTH directly.
569 (s390_function_arg_float): Likewise.
570 (s390_function_arg_integer): Likewise.
571 (s390_push_dummy_call): Likewise.
572 (s390_return_value_convention): Likewise.
573 * spu-tdep.c (spu_push_dummy_call): Eliminate LEN and use
574 TYPE_LENGTH directly.
575
6fc1c773
YQ
5762012-09-17 Yao Qi <yao@codesourcery.com>
577
578 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): New.
579 Update comment to add_setshow_integer_cmd.
580 * cli/cli-setshow.c (do_set_command): Handle case
581 'var_zuinteger_unlimited'.
582 (do_show_command): Likewise.
583 * cli/cli-cmds.c (init_cmds): Call add_setshow_zuinteger_unlimited_cmd
584 for command 'remotetimeout'.
585 * command.h (enum var_types): New zuinteger_unlimited. Update comment
586 to var_integer.
587 * source.c (_initialize_source): Call add_setshow_zuinteger_unlimited_cmd
588 for command 'set listsize'.
589
6acef6cd
SP
5902012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
591
592 * infrun.c (restore_infcall_suspend_state): Eliminate single-use
593 variable LEN.
594
1ab3b62c
JK
5952012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
596
597 PR 14119
598 * frame.c (skip_inlined_frames): Skip also TAILCALL_FRAME frames.
599 (frame_pop): Drop also TAILCALL_FRAME frames.
600 * infcmd.c (finish_command): Ignore also TAILCALL_FRAME frames.
601
acf9414f
JK
6022012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
603 Pedro Alves <palves@redhat.com>
604
605 PR 14548
606 * infrun.c (handle_inferior_event): Do not reverse-continue back to the
607 function start if we are already at function start. Both for
608 reverse-next and for reverse-step into function without line number
609 info.
610
193facb3
JK
6112012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
612
613 Code cleanup - rename 'inline' depth to 'artificial' depth.
614 * breakpoint.c (set_momentary_breakpoint): Rename at a caller to
615 frame_id_artificial_p, extend the comment.
616 * dwarf2-frame-tailcall.c (tailcall_frame_this_id): Rename at a user.
617 * frame.c (fprint_frame_id): Rename at a user, change debug output
618 text to "artificial=".
619 (skip_inlined_frames): Rename to ...
620 (skip_artificial_frames): ... here. Extend the comment.
621 (get_stack_frame_id, frame_unwind_caller_id): Rename at a caller.
622 (frame_id_inlined_p): Rename to ...
623 (frame_id_artificial_p): ... here. Rename at a user.
624 (frame_id_eq, frame_id_inner, frame_unwind_caller_pc)
625 (frame_unwind_caller_pc_if_available, frame_unwind_caller_arch): Rename
626 at a user.
627 * frame.h (struct frame_id): Rename inline_depth to artificial_depth.
628 Extend the comment.
629 (frame_id_inlined_p): Rename to ...
630 (frame_id_artificial_p): ... here.
631 * inline-frame.c (inline_frame_this_id): Rename at a user.
632
42056501
AB
6332012-09-14 Andrew Burgess <aburgess@broadcom.com>
634
635 * c-typeprint.c (c_type_print_varspec_suffix): Display the size of
636 vector variables using vector_size syntax rather than array
637 syntax.
638
84c47588
SP
6392012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
640
641 * valarith.c (value_concat): Replace unsafe ALLOCA with
642 XMALLOC/XFREE.
643
f4045bcb
PA
6442012-09-14 Pedro Alves <palves@redhat.com>
645
646 * gdb.1 (SEE ALSO): Expand pointer to GDB's Texinfo manual.
647
63b46266
YPK
6482012-09-14 Khoo Yit Phang <khooyp@cs.umd.edu>
649
650 Point contrib/cc-with-tweaks.sh to the build-local data-directory.
651 * contrib/cc-with-tweaks.sh (GDB): Add -data-directory
652 data-directory as appropriate.
653
ddd7a8e7
SP
6542012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
655
656 * printcmd.c (ui_printf): Eliminate single-use variable
657 PARAM_LEN.
658
d649a38e
YQ
6592012-09-14 Yao Qi <yao@codesourcery.com>
660 Pedro Alves <palves@redhat.com>
661
662 * valops.c (value_assign): Move observer_notify_target_changed
663 below to replace reinit_frame_cache.
664
b9516fa1
YPK
6652012-09-13 Khoo Yit Phang <khooyp@cs.umd.edu>
666
667 Refactor Python "gdb" module into a proper Python package, by
668 introducing a new "_gdb" module for code implemented in C, and
669 using reload/__import__ instead of exec.
670 * python/lib/gdb/__init__.py: Import * from _gdb.
671 (GdbOutputFile, sys.stdout, GdbOutputErrorFile, sys.stderr,
672 prompt_hook, sys.argv): Moved from finish_python_initialization.
673 (pretty_printers, PYTHONDIR): Moved from _initialize_python.
674 (packages, auto_load_packages): New list and function replacing
675 module_dict and auto-loading code, using __file__ instead of
676 gdb.PYTHONDIR and reload/__import__ instead of exec.
677 (GdbSetPythonDirectory): Replacing function of the same name
678 from finish_python_initialization, using reload/__import__ instead
679 of exec, as well as call auto_load_packages.
680 * python/py-prettyprint.c (find_pretty_printer_from_gdb): Check
681 gdb_python_module and not gdb_module.
682 * python/python-internal.h (gdb_python_module): Declare.
683 * python/python.c (gdb_python_module): New global.
684 (before_prompt_hook): Check gdb_python_module and not gdb_module.
685 (_initialize_python): Rename gdb module to _gdb.
686 Move gdb.PYTHONDIR and gdb.pretty_printer to lib/gdb/__init__.py.
687 (finish_python_initialization): Move Python code to
688 lib/gdb/__init__.py; instead, set up sys.path and import gdb into
689 __main__.
690
aa0fbdd8
PA
6912012-09-13 Pedro Alves <palves@redhat.com>
692
693 * Makefile.in (COMMON_OBS): Add registry.o.
694 * registry.c: New file.
695 * registry.h (struct registry_container): Declare.
696 (registry_data_callback): New typedef.
697 (struct registry_data, struct registry_data_registration, struct
698 registry_data_registry): New type.
699 (register_data_with_cleanup, registry_alloc_data)
700 (registry_callback_adaptor, registry_clear_data)
701 (registry_container_free_data, registry_set_data, registry_data):
702 Declare.
703 (DEFINE_REGISTRY): Refactor structures and functions as shims over
704 the new common structures and functions.
705 (DECLARE_REGISTRY): Declare struct TAG ## _data. Use the tagged
706 callback typedefs.
707
42b5c53d
MW
7082012-09-12 Mike Wrighton <wrighton@codesourcery.com>
709
710 * remote.c (remote_insert_hw_breakpoint): Throw exception if
711 there is an error inserting hardware breakpoints and use the
712 error message from the target.
713
714 * breakpoint.c (insert_bp_location, insert_breakpoint_locations):
715 Catch this exception and print the error message contained within. Do not
716 print the default hardware error breakpoint message in this case.
717
a1b64ce1
DE
7182012-09-12 Doug Evans <dje@google.com>
719
720 * dwarf2read.c (dwarf2_read_addr_index): Fix handling the case where
721 cu == NULL.
722
83a788b8
DE
7232012-09-11 Doug Evans <dje@google.com>
724
725 * dwarf2read.c (dw2_do_expand_symtabs_matching): Don't examine
726 .gdb_index symbol attributes if there are none.
727
d9eaeb59
JB
7282012-09-11 Joel Brobecker <brobecker@adacore.com>
729
730 * symtab.h (struct minimal_symbol) [has_size]: New field.
731 (MSYMBOL_SIZE): Adjust to forbid macro from being used as lvalue.
732 (SET_MSYMBOL_SIZE, MSYMBOL_HAS_SIZE): New macros.
733 * printcmd.c (build_address_symbolic): Only filter out zero-sized
734 minimal symbols if the symbol's size is actually known.
735 * minsyms.c (prim_record_minimal_symbol_full): Adjust setting
736 of msymbol's size field. Add comment.
737 * elfread.c (elf_symtab_read, elf_rel_plt_read): Use
738 SET_MSYMBOL_SIZE to set the minimal symbol size.
739
a83e9154
JB
7402012-09-11 Joel Brobecker <brobecker@adacore.com>
741
742 * minsyms.c (install_minimal_symbols): Use memset to fill entire
743 minimal_symbol struct object, rather than setting some of its
744 fields one by one.
745
350b1b26
AB
7462012-09-11 Andrew Burgess <aburgess@broadcom.com>
747
748 * c-typeprint.c (c_type_print_varspec_prefix): Pass through the
749 passed_a_ptr flag when displaying typedef types.
750
2fa15f23
JB
7512012-09-10 Joel Brobecker <brobecker@adacore.com>
752
753 * ada-lang.c (coerce_unspec_val_to_type): Make sure that
754 the optimized_out flag is preserved.
755
5152ff90
AG
7562012-09-10 Anthony Green <green@moxielogic.com>
757
758 * moxie-tdep.c (moxie_analyze_prologue): Update for function
759 prologue changes in GCC.
760
5b4f6e25
KS
7612012-09-10 Keith Seitz <keiths@redhat.com>
762
763 PR gdb/13483
764 * gdbtypes.h (BOOL_PTR_CONVERSION_BADNESS): Rename to ...
765 (BOOL_CONVERSION_BADNESS): ... this.
766 * gdbtypes.c (BOOL_PTR_CONVERSION_BADNESS): Likewise.
767 (rank_one_type): Allow all boolean conversions
768 permitted by the standard.
769
f1070426
TT
7702012-09-06 Tom Tromey <tromey@redhat.com>
771
772 * python/py-newobjfileevent.c (create_new_objfile_event_object):
773 Don't decref py_objfile.
774
a8db4212
YPK
7752012-09-02 Khoo Yit Phang <khooyp@cs.umd.edu>
776
777 Do not enable -lmcheck by default when Python is enabled with
778 threading support.
779 * configure.ac: (python_has_threads) New variable, by testing
780 if WITH_THREAD is defined in Python.h.
781 Move --enable-lmcheck after --with-python.
782 Do not enable -lmcheck by default if python_has_threads=yes.
783 Warn if --enable-lmcheck and python_has_threads=yes.
784 * configure: Regenerate.
785
648beb2b
YQ
7862012-08-31 Yao Qi <yao@codesourcery.com>
787
788 * mi/mi-cmds.c (mi_cmds): New macros DEF_MI_CMD_CLI
789 DEF_MI_CMD_MI DEF_MI_CMD_CLI_1 and DEF_MI_CMD_CLI_1.
790 Update some commands.
791 * mi/mi-cmds.h (struct mi_cmd) <suppress_notification>: New field.
792 * mi/mi-main.c (mi_cmd_execute): Set '*parse->cmd->suppress_notification'
793 to 1.
794
ef07a9f7
YQ
7952012-08-31 Yao Qi <yao@codesourcery.com>
796
797 * mi/mi-cmds.c (mi_cmds): Add 'static'.
798
fda395cf
YPK
7992012-08-30 Khoo Yit Phang <khooyp@cs.umd.edu>
800
801 * MAINTAINERS (Write After Approval): Add "Khoo Yit Phang".
802
8efd8e78
DE
8032012-08-29 Doug Evans <dje@google.com>
804
805 * main.c (print_gdb_help): Remove reference to
806 --use-deprecated-index-sections.
807
883b9c6c
YQ
8082012-08-28 Yao Qi <yao@codesourcery.com>
809
810 * cli/cli-cmds.c (max_user_call_depth): Add 'unsigned'.
811 (init_cmds): Call add_setshow_uinteger_cmd for command
812 'max-user-call-depth'.
813 * cli/cli-script.c (execute_user_command): Add 'unsigned' to the
814 declaration of 'max_user_call_depth'.
815 * frame.c (backtrace_limit): Add 'unsigned'.
816 (_initialize_frame): Call add_setshow_uinteger_cmd for command
817 'limit'.
818 * remote.c (remoteaddresssize): Add 'unsigned'.
819 (remote_address_masked): Change local var 'address_size' to
820 'unsigned'.
821 (_initialize_remote): Call add_setshow_uinteger_cmd for
822 'remoteaddresssize'.
823 * top.c (history_size): Add 'unsigned'.
824 (show_commands): Change local variables to 'unsigned'.
825 (set_history_size_command): Don't check history_size is negative.
826 Adjust the condition to call unstifle_history and set history_size
827 to UNIT_MAX.
828
1292279a
PA
8292012-08-28 Pedro Alves <palves@redhat.com>
830
831 PR gdb/14428
832
833 * infcmd.c (default_print_one_register_info): New, factored out
834 from default_print_registers_info.
835 (default_print_registers_info): Use it. Mark value unavailable if
836 necessary.
837 (registers_info): Print user registers with
838 default_print_one_register_info.
839
f629cd75
L
8402010-08-27 H.J. Lu <hongjiu.lu@intel.com>
841
842 PR tui/14486
843 * tui/tui-source.c (tui_source_is_displayed): Check if TUI_SRC_WIN
844 is not NULL before referencing it.
845
1c8cdcb1
JK
8462012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
847
848 * breakpoint.c (parse_breakpoint_sals) <(*address) == NULL>: New
849 variable pc. Call find_pc_line instead of find_pc_overlay, restore
850 original PC for it.
851
e9687799
JK
8522012-08-27 Eli Zaretskii <eliz@gnu.org>
853 Jan Kratochvil <jan.kratochvil@redhat.com>
854
855 * auto-load.c (auto_load_objfile_script): Rename to ...
856 (auto_load_objfile_script_1): ... here, change variable realname to
857 parameter realname, document it, add return value, add variable retval.
858 (auto_load_objfile_script): New function.
859
7afa1642
JK
8602012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
861
862 * cli/cli-decode.c (print_doc_line): Keep skipping '.' and ',' not
863 followed by a whitespace.
864
dc7650b8
JK
8652012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
866
28e66c70 867 PR gdb/14494.
dc7650b8
JK
868 * dwarf2read.c (dwarf2_locate_sections): Move variable aflag here.
869 Move the SEC_HAS_CONTENTS check here - for any NAMES use.
870 (dwarf2_locate_sections) <eh_frame>: Move the variable and check from
871 here.
872
1591a1e8
PA
8732012-08-27 Wei-cheng Wang <cole945@gmail.com>
874
875 * memattr.c (create_mem_region): Fix memory region overlapping
876 checking.
877
ecfb0d68
SP
8782012-08-24 Siddhesh Poyarekar <siddhesh@redhat.com>
879
880 * h8300-tdep.c (h8300_push_dummy_call): Replace unsafe alloca
881 with xmalloc/cleanup.
882 * mt-tdep.c (mt_push_dummy_call): Likewise.
883 * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
884 * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
885
8c56c1b9
YQ
8862012-08-24 Yao Qi <yao@codesourcery.com>
887
888 * jv-exp.y (push_expression_name): Add "." at the end of error
889 message.
890
e3480f4a
YPK
8912012-08-23 Khoo Yit Phang <khooyp@cs.umd.edu>
892
893 Document how to return from "python-interactive" to GDB.
e3480f4a
YPK
894 * python/python.c (_initialize_python): Update documentation.
895
dfbd5e7b
PA
8962012-08-23 Pedro Alves <palves@redhat.com>
897
898 * infrun.c (_initialize_infrun) <handle command help text>:
899 Mention that multiple signals are supported.
900
2edda2ff
PA
9012012-08-23 Pedro Alves <palves@redhat.com>
902
903 * infcmd.c (_initialize_infcmd) <signal command>: Fix typo in help
904 string.
905
8d735b87
YQ
9062012-08-23 Yao Qi <yao@codesourcery.com>
907
908 * tracepoint.c (disconnect_tracing): Call set_tracepoint_num.
909 (tfind_1): Don't call registers_changed, set_traceframe_num,
910 and clear_traceframe_info.
911 Call set_current_traceframe.
912 (set_current_traceframe): call set_traceframe_num.
913
c5d9b215
SDJ
9142012-08-22 Sergio Durigan Junior <sergiodj@redhat.com>
915
916 * remote-sim.c (_initialize_remote_sim): Pass NULL argument to
917 `register_inferior_data_with_cleanup', fixing regression on PowerPC64.
918
037bbc8e
YPK
9192012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
920
921 Enable readline in Python in a GDB-specific way and block the
922 standard Python readline module to prevent conflicts with GDB.
923 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-gdb-readline.o.
924 (SUBDIR_PYTHON_SRCS): Add python/py-gdb-readline.c.
925 (py-gdb-readline.o): Add rule to compile python/py-gdb-readline.c.
926 * python/py-gdb-readline.c: New file.
927 * python/python-internal.h (gdbpy_initialize_gdb_readline): New
928 prototype.
929 * python/python.c (_initialize_python): Call
930 gdbpy_initialize_gdb_readline.
931
406b1477
KS
9322012-08-22 Keith Seitz <keiths@redhat.com>
933
934 * defs.h: Include build-gnulib/config.h
935
6ca1b147
JM
9362012-08-22 Joseph Myers <joseph@codesourcery.com>
937
938 * arm-tdep.c (thumb_get_next_pc_raw): Mask off low bits for bx pc
939 and blx pc.
940
8315665e
YPK
9412012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
942
943 Add a new "python-interactive" command that starts a standard
944 Python interactive prompt with "pi" as alias, and add "py" as
945 an alias to "python".
946 * NEWS: Mention the new commands.
8315665e
YPK
947 * python/python.c (eval_python_command): New function.
948 (python_interactive_command): For "python-interactive" with
949 arguments, call eval_python_command. For "python-interactive"
950 without arguments, call PyRun_InteractiveLoop.
951 (_initialize_python): Add "python-interactive" command with
952 "pi" as alias, and add "py" as an alias to "python".
953
522002f9
TT
9542012-08-22 Tom Tromey <tromey@redhat.com>
955
956 * defs.h (quit_flag): Don't declare.
957 (clear_quit_flag, check_quit_flag, set_quit_flag): Declare.
958 (QUIT): Use new functions.
959 * event-top.c (command_handler): Use clear_quit_flag.
960 (handle_sigint): Use set_quit_flag.
961 (async_request_quit): Use check_quit_flag. Don't check
962 immediate_quit.
963 * exceptions.c (throw_exception): Use clear_quit_flag.
964 * main.c (captured_main): Use clear_quit_flag.
965 * python/python.c (clear_quit_flag, set_quit_flag)
966 (check_quit_flag): New functions.
967 * remote-sim.c (gdb_os_poll_quit): Use check_quit_flag,
968 clear_quit_flag.
969 * remote.c (remote_wait_as): Use check_quit_flag,
970 clear_quit_flag.
971 (remote_start_remote): Call QUIT.
972 * symfile.c (load_progress): Use check_quit_flag.
973 * top.c (command_loop): Use clear_quit_flag.
974 (command_line_input): Call QUIT.
975 * utils.c (quit_flag): Conditionally define.
976 (clear_quit_flag, check_quit_flag, set_quit_flag): New
977 functions.
978 (prompt_for_continue): Call QUIT. Use quit, not
979 async_request_quit.
980 * remote-mips.c (mips_expect_timeout): Call QUIT.
981 * monitor.c (monitor_expect): Call QUIT.
982
b583003e
TT
9832012-08-22 Tom Tromey <tromey@redhat.com>
984
985 * event-top.c (sigwinch_token, handle_sigwinch): Remove.
986 (async_init_signals): Update.
987 * utils.c (init_page_info): Don't use SIGWINCH_HANDLER.
988 (SIGWINCH_HANDLER_BODY): Remove.
989
e1507e95
TT
9902012-08-22 Tom Tromey <tromey@redhat.com>
991
992 * jit.c (jit_object_close_impl): Don't malloc the objfile
993 name.
994 * objfiles.c (allocate_objfile): Don't malloc the objfile
995 name.
996 (free_objfile): Don't free the objfile name.
997 * objfiles.h (struct objfile) <name>: Update comment.
998 * symfile.c (reread_symbols): Fix reference counting. Don't
999 malloc objfile name.
1000
1c00ec6b
TT
10012012-08-22 Tom Tromey <tromey@redhat.com>
1002
1003 * windows-nat.c (windows_make_so): Use gdb_bfd_open.
1004 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_open.
1005 (symfile_bfd_open): Likewise.
1006 (generic_load): Likewise.
1007 * solib.c (solib_bfd_fopen): Use gdb_bfd_open.
1008 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
1009 gdb_bfd_open.
1010 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
1011 Use gdb_bfd_open.
1012 * rs6000-nat.c (add_vmap): Use gdb_bfd_open.
1013 * remote-mips.c (mips_load_srec): Use gdb_bfd_open.
1014 (pmon_load_fast): Likewise.
1015 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_open.
1016 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_open.
1017 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_open.
1018 (macho_check_dsym): Likewise.
1019 * m32r-rom.c (m32r_load): Use gdb_bfd_open.
1020 (m32r_upload_command): Likewise.
1021 * gdb_bfd.h (gdb_bfd_cache): Declare.
1022 * gdb_bfd.c (struct gdb_bfd_data): New.
1023 (gdb_bfd_cache): New global.
1024 (struct gdb_bfd_cache_search): New.
1025 (hash_bfd): New function.
1026 (eq_bfd): Likewise.
1027 (gdb_bfd_open): Likewise.
1028 (gdb_bfd_ref): Allocate a gdb_bfd_data and attach to the BFD.
1029 (gdb_bfd_unref): Remove closed BFD from cache. Update for
1030 gdb_bfd_data.
1031 * exec.c (exec_file_attach): Use gdb_bfd_open.
1032 * dsrec.c (load_srec): Use gdb_bfd_open.
1033
6532ff36
TT
10342012-08-22 Tom Tromey <tromey@redhat.com>
1035
1036 * dwarf2read.c (macro_start_file): Update.
1037 * objfiles.c (get_objfile_bfd_data): Initialize macro_cache.
1038 (free_objfile_per_bfd_storage): Destroy macro_cache.
1039 (allocate_objfile, free_objfile): Update.
1040 * objfiles.h (struct objfile_per_bfd_storage) <macro_cache>:
1041 New field.
1042 (struct objfile) <macro_cache>: Remove.
1043 * symfile.c (reread_symbols): Update.
1044 * symmisc.c (print_symbol_bcache_statistics): Update.
1045 (print_objfile_statistics): Update.
1046
706e3705
TT
10472012-08-22 Tom Tromey <tromey@redhat.com>
1048
1049 * elfread.c (elf_symtab_read): Update.
1050 * objfiles.c (objfiles_bfd_data): New global.
1051 (get_objfile_bfd_data, free_objfile_per_bfd_storage)
1052 (objfile_bfd_data_free, set_objfile_per_bfd): New functions.
1053 (allocate_objfile, free_objfile): Update.
1054 (_initialize_objfiles): Initialize objfiles_bfd_data.
1055 * objfiles.h (struct objfile_per_bfd_storage): New.
1056 (struct objfile) <per_bfd>: New field.
1057 <filename_cache>: Remove.
1058 (set_objfile_per_bfd): Declare.
1059 * symfile.c (reread_symbols): Update. Call
1060 set_objfile_per_bfd.
1061 (allocate_symtab): Update.
1062 * symmisc.c (print_symbol_bcache_statistics): Update.
1063 (print_objfile_statistics): Print the size of the BFD obstack.
1064
e992eda4
TT
10652012-08-22 Tom Tromey <tromey@redhat.com>
1066
1067 * gdb_bfd.h: Include registry.h. Use DECLARE_REGISTRY.
1068 * gdb_bfd.c: Use DEFINE_REGISTRY.
1069 (struct gdb_bfd_data): Add REGISTRY_FIELDS.
1070 (gdb_bfd_ref): Call bfd_alloc_data.
1071 (gdb_bfd_unref): Call bfd_free_data.
1072
6b81941e
TT
10732012-08-22 Tom Tromey <tromey@redhat.com>
1074
1075 * registry.h (struct registry_fields): New.
1076 (REGISTRY_FIELDS): Redefine.
1077 (REGISTRY_ACCESS_FIELD): New macro.
1078 (DEFINE_REGISTRY): Add ACCESS argument. Update defined
1079 functions.
1080
8e260fc0
TT
10812012-08-22 Tom Tromey <tromey@redhat.com>
1082
1083 * auto-load.c (_initialize_auto_load): Update.
1084 * solib-svr4.c (_initialize_svr4_solib): Update
1085 * solib-dsbt.c (_initialize_dsbt_solib): Update.
1086 * solib-darwin.c (_initialize_darwin_solib): Update.
1087 * registry.h: New file.
1088 * python/py-progspace.c (gdbpy_initialize_pspace): Update.
1089 * python/py-inferior.c (gdbpy_initialize_inferior): Update.
1090 * progspace.h: Include registry.h. Use DECLARE_REGISTRY.
1091 (register_program_space_data_with_cleanup)
1092 (register_program_space_data, program_space_alloc_data)
1093 (clear_program_space_data, set_program_space_data)
1094 (program_space_data): Don't declare.
1095 * progspace.c: Use DEFINE_REGISTRY.
1096 (struct program_space_data, struct
1097 program_space_data_registration, struct
1098 program_space_data_registry, program_space_data_registry)
1099 (register_program_space_data_with_cleanup)
1100 (register_program_space_data, program_space_alloc_data)
1101 (program_space_free_data, clear_program_space_data)
1102 (set_program_space_data, program_space_data): Remove.
1103 * objfiles.h: Include registry.h. Use DECLARE_REGISTRY.
1104 (struct objfile) <data, num_data>: Replace with REGISTRY_FIELDS.
1105 (register_objfile_data_with_cleanup, register_objfile_data)
1106 (clear_objfile_data, set_objfile_data, objfile_data): Don't
1107 declare.
1108 * objfiles.c: Use DEFINE_REGISTRY.
1109 (struct objfile_data, struct objfile_data_registration, struct
1110 objfile_data_registry, objfile_data_registry)
1111 (register_objfile_data_with_cleanup, register_objfile_data)
1112 (objfile_alloc_data, objfile_free_data, clear_objfile_data)
1113 (set_objfile_data, objfile_data): Remove.
1114 (_initialize_objfiles): Update.
1115 * jit.c (_initialize_jit): Update.
1116 * inflow.c (_initialize_inflow): Update.
1117 * inferior.h: Include registry.h. Use DECLARE_REGISTRY.
1118 (struct inferior) <data, num_data>: Replace with REGISTRY_FIELDS.
1119 (register_inferior_data_with_cleanup, register_inferior_data)
1120 (clear_inferior_data, set_inferior_data, inferior_data): Don't
1121 declare.
1122 * inferior.c: Use DEFINE_REGISTRY.
1123 (struct inferior_data, struct inferior_data_registration, struct
1124 inferior_data_registry, inferior_data_registry)
1125 (register_inferior_data_with_cleanup, register_inferior_data)
1126 (inferior_alloc_data, inferior_free_data clear_inferior_data)
1127 (set_inferior_data, inferior_data): Remove.
1128 * auxv.c (_initialize_auxv): Update.
1129 * ada-lang.c (_initialize_ada_language): Update.
1130 * breakpoint.c (_initialize_breakpoint): Update.
1131 * i386-nat.c (i386_use_watchpoints): Update.
1132
ed9eebaf
TT
11332012-08-22 Tom Tromey <tromey@redhat.com>
1134
1135 * exec.c (exec_close, exec_file_attach): Update.
1136 (add_to_section_table): Initialize 'key' field.
1137 (add_target_sections, remove_target_sections): Add 'key' argument.
1138 * exec.h (add_target_sections, remove_target_sections): Add
1139 'key' argument.
1140 * solib.c (solib_map_sections, update_solib_list, clear_solib)
1141 (reload_shared_libraries_1): Update.
1142 * target.h (struct target_section) <key>: New field.
1143
2f2e97fa
TT
11442012-08-22 Tom Tromey <tromey@redhat.com>
1145
1146 * cli/cli-cmds.c (filter_sals): Handle nelts == 0 case.
1147
b3dbbd6f
PM
11482012-08-21 Pierre Muller <muller@ics.u-strasbg.fr>
1149
1150 * symfile.c (allocate_symtab): Use host_address_to_string
1151 function instead of cast of pointer to long which is not
1152 compatible with x86_64-w64-mingw32 build.
1153
f94363d7
AP
11542012-08-19 Andrew Pinski <apinski@cavium.com>
1155
1156 * mips-tdep.c (is_octeon): New function.
1157 (is_octeon_bbit_op): New function.
1158 (mips32_next_pc): Handle Octeon's bbit instructions.
1159 (mips32_instruction_has_delay_slot): Likewise.
1160
78a59c2f
AP
11612012-08-19 Andrew Pinski <apinski@cavium.com>
1162
1163 * mips-tdep.c (mips32_next_pc): Fix line spacing of the comment
1164 before the function.
1165
4f5bcb50
AP
11662012-08-19 Andrew Pinski <apinski@cavium.com>
1167
1168 * mips-tdep.c (mips32_next_pc): Consolidate calls to itype_op.
1169
e5afdbd7
KS
11702012-08-19 Keith Seitz <keiths@redhat.com>
1171
1172 PR c++/14365
1173 * c-typeprint.c (c_type_print_varspec_prefix): Pass
1174 -1 for SHOW to c_type_print_base for METHODPTR and MEMBERPTR.
1175
13c9750e
EZ
11762012-08-18 Eli Zaretskii <eliz@gnu.org>
1177
1178 * Makefile.in (HFILES_NO_SRCDIR): Fix a typo: golang.h -> go-lang.h.
1179 The typo broke "make TAGS".
1180
db761810 11812012-08-17 Joel Brobecker <brobecker@adacore.com>
1182
1183 GDB 7.5 released.
1184
a451cb65
KS
11852012-08-17 Keith Seitz <keiths@redhat.com>
1186
1187 PR c++/13356
1188 * gdbtypes.c (strict_type_checking): New variable.
1189 (show_strict_type_checking): New function.
1190 (rank_one_type): Return NS_POINTER_INTEGER_CONVERSION_BADNESS
1191 if strict type checking is disabled.
1192 (_initialize_gdbtypes): Add "check type" subcommand.
1193 * gdbtypes.h (NS_INTEGER_POINTER_CONVERSION_BADNESS): New struct.
1194
11952012-08-17 Keith Seitz <keiths@redhat.com>
1196
1197 * language.h (type_mode): Remove.
1198 (type_check): Remove.
1199 (struct language_defn): Remove la_type_check.
1200 (STRICT_TYPE): Remove unused macro.
1201 (type_error): Remove.
1202 * language.c (set_type_range_case): Renamed to ...
1203 (set_range_case): ... this. Update all callers.
1204 Remove type_mode/type_check.
1205 (type_mode): Remove.
1206 (type_check): Remove.
1207 (show_type_command): Remove.
1208 (set_type_command): Remove.
1209 (language_info): Remove type checking output.
1210 (type_error): Remove unused function.
1211 (range_error): Update comment.
1212 (unknown_language_defn): Remove la_type_check.
1213 (auto_language_defn): Likewise.
1214 (local_language_defn): Likewise.
1215 (_initialize_language): Remove "check type" subcommand.
1216 * ada-lang.c (ada_language_defn): Remove la_type_check.
1217 * c-lang.c (c_language_defn): Likewise.
1218 (cplus_language_defn): Likewise.
1219 (asm_language_defn): Likewise.
1220 (minimal_language_defn): Likewise.
1221 * d-lang.c (d_language_defn): Likewise.
1222 * f-lang.c (f_language_defn): Likewise.
1223 * go-lang.c (go_language_defn): Likewise.
1224 * jv-lang.c (java_language_defn): Likewise.
1225 * m2-lang.c (m2_language_defn): Likewise.
1226 * objc-lang.c (objc_language_defn): Likewise.
1227 * opencl-lang.c (opencl_language_defn): Likewise.
1228 * p-lang.c (pascal_language_defn): Likewise.
1229
dbf6a605
MF
12302012-08-16 Mike Frysinger <vapier@gentoo.org>
1231
1232 * infcmd.c (_initialize_infcmd): Remove trailing ) in next help text.
1233
973e3cf7
JB
12342012-08-16 Joel Brobecker <brobecker@adacore.com>
1235
1236 * ia64-hpux-nat.c (ia64_hpux_get_register_from_save_state_t):
1237 New function.
1238 (ia64_hpux_xfer_memory): Check if inferior_ptid is known before
1239 using the regache. Use ia64_hpux_get_register_from_save_state_t
1240 to access the bsp and bspstore registers if not.
1241
d80ee84f
JB
12422012-08-16 Joel Brobecker <brobecker@adacore.com>
1243
1244 * breakpoint.h (detach_breakpoints): pid parameter is now a ptid.
1245 * breakpoint.c (detach_breakpoints): Change pid parameter into
1246 a ptid. Adjust code accordingly.
1247 * infrun.c (handle_inferior_event): Delete variable child_pid.
1248 Update call to detach_breakpoints to pass the child ptid for
1249 fork events.
1250 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Remove
1251 assert that inferior_ptid's lwp is zero.
1252 (linux_handle_extended_wait): Update call to detach_breakpoints.
1253 * inf-ttrace.c (inf_ttrace_follow_fork): Update call to
1254 detach_breakpoints.
1255
2dcc6086
JB
12562012-08-16 Joel Brobecker <brobecker@adacore.com>
1257
1258 * inf-ttrace.c (inf_ttrace_follow_fork): When following the
1259 parent, only call detach_breakpoints if tts.tts_event ==
1260 TTEVT_VFORK.
1261
0c92d8c1
JB
12622012-08-16 Joel Brobecker <brobecker@adacore.com>
1263
1264 * dwarf2-frame.c (dwarf2_frame_cache): Use
1265 get_frame_address_in_block instead of get_frame_pc as
1266 the bound for executing the frame's FDE.
1267
6b1755ce
YQ
12682012-08-16 Yao Qi <yao@codesourcery.com>
1269
1270 * gdbtypes.h (enum type_code): Define TYPE_CODE_BITSTRING -1.
1271 * arm-tdep.c (arm_type_align): Remove code handling TYPE_CODE_BITSTRING.
1272 * c-typeprint.c (c_type_print_varspec_prefix): Likewise.
1273 (c_type_print_varspec_suffix): Likewise.
1274 * eval.c (evaluate_subexp_standard): Likewise.
1275 * f-typeprint.c (f_type_print_varspec_prefix): Likewise.
1276 (f_type_print_varspec_suffix): Likewise.
1277 * gdbtypes.c (is_scalar_type): Likewise.
1278 (recursive_dump_type): Likewise.
1279 * infcall.c (value_arg_coerce): Likewise.
1280 * m2-valprint.c (m2_val_print): Likewise.
1281 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
1282 (pascal_type_print_varspec_suffix): Likewise.
1283 (pascal_type_print_base): Likewise.
1284 * p-valprint.c (pascal_val_print): Likewise.
1285 (pascal_val_print): Likewise.
1286 * valops.c (value_slice): Likewise.
1287 * valprint.c (scalar_type_p): Likewise.
1288 * valarith.c (value_bitstring_subscript): Remove.
1289 (value_concat): Remove code handling TYPE_CODE_BITSTRING.
1290 Remove comment on TYPE_CODE_BITSTRING.
1291
1292 * stabsread.c (read_type): Don't set TYPE_CODE (type) to
1293 TYPE_CODE_BITSTRING.
1294
1295 * python/py-type.c (pyty_codes): Move ENTRY (TYPE_CODE_BITSTRING) to
1296 slot 0.
1297
8acc4065
YQ
12982012-08-16 Yao Qi <yao@codesourcery.com>
1299
1300 * tracepoint.c (trace_find_none_command): Remove.
1301 (_initialize_tracepoint): Call add_alias_cmd for "tfind none".
1302
8128fd8e
YQ
13032012-08-16 Yao Qi <yao@codesourcery.com>
1304
1305 * remote.c (handle_notification): Remove parameter 'length'.
1306 (putpkt_binary, getpkt_or_notif_sane_1): Caller update.
1307
2873700e
KS
13082012-08-15 Keith Seitz <keiths@redhat.com>
1309
1310 * gdbtypes.c (opaque_type_resolution): Make static.
1311 Add missing comment.
1312 (overload_debug): Add missing comment.
1313 (show_opaque_type_resolution): Likewise.
1314 (show_overload_debug): Likewise.
1315 (print_bit_vector): Remove unnecessary forward declaration.
1316 (print_arg_types): Likewise.
1317 (dump_fn_fieldlists): Likewise.
1318 (print_cplus_stuff): Likewise.
1319
b82d08cd
TT
13202012-08-15 Tom Tromey <tromey@redhat.com>
1321
1322 * gdb_bfd.c (struct gdb_bfd_data) <archive_bfd>: New field.
1323 (gdb_bfd_ref): Initialize new field.
1324 (gdb_bfd_unref): Unref the archive BFD.
1325 (gdb_bfd_openr_next_archived_file): Acquire a reference to the
1326 parent archive.
1327
db6573d6
TT
13282012-08-15 Tom Tromey <tromey@redhat.com>
1329
1330 PR python/14387:
1331 * python/py-bpevent.c (create_breakpoint_event_object): Update
1332 comment.
1333 * python/py-event.c (evpy_add_attribute): Update comment.
1334 * python/py-exitedevent.c (create_exited_event_object): Fix
1335 reference counting and error handling.
1336 * python/py-newobjfileevent.c (create_new_objfile_event_object):
1337 Fix reference counting.
1338 * python/py-signalevent.c (create_signal_event_object): Fix
1339 reference counting and error handling.
1340 * python/py-stopevent.c (emit_stop_event): Fix reference
1341 counting.
1342 * python/py-threadevent.c (get_event_thread): Return a
1343 borrowed reference.
1344 * python/py-type.c (convert_field): Fix reference counting.
1345
a036ba48
TT
13462012-08-15 Tom Tromey <tromey@redhat.com>
1347
1348 * dwarf2read.c (dwarf_decode_macro_bytes)
1349 <DW_MACRO_GNU_transparent_include>: Use pointer to included data
1350 as hash key.
1351
486c7739
MF
13522012-08-14 Mike Frysinger <vapier@gentoo.org>
1353
1354 * infcmd.c (_initialize_infcmd): Update help text for the signal,
1355 stepi, nexti, finish, next, step, jump, and continue commands.
1356 * infrun.c (_initialize_infrun): Update help text for the handle
1357 command.
1358
4cf93a03
DE
13592012-08-14 Doug Evans <dje@google.com>
1360
70b099cf
DE
1361 * gdbtypes.c (struct extra): Delete, unused.
1362
5212577a
DE
1363 * gdbtypes.c: Whitespace cleanup.
1364 (address_space_name_to_int): Remove "extern" from definition.
1365 (_initialize_gdbtypes): Declare with initialize_file_ftype.
1366
4cf93a03
DE
1367 * gdbtypes.c (make_pointer_type): Remove redundant setting of
1368 TYPE_POINTER_TYPE (type).
1369
3756ef7e
GB
13702012-08-14 Gary Benson <gbenson@redhat.com>
1371
1372 * solib-svr4.c (svr4_free_library_list): Use free_so.
1373
40d72643
MF
13742012-08-13 Mike Frysinger <vapier@gentoo.org>
1375
1376 * .gitignore: Add go-exp.c.
1377
f47f77df
DE
13782012-08-13 Doug Evans <dje@google.com>
1379
1380 * value.c (show_convenience): Tweak comment.
1381 (_initialize_values): Mention convenience functions in the help text
1382 for "show convenience".
1383
7507c54a
YQ
13842012-08-13 Yao Qi <yao@codesourcery.com>
1385
1386 * std-operator.def: Remove TERNOP_SLICE_COUNT.
1387 * breakpoint.c (watchpoint_exp_is_const): Remove handling to
1388 TERNOP_SLICE_COUNT.
1389 * eval.c (evaluate_subexp_standard): Likewise.
1390 * expprint.c (print_subexp_standard): Likewise.
1391 (dump_subexp_body_standard): Likewise.
1392 * parse.c (operator_length_standard): Likewise.
1393
5cad9736
YQ
13942012-08-13 Yao Qi <yao@codesourcery.com>
1395
1396 * std-operator.def: Remove OP_BITSTRING.
1397 * breakpoint.c (watchpoint_exp_is_const): Update.
1398 * eval.c (evaluate_subexp_standard): Remove handling to
1399 OP_BITSTRING.
1400 * expprint.c (print_subexp_standard): Likewise.
1401 (dump_subexp_body_standard): Likewise.
1402 * parse.c (operator_length_standard): Likewise.
1403 * valops.c (value_bitstring): Remove.
1404 * value.h: Remove the declaration of 'value_bitstring'.
1405
bad7670a
SDJ
14062012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
1407
1408 * linespec.c (find_methods): Remove unused variables `i1' and
1409 `name_len'.
1410 (decode_line_full): Likewise for `arg_start'.
1411
d9dce7fa
SDJ
14122012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
1413
1414 * gdb_bfd.c (gdb_bfd_unref): Remove unused variable `slot'.
1415 (zlib_decompress_section): Likewise for `section_data'.
1416 (gdb_bfd_map_section): Likewise for `buf' and `retbuf'.
1417
a72c3253
DE
14182012-08-10 Doug Evans <dje@google.com>
1419
1420 Add $_memeq, $_regex, $_streq, $_strlen convenience functions.
1421 * NEWS: Document them.
1422 * data-directory/Makefile.in (PYTHON_FILES): Add function/__init__.py,
1423 function/strfns.py.
1424 * python/py-type.c (typy_array_1): New function.
1425 (typy_array): Call it.
1426 (typy_vector): New function.
1427 (type_object_methods): Add "vector".
1428 * python/lib/gdb/function/__init__.py: New file.
1429 * python/lib/gdb/function/strfns.py: New file.
1430
200bc880
SP
14312012-08-10 Siddhesh Poyarekar <siddhesh@redhat.com>
1432
1433 * python/py-type.c (convert_field): Use gdb_py_long_from_longest
1434 for TYPE_FIELD_BITPOS.
1435 (typy_get_sizeof): Likewise for TYPE_LENGTH.
1436
de0bea00
MF
14372012-08-10 Mike Frysinger <vapier@gentoo.org>
1438
1439 PR cli/10436:
1440 * common/vec.h (VEC_merge): Define.
1441 (DEF_VEC_ALLOC_FUNC_I): Add a merge helper.
1442 (DEF_VEC_ALLOC_FUNC_P): Likewise.
1443 (DEF_VEC_ALLOC_FUNC_O): Likewise.
1444 * completer.c: Include gdb_signals.h.
1445 (signal_completer): Define.
1446 * completer.h (signal_completer): Add prototype.
1447 * infcmd.c (_initialize_infcmd): Assign the command
1448 completer for "signal" to handle_completer.
1449 * infrun.c: Include completer.h.
1450 (handle_completer): Define.
1451 (_initialize_infrun): Declare a new local variable c. Store the
1452 result of add_com("handle") to it. Assign the command
1453 completer for "handle" to handle_completer.
1454
5b9afe8a
YQ
14552012-08-09 Yao Qi <yao@codesourcery.com>
1456
1457 * cli/cli-decode.c (set_cmd_prefix): New.
1458 (lookup_cmd_for_prefixlist): New.
1459 (add_prefix_cmd): Call set_cmd_prefix and update field 'prefix'
1460 of each cmd_list_element in *prefixlist.
1461 (add_setshow_cmd_full): set_cmd_prefix.
1462 (add_alias_cmd): Likewise.
1463 * cli/cli-decode.h (struct cmd_list_element) <prefix>: New field.
1464 Declare 'auto_boolean_enums'.
1465 * cli/cli-setshow.c: Include "observer.h".
1466 (notify_command_param_changed_p): New.
1467 (add_setshow_auto_boolean_cmd): Move auto_boolean_enums out.
1468 Remove 'static'.
1469 (do_setshow_command): Split it to ...
1470 (do_set_command, do_show_command): ... them. New.
1471 (do_set_command): Call observer_notify_command_param_changed if
1472 notify_command_param_changed_p returns true.
1473 (cmd_show_list): Caller update.
1474 * auto-load.c (set_auto_load_cmd): Likewise.
1475 * remote.c (show_remote_cmd): Likewise.
1476 * cli/cli-setshow.h: Update declarations.
1477 * top.c (execute_command): Call do_set_command and do_show_command.
1478
1479 * NEWS: Mention new MI notification.
1480 * mi/mi-interp.c: Declare mi_command_param_changed.
1481 (mi_interpreter_init): Attach mi_command_param_changed to
1482 observer command_param_changed.
1483 (mi_command_param_changed): New.
1484 Remove mi_suppress_breakpoint_notifications.
1485 Define global variable mi_suppress_notification.
1486 (mi_breakpoint_created): Update.
1487 (mi_breakpoint_deleted): Likewise.
1488 (mi_breakpoint_modified): Likewise.
1489 * mi/mi-main.c (mi_cmd_execute): Likewise. Check command
1490 'gdb-set' and set mi_suppress_notification.
1491 * mi/mi-main.h: (mi_suppress_notification): New struct.
1492
1969df89
JK
14932012-08-09 Andreas Tobler <andreast@fgznet.ch>
1494 Jan Kratochvil <jan.kratochvil@redhat.com>
1495
1496 * fbsd-nat.h (fbsd_find_memory_regions): Use find_memory_region_ftype.
1497
8bfd80db
YQ
14982012-08-09 Yao Qi <yao@codesourcery.com>
1499
1500 * cli/cli-cmds.c (enablebreaklist): Move it to breakpoint.c.
1501 (skiplist): Move it to skip.c.
1502 (init_cmd_lists): Remove code setting enablebreaklist and
1503 skiplist to NULL.
1504 * breakpoint.c (enablebreaklist): Moved from cli/cli-cmds.c.
1505 * cli/cli-cmds.h: Remove declaration of enablebreaklist and
1506 skiplist.
1507 * gdbcmd.h: Likewise.
1508 * skip.c (_initialize_step_skip): Move 'skiplist' from
1509 cli/cli-cmds.c.
1510
28578e6b
YQ
15112012-08-09 Yao Qi <yao@codesourcery.com>
1512
1513 * cli/cli-dump.c: Add 'static' to some cmd_list_element variables.
1514 * gnu-nat.c, symfile.c: Likewise.
1515
260c0b2a
DE
15162012-08-08 Aaron Gamble <agamble@google.com>
1517
1518 * utils.c (prompt_for_continue_wait_time): New static global.
1519 (make_command_stats_cleanup): Initialize it.
1520 (report_command_stats): Subtract time waiting for user.
1521 (prompt_for_continue): Track time waiting for user.
1522 (defaulted_query): Track time waiting for user.
1523
4f485ebc
DE
15242012-08-08 Doug Evans <dje@google.com>
1525
1526 * eval.c (evaluate_subexp_standard): Fix thinko in handling
1527 UNOP_MEMVAL_TYPE.
1528 * expprint.c (print_subexp_standard, case OP_TYPE): New.
1529 (print_subexp_standard, case UNOP_CAST_TYPE): Don't increment pos.
1530 (print_subexp_standard, case UNOP_DYNAMIC_CAST): Ditto.
1531 (print_subexp_standard, case UNOP_REINTERPRET_CAST): Ditto.
1532 (print_subexp_standard, case UNOP_MEMVAL_TYPE): Ditto.
1533 (dump_subexp_body_standard, case UNOP_DYNAMIC_CAST): Don't increment
1534 elt.
1535 (dump_subexp_body_standard, case UNOP_REINTERPRET_CAST): Ditto.
1536 (dump_subexp_body_standard, case UNOP_CAST_TYPE): Ditto.
1537 (dump_subexp_body_standard, case UNOP_MEMVAL_TYPE): Ditto.
1538 (dump_prefix_expression): Handle OP_TYPE.
1539
2acf2b39
KS
15402012-08-08 Keith Seitz <keiths@redhat.com>
1541
1542 * breakpoint.c (parse_breakpoint_sals): Remove unused variable
1543 addr_start.
1544
e6712ff1
DE
15452012-08-08 Doug Evans <dje@google.com>
1546
1547 * linux-thread-db.c: #include "gdb_vecs.h".
1548 (try_thread_db_load_from_pdir_1): New arg "subdir". All callers
1549 updated.
1550 (try_thread_db_load_from_pdir): New arg "subdir". All callers updated.
1551 (thread_db_load_search): Use a vector to iterate over path elements.
1552 Handle text appearing after "$pdir".
1553
1554 * gdb_string.h: Moved to ...
1555 * common/gdb_string.h: ... here.
1556 * common/vec.h: Remove #ifndef GDBSERVER conditional inclusion of
1557 gdb_string.h and gdb_assert.h.
1558
ab854e54
YQ
15592012-08-08 Yao Qi <yao@codesourcery.com>
1560
1561 * tic6x-tdep.c (tic6x_register_to_value): Remove.
1562 (tic6x_value_to_register): Likewise.
1563 (tic6x_gdbarch_init): Don't call set_gdbarch_register_to_value
1564 and set_gdbarch_value_to_register.
1565
4f69f4c2
JK
15662012-08-07 Jan Kratochvil <jan.kratochvil@redhat.com>
1567 Jean-Marc Saffroy <saffroy@gmail.com>
1568
1569 PR 11804
1570 * defs.h (find_memory_region_ftype): New comment. New arg modified.
1571 * fbsd-nat.c (fbsd_find_memory_regions): Add the passed modified value.
1572 * gcore.c (gcore_create_callback): New function comment. Add modified
1573 parameter. Only write modified regions. Set SEC_READONLY exactly
1574 according to MODIFIED.
1575 (objfile_find_memory_regions): Ignore separate debug info files. Ass
1576 the passed modified value to FUNC.
1577 * gnu-nat.c (gnu_find_memory_regions): Add the passed modified value.
1578 * linux-tdep.c (linux_find_memory_regions): Try to reads smaps file
1579 first. New variables modified and has_anonymous. Parse the lines of
1580 smaps file. Add the passed MODIFIED value to FUNC.
1581 * procfs.c (find_memory_regions_callback): Add the passed modified
1582 value.
1583
78ac5f83
TT
15842012-08-06 Tom Tromey <tromey@redhat.com>
1585
1586 * dwarf2-frame.c (clear_pointer_cleanup): New function.
1587 (dwarf2_frame_cache): Use it.
1588 * frame-unwind.h (frame_sniffer_ftype): Document prologue
1589 cache initialization constraint.
1590
2c12abee
TT
15912012-08-06 Tom Tromey <tromey@redhat.com>
1592
1593 PR python/14386:
1594 * varobj.c (update_dynamic_varobj_children): Don't call
1595 PyIter_Check.
1596
4979d7f0
TT
15972012-08-06 Tom Tromey <tromey@redhat.com>
1598
1599 PR cli/14392:
1600 * cli/cli-cmds.c (list_command): Filter 'sals_end'.
1601
f3c8a52a
JK
16022012-08-06 Nathaniel Flath <flat0103@gmail.com>
1603
1604 * NEWS: New entry for 'cd' default parameters.
1605 * cli/cli-cmds.c (cd_command): Replace error_no_arg by DIR assignment.
1606
5a1cf4d6
TT
16072012-08-03 Tom Tromey <tromey@redhat.com>
1608
1609 * dwarf2-frame.c (dwarf2_frame_cache): Call do_cleanups before
1610 return.
1611
7c3270ae
UW
16122012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
1613
1614 * inf-child.c (inf_child_fileio_pwrite): If pwrite fails, fall back
1615 to attempting lseek/write.
1616 (inf_child_fileio_pread): Likewise for pread.
1617
ccce17b0
YQ
16182012-08-02 Yao Qi <yao@codesourcery.com>
1619
1620 * dwarf2loc.c (entry_values_debug): Add 'unsigned'.
1621 (_initialize_dwarf2loc): Call add_setshow_zuinteger_cmd instead of
1622 add_setshow_zinteger_cmd.
1623 * dwarf2loc.h: Update the declaration of 'entry_values_debug'.
1624 * dwarf2read.c (dwarf2_die_debug): Add 'unsigned'.
1625 (_initialize_dwarf2_read): Call add_setshow_zuinteger_cmd
1626 instead of add_setshow_zinteger_cmd.
1627 * darwin-nat.c (dwarwin_debug_flag): Add 'unsigned'.
1628 (_initialize_darwin_inferior): Call add_setshow_zuinteger_cmd
1629 instead of add_setshow_zinteger_cmd.
1630 * frame.c (frame_debug): Add 'unsigned'.
1631 (_intialize_frame): Call add_setshow_zuinteger_cmd instead of
1632 add_setshow_zinteger_cmd.
1633 * frame.h: Update the declaration of 'frame_debug'.
1634 * gdbtypes.c (overload_debug): Add 'unsigned'.
1635 (_initialize_gdbtypes): Call add_setshow_zuinteger_cmd instead of
1636 add_setshow_zinteger_cmd.
1637 * inferior.h: Update declaration of 'debug_infrun'.
1638 * infrun.c (debug_infrun): Add 'unsigned'.
1639 (_initialize_infrun): Call add_setshow_zuinteger_cmd instead of
1640 add_setshow_zinteger_cmd.
1641 * jit.c (jit_debug): Add 'unsigned'.
1642 (_initialize_jit): Call add_setshow_zuinteger_cmd instead of
1643 add_setshow_zinteger_cmd.
1644 * linux-nat.c (debug_linux_nat): Add 'unsigned'.
1645 (_initialize_linux_nat): Call add_setshow_zuinteger_cmd
1646 instead of add_setshow_zinteger_cmd.
1647 * linux-thread-db.c (libthread_db_debug): Add 'unsigned'.
1648 (_initialize_thread_db): Call add_setshow_zuinteger_cmd instead of
1649 add_setshow_zinteger_cmd.
1650 * machoread.c (mach_o_debug_level): Add 'unsigned'.
1651 (_initialize_machoread): Call add_setshow_zuinteger_cmd
1652 instead of add_setshow_zinteger_cmd.
1653 * mi/mi-cmd-var.c: Update the declaration of 'varobjdebug'.
1654 * microblaze-tdep.c (microblaze_debug_flag): Add 'unsigned'.
1655 (_initialize_microblaze_tdep): Call add_setshow_zuinteger_cmd
1656 intead of add_setshow_zinteger_cmd.
1657 * mips-tdep.c (mips_debug): Add 'unsigned'.
1658 (_initialize_mips_tdep): Call add_setshow_zuinteger_cmd
1659 instead of add_setshow_zinteger_cmd.
1660 * monitor.c (monitor_debug): Add 'unsigned'.
1661 (_initialize_remote_monitors): Call add_setshow_zuinteger_cmd instead of
1662 add_setshow_zinteger_cmd.
1663 * observer.c (observer_debug): Add 'unsigned'.
1664 (_initialize_observer): Call add_setshow_zuinteger_cmd instead of
1665 add_setshow_zinteger_cmd.
1666 * parse.c (expressiondebug): Add 'unsigned'.
1667 (_initialize_parse): Call add_setshow_zuinteger_cmd instead of
1668 add_setshow_zinteger_cmd.
1669 * record.c (record_debug): Add 'unsigned'.
1670 (_initialize_record): Call add_setshow_zuinteger_cmd instead of
1671 add_setshow_zinteger_cmd.
1672 * record.h: Update the declaration of 'record_debug'.
1673 * stap-probe.c (stap_expression_debug): Add 'unsigned'.
1674 (_initialize_stap_probe): Call add_setshow_zuinteger_cmd instead of
1675 add_setshow_zinteger_cmd.
1676 * serial.c (global_serial_debug_p): Add 'unsigned'.
1677 (_initialize_serial): Call add_setshow_zuinteger_cmd instead of
1678 add_setshow_zinteger_cmd.
1679 * solib-dsbt.c (solib_dsbt_debug): Add 'unsigned'.
1680 (_initialize_dsbt_solib): Call add_setshow_zuinteger_cmd instead of
1681 add_setshow_zinteger_cmd.
1682 * solib-frv.c (solib_frv_debug): Add 'unsigned'.
1683 (_initialize_frv_solib): Call add_setshow_zuinteger_cmd instead of
1684 add_setshow_zinteger_cmd.
1685 * target.c (targetdebug): Add 'unsigned'.
1686 (initialize_targets): Call add_setshow_zuinteger_cmd instead of
1687 add_setshow_zinteger_cmd.
1688 * valops.c (overload_debug): Add 'unsigned'.
1689 * varobj.c (varobjdebug): Add 'unsigned'.
1690 (_initialize_varobj): Call add_setshow_zuinteger_cmd instead of
1691 add_setshow_zinteger_cmd.
1692 * xtensa-tdep.c (xtensa_debug_level): Add 'unsigned'.
1693 (_initialize_xtensa_tdep): Call add_setshow_zuinteger_cmd
1694 instead of add_setshow_zinteger_cmd.
1695
1696 * arch-utils.h: Remove the declaration of 'gdbarch_debug'.
1697 * gdbarch.sh (gdbarch_debug): Add 'unsigned'.
1698 (extern void _initialize_gdbarch): Call add_setshow_zuinteger_cmd
1699 instead of add_setshow_zinteger_cmd.
1700 * gdbarch.c, gdbarch.h: Re-generated.
1701
95b07c96
YQ
17022012-08-02 Yao Qi <yao@codesourcery.com>
1703
1704 * nto-tdep.c: Don't include cli/cli-decode.h and
1705 cli/cli-cmds.h.
1706 (_initialize_nto_tdep): Remove.
1707 * nto-tdep.h (struct nto_target_ops) <internal_debugging>:
1708 Remove field.
1709 Remove macro nto_internal_debugging.
1710
57295b0b
RH
17112012-08-01 Richard Henderson <rth@redhat.com>
1712
1713 * configure.tgt (m32c-*-*) [gdb_target_obs]: Remove prologue-value.o.
1714 (mep-*-*) [gdb_target_obs]: Likewise.
1715
f782ad9b
AS
17162012-07-31 Andreas Schwab <schwab@linux-m68k.org>
1717
1718 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
1719 linux_get_siginfo_type.
1720
a14dd77e
JK
17212012-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
1722
1723 * infcall.c (call_function_by_hand): Move BP_ADDR comment to
1724 AT_ENTRY_POINT.
1725 (call_function_by_hand) <ON_STACK>: Call write_memory with
1726 gdbarch_breakpoint_from_pc, if possible.
1727 (call_function_by_hand) <AT_ENTRY_POINT>: The BP_ADDR comment is moved
1728 here.
1729
1467929f
YQ
17302012-07-31 Yao Qi <yao@codesourcery.com>
1731
1732 * tracepoint.c: Add 'static' for some variables.
1733
70976b65
YQ
17342012-07-31 Yao Qi <yao@codesourcery.com>
1735
1736 * go32-nat.c: Declare _initialize_go32_nat.
1737 * ser-go32.c: Declare _initialize_ser_dos.
1738 * top.c (do_chdir_cleanup): Add 'static'.
1739
eff9c3e6
KS
17402012-07-30 Keith Seitz <keiths@redhat.com>
1741
1742 * linespec.c (linespec_lex_number): A number followed
1743 by quotes is a valid number, too.
1744
728400d7
TT
17452012-07-30 Tom Tromey <tromey@redhat.com>
1746
1747 * remote-sim.c (gdb_os_poll_quit): Don't check immediate_quit.
1748
fcf303ab
UW
17492012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
1750
1751 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Do not
1752 attempt to 4-byte-align HW breakpoint addresses for Thumb.
1753
4e969b4f
AB
17542012-07-30 Andrew Burgess <aburgess@broadcom.com>
1755
1756 * varobj.c (varobj_invalidate_iter): All varobj must be marked as
1757 invalid or reevaluated to prevent prevent references to possibly
1758 delete'd type objects being left in the varobj.
1759
c4bfde41
JK
17602012-07-27 Tom Tromey <tromey@redhat.com>
1761 Jan Kratochvil <jan.kratochvil@redhat.com>
1762
1763 * copying.awk: Print buffer-read-only and vi ro markers.
1764 * copying.c: Rebuild.
1765 * gdbarch.sh (copyright): Print buffer-read-only and vi ro markers.
1766 * gdbarch.c, gdbarch.h: Rebuild.
1767 * target-descriptions.c (maint_print_c_tdesc_cmd): Print
1768 buffer-read-only and vi ro markers.
1769 * features/arm-with-iwmmxt.c: Rebuild.
1770 * features/arm-with-m-fpa-layout.c: Rebuild.
1771 * features/arm-with-m-vfp-d16.c: Rebuild.
1772 * features/arm-with-m.c: Rebuild.
1773 * features/arm-with-neon.c: Rebuild.
1774 * features/arm-with-vfpv2.c: Rebuild.
1775 * features/arm-with-vfpv3.c: Rebuild.
1776 * features/i386/amd64-avx-linux.c: Rebuild.
1777 * features/i386/amd64-avx.c: Rebuild.
1778 * features/i386/amd64-linux.c: Rebuild.
1779 * features/i386/amd64.c: Rebuild.
1780 * features/i386/i386-avx-linux.c: Rebuild.
1781 * features/i386/i386-avx.c: Rebuild.
1782 * features/i386/i386-linux.c: Rebuild.
1783 * features/i386/i386-mmx-linux.c: Rebuild.
1784 * features/i386/i386-mmx.c: Rebuild.
1785 * features/i386/i386.c: Rebuild.
1786 * features/i386/x32-avx-linux.c: Rebuild.
1787 * features/i386/x32-avx.c: Rebuild.
1788 * features/i386/x32-linux.c: Rebuild.
1789 * features/i386/x32.c: Rebuild.
1790 * features/mips-dsp-linux.c: Rebuild.
1791 * features/mips-linux.c: Rebuild.
1792 * features/mips64-dsp-linux.c: Rebuild.
1793 * features/mips64-linux.c: Rebuild.
1794 * features/rs6000/powerpc-32.c: Rebuild.
1795 * features/rs6000/powerpc-32l.c: Rebuild.
1796 * features/rs6000/powerpc-403.c: Rebuild.
1797 * features/rs6000/powerpc-403gc.c: Rebuild.
1798 * features/rs6000/powerpc-405.c: Rebuild.
1799 * features/rs6000/powerpc-505.c: Rebuild.
1800 * features/rs6000/powerpc-601.c: Rebuild.
1801 * features/rs6000/powerpc-602.c: Rebuild.
1802 * features/rs6000/powerpc-603.c: Rebuild.
1803 * features/rs6000/powerpc-604.c: Rebuild.
1804 * features/rs6000/powerpc-64.c: Rebuild.
1805 * features/rs6000/powerpc-64l.c: Rebuild.
1806 * features/rs6000/powerpc-7400.c: Rebuild.
1807 * features/rs6000/powerpc-750.c: Rebuild.
1808 * features/rs6000/powerpc-860.c: Rebuild.
1809 * features/rs6000/powerpc-altivec32.c: Rebuild.
1810 * features/rs6000/powerpc-altivec32l.c: Rebuild.
1811 * features/rs6000/powerpc-altivec64.c: Rebuild.
1812 * features/rs6000/powerpc-altivec64l.c: Rebuild.
1813 * features/rs6000/powerpc-cell32l.c: Rebuild.
1814 * features/rs6000/powerpc-cell64l.c: Rebuild.
1815 * features/rs6000/powerpc-e500.c: Rebuild.
1816 * features/rs6000/powerpc-e500l.c: Rebuild.
1817 * features/rs6000/powerpc-isa205-32l.c: Rebuild.
1818 * features/rs6000/powerpc-isa205-64l.c: Rebuild.
1819 * features/rs6000/powerpc-isa205-altivec32l.c: Rebuild.
1820 * features/rs6000/powerpc-isa205-altivec64l.c: Rebuild.
1821 * features/rs6000/powerpc-isa205-vsx32l.c: Rebuild.
1822 * features/rs6000/powerpc-isa205-vsx64l.c: Rebuild.
1823 * features/rs6000/powerpc-vsx32.c: Rebuild.
1824 * features/rs6000/powerpc-vsx32l.c: Rebuild.
1825 * features/rs6000/powerpc-vsx64.c: Rebuild.
1826 * features/rs6000/powerpc-vsx64l.c: Rebuild.
1827 * features/rs6000/rs6000.c: Rebuild.
1828 * features/s390-linux32.c: Rebuild.
1829 * features/s390-linux32v1.c: Rebuild.
1830 * features/s390-linux32v2.c: Rebuild.
1831 * features/s390-linux64.c: Rebuild.
1832 * features/s390-linux64v1.c: Rebuild.
1833 * features/s390-linux64v2.c: Rebuild.
1834 * features/s390x-linux64.c: Rebuild.
1835 * features/s390x-linux64v1.c: Rebuild.
1836 * features/s390x-linux64v2.c: Rebuild.
1837 * features/tic6x-c62x-linux.c: Rebuild.
1838 * features/tic6x-c62x.c: Rebuild.
1839 * features/tic6x-c64x-linux.c: Rebuild.
1840 * features/tic6x-c64x.c: Rebuild.
1841 * features/tic6x-c64xp-linux.c: Rebuild.
1842 * features/tic6x-c64xp.c: Rebuild.
1843
826f0041
TT
18442012-07-27 Tom Tromey <tromey@redhat.com>
1845
1846 * c-exp.y (classify_name): Avoid assignment in condition.
1847
84552b16
PA
18482012-07-27 Roland Schwingel <roland.schwingel@onevision.com>
1849
1850 * amd64-windows-tdep.c: Include "frame.h".
1851 (amd64_windows_skip_trampoline_code): New function.
1852 (amd64_windows_init_abi): Add trampoline registration.
1853
a8a64aa8
YQ
18542012-07-27 Yao Qi <yao@codesourcery.com>
1855
1856 * tracepoint.c (cur_traceframe_number): Remove.
1857 (set_tfile_traceframe): Remove.
1858 (tfile_trace_find, tfile_fetch_registers): Update callers.
1859 (tfile_xfer_partial, tfile_get_trace_state_variable_value): Likewise.
1860 (tfile_open, tfile_trace_find): Likewise.
1861
d99067cb
YQ
18622012-07-27 Yao Qi <yao@codesourcery.com>
1863
1864 * thread.c (switch_to_thread): Don't call registers_changed.
1865
f2e8016f
TT
18662012-07-26 Tom Tromey <tromey@redhat.com>
1867
f782ad9b
AS
1868 * Makefile.in (SFILES): Remove objc-exp.y.
1869 (YYFILES): Remove objc-exp.c.
1870 (YYOBJ): Remove objc-exp.o.
1871 (local-maintainer-clean): Don't mention objc-exp.c.
1872 * c-exp.y: Include objc-lang.h.
1873 (%union) <class>: New field.
1874 (NSSTRING, SELECTOR, CLASSNAME, OBJC_LBRAC): New tokens.
1875 (exp): Clone subscript production for OBJC_LBRAC. Add various
1876 Objective C productions.
1877 (msglist, msgarglist, msgarg): New productions.
1878 (array_mod, func_mod, operator): Clone productions for
1879 OBJC_LBRAC.
1880 (parse_string_or_char): Handle '@' strings.
1881 (lex_one_token): Return OBJC_LBRAC. Recognize @selector.
1882 (classify_name): Check la_name_of_this. Recognize ObjC class
1883 names.
1884 * objc-exp.y: Remove.
1885 * objc-lang.c (objc_language_defn): Use c_parse, c_error.
1886 * objc-lang.h (objc_parse, objc_error): Don't declare.
f2e8016f 1887
f66713d2
JK
18882012-07-26 Markus Metzger <markus.t.metzger@intel.com>
1889
1890 * python/py-inferior.c (infpy_threads): Call update_thread_list ().
1891
7cfe01b4
JK
18922012-07-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1893
1894 * auto-load.c (auto_load_info_scripts): Remove immediate_quit increment
1895 and decrement.
1896
5ba19b4c
TT
18972012-07-26 Tom Tromey <tromey@redhat.com>
1898
1899 * copying.c: Rebuild.
1900 * copying.awk: Don't use immediate_quit. Use 'no_set_class', not
1901 'no_class'.
1902
27618ce4
TT
19032012-07-26 Tom Tromey <tromey@redhat.com>
1904
1905 * symmisc.c (print_symbol_bcache_statistics): Use QUIT, not
1906 immediate_quit.
1907 (print_objfile_statistics): Likewise.
1908 (maintenance_print_symbols): Likewise.
1909 (maintenance_print_msymbols): Likewise.
1910 (maintenance_print_objfiles): Likewise.
1911 * psymtab.c (print_partial_symbols): Call QUIT.
1912 (maintenance_print_psymbols): Likewise. Don't modify
1913 immediate_quit.
1914 * copying.c (show_copying_command): Don't modify immediate_quit.
1915 (show_warranty_command): Likewise.
1916 * cli/cli-cmds.c (show_version): Don't modify immediate_quit.
1917
dd3818c8
KS
19182012-07-26 Keith Seitz <keiths@redhat.com>
1919
1920 * linespec.c (linespec_lexer_lex_number): The input
1921 is also a valid number if the next character is a comma
1922 or colon.
1923
23a80689
JB
19242012-07-26 Joel Brobecker <brobecker@adacore.com>
1925
1926 * NEWS: Document new --enable-libmcheck/--disable-libmcheck
1927 configure options.
1928
29f77997
TG
19292012-07-26 Tristan Gingold <gingold@adacore.com>
1930
1931 * machoread.c: Include gdb_bfd.h.
1932
a55c1f32
TG
19332012-07-26 Tristan Gingold <gingold@adacore.com>
1934
1935 * dwarf2loc.c (locexpr_describe_location_piece): Use uint64_t for
1936 offset.
1937
56eb65bd
SP
19382012-07-26 Siddhesh Poyarekar <siddhesh@redhat.com>
1939
1940 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Expand parameter
1941 SIZE to size_t.
1942 (dwarf2_evaluate_loc_desc): Likewise.
1943 (dwarf2_loc_desc_needs_frame): Likewise.
1944 (locexpr_describe_location_1): Likewise.
1945 * dwarf2loc.h (struct dwarf2_locexpr_baton): Make SIZE as
1946 size_t.
1947 (struct dwarf2_loclist_baton): Likewise.
1948 * dwarf2read.c (struct dwarf_block): Likewise.
1949 (dump_die_shallow): Use pulongest to print dwarf_block.size.
1950 (decode_locdesc): Expand SIZE and I to size_t.
1951
aec8845c
JK
19522012-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
1953
1954 * contrib/cc-with-tweaks.sh: Put into comment path gdb/contrib/.
1955
33d7655b
JB
19562012-07-25 Joel Brobecker <brobecker@adacore.com>
1957
1958 * doublest.c (convert_doublest_to_floatformat): If the exponent
1959 is too small, treat the value as zero. If the exponent is too
1960 large, treat the value as infinity.
1961
a22d44ff
JB
19622012-07-25 Joel Brobecker <brobecker@adacore.com>
1963
1964 * configure.ac: Add --enable-lmcheck configure option.
1965 * configure: Regenerate.
1966
d6b28940
TT
19672012-07-25 Tom Tromey <tromey@redhat.com>
1968
f782ad9b
AS
1969 * NEWS: Mention maint info bfds.
1970 * gdb_bfd.c (all_bfds): New global.
1971 (gdb_bfd_ref, gdb_bfd_unref): Update all_bfds.
1972 (print_one_bfd, maintenance_info_bfds, _initialize_gdb_bfd):
1973 New functions.
d6b28940 1974
6e73ba20
RC
19752012-07-25 Ralf Corsépius <ralf.corsepius@rtems.org>
1976
1977 * configure.tgt: Add v850*-*-rtems*.
1978
d560eebd
TT
19792012-07-25 Tom Tromey <tromey@redhat.com>
1980
1981 * macrotab.c (macro_bcache_str): Remove cast.
1982
d7cbec71
HZ
19832012-07-25 Hui Zhu <hui_zhu@mentor.com>
1984
1985 * linespec.c (linespec_lexer_lex_number): Update comments,
1986 change the return and add check to make sure the input is
1987 the decimal numbers.
1988 (linespec_lexer_lex_one): If linespec_lexer_lex_number return
1989 false, call linespec_lexer_lex_string.
1990
882f447f
TT
19912012-07-24 Tom Tromey <tromey@redhat.com>
1992
1993 * symfile.c (symbol_file_add): Don't open BFD twice.
1994
53ab4066 19952012-07-24 Marc Khouzam <marc.khouzam@ericsson.com>
e12c7713
MK
1996
1997 * breakpoint.c (create_breakpoint): Store condition for pending
1998 breakpoints.
1999
108fb0f7
AS
20002012-07-24 Andreas Schwab <schwab@linux-m68k.org>
2001
2002 * m68k-tdep.c (m68k_reg_struct_return_p): Accept complex types.
2003 (m68k_return_value): Handle complex types like structures.
2004 (m68k_svr4_return_value): Likewise.
2005
1634dcbe
JK
20062012-07-24 Marcus Shawcroft <marcus.shawcroft@arm.com>
2007
2008 * gdb_bfd.c (zlib_decompress_section) <!HAVE_ZLIB_H>: Adjust
2009 parameters to bfd_get_section_name.
2010
e2d12c21
YQ
20112012-07-24 Yao Qi <yao@codesourcery.com>
2012
2013 * cli/cli-setshow.c: Handle case 'var_uinteger'
2014 and 'var_zuninteger' together. Handle case 'var_integer' and
2015 'var_zinteger' together.
2016
64b92e45
KS
20172012-07-23 Keith Seitz <keiths@redhat.com>
2018
2019 * linespec.c (convert_linespec_to_sal): Don't add
2020 any symbols to the result vector if symbol_to_sal
2021 returns zero.
2022
0f5f4ffe
KS
20232012-07-23 Keith Seitz <keiths@redhat.com>
2024
2025 * linespec.c (decode_objc): Record the function name
2026 in the linespec.
2027
da1cc82f
TT
20282012-07-23 Tom Tromey <tromey@redhat.com>
2029
2030 * rs6000-nat.c (add_vmap): Rewrite archive loop. Fix reference
2031 counting.
2032 * exec.c (exec_close_1): Unconditionally release vmap's BFD.
2033 (map_vmap): Acquire a reference to the BFD.
2034
6c18f3e0
SP
20352012-07-23 Siddhesh Poyarekar <siddhesh@redhat.com>
2036
2037 * p-valprint.c (pascal_object_print_value): Replace potentially
2038 unsafe alloca with xmalloc/xfree.
2039 * valops.c (search_struct_method): Likewise.
2040
695c3173
TT
20412012-07-23 Tom Tromey <tromey@redhat.com>
2042
2043 * solib-svr4.c (enable_break): Update.
2044 * bfd-target.h (target_bfd_reopen): Update documentation.
2045
08d2cd74
TT
20462012-07-23 Tom Tromey <tromey@redhat.com>
2047
2048 * symfile.c (separate_debug_file_exists): Update.
2049 (gdb_bfd_open_maybe_remote): Rename from bfd_open_maybe_remote.
2050 (reread_symbols): Update.
2051 * elfread.c (build_id_verify): Update.
2052 * symfile.h (gdb_bfd_open_maybe_remote): Rename from
2053 bfd_open_maybe_remote.
2054
596f7d67
TT
20552012-07-23 Tom Tromey <tromey@redhat.com>
2056
2057 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Fix comment.
2058
8ac244b4
TT
20592012-07-23 Tom Tromey <tromey@redhat.com>
2060
2061 * coffread.c (coff_symfile_read): Make a cleanup for 'debugfile'
2062 and 'abfd'.
2063 * elfread.c (elf_symfile_read): Make a cleanup for 'debugfile'
2064 and 'abfd'.
2065 * jit.c (jit_bfd_try_read_symtab): Make a cleanup for 'nbfd'.
2066 * machoread.c (macho_add_oso_symfile): Make a cleanup for
2067 'abfd'.
2068 (macho_symfile_read): Make a cleanup for 'dsym_bfd'.
2069 * objfiles.c (allocate_objfile): Acquire a new reference.
2070 * rs6000-nat.c (add_vmap): Don't acquire a BFD reference.
2071 * solib.c (solib_read_symbols): Don't acquire a BFD reference.
2072 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Make
2073 a cleanup for 'nbfd'.
2074 * symfile-mem.c (symbol_file_add_from_memory): Make a cleanup
2075 for 'nbfd'.
2076 * symfile.c (symbol_file_add_with_addrs_or_offsets): Don't
2077 make a cleanup for 'abfd'.
2078 (symbol_file_add): Make a BFD cleanup.
2079
64c31149
TT
20802012-07-23 Tom Tromey <tromey@redhat.com>
2081
2082 * cli/cli-dump.c (bfd_openr_with_cleanup): Use gdb_bfd_openr.
2083 (bfd_openw_with_cleanup): Use gdb_bfd_openw.
2084 * corelow.c (core_open): Use gdb_bfd_fopen.
2085 * dsrec.c (load_srec): Use gdb_bfd_openr.
2086 * exec.c (exec_file_attach): Use gdb_bfd_fopen.
2087 * gcore.c (gcore_memory_sections): Use gdb_bfd_openw.
2088 * gdb_bfd.c (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
2089 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
2090 (gdb_bfd_fdopenr): New functions.
2091 * gdb_bfd.h (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
2092 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
2093 (gdb_bfd_fdopenr): Declare.
2094 * jit.c (bfd_open_from_target_memory): Use gdb_bfd_openr_iovec.
2095 * m32-rom.c (m32r_load, m32r_upload_command): Use gdb_bfd_openr.
2096 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_openr,
2097 gdb_bfd_openr_next_archived_file.
2098 (macho_check_dsym): Use gdb_bfd_openr.
2099 (macho_add_oso_symfile): Don't call gdb_bfd_stash_filename.
2100 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_fdopenr.
2101 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_openr.
2102 * remote-mips.c (mips_load_srec, pmon_load_fast): Use
2103 gdb_bfd_openr.
2104 * remote.c (remote_bfd_open): Use gdb_bfd_openr_iovec.
2105 * rs6000-nat.c (add_vmap): Use gdb_bfd_openr, gdb_bfd_fdopenr,
2106 gdb_bfd_openr_next_archived_file.
2107 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2108 Use gdb_bfd_openr.
2109 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
2110 gdb_bfd_openr.
2111 * solib-spu.c (spu_bfd_fopen): Use gdb_bfd_openr_iovec.
2112 * solib.c (solib_bfd_fopen): Use gdb_bfd_fopen.
2113 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_openr_iovec.
2114 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_openr.
2115 (symfile_bfd_open): Use gdb_bfd_fopen.
2116 (generic_load): Use gdb_bfd_openr.
2117 * windows-nat.c (windows_make_so): Use gdb_bfd_openr.
2118
520b0001
TT
21192012-07-23 Tom Tromey <tromey@redhat.com>
2120
2121 * bfd-target.c (target_bfd_reopen): Update.
2122 * cli/cli-dump.c (bfd_openr_with_cleanup)
2123 (bfd_openw_with_cleanup): Update.
2124 * corelow.c (core_open): Update.
2125 * dsrec.c (load_srec): Update.
2126 * exec.c (exec_file_attach): Update.
2127 * gcore.c (create_gcore_bfd): Update.
2128 * gdb_bfd.c (gdb_bfd_ref): Return void.
2129 (gdb_bfd_open): Update.
2130 * gdb_bfd.h (gdb_bfd_ref): Return void.
2131 Update comments.
2132 * jit.c (jit_bfd_try_read_symtab): Update.
2133 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
2134 * machoread.c (macho_symfile_read_all_oso): Update.
2135 (macho_check_dsym): Update.
2136 * procfs.c (insert_dbx_link_bpt_in_file): Update.
2137 * remote-m32r-sdi.c (m32r_load): Update.
2138 * remote-mips.c (mips_load_srec, pmon_load_fast): Update.
2139 * rs6000-nat.c (add_vmap): Update.
2140 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2141 Update.
2142 * solib-pa64.c (pa64_solib_create_inferior_hook): Update.
2143 * solib-spu.c (spu_bfd_open): Update.
2144 * solib.c (solib_bfd_fopen, solib_read_symbols): Update.
2145 * spu-linux-nat.c (spu_bfd_open): Update.
2146 * symfile.c (bfd_open_maybe_remote, symfile_bfd_open)
2147 (generic_load): Update.
2148 * windows-nat.c (windows_make_so): Update.
2149
2322ff16
SP
21502012-07-22 Siddhesh Poyarekar <siddhesh@redhat.com>
2151
2152 * sh-tdep.c (sh_treat_as_flt_p): Remove unused variable LEN.
2153
3def0b36
PA
21542012-07-20 Jeff Kenton <jkenton@tilera.com>
2155
2156 * tilegx-linux-tdep.c (tilegx_linux_sigframe_init): Fix
2157 SIGTRAMP_FRAME unwinding.
2158
e615022a
DE
21592012-07-20 Doug Evans <dje@google.com>
2160
2161 * NEWS: Document new options "set/show use-deprecated-index-sections",
2162 and delete reference to --use-deprecated-index-sections.
2163 * symfile.h (use_deprecated_index_sections): Delete.
2164 * dwarf2read.c (use_deprecated_index_sections): Make static.
2165 (read_index_from_section): Update wording of how to load
2166 deprecated index sections.
2167 (_initialize_dwarf2_read): New options
2168 "set/show use-deprecated-index-sections".
2169 * main.c (captured_main): Delete --use-deprecated-index-sections.
2170
64776a0b
PA
21712012-07-20 Pedro Alves <palves@redhat.com>
2172
2173 PR threads/11692
2174 PR gdb/12203
2175
2176 * infrun.c (handle_inferior_event) <new thread>: Don't special
2177 case minus_one_ptid.
2178 <TARGET_WAITKIND_SPURIOUS>: Ditto.
2179 * linux-thread-db.c (thread_get_info_callback): Don't return early
2180 if the thread is zombie.
2181 (thread_from_lwp): Change return type to void. Rewrite stale
2182 comment.
2183 (attach_thread): Don't return early if the thread is zombie,
2184 instead set its "dying" flag.
2185 (thread_db_wait): Don't return TARGET_WAITKIND_SPURIOUS anymore.
2186 (find_new_threads_callback): Don't return early if the thread is
2187 zombie.
2188
09826ec5
PA
21892012-07-20 Pedro Alves <palves@redhat.com>
2190
2191 * linux-nat.c (linux_nat_wait): Dump the passed in target options.
2192 * target.c (target_wait): Likewise.
2193 (str_comma_list_concat_elem, do_option, target_options_to_string):
2194 New functions.
2195 * target.h (target_options_to_string): Declare.
2196
f7a35f02
TT
21972012-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2198 Tom Tromey <tromey@redhat.com>
2199
2200 * dwarf2read.c (dwarf_decode_macros)
2201 <DW_MACRO_GNU_define_indirect_alt, DW_MACRO_GNU_undef_indirect_alt,
2202 DW_MACRO_GNU_transparent_include_alt>: New cases.
2203 (dwarf_decode_macro_bytes) <DW_MACRO_GNU_define_indirect,
2204 DW_MACRO_GNU_undef_indirect>: Examine 'section_is_dwz'.
2205
b81e1ee0
TT
22062012-07-20 Tom Tromey <tromey@redhat.com>
2207
2208 * dwarf2read.c (try_open_dwo_file): Don't call
2209 gdb_bfd_stash_filename.
2210
99c1624c
PA
22112012-07-20 Pedro Alves <palves@redhat.com>
2212
2213 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
2214 (i386_record_lea_modrm, i386_record_push, i386_record_floats)
2215 (i386_process_record): Tweak description comments.
2216
4ffa4fc7
PA
22172012-07-20 Pedro Alves <palves@redhat.com>
2218
2219 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
2220 (i386_process_record): Use record_read_memory.
2221 * record.c (record_read_memory): New function.
2222 (record_arch_list_add_mem, record_exec_insn): Use
2223 record_read_memory.
2224 * record.h (record_read_memory): Declare.
2225
c24343e2
YQ
22262012-07-20 Yao Qi <yao@codesourcery.com>
2227
2228 * cli/cli-setshow.c (do_setshow_command): Don't check pointer is
2229 NULL for xfree.
2230
90f47860
PA
22312012-07-19 Pedro Alves <palves@redhat.com>
2232
2233 * record.c (record_resume): Ask the target beneath to report all
2234 signals.
2235
01093045
DE
22362012-07-19 Doug Evans <dje@google.com>
2237
2238 * dwarf2read.c (dwarf2_ranges_read): Ignore ranges starting at zero if
2239 there's no section at address zero.
2240 (dwarf2_record_block_ranges): Ditto.
2241
a7c3d162
YQ
22422012-07-19 Yao Qi <yao@codesourcery.com>
2243
2244 * command.h, remote.c: Fix a typo in comment.
2245
608b4967
TT
22462012-07-19 Tom Tromey <tromey@redhat.com>
2247
2248 PR exp/13206:
2249 * ax-gdb.c (gen_expr) <OP_TYPEOF, OP_DECLTYPE>: New cases.
2250 * breakpoint.c (watchpoint_exp_is_const) <OP_TYPEOF,
2251 OP_DECLTYPE>: New cases.
2252 * c-exp.y (TYPEOF, DECLTYPE): New tokens.
2253 (type_exp): Add new productions.
2254 (ident_tokens): Add __typeof__, typeof, __typeof, __decltype,
2255 and decltype.
2256 * eval.c (evaluate_subexp_standard) <OP_TYPEOF, OP_DECLTYPE>:
2257 New case.
2258 * expprint.c (dump_subexp_body_standard) <OP_TYPEOF,
2259 OP_DECLTYPE>: New case.
2260 * parse.c (operator_length_standard) <OP_TYPEOF, OP_DECLTYPE>:
2261 New case.
2262 * std-operator.def (OP_TYPEOF, OP_DECLTYPE): New constants.
2263 * varobj.c (varobj_create): Handle OP_TYPEOF, OP_DECLTYPE.
2264
274b54d7
TT
22652012-07-19 Tom Tromey <tromey@redhat.com>
2266
2267 * c-exp.y (enum token_flags): New.
2268 (struct token) <cxx_only>: Remove.
2269 <flags>: New field.
2270 (tokentab3, tokentab2, ident_tokens): Update.
2271 (lex_one_token): Update. Handle FLAG_SHADOW.
2272
9eaf6705
TT
22732012-07-19 Tom Tromey <tromey@redhat.com>
2274
2275 * ax-gdb.c (gen_expr): Handle UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE.
2276 * breakpoint.c (watchpoint_exp_is_const): Handle UNOP_CAST_TYPE,
2277 UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST.
2278 * c-exp.y (exp): Emit UNOP_MEMVAL_TYPE, UNOP_CAST_TYPE. Update
2279 for changes to UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST. Use
2280 type_exp production where appropriate.
2281 * eval.c (evaluate_subexp_standard) <UNOP_CAST_TYPE>: New case.
2282 <UNOP_DYNAMIC_CAST, UNOP_REINTERPRET_CAST>: Update.
2283 <UNOP_MEMVAL_TYPE>: New case.
2284 (evaluate_subexp_for_address) <UNOP_MEMVAL_TYPE>: New case.
2285 (evaluate_subexp_for_sizeof) <UNOP_MEMVAL_TYPE>: New case.
2286 * expprint.c (print_subexp_standard) <UNOP_CAST_TYPE>: New case.
2287 <UNOP_MEMVAL_TYPE>: New case.
2288 (dump_subexp_body_standard) <UNOP_DYNAMIC_CAST,
2289 UNOP_REINTERPRET_CAST>: Update.
2290 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
2291 * parse.c (operator_length_standard) <UNOP_DYNAMIC_CAST,
2292 UNOP_REINTERPRET_CAST>: Update.
2293 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
2294 * stack.c (return_command): Also check for UNOP_CAST_TYPE.
2295 * std-operator.def (UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE): New
2296 constants.
2297
6ace3df1
YQ
22982012-07-19 Yao Qi <yao@codesourcery.com>
2299 Jan Kratochvil <jan.kratochvil@redhat.com>
2300
2301 * cli/cli-setshow.c (do_setshow_command): Handle case 'var_filename'
2302 and case 'var_optional_filename' together.
2303 * infcmd.c (_initialize_infcmd): Call add_setshow_string_noescape_cmd
2304 instead of add_setshow_optional_filename_cmd for setshow command
2305 'args'. Set completer for 'set args'.
2306
48faced0
DE
23072012-07-18 Doug Evans <dje@google.com>
2308
2309 * common/gdb_vecs.h: Moved here from ./gdb_vecs.h.
2310 * common/gdb_vecs.c: New file, contents from utils.c.
2311 * common/host-defs.h: New file, contents from defs.h.
2312 * utils.h: New file, contents from defs.h.
2313 * defs.h: Move all declarations of objects defined in utils.c
2314 to utils.h (except QUIT() and related).
2315 #include "utils.h", "host-defs.h".
2316 * probe.h (probe_p): Move here from gdb_vecs.h.
2317 * symfile.c: #include "probe.h" instead of "gdb_vecs.h".
2318 * utils.c (free_char_ptr_vec): Moved to common/gdb_vecs.c.
2319 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): Ditto.
2320 * Makefile.in (SFILES): Add common/gdb_vecs.c.
2321 (HFILES_NO_SRCDIR): Add common/gdb_vecs.h, common/host-defs.h, utils.h.
2322 (COMMON_OBS): Add gdb_vecs.o.
2323 (gdb_vecs.o): New rule.
2324
66f1999b
KS
23252012-07-18 Keith Seitz <keiths@redhat.com>
2326
2327 * linespec.c (add_sal_to_sals): Add LITERAL_CANONICAL
2328 parameter. If non-zero, use SYMNAME as the canonical name
2329 for the SaL.
2330 Update all callers.
2331 (convert_linespec_to_sals): Use add_sal_to_sals for
2332 expressions, too.
2333 (decode_line_full): No need to "fill in missing canonical names"
2334 anymore. Simply make cleanups for the allocated names.
2335
5d94e27b
KS
23362012-07-18 Keith Seitz <keiths@redhat.com>
2337
2338 * linespec.c (struct linespec): Constify expression,
2339 source_filename, function_name, and label_name.
2340 (symbol_not_found_error): Make all parameters const.
2341 (linespec_parser_delete): No need to check for NULL
2342 when using xfree. Cast const char * to char * for xfree.
2343
af4908ba
KS
23442012-07-18 Keith Seitz <keiths@redhat.com>
2345
2346 * breakpoint.c (invalid_thread_id_error): New function.
2347 (find_condition_and_thread): Use invalid_thread_id_error.
2348 (watch_command_1): Likewise.
2349
853254db
TT
23502012-07-18 Tom Tromey <tromey@redhat.com>
2351
2352 * cc-with-index.sh, cc-with-dwz.sh: Remove.
2353 * contrib/cc-with-tweaks.sh: New file.
2354
2ec9a5e0
TT
23552012-07-18 Tom Tromey <tromey@redhat.com>
2356
2357 * dwarf2read.c (struct dwz_file) <gdb_index>: New field.
2358 (locate_dwz_sections): Recognize .gdb_index.
2359 (create_cus_from_index_list): New function.
2360 (create_cus_from_index): Use it. Handle .dwz data.
2361 (read_index_from_section): New function, extracted from
2362 dwarf2_read_index.
2363 (dwarf2_read_index): Use it. Read .gdb_index from dwz file,
2364 if needed.
2365
36586728
TT
23662012-07-18 Tom Tromey <tromey@redhat.com>
2367
2368 * dwarf2read.c (struct dwarf2_per_objfile) <dwz_file>: New field.
2369 (struct dwarf2_per_cu_data) <length>: No longer bitfield.
2370 <is_dwz>: New field.
2371 (struct dwz_file): New.
2372 (struct partial_die_info) <is_dwz, spec_is_dwz>: New fields.
2373 (locate_dwz_sections, dwarf2_get_dwz_file)
2374 (get_abbrev_section_for_cu): New functions.
2375 (error_check_comp_unit_head, read_and_check_comp_unit_head)
2376 (read_and_check_type_unit_head): Add abbrev_section argument.
2377 (create_debug_types_hash_table): Update.
2378 (init_cutu_and_read_dies): Use proper abbrev section.
2379 (init_cutu_and_read_dies_no_follow): Likewise.
2380 (set_partial_user): Do nothing if PST==NULL.
2381 (read_comp_units_from_section): New function.
2382 (create_all_comp_units): Use it.
2383 (scan_partial_symbols, partial_die_parent_scope): Update.
2384 (skip_one_die): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
2385 (process_imported_unit_die, read_partial_die): Handle .dwz files.
2386 (find_partial_die): Add offset_in_dwz argument. Update.
2387 (guess_partial_die_structure_name, fixup_partial_die): Update.
2388 (read_attribute_value): Handle DW_FORM_GNU_ref_alt,
2389 DW_FORM_GNU_strp_alt.
2390 (read_indirect_string_from_dwz): New function.
2391 (dwarf2_const_value_attr): Handle DW_FORM_GNU_strp_alt.
2392 (dump_die_shallow): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
2393 (is_ref_attr): Handle DW_FORM_GNU_ref_alt.
2394 (follow_die_offset): Add offset_in_dwz argument.
2395 (follow_die_ref, dwarf2_fetch_die_location_block): Update.
2396 (skip_form_bytes): Handle DW_FORM_GNU_strp_alt.
2397 (dwarf_decode_macro_bytes): Add section_is_dwz argument.
2398 Handle new macro forms.
2399 (dwarf_decode_macros): Update.
2400 (dwarf2_find_containing_comp_unit): Add offset_in_dwz argument.
2401 (dwarf2_per_objfile_free): Unref dwz_bfd, if it exists
2402 (lookup_die_type): Handle DW_FORM_GNU_ref_alt.
2403 (create_debug_types_hash_table): Use correct abbrev section.
2404 (get_debug_line_section): New function.
2405 (dwarf_decode_line_header, dwarf_decode_lines_1): Use it.
2406 (process_full_comp_unit): Pass 'required' argument to
2407 end_symtab_get_static_block.
2408 * buildsym.h (end_symtab_get_static_block): Update.
2409 * buildsym.c (end_symtab_get_static_block): Add 'required'
2410 argument.
2411 (end_symtab, end_expandable_symtab): Update.
2412
4bf44c1c
TT
24132012-07-18 Tom Tromey <tromey@redhat.com>
2414
2415 * dwarf2read.c: Don't include zlib.h or sys/mman.h.
2416 (pagesize): Remove.
2417 (struct dwarf2_section_info) <map_addr, map_len>: Remove.
2418 (zlib_decompress_section): Remove.
2419 (dwarf2_read_section): Use gdb_bfd_map_section.
2420 (munmap_section_buffer): Remove.
2421 (free_dwo_file, dwarf2_per_objfile_free): Don't use
2422 munmap_section_buffer.
2423 * gdb_bfd.c: Include zlib.h, sys/mman.h.
2424 (struct gdb_bfd_section_data): New.
2425 (free_one_bfd_section): New function.
2426 (gdb_bfd_close_or_warn): Use free_one_bfd_section.
2427 (get_section_descriptor, zlib_decompress_section)
2428 (gdb_bfd_map_section): New functions.
2429 * gdb_bfd.h (gdb_bfd_map_section): Declare.
2430
bb397797
TT
24312012-07-18 Tom Tromey <tromey@redhat.com>
2432
2433 * dwarf2read.c (try_open_dwo_file): use gdb_bfd_open.
2434
6ec53d05
TT
24352012-07-18 Tom Tromey <tromey@redhat.com>
2436
2437 * gdb_bfd.c (struct gdb_bfd_data): New.
2438 (gdb_bfd_cache): New global.
2439 (struct gdb_bfd_cache_search): New.
2440 (hash_bfd, eq_bfd, gdb_bfd_open): New functions.
2441 (gdb_bfd_ref, gdb_bfd_unref): Use gdb_bfd_data.
2442 * gdb_bfd.h (gdb_bfd_open): Declare.
2443
f9a062ff
TT
24442012-07-18 Tom Tromey <tromey@redhat.com>
2445
2446 * utils.c (make_cleanup_bfd_unref): Rename from
2447 make_cleanup_bfd_close.
2448 * defs.h (make_cleanup_bfd_unref): Rename from
2449 make_cleanup_bfd_close.
2450 * cli/cli-dump.c (bfd_openr_with_cleanup): Update.
2451 (bfd_openw_with_cleanup): Update.
2452 * corelow.c (core_open): Update.
2453 * dsrec.c (load_srec): Update.
2454 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
2455 * remote-m32r-sdi.c (m32r_load): Update.
2456 * remote-mips.c (mips_load_srec): Update.
2457 (pmon_load_fast): Update.
2458 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2459 Update.
2460 (darwin_bfd_open): Update.
2461 * solib.c (solib_bfd_fopen): Update.
2462 * symfile-mem.c (symbol_file_add_from_memory): Update.
2463 * symfile.c (symbol_file_add_with_addrs_or_offsets): Update.
2464 (symfile_bfd_open): Update.
2465 (generic_load): Update.
2466
d6ad71ba
TT
24672012-07-18 Tom Tromey <tromey@redhat.com>
2468
2469 * remote-mips.c (mips_load_srec): Use make_cleanup_bfd_close.
2470 (pmon_load_fast): Likewise.
2471 * m32r-rom.c (m32r_load): Use make_cleanup_bfd_close.
2472 (m32r_upload_command): Likewise.
2473 * dsrec.c (load_srec): Use make_cleanup_bfd_close.
2474 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2475 Use make_cleanup_bfd_close.
2476
a4453b7e
TT
24772012-07-18 Tom Tromey <tromey@redhat.com>
2478
2479 * symfile.c (symfile_bfd_open): Don't copy name. Call
2480 gdb_bfd_stash_filename.
2481 (load_command): Open the new BFD before freeing the old.
2482 (bfd_open_maybe_remote): Call gdb_bfd_stash_filename.
2483 * symfile-mem.c (symbol_file_add_from_memory): Don't copy name.
2484 Call gdb_bfd_stash_filename.
2485 * spu-linux-nat.c (spu_bfd_open): Don't copy name.
2486 * solib-spu.c (spu_bfd_fopen): Don't copy name. Call
2487 gdb_bfd_stash_filename.
2488 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2489 Free found_pathname.
2490 * rs6000-nat.c (add_vmap): Don't copy filename. Call
2491 gdb_bfd_stash_filename.
2492 * remote.c (remote_bfd_open): Call gdb_bfd_stash_filename.
2493 * machoread.c (macho_add_oso_symfile): Call
2494 gdb_bfd_stash_filename.
2495 (macho_symfile_read_all_oso): Arrange to free archive_name. Call
2496 gdb_bfd_stash_filename.
2497 (macho_check_dsym): Don't copy filename. Call
2498 gdb_bfd_stash_filename.
2499 * jit.c (bfd_open_from_target_memory): Don't copy the filename.
2500 * gdb_bfd.c (gdb_bfd_stash_filename): New function.
2501 * gdb_bfd.h (gdb_bfd_stash_filename): Declare.
2502 * gcore.c (create_gcore_bfd): Call gdb_bfd_stash_filename.
2503 * exec.c (exec_close): Don't free the BFD's filename.
2504 (exec_file_attach): Don't copy the filename. Call
2505 gdb_bfd_stash_filename.
2506 * corelow.c (core_close): Don't free the BFD's filename.
2507 (core_open): Call gdb_bfd_stash_filename.
2508 * corefile.c (reopen_exec_file): Remove #if 0 code.
2509 * solib.c (solib_bfd_fopen): Call gdb_bfd_stash_filename. Free
2510 pathname.
2511 * dwarf2read.c (try_open_dwo_file): Call gdb_bfd_stash_filename.
2512
cbb099e8
TT
25132012-07-18 Tom Tromey <tromey@redhat.com>
2514
2515 * dwarf2read.c (try_open_dwo_file): Use gdb_bfd_ref and
2516 gdb_bfd_unref.
2517 (free_dwo_file): Use gdb_bfd_unref.
2518 * cli/cli-dump.c: Include gdb_bfd.h.
2519 (bfd_openw_with_cleanup): Use gdb_bfd_ref.
2520 (bfd_openr_with_cleanup): Likewise.
2521 * windows-nat.c (windows_make_so): Use gdb_bfd_ref,
2522 gdb_bfd_unref.
2523 * utils.c: Include gdb_bfd.h.
2524 (do_bfd_close_cleanup): Use gdb_bfd_unref.
2525 * symfile.c: Include gdb_bfd.h.
2526 (separate_debug_file_exists): Use gdb_bfd_unref.
2527 (bfd_open_maybe_remote): Use gdb_bfd_ref.
2528 (symfile_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
2529 (generic_load): Use gdb_bfd_ref.
2530 (reread_symbols): Use gdb_bfd_unref.
2531 * symfile-mem.c: Include gdb_bfd.h.
2532 (symbol_file_add_from_memory): Use make_cleanup_bfd_close.
2533 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
2534 * solib.c: Include gdb_bfd.h.
2535 (solib_bfd_fopen): Use gdb_bfd_ref.
2536 (solib_bfd_open): Use gdb_bfd_unref.
2537 (free_so_symbols): Use gdb_bfd_unref.
2538 (reload_shared_libraries_1): Use gdb_bfd_unref.
2539 * solib-spu.c: Include gdb_bfd.h.
2540 (spu_bfd_fopen): Use gdb_bfd_ref, gdb_bfd_unref.
2541 * solib-pa64.c (pa64_solib_create_inferior_hook): Use gdb_bfd_ref,
2542 gdb_bfd_unref.
2543 * solib-frv.c: Include gdb_bfd.h.
2544 (enable_break2): Use gdb_bfd_unref.
2545 * solib-dsbt.c: Include gdb_bfd.h.
2546 (enable_break2): Use gdb_bfd_unref.
2547 * solib-darwin.c: Include gdb_bfd.h.
2548 (darwin_solib_get_all_image_info_addr_at_init): Use gdb_bfd_ref,
2549 gdb_bfd_unref.
2550 (darwin_bfd_open): Use gdb_bfd_unref.
2551 * rs6000-nat.c (add_vmap): Use gdb_bfd_ref, gdb_bfd_unref.
2552 * remote-mips.c: Include gdb_bfd.h.
2553 (mips_load_srec): Use gdb_bfd_ref.
2554 (pmon_load_fast): Use gdb_bfd_ref.
2555 * remote-m32r-sdi.c: Include gdb_bfd.h.
2556 (m32r_load): Use gdb_bfd_ref.
2557 * record.c: Include gdb_bfd.h.
2558 (record_save_cleanups): Use gdb_bfd_unref.
2559 (cmd_record_save): Use gdb_bfd_unref.
2560 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_ref,
2561 gdb_bfd_unref.
2562 * objfiles.h (gdb_bfd_close_or_warn): Remove.
2563 (gdb_bfd_ref, gdb_bfd_unref): Move to gdb_bfd.h.
2564 * objfiles.c: Include gdb_bfd.h.
2565 (free_objfile): Use gdb_bfd_unref.
2566 (gdb_bfd_close_or_warn, gdb_bfd_ref, gdb_bfd_unref): Move to
2567 gdb_bfd.c.
2568 * machoread.c (macho_add_oso_symfile): Use gdb_bfd_unref.
2569 (macho_symfile_read_all_oso): Use gdb_bfd_ref, gdb_bfd_unref.
2570 (macho_check_dsym): Likewise.
2571 * m32r-rom.c: Include gdb_bfd.h.
2572 (m32r_load): Use gdb_bfd_ref.
2573 (m32r_upload_command): Use gdb_bfd_ref.
2574 * jit.c: Include gdb_bfd.h.
2575 (jit_bfd_try_read_symtab): Use gdb_bfd_ref, gdb_bfd_unref.
2576 * gdb_bfd.h: New file.
2577 * gdb_bfd.c: New file.
2578 * gcore.c: Include gdb_bfd.h.
2579 (create_gcore_bfd): Use gdb_bfd_ref.
2580 (do_bfd_delete_cleanup): Use gdb_bfd_unref.
2581 (gcore_command): Use gdb_bfd_unref.
2582 * exec.c: Include gdb_bfd.h.
2583 (exec_close): Use gdb_bfd_unref.
2584 (exec_close_1): Use gdb_bfd_unref.
2585 (exec_file_attach): Use gdb_bfd_ref.
2586 * elfread.c: Include gdb_bfd.h.
2587 (build_id_verify): Use gdb_bfd_unref.
2588 * dsrec.c: Include gdb_bfd.h.
2589 (load_srec): Use gdb_bfd_ref.
2590 * corelow.c: Include gdb_bfd.h.
2591 (core_close): Use gdb_bfd_unref.
2592 (core_open): Use gdb_bfd_ref.
2593 * bfd-target.c: Include gdb_bfd.h.
2594 (target_bfd_xclose): Use gdb_bfd_unref.
2595 (target_bfd_reopen): Use gdb_bfd_ref.
2596 * Makefile.in (SFILES): Add gdb_bfd.c.
2597 (HFILES_NO_SRCDIR): Add gdb_bfd.h.
2598 (COMMON_OBS): Add gdb_bfd.o.
2599
ed1d1739
KS
26002012-07-18 Keith Seitz <keiths@redhat.com>
2601
2602 * breakpoint.c (find_condition_and_thread): Initialize
2603 TASK and REST.
2604 (create_breakpiont): find_condition_and_thread will now
2605 initialize COND_STRING, THREAD, and REST (and TASK).
2606 (addr_string_to_sals): Likewise.
2607
eab402df
PA
26082012-07-18 Pedro Alves <palves@redhat.com>
2609
2610 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_NO_HISTORY>:
2611 Pull the single step breakpoints out of the target.
2612
2b963b68
SDJ
26132012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
2614
2615 * probe.c (probe_safe_evaluate_at_pc): Rename variable `n_probes'.
2616 * stap-probe.c (compile_probe_arg): Likewise.
2617
6bac7473
SDJ
26182012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
2619
2620 * elfread.c (elf_get_probe_argument_count): Remove `objfile' argument.
2621 (elf_compile_to_ax): Likewise.
2622 * infrun.c (insert_exception_resume_from_probe): Likewise.
2623 (check_exception_resume): Remove `objfile' variable.
2624 * probe.c (find_probe_by_pc): Remove `objfile' argument.
2625 (struct probe_and_objfile, probe_and_objfile_s): Delete.
2626 (collect_probes): Adjust return value to `VEC (probe_p) *'.
2627 (compare_entries): Rename to...
2628 (compare_probes): ...this. Adjust function to work with
2629 `struct probe *'. Rename variables `ea' and `eb' to `pa' and `pb'
2630 respectively.
2631 (gen_ui_out_table_header_info): Adjust `probes' argument to be
2632 `VEC (probe_p) *'.
2633 (print_ui_out_info): Adjust argument to be `struct probe *'.
2634 (info_probes_for_ops): Adjust internal computations to use
2635 `VEC (probe_p) *'.
2636 (probe_safe_evaluate_at_pc): Refactor to not pass `objfile' anymore.
2637 * probe.h (struct probe_ops) <get_probe_argument_count, compile_to_ax,
2638 gen_info_probes_table_values>: Remove `objfile' argument.
2639 (struct probe) <objfile>: New field.
2640 (find_probe_by_pc): Remove `objfile' argument.
2641 * stap-probe.c (stap_parse_probe_arguments): Likewise.
2642 (stap_get_probe_argument_count): Likewise.
2643 (stap_get_arg): Likewise.
2644 (stap_evaluate_probe_argument): Likewise.
2645 (stap_compile_to_ax): Likewise.
2646 (compile_probe_arg): Refactor not to pass `objfile' anymore.
2647 (handle_stap_probe): Fill `objfile' field from `struct probe'.
2648 (stap_gen_info_probes_table_header): Remove `objfile' argument.
2649 * symfile.h (struct sym_probe_fns) <sym_evaluate_probe_argument,
2650 sym_compile_to_ax>: Likewise.
2651
3347eb1a 26522012-07-18 Terry Guo <terry.guo@arm.com>
2653
2654 PR 14329
2655 * defs.h (GDB_MI_MSG_WIDTH): New.
2656 * ser_base (ser_base_read_error_fd): New function.
2657 (do_ser_base_readchar): Poll error file descriptor as well as
2658 standard output.
f782ad9b 2659 (generic_readchar): Refactor error handling.
3347eb1a 2660
80c8d323
JB
26612012-07-18 Joel Brobecker <brobecker@adacore.com>
2662
2663 * NEWS: Create a new section for the next release branch.
2664 Rename the section of the current branch, now that it has
2665 been cut.
2666
b45a0664 26672012-07-18 Joel Brobecker <brobecker@adacore.com>
2668
2669 GDB 7.5 branch created (branch timestamp: 2012-07-18 03:22 UTC)
2670 * version.in: Bump version to 7.5.50.20120718-cvs.
2671
09cf2b22
KS
26722012-07-17 Keith Seitz <keiths@redhat.com>
2673
2674 * linespec.c (linespec_parse_line_offset): Make parameter
2675 const.
2676
8f043999
JK
26772012-07-16 Jan Kratochvil <jan.kratochvil@redhat.com>
2678
2679 PR 11914
2680 * f-valprint.c (info_common_command): New variable frame_id.
2681 Reinitialize FI form FRAME_ID after each print_variable_and_value.
2682 * printcmd.c (print_variable_and_value): Extend function comment.
2683 Add comment for invalidated FRAME.
2684 * stack.c (backtrace_command_1): New variable frame_id. Reinitialize
2685 FI form FRAME_ID after each print_frame_local_vars.
2686 (struct print_variable_and_value_data): Change frame to frame_id.
2687 (do_print_variable_and_value): New variable frame, initialize it from
2688 p->frame_id. Add comment for invalidated FRAME.
2689 (print_frame_local_vars, print_frame_arg_vars): New function comment.
2690 Update CB_DATA.FRAME to CB_DATA.FRAME_ID initialization. Add comment
2691 for invalidated FRAME.
2692
ae5e0686
MK
26932012-07-16 Marc Khouzam <marc.khouzam@ericsson.com>
2694 Pedro Alves <palves@redhat.com>
2695
2696 * linux-nat.c (linux_nat_detach): Don't unregister from the event
2697 loop.
2698
5049c5be
TT
26992012-07-16 Tom Tromey <tromey@redhat.com>
2700
2701 * jv-typeprint.c (c_type_print_varspec_suffix): Don't declare.
2702
2908cac6
DE
27032012-07-15 Doug Evans <dje@google.com>
2704
094b34ac
DE
2705 * dwarf2read.c (stmt_list_hash): New struct.
2706 (type_unit_group): Embed "per_cu" member, remove pointer.
2707 New union member "t", move member "tus" into it, all uses updated.
2708 New member "hash", replaces member "line_offset, all uses updated.
2709 (quick_file_names): Replace member "offset" with "hash", all uses
2710 updated.
2711 (hash_stmt_list_entry, eq_stmt_list_entry): New functions.
2712 (hash_file_name_entry, eq_file_name_entry): Call them.
2713 (hash_type_unit_group, eq_type_unit_group): Ditto.
2714 (dw2_get_cu, dw2_get_primary_cu): Replace assert with a better one.
2715 (dw2_get_file_names_reader): Fix file name table calculation for TUs.
2716 (dw2_get_file_names): Update.
2717 (create_type_unit_group): Replace "per_cu" arg with "cu".
2718 All callers updated. Fix "quick" (.gdb_index) handling.
2719 (get_type_unit_group): Replace "per_cu" arg with "cu".
2720 All callers updated.
2721 (build_type_unit_groups): Don't reset tu_stats.
2722
2908cac6
DE
2723 * symtab.c (filename_seen_cache): Delete members "tab_alloc_size",
2724 "tab_cur_size". Change member "tab" to be a htab_t.
2725 (create_filename_seen_cache): Update.
2726 (clear_filename_seen_cache, delete_filename_seen_cache): Update.
2727 (filename_seen): Update.
2728
a2b6eff5
DE
27292012-07-13 Doug Evans <dje@google.com>
2730
2731 * symtab.c (filename_seen): Update comment.
2732
4359dff1
JK
27332012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2734 Doug Evans <dje@google.com>
2735
2736 * buildsym.c (end_symtab_1): Split it to ...
2737 (end_symtab_get_static_block): ... this ...
2738 (end_symtab_from_static_block): ... and this function.
2739 (end_symtab, end_expandable_symtab): Call them.
2740 * buildsym.h (end_symtab_get_static_block)
2741 (end_symtab_from_static_block): New declarations.
2742 * dwarf2read.c (process_full_comp_unit): New variable static_block.
2743 Set its valid CU ranges.
2744
a24f71ab
JK
27452012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2746
2747 * dwarf2loc.c (disassemble_dwarf_expression): Handle
2748 DW_OP_GNU_parameter_ref.
2749
d76b7dbc
JK
27502012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2751
2752 * dwarf2read.c (read_call_site_scope): Do not gdb_assert for invalid
2753 read-in CALL_SITE_PARAMETER_PARAM_OFFSET.
2754
9fdc877b
DE
27552012-07-13 Doug Evans <dje@google.com>
2756
2757 * symtab.c (output_source_filename): Delete unnecessary forward decl.
2758 (filename_seen_cache): New struct.
2759 (INITIAL_FILENAME_SEEN_CACHE_SIZE): New macro.
2760 (create_filename_seen_cache): New function.
2761 (clear_filename_seen_cache, delete_filename_seen_cache): New functions.
2762 (filename_seen): Delete arg "first". New arg "cache". All callers
2763 updated.
2764 (output_source_filename_data): New struct.
2765 (output_source_filename): Delete arg "first". New arg "data".
2766 All callers updated.
2767 (sources_info): Delete local "first". New locals "data", "cleanups".
2768 Rewrite to use filename_seen_cache.
2769 (add_partial_filename_data): Delete member "first". New member
2770 "filename_seen_cache". All uses updated.
2771 (make_source_files_completion_list): Rewrite to use
2772 filename_seen_cache.
2773
f80c6f3f
DE
27742012-07-12 Doug Evans <dje@google.com>
2775
2776 * psymtab.c (map_symbol_filenames_psymtab): Skip shared psymtabs.
2777
0bfa869d
DE
27782012-07-10 Doug Evans <dje@google.com>
2779
f4dc4d17
DE
2780 PR gdb/13498
2781 * dwarf2read.c (dwarf2_per_objfile): New members n_type_unit_groups,
2782 all_type_unit_groups, type_unit_groups, tu_stats.
2783 (dwarf2_per_cu_data): Move "imported_symtabs" into new union "s".
2784 All uses updated. Add type_unit_group to union "s".
2785 (type_unit_group): New struct.
2786 (IS_TYPE_UNIT_GROUP): New macro.
2787 (abbrev_table): Delete unused member "section".
2788 (dw2_do_instantiate_symtab): Early exit if type_unit_group.
2789 (dw2_get_cu): Assert not used with type_unit_group.
2790 (dw2_get_primary_cu): New function.
2791 (dw2_build_type_unit_groups_reader): New function.
2792 (dw2_build_type_unit_groups): New function.
2793 (dw2_get_file_names): Assert not called on type units.
2794 (dw2_map_symtabs_matching_filename): Call dw2_build_type_unit_groups.
2795 Redo loop to iterate over type unit groups instead of type units.
2796 (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Ditto.
2797 (read_abbrev_offset): New function.
2798 (init_cutu_and_read_dies): New arg "abbrev_table". All callers
2799 updated.
2800 (create_partial_symtab): New function.
2801 (process_psymtab_comp_unit_reader): Assert not used with type units.
2802 Call create_partial_symtab.
2803 (process_psymtab_type_unit): Delete.
2804 (hash_type_unit_group, eq_type_unit_group): New functions.
2805 (allocate_type_unit_groups_table): New function.
2806 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB): New macro.
2807 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB_SIZE): New macro.
2808 (create_type_unit_group, get_type_unit_group): New functions.
2809 (tu_abbrev_offset): New struct.
2810 (sort_tu_by_abbrev_offset): New function.
2811 (add_type_unit_group_to_table): New function.
2812 (build_type_unit_groups): New function.
2813 (build_type_psymtabs_reader): New function.
2814 (build_type_psymtab_dependencies): New function.
2815 (build_type_psymtabs): Rewrite.
2816 (scan_partial_symbols): Flag an error if a DW_TAG_imported_unit
2817 is seen in a type unit.
2818 (process_queue): Move symtab expansion debugging printfs here.
2819 Call process_full_type_unit for type units.
2820 (compute_symtab_includes): Assert not called for type units.
2821 (process_cu_includes): Don't call compute_symtab_includes for
2822 type units.
2823 (process_full_type_unit): New function.
2824 (process_imported_unit_die): Flag an error if called for type units.
2825 (handle_DW_AT_stmt_list): Delete arg "want_line_info". All callers
2826 updated. Assert not called for type units.
2827 (read_file_scope): Call dwarf2_start_symtab.
2828 (setup_type_unit_groups): New function.
2829 (read_type_unit_scope): Rewrite.
2830 (abbrev_table_read_table): Initialize abbrev_table->offset.
2831 (abbrev_table_free_cleanup): New function.
2832 (dwarf2_start_symtab): New function.
2833 (load_full_type_unit): Assert not called for type unit groups.
6d30eef8
DE
2834 * buildsym.c (finish_block_internal): New arg "expandable".
2835 All callers updated.
2836 (start_symtab): Move most contents to ...
2837 (restart_symtab): ... here. New function.
2838 (reset_symtab_globals): New function.
2839 (end_symtab_1): Renamed from end_symtab. New arg "expandable".
2840 Call reset_symtab_globals.
2841 (end_symtab, end_expandable_symtab): New functions.
2842 (set_missing_symtab, augment_type_symtab): New functions.
2843 * buildsym.h (end_expandable_symtab): Declare.
2844 (augment_type_symtab, restart_symtab): Declare.
b4c41fc7
DE
2845 * psympriv.h (struct partial_symtab): New member "anonymous".
2846 * psymtab.c (partial_map_symtabs_matching_filename): Ignore
2847 anonymous psymtabs.
2848 (read_psymtabs_with_filename): Ditto.
2849 (map_symbol_filenames_psymtab, psymtab_to_fullname): Ditto.
2850 (expand_symtabs_matching_via_partial): Ditto.
2851 (dump_psymtab): Update.
0bfa869d
DE
2852 * dictionary.c (dict_add_pending): New function.
2853 * dictionary.h (dict_add_pending): Declare.
2854
45e58e77
DE
28552012-07-09 Doug Evans <dje@google.com>
2856
b74db436
DE
2857 * buildsym.c (start_subfile): Remove unnecessary check for
2858 name == NULL.
2859
fd55216c
DE
2860 * psymtab.c (allocate_psymtab): Use host_address_to_string.
2861
6721b2ec
DE
2862 * dwarf2read.c (load_full_type_unit): Simplify.
2863
b4dd5633
DE
2864 * dwarf2read.c (dwarf2_per_objfile): Change type of all_type_units
2865 to struct signatured_type **. All uses updated.
2866
45e58e77
DE
2867 * dwarf2read.c (dwarf2_attr_no_follow): Delete unused arg "cu".
2868 All callers updated.
2869
e314d629
TT
28702012-07-09 Tom Tromey <tromey@redhat.com>
2871
2872 * c-exp.y (check_parameter_typelist): New function.
2873 (parameter_typelist): Call it.
2874 * eval.c (make_params): Handle '(void)' case.
2875 * gdbtypes.c (lookup_function_type_with_arguments): Handle
2876 '(void)' case.
2877
aa7c7447
JK
28782012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2879
2880 * common/linux-ptrace.c: Include gdb_assert.h.
2881 <__i386__> (linux_ptrace_test_ret_to_nx_instr): New declaration.
2882 <__i386__>: Include sys/reg.h, sys/mman.h, signal.h, sys/wait.h and
2883 stdint.h.
2884 (linux_ptrace_test_ret_to_nx, linux_ptrace_init_warnings): New
2885 functions.
2886 * common/linux-ptrace.h (linux_ptrace_init_warnings): New declarations.
2887 * linux-nat.c (linux_child_post_attach)
2888 (linux_child_post_startup_inferior): Call linux_ptrace_init_warnings.
2889
889003ed
JK
28902012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2891
2892 * linux-thread-db.c (thread_db_find_new_threads_silently): Do not apply
2893 nptl <2.7 bug workaround for core files.
2894
da559b09
JK
28952012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2896
2897 * linux-nat.c (resume_lwp, linux_nat_resume): Remove LP->SIGINFO
2898 clearing.
2899 (save_siginfo): Remove.
2900 (stop_wait_callback, linux_nat_filter_event): Remove the save_siginfo
2901 call.
2902 (resume_stopped_resumed_lwps): Remove LP->SIGINFO clearing.
2903 (linux_nat_get_siginfo): Use PTRACE_GETSIGINFO.
2904 * linux-nat.h (struct lwp_info): Remove field siginfo.
2905
f865ee35
JK
29062012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2907
2908 Code cleanup for the next patch.
2909 * arm-linux-nat.c (arm_linux_stopped_data_address): Change variable
2910 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
2911 call for it.
2912 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
2913 (ia64_linux_stopped_data_address):
2914 * linux-nat.c (linux_nat_get_siginfo): Add parameter siginfo, change
2915 the return value.
2916 * linux-nat.h (linux_nat_get_siginfo): Likewise.
2917 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Change variable
2918 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
2919 call for it.
2920
76b83c51
JK
29212012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2922
2923 PR 14321
2924 * findcmd.c (parse_find_args): New variable pattern_buf_size_need.
2925 Increase buffer sizes to 2x we need, not just 2x of the previous size.
2926
a6fb9c08
TT
29272012-07-06 Tom Tromey <tromey@redhat.com>
2928
2929 * c-exp.y (DOTDOTDOT): New token.
2930 (func_mod, exp): Use parameter_typelist.
2931 (parameter_typelist): New production.
2932 (tokentab3): Add "..." token.
2933 * eval.c (make_params): Handle varargs.
2934 * gdbtypes.c (lookup_function_type_with_arguments): Handle
2935 varargs.
2936
71918a86
TT
29372012-07-06 Tom Tromey <tromey@redhat.com>
2938
2939 PR exp/9608:
2940 * c-exp.y (%union) <tvec>: Change type.
2941 (func_mod): Now uses <tvec> type.
2942 (exp): Update for tvec change.
2943 (direct_abs_decl): Push the typelist.
2944 (func_mod): Return a typelist.
2945 (nonempty_typelist): Update for tvec change.
2946 * gdbtypes.c (lookup_function_type_with_arguments): New function.
2947 * gdbtypes.h (lookup_function_type_with_arguments): Declare.
2948 * parse.c (pop_type_list): New function.
2949 (push_typelist): New function.
2950 (follow_types): Handle tp_function_with_arguments.
2951 * parser-defs.h (type_ptr): New typedef. Define a VEC.
2952 (enum type_pieces) <tp_function_with_arguments>: New constant.
2953 (union type_stack_elt) <typelist_val>: New field.
2954 (push_typelist): Declare.
2955
fcde5961
TT
29562012-07-06 Tom Tromey <tromey@redhat.com>
2957
2958 * c-exp.y (%union) <type_stack>: New field.
2959 (abs_decl, direct_abs_decl): Use <type_stack> type. Update.
2960 (ptr_operator_ts): New production.
2961 (ptype): Update.
2962 * parse.c (type_stack_reserve): New function.
2963 (check_type_stack_depth): Use it.
2964 (pop_type_stack, append_type_stack, push_type_stack)
2965 (get_type_stack, type_stack_cleanup): New functions.
2966 (follow_types): Handle tp_type_stack.
2967 (_initialize_parse): Simplify initialization.
2968 * parser-defs.h (enum type_pieces) <tp_type_stack>: New
2969 constant.
2970 (union type_stack_elt) <stack_val>: New field.
2971 (get_type_stack, append_type_stack, push_type_stack)
2972 (type_stack_cleanup): Declare.
2973
1a7d0ce4
TT
29742012-07-06 Tom Tromey <tromey@redhat.com>
2975
2976 * parser-defs.h (type_stack, type_stack_size, type_stack_depth):
2977 Remove.
2978 (struct type_stack): New.
2979 * parse.c (type_stack, type_stack_size, type_stack_depth):
2980 Remove.
2981 (type_stack): New global.
2982 (parse_exp_in_context, check_type_stack_depth)
2983 (insert_into_type_stack, insert_type, push_type, push_type_int)
2984 (insert_type_address_space, pop_type, pop_type_int)
2985 (_initialize_parse): Update.
2986
16d01384
TT
29872012-07-06 Tom Tromey <tromey@redhat.com>
2988
2989 * c-exp.y (func_mod, direct_abs_decl, abs_decl, ptr_operator):
2990 Remove %type.
2991
9bfc60bf
SP
29922012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
2993
2994 * c-lang.c (c_printstr): Remove ununsed variable WIDTH.
2995
d5161074
SP
29962012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
2997 Jan Kratochvil <jan.kratochvil@redhat.com>
2998
2999 * cp-valprint.c (cp_print_value): Replace potentially unsafe
3000 alloca with xmalloc/xfree.
3001
a74bc576
SP
30022012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
3003
3004 * MAINTAINERS (Write After Approval): Add myself to the list.
3005
667e0a4b
DE
30062012-07-05 Doug Evans <dje@google.com>
3007
3008 * dwarf2read.c (dw2_expand_symtabs_matching): Fix typo.
3009
34b536a8
HZ
30102012-07-05 Hui Zhu <hui_zhu@mentor.com>
3011
3012 * ax-gdb.c (cli/cli-utils.h): New include.
3013 (linespec.h): Ditto.
3014 (agent_eval_command_one): New function.
3015 (agent_command_1): Ditto.
3016 (agent_command): Call function agent_command_1.
3017 (agent_eval_command): Ditto.
3018 (_initialize_ax_gdb): Change help for "maint agent"
3019 and "maint agent-eval".
3020
e6f0bce7
HZ
30212012-07-05 Hui Zhu <hui_zhu@mentor.com>
3022
3023 * breakpoint.c (check_for_argument): Move to file cli/cli-utils.c.
3024 * cli/cli-utils.c (check_for_argument): New function.
3025 * cli/cli-utils.h (check_for_argument): Ditto.
3026
1b3371b1
L
30272012-07-04 H.J. Lu <hongjiu.lu@intel.com>
3028
3029 * NEWS: Mention x32 ABI support.
3030
23e2d720
L
30312012-07-04 H.J. Lu <hongjiu.lu@intel.com>
3032
3033 * amd64-tdep.c (amd64_x32_init_abi): Set sp_regnum_from_eax to
3034 AMD64_RSP_REGNUM and pc_regnum_from_eax to AMD64_RIP_REGNUM.
3035
3036 * i386-tdep.c (i386_gdbarch_init): Initialize sp_regnum_from_eax
3037 and pc_regnum_from_eax to -1. Update SP regnum from
3038 sp_regnum_from_eax and PC regnum from pc_regnum_from_eax if
3039 needed.
3040
3041 * i386-tdep.h (gdbarch_tdep): Add sp_regnum_from_eax and
3042 pc_regnum_from_eax.
3043
836bf454
JK
30442012-07-03 Jan Kratochvil <jan.kratochvil@redhat.com>
3045
3046 Fix 'warning: parameter has incomplete type' with gcc-3.4.6.
3047 * dwarf2expr.h: Include gdbtypes.h.
3048 (enum call_site_parameter_kind, union call_site_parameter_u): Remove
3049 these forward declarations.
3050 (cu_offset, sect_offset): Move these ...
3051 * gdbtypes.h: Remove include dwarf2expr.h.
3052 (cu_offset, sect_offset): ... here.
3053
1e55e04f
L
30542012-07-03 H.J. Lu <hongjiu.lu@intel.com>
3055
3056 * amd64-linux-tdep.c (linux_sigtramp_code): Renamed to ...
3057 (amd64_linux_sigtramp_code): This.
3058 (amd64_x32_linux_sigtramp_code): New.
3059 (LINUX_SIGTRAMP_LEN): Updated.
3060 (amd64_linux_sigtramp_start): Check x32 sigtramp.
3061
7d0e21ad
JK
30622012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3063
3064 * linux-thread-db.c (thread_db_new_objfile): Fix comment typos.
3065
8775fd2d
JK
30662012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3067
3068 * config.in: Regenerate.
3069 * configure: Regenerate.
3070 * configure.ac: Remove check for gnu/libc-version.h.
3071 * linux-thread-db.c <HAVE_GNU_LIBC_VERSION_H>: Remove include of
3072 gnu/libc-version.h.
3073 (enable_thread_event_reporting) <HAVE_GNU_LIBC_VERSION_H>: Remove
3074 variables libc_version, libc_major and libc_minor. Replace sscanf by
3075 inferior_has_bug. Extend the comment.
3076
fcb44371
JK
30772012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3078
3079 * linux-thread-db.c (inferior_has_bug): New function.
3080 (thread_db_find_new_threads_silently): Return boolean as checked by
3081 inferior_has_bug, describe it in the comments.
3082 (try_thread_db_load_1): Move call to thread_db_find_new_threads_silently
3083 earlier. Abort the initialization if it returned non-zero.
7d0e21ad 3084 (thread_db_new_objfile): Exclude debug files.
fcb44371
JK
3085 (thread_db_find_new_threads_2): Preinitialize ERR. Check errors also
3086 if UNTIL_NO_NEW,
3087
09406207
DE
30882012-07-02 Doug Evans <dje@google.com>
3089
0907af0c
DE
3090 * dwarf2read.c (maybe_queue_comp_unit): Move definition next to others
3091 related to queue management.
3092
09406207
DE
3093 * dwarf2read.c (create_debug_types_hash_table): Use "debug dwarf2-read"
3094 instead of "debug dwarf2-die" in debugging printfs.
3095 (create_debug_info_hash_table_reader): Ditto.
3096 (create_debug_info_hash_table): Ditto.
3097 (init_dwo_file): Ditto.
3098 (init_cutu_and_read_dies): Add debugging printf.
3099 (init_cutu_and_read_dies_no_follow): Ditto.
3100 (process_psymtab_comp_unit_reader): Ditto.
3101
d3ce09f5
SS
31022012-07-02 Stan Shebs <stan@codesourcery.com>
3103
3104 Add target-side support for dynamic printf.
3105 * NEWS: Mention the additional style.
3106 * breakpoint.h (struct bp_target_info): New fields tcommands, persist.
3107 (struct bp_location): New field cmd_bytecode.
3108 * breakpoint.c: Include format.h.
3109 (disconnected_dprintf): New global.
3110 (parse_cmd_to_aexpr): New function.
3111 (build_target_command_list): New function.
3112 (insert_bp_location): Call it.
3113 (remove_breakpoints_pid): Skip dprintf breakpoints.
3114 (print_one_breakpoint_location): Ditto.
3115 (dprintf_style_agent): New global.
3116 (dprintf_style_enums): Add dprintf_style_agent.
3117 (update_dprintf_command_list): Add agent case.
3118 (agent_printf_command): New function.
3119 (_initialize_breakpoint): Add new commands.
3120 * common/ax.def (printf): New bytecode.
3121 * ax.h (ax_string): Declare.
3122 * ax-gdb.h (gen_printf): Declare.
3123 * ax-gdb.c: Include cli-utils.h, format.h.
3124 (gen_printf): New function.
3125 (maint_agent_print_command): New function.
3126 (_initialize_ax_gdb): Add maint agent-printf command.
3127 * ax-general.c (ax_string): New function.
3128 (ax_print): Add printf disassembly.
3129 * Makefile.in (SFILES): Add format.c
3130 (COMMON_OBS): Add format.o.
3131 * common/format.h: New file.
3132 * common/format.c: New file.
3133 * printcmd.c: Include format.h.
3134 (ui_printf): Call parse_format_string.
3135 * remote.c (remote_state): New field breakpoint_commands.
3136 (PACKET_BreakpointCommands): New enum.
3137 (remote_breakpoint_commands_feature): New function.
3138 (remote_protocol_features): Add new BreakpointCommands entry.
3139 (remote_can_run_breakpoint_commands): New function.
3140 (remote_add_target_side_commands): New function.
3141 (remote_insert_breakpoint): Call it.
3142 (remote_insert_hw_breakpoint): Ditto.
3143 (_initialize_remote): Add new packet configuration for
3144 target-side breakpoint commands.
3145 * target.h (struct target_ops): New field
3146 to_can_run_breakpoint_commands.
3147 (target_can_run_breakpoint_commands): New macro.
3148 * target.c (update_current_target): Handle
3149 to_can_run_breakpoint_commands.
3150
2d7b58e8
JK
31512012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3152
3153 Execute -ix and -iex only after system and user gdbinit files.
3154 * main.c (captured_main): Move CMDARG_INIT_FILE and CMDARG_INIT_COMMAND
3155 processing down after gdbinit files.
3156
8690e634
JK
31572012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3158
3159 Add fnmatch-gnu module.
3160 * gnulib/Makefile.in (aclocal_m4_deps): Add new files and remove one.
3161 * gnulib/configure.ac (AC_INIT): Use now import/memmem.c.
3162 * gnulib/aclocal.m4: Regenerate.
3163 * gnulib/config.in: Regenerate.
3164 * gnulib/configure: Regenerate.
3165 * gnulib/import/dummy.c: Remove.
3166 * gnulib/import/Makefile.am: Regenerate.
3167 * gnulib/import/Makefile.in: Likewise.
3168 * gnulib/import/m4/gnulib-cache.m4: Likewise.
3169 * gnulib/import/m4/gnulib-comp.m4: Likewise.
3170 * gnulib/import/alloca.c: New file.
3171 * gnulib/import/alloca.in.h: Likewise.
3172 * gnulib/import/config.charset: Likewise.
3173 * gnulib/import/fnmatch.c: Likewise.
3174 * gnulib/import/fnmatch.in.h: Likewise.
3175 * gnulib/import/fnmatch_loop.c: Likewise.
3176 * gnulib/import/localcharset.c: Likewise.
3177 * gnulib/import/localcharset.h: Likewise.
3178 * gnulib/import/m4/alloca.m4: Likewise.
3179 * gnulib/import/m4/codeset.m4: Likewise.
3180 * gnulib/import/m4/configmake.m4: Likewise.
3181 * gnulib/import/m4/fcntl-o.m4: Likewise.
3182 * gnulib/import/m4/fnmatch.m4: Likewise.
3183 * gnulib/import/m4/glibc21.m4: Likewise.
3184 * gnulib/import/m4/localcharset.m4: Likewise.
3185 * gnulib/import/m4/locale-fr.m4: Likewise.
3186 * gnulib/import/m4/locale-ja.m4: Likewise.
3187 * gnulib/import/m4/locale-zh.m4: Likewise.
3188 * gnulib/import/m4/mbrtowc.m4: Likewise.
3189 * gnulib/import/m4/mbsinit.m4: Likewise.
3190 * gnulib/import/m4/mbsrtowcs.m4: Likewise.
3191 * gnulib/import/m4/mbstate_t.m4: Likewise.
3192 * gnulib/import/m4/stdbool.m4: Likewise.
3193 * gnulib/import/m4/wchar_h.m4: Likewise.
3194 * gnulib/import/m4/wctype_h.m4: Likewise.
3195 * gnulib/import/m4/wint_t.m4: Likewise.
3196 * gnulib/import/mbrtowc.c: Likewise.
3197 * gnulib/import/mbsinit.c: Likewise.
3198 * gnulib/import/mbsrtowcs-impl.h: Likewise.
3199 * gnulib/import/mbsrtowcs-state.c: Likewise.
3200 * gnulib/import/mbsrtowcs.c: Likewise.
3201 * gnulib/import/ref-add.sin: Likewise.
3202 * gnulib/import/ref-del.sin: Likewise.
3203 * gnulib/import/stdbool.in.h: Likewise.
3204 * gnulib/import/streq.h: Likewise.
3205 * gnulib/import/strnlen1.c: Likewise.
3206 * gnulib/import/strnlen1.h: Likewise.
3207 * gnulib/import/verify.h: Likewise.
3208 * gnulib/import/wchar.in.h: Likewise.
3209 * gnulib/import/wctype.in.h: Likewise.
3210
202cbf1c
JK
32112012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3212
3213 Support shell wildcards for 'set auto-load safe-path'.
3214 * auto-load.c: Include fnmatch.h.
3215 (filename_is_in_dir): Rename to ...
3216 (filename_is_in_pattern_1, filename_is_in_pattern): ... here and split
3217 it. Update function comment. Rename dir_len to pattern_len. New
3218 variables filename_len, pattern and filename. Add more DEBUG_AUTO_LOAD
3219 messages. Use gdb_filename_fnmatch.
3220 (filename_is_in_auto_load_safe_path_vec): Rename variable dir to
3221 pattern.
3222 (_initialize_auto_load): Extend the "set auto-load safe-path" help text.
3223 * defs.h (gdb_filename_fnmatch): New declaration.
3224 * utils.c: Include fnmatch.h.
3225 (gdb_filename_fnmatch): New function.
3226
fb7b5af4
SDJ
32272012-07-02 Sergio Durigan Junior <sergiodj@redhat.com>
3228
3229 * breakpoint.c (BREAK_ARGS_HELP): Include help message for the new
3230 `-probe' and `-probe-stap' options.
3231
72d0e2c5
YQ
32322012-07-01 Yao Qi <yao@codesourcery.com>
3233
3234 * breakpoint.c: Removed always_inserted_auto, always_inserted_on,
3235 always_inserted_off, and always_inserted_enums.
3236 Change always_inserted_mode's type to 'enum auto_boolean'.
3237 (show_always_inserted_mode, breakpoint_always_inserted_mode): Update
3238 callers.
3239 (_initialize_breakpoint): Call add_setshow_auto_boolean_cmd instead
3240 of add_setshow_enum_cmd.
3241 * infrun.c: Remove can_use_displaced_stepping_auto,
3242 can_use_displaced_stepping_on, can_use_displaced_stepping_off, and
3243 can_use_displaced_stepping_enum.
3244 Change can_use_displaced_stepping's type to 'enum auto_boolean'.
3245 (show_can_use_displaced_stepping, use_displaced_stepping): Update callers.
3246 (_initialize_infrun): Call add_setshow_auto_boolean_cmd instead of
3247 add_setshow_enum_cmd.
3248
42e7ad6c
DE
32492012-06-30 Doug Evans <dje@google.com>
3250
3251 * dwarf2read.c (signatured_type): Make "per_cu" member first.
3252 (init_cutu_and_read_dies): Handle rereading a DWO CU while it's
3253 currently being read. Propagate DW_AT_comp_dir to DWO DIE.
3254
39cf75f7
DE
32552012-06-29 Doug Evans <dje@google.com>
3256
3257 * linespec.c: #include "stack.h".
3258 (decode_line_with_current_source): Moved here from symtab.c and
3259 renamed from decode_line_spec. All callers updated.
3260 (decode_line_with_last_displayed): Moved here from breakpoint.c and
3261 renamed from decode_line_spec_1. All callers updated.
3262 * linespec.h (decode_line_with_current_source): Move declaration here
3263 from symtab.h and renamed from decode_line_spec.
3264 (decode_line_with_last_displayed): Move declaration here from symtab.h
3265 and renamed from decode_line_spec_1.
3266 * macrocmd.c: #include "linespec.h".
3267 * symtab.c: Remove #include "linespec.h".
3268
433df2d4
DE
32692012-06-28 Doug Evans <dje@google.com>
3270
1ce1cefd
DE
3271 * dwarf2read.c (get_cu_length): New function.
3272 (offset_in_cu_p, error_check_comp_unit_head): Call it.
3273 (create_debug_types_hash_table): Ditto.
3274 (init_cutu_and_read_dies): Ditto.
3275 (init_cutu_and_read_dies_no_follow): Ditto.
3276
3b80fe9b
DE
3277 * dwarf2read.c (dwarf2_find_base_address): Move definition.
3278
433df2d4
DE
3279 * dwarf2read.c (ABBREV_HASH_SIZE): Remove enclosing #ifndef/#endif.
3280 (struct abbrev_table): Define.
3281 (dwarf2_cu): Replace members dwarf2_abbrevs, abbrev_obstack with
3282 abbrev_table.
3283 (init_cutu_and_read_dies): Update.
3284 (abbrev_table_alloc_abbrev): New function. Replaces
3285 dwarf_alloc_abbrev. All callers updated.
3286 (abbrev_table_add_abbrev): New function.
3287 (abbrev_table_lookup_abbrev): New function. Replaces
3288 dwarf2_lookup_abbrev. All callers updated.
3289 (abbrev_table_read_table): New function. Contents moved here from
3290 dwarf2_read_abbrevs.
3291 (dwarf2_read_abbrevs): Call it.
3292 (abbrev_table_free): New function.
3293 (dwarf2_free_abbrev_table): Call it.
3294
71caed83
SS
32952012-06-28 Stan Shebs <stan@codesourcery.com>
3296
3297 * osdata.c (info_osdata_command): Filter out "Title" columns
3298 from non-MI uses.
3299 * common/linux-osdata.c (struct osdata_type): Add title field.
3300 (osdata_table): Add titles to each entry.
3301 (linux_command_xfer_osdata): Add a column for title data.
3302
37ce89eb
SS
33032012-06-28 Stan Shebs <stan@codesourcery.com>
3304
3305 Make logging work for MI.
3306 * NEWS: Mention it.
3307 * interps.h (interp_set_logging_ftype): New typedef.
3308 (struct interp_procs): New field set_logging_proc.
3309 (current_interp_set_logging): Declare.
3310 * interps.c (current_interp_set_logging): New function.
3311 * cli/cli-logging.c: Include interps.h.
3312 (set_logging_redirect): Call current_interp_set_logging.
3313 (pop_output_files): Ditto.
3314 (handle_redirections): Ditto, plus skip ui-out redirect if MI.
3315 * mi/mi-console.h (mi_console_set_raw): Declare.
3316 * mi/mi-console.c (mi_console_set_raw): New function.
3317 * mi/mi-interp.c (saved_raw_stdout): New global.
3318 (mi_set_logging): New function.
3319 (_initialize_mi_interp): Add it to interp procs.
3320
659c9f3a
DE
33212012-06-28 Doug Evans <dje@google.com>
3322
a743abeb
DE
3323 * symtab.c (lookup_symbol_aux_objfile): Use
3324 ALL_OBJFILE_PRIMARY_SYMTABS.
3325
659c9f3a
DE
3326 * gdbtypes.c (lookup_typename): Rename local variable "tmp" to "type".
3327
da2d6d3d
JK
33282012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3329
3330 * common/buffer.c: Include inttypes.h and stdint.h.
3331 (buffer_xml_printf): Use PRId64, PRIu64, PRIx64 and PRIo64.
3332
e5ef252a
PA
33332012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3334 Pedro Alves <palves@redhat.com>
3335
3336 * gdbthread.h (ALL_THREADS): New macro.
3337 (thread_list): Declare.
3338 * infrun.c (handle_inferior_event) <spurious signal>: Don't keep
3339 going, but instead fall through to the stepping handling.
3340 * linux-nat.c (resume_lwp): New parameter 'signo'. Resume with
3341 the passed in signal. Adjust debug output.
3342 (resume_callback): Rename to ...
3343 (linux_nat_resume_callback): ... this. Pass the thread's last
3344 stop signal, if in "pass" state.
3345 (linux_nat_resume): Adjust to rename.
3346 (stop_wait_callback): New assertion. Don't respawn signals;
3347 instead let the LWP remain with SIGNALLED set.
3348 (linux_nat_wait_1): Remove flushing of pending SIGSTOPs.
3349 * remote.c (append_pending_thread_resumptions): New.
3350 (remote_vcont_resume): Call it.
3351 * target.h (target_resume): Extend comment.
3352
1d7975eb
IS
33532012-06-28 Iain Sandoe <iain@codesourcery.com>
3354
3355 * auxv.c (fprint_target_auxv): Handle extended cache data tags.
3356
2e3cf129
DE
33572012-06-27 Doug Evans <dje@google.com>
3358
3359 * dwarf2read.c (dwarf2_cu): Add ranges_base.
3360 Delete have_addr_base, unused. All uses updated.
3361 (init_cutu_and_read_dies): Process DW_AT_GNU_ranges_base.
3362 (dwarf2_get_pc_bounds): Add ranges_base.
3363 (dwarf2_record_block_ranges): Ditto.
3364
1bb9788d
TT
33652012-06-27 Tom Tromey <tromey@redhat.com>
3366
3367 PR macros/7961:
3368 * varobj.c (varobj_create): Update.
3369 (varobj_set_value): Update.
3370 * tracepoint.c (validate_actionline): Update.
3371 (encode_actions_1): Update.
3372 * parse.c (parse_exp_1): Add 'pc' argument.
3373 (parse_exp_in_context): Add 'pc' argument. Change how
3374 expression_context_pc is set.
3375 (parse_expression): Update.
3376 (parse_field_expression): Update.
3377 * expression.h (parse_exp_1): Update.
3378 * eval.c (parse_to_comma_and_eval): Update.
3379 * breakpoint.c (set_breakpoint_condition): Update.
3380 (update_watchpoint): Update.
3381 (init_breakpoint_sal): Update
3382 (find_condition_and_thread): Update.
3383 (watch_command_1): Update.
3384 (update_breakpoint_locations): Update.
3385 * ada-lang.c (ada_read_renaming_var_value): Update.
3386 (create_excep_cond_exprs): Update.
3387
0bc3a05c
DE
33882012-06-27 Doug Evans <dje@google.com>
3389
3390 * dwarf2read.c (per_cu_header_read_in): Simplify, and handle
3391 type units.
3392
4bdcc0c1
DE
33932012-06-26 Doug Evans <dje@google.com>
3394
3395 * dwarf2read.c (read_and_check_comp_unit_head): Delete unnecessary
3396 prototype.
3397 (error_check_comp_unit_head): New arg abbrev_section. All callers
3398 updated.
3399 (read_and_check_comp_unit_head): Ditto.
3400 (read_and_check_type_unit_head): Ditto.
3401
ee0bf529
SCR
34022012-06-26 Siva Chandra Reddy <sivachandra@google.com>
3403
3404 New attribute 'last' for gdb.Symtab_and_line.
3405 * NEWS (Python Scripting): Add entry about the new attribute.
3406 * python/py-symtab.c (salpy_get_last): New function which
3407 implements the get method for the 'last' attribute of
3408 gdb.Symtab_and_line.
3409 (sal_object_getset): Add entry for the 'last' attribute.
3410
1c658ad5
DE
34112012-06-26 Doug Evans <dje@google.com>
3412
09262596
DE
3413 * dwarf2read.c (dwo_section_names): Add macinfo_dwo, macro_dwo.
3414 (dwo_sections): Add macinfo, macro.
3415 (dwarf2_locate_dwo_sections): Watch for macro sections.
3416 (dwarf_decode_macros): Remove args lh, abfd, section, section_name.
3417 All callers updated. Handle DWO files.
3418
45cfd468
DE
3419 * NEWS: Mention new options "set debug dwarf2-read" and
3420 "set debug symtab-create".
3421 * dwarf2read.c (dwarf2_read_debug): New static global.
3422 (dwarf2_build_psymtabs_hard): Add debugging printfs.
3423 (process_queue): Ditto.
3424 (process_full_comp_unit): Ditto.
3425 (_initialize_dwarf2_read): Add new option "set debug dwarf2-read".
3426 * elfread.c (elf_symfile_read): Add debugging printf.
3427 * minsyms.c (install_minimal_symbols): Ditto.
3428 * psymtab.c (allocate_psymtab): Ditto.
3429 * symfile.c (allocate_symtab): Ditto.
3430 * symtab.c (symtab_create_debug): New global.
3431 (_initialize_symtab): Add new option "set debug symtab-create".
3432 * symtab.h (symtab_create_debug): Declare.
3433
1c658ad5
DE
3434 * dwarf2read.c (lookup_dwo_comp_unit): Enhance comment.
3435 (lookup_dwo_type_unit): Ditto.
3436
6fea9e18
L
34372012-06-26 Roland McGrath <roland@hack.frob.com>
3438 H.J. Lu <hongjiu.lu@intel.com>
3439
3440 * amd64-linux-nat.c: Include <sys/user.h>.
3441 (ps_get_thread_area): Use PTRACE_PEEKUSER to get fs_base/gs_base
3442 if HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE or
3443 HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE is defined.
3444
3445 * configure.ac: Check if the fs_base and gs_base members of
3446 `struct user_regs_struct' exist.
3447 * config.in: Regenerated.
3448 * configure: Likewise.
3449
adb4fe3b
ME
34502012-06-25 Michael Eager <eager@eagercon.com>
3451
3452 PR python/14291
f782ad9b 3453 * python/python.c (gdbpy_write): Check for interrupted output.
adb4fe3b 3454
fc51cce1
MGD
34552012-06-25 Greta Yorsh <greta.yorsh@arm.com>
3456
3457 * arm-tdep.c (arm_in_function_epilogue_p): Recognize POP with a single
3458 register as a stack alignment in ARM mode.
3459
40a73391
JK
34602012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3461
3462 Update gnulib to GIT commit a39f53ccb70a613e647e1019fb4c63645220267e.
3463 * gnulib/config.in: Regenerate.
3464 * gnulib/configure: Likewise.
3465 * gnulib/import/m4/extensions.m4: Update it.
3466 * gnulib/import/m4/gnulib-common.m4: Likewise.
3467 * gnulib/import/m4/memmem.m4: Likewise.
3468 * gnulib/import/m4/mmap-anon.m4: Likewise.
3469 * gnulib/import/m4/multiarch.m4: Likewise.
3470 * gnulib/import/stdint.in.h: Likewise.
3471
972daa01
YQ
34722012-06-24 Yao Qi <yao@codesourcery.com>
3473
3474 * corefile.c (write_memory_with_notification): New.
3475 * gdbcore.h: Declare write_memory_with_notification.
3476 * ada-lang.c (ada_value_assign): Replace 'write_memory' and
3477 'observer_notify_memory_changed' with 'write_memory_with_notification'.
3478 * valops.c (value_assign): Likewise.
3479 * python/py-inferior.c (infpy_write_memory): Call
3480 'write_memory_with_notification'.
3481
8d6e0714
JK
34822012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3483
3484 * cc-with-index.sh: Use also -ex "set auto-load no".
3485
156942c7
DE
34862012-06-23 Doug Evans <dje@google.com>
3487
3488 PR 14125
3489 * NEWS: Document additions to .gdb_index.
3490 * dwarf2read.c: #include "gdb/gdb-index.h".
3491 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): New macro.
3492 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): New macro.
3493 (DW2_GDB_INDEX_CU_SET_VALUE): New macro.
3494 (dwarf2_read_index): Recognize version 7.
3495 (dw2_do_expand_symtabs_matching): New args want_specific_block,
3496 block_kind, domain): All callers updated.
3497 (dw2_find_symbol_file): Handle new index CU values.
3498 (dw2_expand_symtabs_matching): Match symbol kind if requested.
3499 (add_index_entry): New args is_static, kind. All callers updated.
3500 (offset_type_compare, uniquify_cu_indices): New functions
3501 (symbol_kind): New function.
3502 (write_psymtabs_to_index): Remove duplicate CU values.
3503 (write_psymtabs_to_index): Write .gdb_index version 7.
3504
352b3eda
JB
35052012-06-22 Joel Brobecker <brobecker@adacore.com>
3506
3507 * configure.ac (build_warnings): Add -Wdeclaration-after-statement.
3508 * configure: Regenerate.
3509
2678e2af
YQ
35102012-06-20 Yao Qi <yao@codesourcery.com>
3511
3512 * python/py-inferior.c: Update comments of infpy_read_memory
3513 and infpy_write_memory.
3514
95c391b6
TT
35152012-06-19 Tom Tromey <tromey@redhat.com>
3516
3517 PR exp/9514:
3518 * parser-defs.h (insert_type, insert_type_address_space): Declare.
3519 (push_type_address_space): Remove.
3520 * parse.c (insert_into_type_stack): New function.
3521 (insert_type): Likewise.
3522 (insert_type_address_space): Rename from push_type_address_space.
3523 Insert tp_space_identifier.
3524 * c-exp.y (ptr_operator): New production.
3525 (abs_decl): Use ptr_operator.
3526 (space_identifier): Call insert_type_address_space.
3527 (ptype): Don't use const_or_volatile_or_space_identifier.
3528 (const_or_volatile_noopt): Call insert_type.
3529 (conversion_type_id, conversion_declarator): New productions.
3530 (operator): Use conversion_type_id.
3531
6ac9ef80
DE
35322012-06-18 Doug Evans <dje@google.com>
3533
422d65e7
DE
3534 * symtab.h (minimal_symbol): New member created_by_gdb.
3535 * elfread.c (elf_symtab_read): Set created_by_gdb for @plt minsym
3536 created by gdb.
3537 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): New function.
3538 (search_symbols): Call it instead of lookup_symbol.
3539 Skip symbols created by gdb. Only scan minsyms if nfiles == 0.
3540
49f6c839
DE
3541 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_const_index.
3542 Adjust address for DW_OP_GNU_addr_index.
3543 * dwarf2expr.h (dwarf_expr_context): Update comment.
3544 * dwarf2loc.c (locexpr_describe_location_piece): New arg per_cu,
3545 all callers updated. Handle TLS vars described with
3546 DW_OP_GNU_const_index.
3547 (disassemble_dwarf_expression): Handle DW_OP_GNU_addr_index
3548 and DW_OP_GNU_const_index.
3549 * dwarf2read.c (decode_locdesc): Handle DW_OP_GNU_addr_index.
3550
6ac9ef80
DE
3551 * block.c (find_block_in_blockvector): Make explicit the fact that we
3552 ignore GLOBAL_BLOCK.
3553
4cd18215
TT
35542012-06-18 Tom Tromey <tromey@redhat.com>
3555
3556 * c-exp.y (operator): Remove trailing space after "delete" and
3557 "delete[]".
3558
a9b8d892
JK
35592012-06-18 Mark Kettenis <kettenis@gnu.org>
3560 Jan Kratochvil <jan.kratochvil@redhat.com>
3561
3562 Switch i386 and derived targets to ON_STACK.
3563 * amd64-dicos-tdep.c (amd64_dicos_push_dummy_code): Remove.
3564 (amd64_dicos_init_abi): Remove its installment.
3565 * dicos-tdep.c (dicos_init_abi): Remove the
3566 set_gdbarch_call_dummy_location call. Update the comment here.
3567 * i386-dicos-tdep.c (i386_dicos_push_dummy_code): Remove.
3568 (i386_dicos_init_abi): Remove its installment.
3569 * i386-tdep.c (i386_push_dummy_code): New function.
3570 (i386_gdbarch_init): Call set_gdbarch_call_dummy_location, install
3571 i386_push_dummy_code.
3572
e2e4d78b
JK
35732012-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
3574
3575 Remove stale dummy frames.
3576 * breakpoint.c: Include dummy-frame.h.
3577 (longjmp_breakpoint_ops): New variable.
3578 (update_breakpoints_after_exec, breakpoint_init_inferior): Delete also
3579 bp_longjmp_call_dummy.
3580 (bpstat_what, bptype_string, print_one_breakpoint_location)
3581 (init_bp_location): Support bp_longjmp_call_dummy.
3582 (set_longjmp_breakpoint): Use longjmp_breakpoint_ops. Comment why.
3583 (set_longjmp_breakpoint_for_call_dummy)
3584 (check_longjmp_breakpoint_for_call_dummy, longjmp_bkpt_dtor): New
3585 functions.
3586 (initialize_breakpoint_ops): Initialize longjmp_breakpoint_ops.
3587 * breakpoint.h (enum bptype): New item bp_longjmp_call_dummy. Delete
3588 FIXME comment and extend the other comment for bp_call_dummy.
3589 (set_longjmp_breakpoint_for_call_dummy)
3590 (check_longjmp_breakpoint_for_call_dummy): New declarations.
3591 * dummy-frame.c: Include gdbthread.h.
3592 (pop_dummy_frame_bpt): New function.
3593 (pop_dummy_frame): Call pop_dummy_frame_bpt.
3594 (dummy_frame_discard): New function.
3595 (cleanup_dummy_frames): Update the comment about longjmps.
3596 * dummy-frame.h (dummy_frame_discard): New declaration.
3597 * gdbthread.h (struct thread_info): Extend initiating_frame comment.
3598 * infcall.c (call_function_by_hand): New variable longjmp_b. Call
3599 set_longjmp_breakpoint_for_call_dummy. Chain its breakpoints with BPT.
3600 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>:
3601 Add case 4 comment. Call check_longjmp_breakpoint_for_call_dummy and
3602 keep_going if IS_LONGJMP and there is no other reason to stop.
3603
09d5912c
TT
36042012-06-18 Greta Yorsh <Greta.Yorsh@arm.com>
3605
3606 * remote-sim.c (sim_command_completer): Initialize
3607 variable 'result'.
3608
1788b2d3
JK
36092012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3610
3611 * dwarf2expr.c (execute_stack_op): Support DW_OP_GNU_parameter_ref.
3612 * dwarf2loc.c (call_site_parameter_matches): Support
3613 CALL_SITE_PARAMETER_PARAM_OFFSET.
3614 (needs_dwarf_reg_entry_value): Push stub value.
3615 * dwarf2read.c (read_call_site_scope): New variable origin. Support
3616 CALL_SITE_PARAMETER_PARAM_OFFSET and its DW_AT_abstract_origin.
3617 * gdbtypes.h (enum call_site_parameter_kind): New item
3618 CALL_SITE_PARAMETER_PARAM_OFFSET.
3619 (struct call_site.parameter.u): New field param_offset.
3620
24c5c679
JK
36212012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3622
3623 Code cleanup: Generalize call_site.parameter key.
3624 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_entry_value>: Remove
3625 variable dwarf_reg. New variable kind_u. Update parameters to
3626 push_dwarf_reg_entry_value.
3627 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
3628 * dwarf2expr.h (enum call_site_parameter_kind)
3629 (union call_site_parameter_u): Forward declarations.
3630 (struct dwarf_expr_context_funcs): Update parameters and their
3631 description for push_dwarf_reg_entry_value.
3632 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
3633 * dwarf2loc.c (call_site_parameter_matches): New function.
3634 (dwarf_expr_reg_to_entry_parameter): Update parameters and their
3635 description. Use call_site_parameter_matches.
3636 (dwarf_expr_push_dwarf_reg_entry_value, value_of_dwarf_reg_entry):
3637 Update parameters and their description.
3638 (value_of_dwarf_block_entry): Remove variables dwarf_reg and fb_offset.
3639 New variable kind_u. Adjust the caller for updated parameters.
3640 (needs_dwarf_reg_entry_value): Update parameters.
3641 * dwarf2read.c (read_call_site_scope): New variable loc. Use it
3642 instead of attr. Update for the changed fields of struct
3643 call_site_parameter.
3644 * gdbtypes.h: Include dwarf2expr.h.
3645 (enum call_site_parameter_kind): New.
3646 (struct call_site.parameter): New field kind. Wrap dwarf_reg and
3647 fb_offset into new union u.
3648
ac142d96
L
36492012-06-16 H.J. Lu <hongjiu.lu@intel.com>
3650
3651 * amd64-tdep.c (amd64_x32_analyze_stack_align): New function.
3652 (amd64_analyze_prologue): Call amd64_x32_analyze_stack_align
3653 for x32.
3654
ba224c70
L
36552012-06-16 H.J. Lu <hongjiu.lu@intel.com>
3656
3657 * amd64-linux-nat.c (compat_x32_clock_t): New.
3658 (compat_x32_siginfo_t): Likewise.
3659 (compat_x32_siginfo_from_siginfo): Likewise.
3660 (siginfo_from_compat_x32_siginfo): Likewise.
3661 (amd64_linux_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
3662 and siginfo_from_compat_x32_siginfo for x32.
3663
7ecbc825
HZ
36642012-06-15 Hui Zhu <hui_zhu@mentor.com>
3665
3666 * tracepoint.c (tfile_xfer_partial): Add a lseek.
3667
233dfcf0
L
36682012-06-15 H.J. Lu <hongjiu.lu@intel.com>
3669
3670 * amd64-linux-nat.c (ps_get_thread_area): Check bits_per_word
3671 instead of gdbarch_ptr_bit.
3672 * amd64-nat.c (amd64_native_gregset_reg_offset): Likewise.
3673 (amd64_supply_native_gregset): Likewise.
3674 (amd64_collect_native_gregset): Likewise.
3675 * amd64-tdep.c (amd64_supply_fxsave): Likewise.
3676 (amd64_supply_xsave): Likewise.
3677 (amd64_collect_fxsave): Likewise.
3678 (amd64_collect_xsave): Likewise.
3679
6da38f42
L
36802012-06-15 H.J. Lu <hongjiu.lu@intel.com>
3681
3682 * amd64-linux-nat.c (AMD64_LINUX_X32_DS): New.
3683 (amd64_linux_read_description): Check DS segment register for
3684 x32 process.
3685
663b969e
TT
36862012-06-15 Tom Tromey <tromey@redhat.com>
3687
3688 * dwarf2read.c (dw2_find_symbol_file): Unconditionally use
3689 init_cutu_and_read_dies.
3690
d6f05027
IS
36912012-06-15 Iain Sandoe <iain@codesourcery.com>
3692
3693 * MAINTAINERS (Write After Approval): Add myself to the list.
3694
6598ed07
TT
36952012-06-15 Tom Tromey <tromey@redhat.com>
3696
3697 * valops.c (value_find_oload_method_list): Now static.
3698 * value.h (value_find_oload_method_list): Don't declare.
3699
2b214ea6
TT
37002012-06-15 Tom Tromey <tromey@redhat.com>
3701
3702 * valops.c (find_overload_match): Use value_ind.
3703
a210c238
MR
37042012-06-15 Maciej W. Rozycki <macro@codesourcery.com>
3705
3706 * infrun.c (handle_inferior_event): Correct indentation.
3707
3771a44c
DE
37082012-06-14 Doug Evans <dje@google.com>
3709
3710 * dwarf2loc.c (debug_loc_kind): Add DEBUG_LOC_START_LENGTH.
3711 (DEBUG_LOC_START_END): Renamed from DEBUG_LOC_NORMAL.
3712 All uses updated.
3713 (decode_debug_loc_dwo_addresses): New arg "byte_order". All callers
3714 updated. Handle DEBUG_LOC_START_LENGTH.
3715 (dwarf2_find_location_expression): Handle DEBUG_LOC_START_LENGTH.
3716 (loclist_describe_location): Ditto.
3717
1c5a993e
MR
37182012-06-14 Maciej W. Rozycki <macro@codesourcery.com>
3719
3720 PR backtrace/13866
3721 * infrun.c (handle_inferior_event): Re-fetch frame and gdbarch
3722 after hiding inline functions.
3723
0b155465
JB
37242012-06-13 Joel Brobecker <brobecker@adacore.com>
3725
3726 * inf-ttrace.c (_initialize_hppa_hpux_nat): Rename into
3727 _initialize_inf_ttrace.
3728
45717bac
JB
37292012-06-13 Joel Brobecker <brobecker@adacore.com>
3730
3731 * ia64-hpux-nat.c (_initialize_ia64_hpux_nat): Renames
3732 _initialize_hppa_hpux_nat.
3733
34370865
JB
37342012-06-13 Joel Brobecker <brobecker@adacore.com>
3735
3736 * remote-sim.c (sim_command_completer): Change type of return
3737 value to "VEC (char_ptr) *". Adjust implementation accordingly.
3738
284c5a60
MK
37392012-06-13 Mark Kettenis <kettenis@gnu.org>
3740 Jan Kratochvil <jan.kratochvil@redhat.com>
3741
3742 PR tdep/14222
3743 * i386-tdep.c (i386_push_dummy_call): Unconditionally align the
3744 stack on a 16-byte boundary.
3745
2535757a
TT
37462012-06-13 Kaushik Srenevasan <kaushik@twitter.com>
3747
3748 * jit.c (finalize_symtab): Set function's return type to 'void' by
3749 default.
3750
fff4548b
MK
37512012-06-13 Mark Kettenis <kettenis@gnu.org>
3752 H.J. Lu <hongjiu.lu@intel.com>
3753
5a83521a
MK
3754 * amd64-linux-tdep.c (amd64_linux_init_abi_common): New function.
3755 Move bits common to both the classic LP64 and the new x32 ILP32
3756 ABI here.
3757 (amd64_linux_init_abi): Call amd64_linux_init_abi_common.
3758 (amd64_x32_linux_init_abi): New function.
3759 (_initialize_amd64_linux_tdep): Register osabi for bfd_mach_x64_32
3760 subtype.
3761
fff4548b
MK
3762 * i386-tdep.h (i386_pseudo_register_name): New prototype.
3763 * i386-tdep.c (i386_pseudo_register_name): Make public.
3764 * amd64-tdep.h (amd64_x32_init_abi): New prototype.
3765 * amd64-tdep.c (amd64_dword_names): Add "eip".
3766 (amd64_x32_pseudo_register_type): New function
3767 (amd64_x32_init_abi): New function.
3768
dd80ea3c
JK
37692012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3770
3771 PR build/14003
3772 * inferior.h (struct inferior_suspend_state): Comment out.
3773 (struct inferior): Comment out the field suspend.
3774 * infrun.c (struct infcall_suspend_state): Comment out the field
3775 inferior_suspend.
3776 (save_infcall_suspend_state, restore_infcall_suspend_state): Comment
3777 out its assignment.
3778
50af5481
JK
37792012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3780
3781 PR c++/14177 - Fix parsing TYPENAME:: in parentheses.
3782 * c-exp.y (classify_inner_name): Remove caller assumptions in the
3783 function comment. Return ERROR for unresolved cases. Implement
3784 returning proper NAME.
3785 (yylex): Accept also NAME from classify_inner_name.
3786 * cp-namespace.c (cp_lookup_nested_type): Rename to ...
3787 (cp_lookup_nested_symbol): ... here. Return any found symbol, not just
3788 LOC_TYPEDEF type.
3789 * cp-support.h (cp_lookup_nested_type): Update its declaration.
3790
d55637df
TT
37912012-06-13 Tom Tromey <tromey@redhat.com>
3792
3793 * breakpoint.c (condition_completer): New function.
3794 (_initialize_breakpoint): Use it.
3795 * value.c (complete_internalvar): New function.
3796 * value.h (complete_internalvar): Declare.
3797
49c4e619
TT
37982012-06-13 Tom Tromey <tromey@redhat.com>
3799
3800 * ada-lang.c (ada_make_symbol_completion_list): Return a VEC.
3801 * breakpoint.c (catch_syscall_completer): Return a VEC.
3802 * cli/cli-cmds.c (complete_command): Update.
3803 * cli/cli-decode.c (complete_on_cmdlist): Return a VEC.
3804 (complete_on_enum): Likewise.
3805 * command.h: Include gdb_vecs.h.
3806 (completer_ftype): Change return type.
3807 (complete_on_cmdlist, complete_on_enum): Likewise.
3808 * completer.c (noop_completer, filename_completer)
3809 (location_completer): Return a VEC.
3810 (add_struct_fields): Remove 'nextp' argument. Change 'output'
3811 to a VEC.
3812 (expression_completer, complete_line_internal, complete_line)
3813 (command_completer): Return a VEC.
3814 (gdb_completion_word_break_characters, line_completion_function):
3815 Update.
3816 * completer.h: Include gdb_vecs.h.
3817 (complete_line, noop_completer, filename_completer)
3818 (expression_completer, location_completer, command_completer):
3819 Update.
3820 * f-lang.c (f_word_break_characters): Return a VEC.
3821 * interps.c (interpreter_completer): Return a VEC.
3822 * language.h (struct language_defn)
3823 <la_make_symbol_completion_list>: Return a VEC.
3824 * python/py-cmd.c (cmdpy_completer): Return a VEC.
3825 * symtab.c (free_completion_list): Take a VEC.
3826 (return_val_size, return_val_index): Remove.
3827 (return_val): Now a VEC.
3828 (completion_list_add_name): Update.
3829 (default_make_symbol_completion_list_break_on)
3830 (default_make_symbol_completion_list, make_symbol_completion_list)
3831 (make_symbol_completion_list_fn, make_file_symbol_completion_list):
3832 Return a VEC.
3833 (add_filename_to_list): Update.
3834 (struct add_partial_filename_data) <list_used, list_alloced>: Remove.
3835 <list>: Now a VEC.
3836 (maybe_add_partial_symtab_filename): Update.
3837 (make_source_files_completion_list): Return a VEC.
3838 * symtab.h (default_make_symbol_completion_list_break_on)
3839 (default_make_symbol_completion_list, make_symbol_completion_list)
3840 (make_symbol_completion_list_fn, make_file_symbol_completion_list)
3841 (make_source_files_completion_list): Update.
3842
625e8578
TT
38432012-06-13 Tom Tromey <tromey@redhat.com>
3844
3845 * breakpoint.c (add_catch_command): Use completer_ftype.
3846 * breakpoint.h: Include command.h.
3847 (add_catch_command): Use completer_ftype.
3848 * cli/cli-decode.c (set_cmd_completer): Use completer_ftype.
3849 * cli/cli-decode.h (struct cmd_list_element) <completer>:
3850 Use completer_ftype.
3851 * command.h (completer_ftype): New typedef.
3852 (set_cmd_completer): Use it.
3853 * python/py-cmd.c (struct cmdpy_completer) <completer>: Use
3854 completer_ftype.
3855
5eb3b062
PA
38562012-06-13 Pedro Alves <palves@redhat.com>
3857
3858 Partial revert of previous change.
3859
3860 * serial.c (scb_base): New global.
3861 (serial_for_fd): New.
3862 (serial_open, serial_fdopen_ops): Link new serial in open serials
3863 chain.
3864 (do_serial_close): Unlink serial from the open serials chain.
3865
8b3ee56d
PA
38662012-06-12 Pedro Alves <palves@redhat.com>
3867
3868 * infrun.c (infrun_thread_stop_requested_callback): Don't switch
3869 threads here.
3870 (prepare_for_detach): No longer context switch here in non-stop
3871 mode.
3872 (fetch_inferior_event): Ditto.
3873 (handle_inferior_event) <STOP_QUIETLY || NO_STOP_QUIETLY>: Switch
3874 to the event thread before removing breakpoints. Switch to the
3875 event thread before inserting breakpoints and resuming.
3876 (handle_inferior_event) <TARGET_WAITKIND_SPURIOUS>: Switch to the
3877 event thread before resuming.
3878 (handle_inferior_event) <stepping_past_singlestep_breakpoint>:
3879 Switch to the event thread before removing breakpoints.
3880
5d60742e
EZ
38812012-06-12 Eli Zaretskii <eliz@gnu.org>
3882
3883 * infcmd.c (construct_inferior_arguments) [__MINGW32__]: Quote
3884 special characters correctly for the Windows shells. See
3885 http://sourceware.org/ml/gdb/2012-06/msg00047.html for the bug
3886 report.
3887 [!__MINGW32__]: Remove extra double quote character from special
3888 characters.
3889
a6feecf7
SS
38902012-06-11 Stan Shebs <stan@codesourcery.com>
3891
3892 * ui-out.h: Remove #if 0 declarations.
3893 * ui-out.c: Remove #if 0 functions.
3894
ddefb60f
PA
38952012-06-11 Pedro Alves <palves@redhat.com>
3896
3897 * ser-base.c (run_async_handler_and_reschedule): New.
3898 (fd_event, push_event): Use it.
3899 * serial.c (serial_open, serial_fdopen_ops): Set the initial
3900 reference count to 1.
3901 (do_serial_close): Set the bufp field to NULL. Use serial_unref
3902 instead of xfree.
3903 (serial_is_open, serial_ref, serial_unref): New.
3904 * serial.h (serial_open): Adjust comment.
3905 (serial_is_open): Declare.
3906 (serial_close): Adjust comment.
3907 (serial_ref, serial_unref) Declare.
3908 (struct serial): New field 'refcnt'.
3909
d5ad6aa5
PA
39102012-06-11 Pedro Alves <palves@redhat.com>
3911
3912 Remove #if 0'd "connect" command, and unnecessary associated
3913 refcounting and serial reuse bits.
3914
3915 * serial.h (struct serial): Remove fields 'next' and 'refcnt'.
3916 * serial.c (last_serial_opened): Delete.
3917 (scb_base): Delete.
3918 (serial_open): Adjust.
3919 (serial_for_fd): Delete.
3920 (serial_fdopen_ops, do_serial_close): Adjust.
3921 (serial_fdopen_ops): Adjust.
3922
318aa544
PA
39232012-06-11 Pedro Alves <palves@redhat.com>
3924
3925 * serial.c (do_serial_close): Remove early return when SCB is
3926 null.
3927
07261596
TT
39282012-06-11 Tom Tromey <tromey@redhat.com>
3929
3930 * dwarf2read.c (dw2_get_file_names_reader): Ignore partial units.
3931
cc80f267
JK
39322012-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3933
3934 Fix regression by the "ambiguous linespec" series.
3935 * breakpoint.c (parse_breakpoint_sals): New variable cursal. Use
3936 get_last_displayed_symtab and get_last_displayed_line and depending
3937 on CURSAL.
3938
356d9f9d
TT
39392012-06-11 Tom Tromey <tromey@redhat.com>
3940
3941 * dwarf2read.c (dw2_get_primary_filename_reader): New function.
3942 (dw2_find_symbol_file): Use it.
3943
232b8704
ME
39442012-06-11 Michael Eager <eager@eagercon.com>
3945
3946 * mips-linux-tdep.c (mips_gdb_signal_from_target): New
3947 * mips-linux-tdep.h (mips_signals): New
3948
e81a37f7
TT
39492012-06-11 Tom Tromey <tromey@redhat.com>
3950
3951 * infrun.c (handle_inferior_event)
3952 <BPSTAT_WHAT_SET_LONGJMP_RESUME>: Don't delete the step-resume
3953 breakpoint.
3954 <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>: Remove longjmp logic; use
3955 exception logic in all cases. Update comments.
3956 (insert_longjmp_resume_breakpoint): Set the exception resume
3957 breakpoint.
3958
2e81047f
MR
39592012-06-11 Maciej W. Rozycki <macro@codesourcery.com>
3960
3961 * mips-tdep.c (mips_push_dummy_code): Handle microMIPS code.
3962
4e32eda7
SCR
39632012-06-09 Siva Chandra Reddy <sivachandra@google.com>
3964
3965 * valarith.c (binop_types_user_defined_p): Fix a typo.
3966
18648a37 39672012-06-08 Yao Qi <yao@codesourcery.com>
f782ad9b 3968 Chung-Lin Tang <cltang@codesourcery.com>
18648a37
YQ
3969
3970 * arch-utils.c (default_return_in_first_hidden_param_p): New.
3971 * arch-utils.h: Declare.
3972 * gdbarch.sh: Add return_in_first_hidden_param_p.
3973 * gdbarch.c, gdbarch.h: Regenerated.
3974 * infcall.c (call_function_by_hand): Call
3975 gdbarch_return_in_first_hidden_param_p instead of
3976 language_pass_by_reference.
3977
3978 * m68k-tdep.c (m68k_return_in_first_hidden_param_p): New.
3979 (m68k_gdbarch_init): Install m68k_return_in_first_hidden_param_p.
3980 * sh-tdep.c (sh_return_in_first_hidden_param_p): New.
3981 (sh_gdbarch_init): Install sh_return_in_first_hidden_param_p.
3982 * tic6x-tdep.c (tic6x_push_dummy_call): Remove local variable
3983 `cplus_return_struct_by_reference'.
3984 (tic6x_return_value): Handle language cplusplus.
3985 (tic6x_return_in_first_hidden_param_p): New.
3986 (tic6x_gdbarch_init): Install tic6x_return_in_first_hidden_param_p.
3987
034e5797
DE
39882012-06-07 Doug Evans <dje@google.com>
3989
3990 * dwarf2read.c (dwarf2_cu): Add comment.
3991
6a00aa1e
MR
39922012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
3993
3994 * mips-tdep.c (mips_pseudo_register_type): Remove tdep local
3995 variable.
3996 (mips_eabi_push_dummy_call): Likewise.
3997 (mips_n32n64_push_dummy_call): Likewise.
3998 (mips_o32_push_dummy_call): Likewise.
3999 (mips_o64_push_dummy_call): Likewise.
4000
eaa05d59
MR
40012012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
4002
4003 * mips-tdep.c (mips_convert_register_p): Correct coding style.
4004
de13fcf2
MR
40052012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
4006
4007 * mips-tdep.c (mips_pseudo_register_type): Use
4008 mips_float_register_p.
4009
c3a01a22
PA
40102012-06-06 Pedro Alves <palves@redhat.com>
4011
4012 * infrun.c (handle_inferior_event): Remove calls to
4013 reinit_frame_cache that follow a context_switch call.
4014
d25f45d9
PA
40152012-06-06 Pedro Alves <palves@redhat.com>
4016
4017 * infrun.c (handle_inferior_event) <deferred_step_ptid>: Use
4018 context_switch and remove stale comment.
4019
359f5fe6
PA
40202012-06-06 Pedro Alves <palves@redhat.com>
4021
4022 * infrun.c (struct execution_control_state): Remove
4023 `new_thread_event' field.
4024 (handle_inferior_event): Simplify new threads handling; don't
4025 resume the inferior if we find a new thread.
4026
2d4c29c5
TS
40272012-06-06 Thomas Schwinge <thomas@codesourcery.com>
4028
4029 * NEWS: Document the deprecation of SH's 'regs' command.
4030 * inferior.h (all_registers_info): Add function declaration.
4031 * sh-tdep.c (sh_show_regs): Remove variable.
4032 (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs, sh2a_show_regs)
4033 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
4034 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs)
4035 (sh_show_regs_command): Remove functions.
4036 (sh_gdbarch_init): Don't set sh_show_regs.
4037 (_initialize_sh_tdep): Make the 'regs' command an deprecated alias to
4038 'info all-registers'.
4039 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs)
4040 (sh64_show_regs): Remove functions.
4041 * sh64-tdep.h (sh64_show_regs): Remove function declaration.
4042
f5f1cdb6
JK
40432012-06-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4044
4045 * configure.ac: Move development=true below AC_INIT.
4046 * configure: Regenerate.
4047
bf6309af
SS
40482012-06-05 Stan Shebs <stan@codesourcery.com>
4049
4050 * mi/mi-interp.c (mi_interpreter_init): Set raw_stdout from
4051 gdb_stdout.
4052
45aa4659
JK
40532012-06-05 Siddhesh Poyarekar <siddhesh@redhat.com>
4054
4055 * corefile.c (read_memory, read_stack, write_memory): Accept LEN
4056 argument as ssize_t.
4057 * gdbcore.h (read_memory, read_stack, write_memory): Likewise.
4058 * remote.c (remote_write_bytes_aux, remote_write_bytes): Likewise.
4059 * target.c (target_read_stack, target_write_memory)
4060 (target_write_raw_memory): Likewise.
4061 * target.h (target_read_stack, target_write_memory)
4062 (target_write_raw_memory): Likewise.
4063
1b162304
JK
40642012-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
4065
4066 * symfile-mem.c: Change gdb_static_assert to ssize_t.
4067 (target_read_memory_bfd): Cast gdb_assert LEN to ssize_t.
4068 * target.c (target_read_memory): Change LEN to ssize_t.
4069 * target.h (target_read_memory): Change LEN to ssize_t.
4070
8556afb4
PA
40712012-06-05 Pedro Alves <palves@redhat.com>
4072
4073 PR backtrace/13866
4074
4075 * breakpoint.c (until_break_command): Only fetch the selected
4076 frame after decode_line_1.
4077
fb139f32
PA
40782012-06-05 Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
4079
4080 * solib-svr4.c (enable_break): Don't fallback to setting the solib
4081 event breakpoint at _start, __start or main if a program
4082 interpreter is not found.
4083
a8e1bb34
JB
40842012-06-05 Joel Brobecker <brobecker@adacore.com>
4085
4086 * windows-tdep.h (windows_iterate_over_objfiles_in_search_order):
4087 Add declaration.
4088 * windows-tdep.c: #include "objfiles.h".
4089 (windows_iterate_over_objfiles_in_search_order): New function.
4090 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
4091 iterate_over_objfiles_in_search_order gdbarch method to
4092 windows_iterate_over_objfiles_in_search_order.
4093 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
4094
19630284
JB
40952012-06-05 Joel Brobecker <brobecker@adacore.com>
4096
4097 * gdbarch.sh: Add generation of
4098 "iterate_over_objfiles_in_search_order_cb_ftype" typedef in
4099 gdbarch.h. Add include of "objfiles.h" in gdbarch.c.
4100 (iterate_over_objfiles_in_search_order): New gdbarch method.
4101 * gdbarch.h, gdbarch.c: Regenerate.
4102 * objfiles.h (default_iterate_over_objfiles_in_search_order):
4103 Add declaration.
4104 * objfiles.c (default_iterate_over_objfiles_in_search_order):
4105 New function.
4106 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
4107 out of lookup_symbol_aux_symtabs.
4108 (lookup_symbol_aux_symtabs): Replace extracted-out code by
4109 call to lookup_symbol_aux_objfile.
4110 (struct global_sym_lookup_data): New type.
4111 (lookup_symbol_global_iterator_cb): New function.
4112 (lookup_symbol_global): Search for symbol using
4113 gdbarch_iterate_over_objfiles_in_search_order and
4114 lookup_symbol_global_iterator_cb.
4115 * findvar.c (struct minsym_lookup_data): New type.
4116 (minsym_lookup_iterator_cb): New function.
4117 (default_read_var_value) [case LOC_UNRESOLVED]: Resolve the
4118 symbol's address via gdbarch_iterate_over_objfiles_in_search_order
4119 and minsym_lookup_iterator_cb.
4120
67ff19f7
JB
41212012-06-05 Joel Brobecker <brobecker@adacore.com>
4122
4123 Revert the following patch:
4124 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
4125 try locating the symbol in the symbol's own objfile first, before
4126 extending the search to all objfiles.
4127 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
4128 out of lookup_symbol_aux_symtabs.
4129 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
4130 Replace extracted-out code by call to lookup_symbol_aux_objfile.
4131 Do not search EXCLUDE_OBJFILE.
4132 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
4133 (lookup_symbol_global): Search for matches in the block's objfile
4134 first, before searching all other objfiles.
4135
ccab2054
JB
41362012-06-05 Joel Brobecker <brobecker@adacore.com>
4137
4138 * breakpoint.c (find_condition_and_thread): Stop parsing
4139 as soon as the first invalid keyword is found.
4140
e23d4a9c
JB
41412012-06-05 Joel Brobecker <brobecker@adacore.com>
4142
4143 * copyright.py (EXCLUDE_LIST): Add 'gdb/CONTRIBUTE' to list.
4144
70160166
JB
41452012-06-05 Joel Brobecker <brobecker@adacore.com>
4146
4147 * config/djgpp/djcheck.sh: Add copyright header.
4148
399501a5
JB
41492012-06-05 Joel Brobecker <brobecker@adacore.com>
4150
4151 * copyright.py (update_files, main): Fix path to update-copyright
4152 script.
4153
3770a159
JB
41542012-06-05 Joel Brobecker <brobecker@adacore.com>
4155
4156 * copyright.py (MULTIPLE_COPYRIGHT_HEADERS): New constant.
4157 (main): Add MULTIPLE_COPYRIGHT_HEADERS to the list of files
4158 for which a reminder to update by hand is printed.
4159
4aad0dfc
DE
41602012-06-04 Doug Evans <dje@google.com>
4161
4162 * buildsym.c (make_blockvector): Add comment.
4163
1f8cf220
PA
41642012-06-04 Pedro Alves <palves@redhat.com>
4165
4166 * arch-utils.c (default_gdb_signal_from_target): Delete.
4167 * arch-utils.h (default_gdb_signal_from_target): Delete.
4168 * corelow.c (core_open) <signal mapping>: Extended comment. Check
4169 gdbarch_gdb_signal_from_target_p.
4170 * gdbarch.sh (gdb_signal_from_target): Make it an M method (with
4171 predicate).
4172 * gdbarch.h: Regenerate.
4173 * gdbarch.c: Regenerate.
4174
86b49880
PA
41752012-06-04 Pedro Alves <palves@redhat.com>
4176
4177 * gdbarch.sh (gdb_signal_from_target): Mention that the
4178 implementation of the method must be host independent.
4179 * gdbarch.h: Regenerate.
4180
fe78531d
JK
41812012-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4182
4183 * symfile-mem.c: 3 new gdb_static_assert for target_read_memory_bfd
4184 parameters.
4185 (target_read_memory_bfd): New function.
4186 (symbol_file_add_from_memory): Use it.
4187
d790cf0a
DE
41882012-06-03 Doug Evans <dje@google.com>
4189
78e5175a
DE
4190 * symtab.c (lookup_global_symbol_from_objfile): Only scan blockvector
4191 of primary symtab.
4192 (basic_lookup_transparent_type): Ditto.
4193
d790cf0a
DE
4194 * objfiles.h (ALL_OBJFILE_PRIMARY_SYMTABS): New macro.
4195 (ALL_PRIMARY_SYMTABS): Use it.
4196 (ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
4197 * dwarf2read.c (dw2_find_symbol_file): Ditto.
4198 * linespec.c (iterate_over_all_matching_symtabs): Ditto.
4199 * symtab.c (lookup_symbol_aux_objfile): Ditto.
4200 (basic_lookup_transparent_type): Ditto.
4201
c6e5ee5e
SDJ
42022012-06-02 Sergio Durigan Junior <sergiodj@redhat.com>
4203
4204 * symtab.c (symbol_demangled_name): New variable `dem_name'. Use
4205 it to optimize resolution of demangled name.
4206
a68ffae9
JK
42072012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4208
4209 * configure.ac (development): Define new variable.
4210 Call AC_CHECK_LIB for mcheck if $development.
4211 (ERROR_ON_WARNING): Enable it by default only if $development.
4212 * config.in: Regenerate.
4213 * configure: Regenerate.
4214
5299c1c4
JK
42152012-06-01 Siddhesh Poyarekar <siddhesh@redhat.com>
4216
4217 * target.c (target_read_memory): Make LEN argument as size_t.
4218 * target.h (target_read_memory): Likewise.
4219
42202012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
7c71816c
JK
4221
4222 * tilegx-linux-tdep.c (tilegx_l): Use ULL for 64-bit values.
4223
0c56f59b
EBM
42242012-05-31 Edjunior Machado <emachado@linux.vnet.ibm.com>
4225
4226 * ppc-linux-nat.c (have_ptrace_booke_interface): Disable ptrace
4227 BookE interface for PowerPC server processors if not available
4228 in the Linux Kernel.
4229
71bdabee
KS
42302012-05-31 Keith Seitz <keiths@redhat.com>
4231
4232 * linespec.c (decode_objc): Add cleanup to free
4233 INFO.FILE_SYMTABS.
4234 (find_linespec_symbols): Add cleanup to free CLASSES.
4235 * symfile.c (find_separate_debug_file_by_debuglink): Add
4236 cleanup to free DEBUGLINK.
4237 * ui-out.c (clear_header_list): No need to check if
4238 HEADER_NEXT.COLHDR is NULL.
4239 Free HEADER_NEXT.COL_NAME.
4240
acbd605d
MGD
42412012-05-31 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
4242
4243 * ada-lang.c (standard_lookup): Prevent uninitialized variable
4244 warning.
4245
65662cde
PA
42462012-05-30 Jeff Kenton <jkenton@tilera.com>
4247
4248 * configure.host (gdb_host_cpu): Handle tilegx*.
4249 (gdb_host): Handle tilegx-*-linux*.
4250 * tilegx-linux-nat.c: New file.
4251 * config/tilegx/linux.mh: New file.
4252
ade64f0e
PA
42532012-05-30 Jeff Kenton <jkenton@tilera.com>
4254
4255 * Makefile.in (ALL_TARGET_OBJS): Add tilegx-tdep.o and
4256 tilegx-linux-tdep.o.
4257 (ALLDEPFILES): Add tilegx-linux-nat.c, tilegx-tdep.c and
4258 tilegx-linux-tdep.c.
4259 * configure.tgt: Handle tilegx-*-linux*.
4260 * tilegx-tdep.h: New file.
4261 * tilegx-tdep.c: New file.
4262 * tilegx-linux-tdep.c: New file.
4263 * regformats/reg-tilegx.dat: New file.
4264
bb08bdbd
EBM
42652012-05-30 Edjunior Machado <emachado@linux.vnet.ibm.com>
4266
4267 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): fix
4268 accounting of hw watchpoints on ppc.
4269
ebd86fb5
TJB
42702012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
4271
4272 * source.c (openp): Expand tilde in path entries.
4273
0a0edcd5
DE
42742012-05-29 Doug Evans <dje@google.com>
4275
98cc87bd
DE
4276 * buildsym.c (block_compar): Fix comment.
4277 (end_symtab): Fix and clarify some comments.
4278
0a0edcd5
DE
4279 * stabsread.h (cleanup_undefined_stabs_types): Renamed from
4280 cleanup_undefined_types.
4281 * stabsread.c (cleanup_undefined_stabs_types): Ditto.
4282 All callers updated.
4283
6f0c7050
TT
42842012-05-29 Tom Tromey <tromey@redhat.com>
4285
4286 * symfile.c (symfile_bfd_open): Don't close desc if bfd_fopen
4287 fails.
4288 * solib.c (solib_bfd_fopen): Don't close fd if bfd_fopen fails.
4289 * exec.c (exec_file_attach): Don't close scratch_chan if bfd_fopen
4290 fails.
4291 * dwarf2read.c (try_open_dwo_file): Don't close fd if bfd_fopen
4292 fails.
4293
ec95993c
TG
42942012-05-29 Tristan Gingold <gingold@adacore.com>
4295
4296 * solib-darwin.c (dyld_all_image_addr, dyld_all_image): Move into...
4297 (struct darwin_info): ... New struct.
4298 (solib_darwin_pspace_data): New variable.
4299 (darwin_pspace_data_cleanup): New function.
4300 (get_darwin_info): Likewise.
4301 (darwin_dyld_version_ok, darwin_load_image_infos)
4302 (darwin_solib_get_all_image_info_addr_at_init)
4303 (darwin_solib_read_all_image_info_addr): Add info argument.
4304 Adjust code.
4305 (darwin_current_sos): Use per pspace structure.
4306 (darwin_solib_create_inferior_hook): Likewise.
4307 (darwin_clear_solib): Likewise.
4308 (_initialize_darwin_solib): Initialize solib_darwin_pspace_data.
4309
ae25568b
PA
43102012-05-28 Pedro Alves <palves@redhat.com>
4311
4312 * infrun.c (wait_for_inferior): Move ecss and ecs locals to the
4313 block that uses them. Clear ecss before handling each event.
4314
0c5bf5a9
JK
43152012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4316
4317 * solib-svr4.c (svr4_current_sos): New comment on
4318 svr4_current_sos_via_xfer_libraries fall back.
4319
bfb05775
JK
43202012-05-24 Jan Kratochvil <jan.kratochvil@redhat.com>
4321
4322 * psymtab.c (lookup_symbol_aux_psymtabs): New variable stab_best. Use
4323 it as a fallback for TYPE_IS_OPAQUE.
4324 * symfile.h (struct quick_symbol_functions): Mention TYPE_OPAQUE
4325 symbols for lookup_symbol.
4326
685b1105
JK
43272012-05-24 John Steele Scott <toojays@toojays.net>
4328
4329 PR symtab/13277: Resolving opaque structures in ICC generated binaries.
4330 * dwarf2read.c (struct dwarf2_cu) <producer_is_icc>: New field.
4331 (producer_is_gxx_lt_4_6): Move the checking and caching to...
4332 (check_producer): ... this new function, which also checks for ICC
4333 and caches the result.
4334 (producer_is_icc): New function.
4335 (read_structure_type): Don't set TYPE_STUB_SUPPORTED if the
4336 producer was ICC.
4337
22203bbf
PA
43382012-05-24 Pedro Alves <palves@redhat.com>
4339
4340 PR gdb/7205
4341
4342 * arch-utils.c (default_gdb_signal_to_host): Rename to ...
4343 (default_gdb_signal_to_target): ... this. Add comment.
4344 (default_gdb_signal_from_host): Rename to ...
4345 (default_gdb_signal_from_target): ... this. Add comment.
4346 * arch-utils.h (default_gdb_signal_to_host): Rename to ...
4347 (default_gdb_signal_to_target): ... this.
4348 (default_gdb_signal_from_host): Rename to ...
4349 (default_gdb_signal_from_target): ... this.
4350 * corelow.c (core_open): Adjust to naming change. Replace comment.
4351 * gdbarch.sh (gdb_signal_from_host): Rename to ...
4352 (gdb_signal_from_target): ... this. Adjust to
4353 default_gdb_signal_from_host naming change. Extend comment.
4354 (gdb_signal_to_host): Rename to ...
4355 (gdb_signal_to_target): ... this. Adjust to
4356 default_gdb_signal_to_host naming change.
4357 * gdbarch.h, gdbarch.c: Renegerate.
4358
a493e3e2
PA
43592012-05-24 Pedro Alves <palves@redhat.com>
4360
4361 PR gdb/7205
4362
f782ad9b 4363 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
a493e3e2 4364
2ea28649
PA
43652012-05-24 Pedro Alves <palves@redhat.com>
4366
4367 PR gdb/7205
4368
4369 Replace target_signal with gdb_signal throughout.
4370
b09846a9
PA
43712012-05-24 Pedro Alves <palves@redhat.com>
4372
4373 PR tui/14159
4374
4375 * tui/tui-hooks.c (tui_query_hook): Pre-compute the question
4376 string, instead of reusing the va_list argument.
4377
e77c107e
TT
43782012-05-24 Tom Tromey <tromey@redhat.com>
4379
4380 * cp-support.h (cp_finalize_namespace, cp_initialize_namespace):
4381 Remove.
4382
9fccedf7
DE
43832012-05-23 Doug Evans <dje@google.com>
4384
d50bd42b
DE
4385 * symtab.c (search_symbols): Formatting fixes.
4386 (print_symbol_info): Formatting fixes.
4387
9fccedf7
DE
4388 * dwarf2-frame.c (execute_cfa_program): Update to handle long long ->
4389 int64_t change to leb128 API.
4390 (read_encoded_value, decode_frame_entry_1): Ditto.
4391 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Ditto.
4392 (dwarf_block_to_dwarf_reg, dwarf_block_to_dwarf_reg_deref): Ditto.
4393 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
4394 (execute_stack_op): Ditto.
4395 * dwarf2expr.h (gdb_read_uleb128, gdb_read_sleb128): Ditto.
4396 (safe_read_uleb128, safe_read_sleb128): Ditto.
4397 * dwarf2loc.c (decode_debug_loc_dwo_addresses): Ditto.
4398 (dwarf2_compile_expr_to_ax): Ditto.
4399 (locexpr_describe_location_piece): Ditto.
4400 (disassemble_dwarf_expression): Ditto.
4401 (locexpr_describe_location_1): Ditto.
4402
f3e0e960
SS
44032012-05-23 Stan Shebs <stan@codesourcery.com>
4404 Kwok Cheung Yeung <kcy@codesourcery.com>
4405
4406 * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-info.o.
4407 (SUBDIR_MI_SRCS): Add mi-cmd-info.c.
4408 (mi-cmd-info.o): New rule.
4409 * osdata.h (info_osdata_command): New declaration.
4410 * osdata.c (info_osdata_command): Change to non-static.
4411 * mi/mi-cmds.h (mi_cmd_info_os): New declaration.
4412 * mi/mi-cmds.c (mi_cmds): Add -info-os MI command.
4413 * mi/mi-cmd-info.c: New file.
4414
c51fe631
DE
44152012-05-23 Doug Evans <dje@google.com>
4416
71cddcc1
DE
4417 * symtab.c (search_symbols): Pass NULL for file_matcher to
4418 expand_symtabs_matching if there are no files to match.
4419
c51fe631
DE
4420 * gdbtypes.c (lookup_typename): Simplify.
4421
a79378d4
PA
44222012-05-23 Pedro Alves <palves@redhat.com>
4423
4424 * arch-utils.h (default_target_signal_to_host): Delete.
4425 * arch-utils.c (default_target_signal_to_host): Delete.
4426 * gdbarch.sh (target_signal_to_host): Remove.
4427 * gdbarch.h, gdbarch.c: Regenerate.
4428
f664829e
DE
44292012-05-22 Doug Evans <dje@google.com>
4430
4431 * dwarf2-frame.c (struct dwarf2_cie): Make initial_instructions, end
4432 "const gdb_byte *".
4433 (struct dwarf2_fde): Make instructions, end "const gdb_byte *".
4434 (execute_cfa_program): Update to match API of leb128 functions.
4435 (read_1_byte, read_4_bytes, read_8_bytes): Make buf parameter
4436 "const gdb_byte *".
4437 (read_unsigned_leb128, read_signed_leb128): Delete.
4438 (read_initial_length): Change type of buf argument to
4439 "const gdb_byte *".
4440 (read_encoded_value): Update to match API of leb128 functions.
4441 (decode_frame_entry): Change result to "const gdb_byte *", and
4442 similarly for "start" parameter.
4443 (decode_frame_entry_1): Ditto. Use new leb128 reader functions.
4444 (dwarf2_build_frame_info): Change local frame_ptr to
4445 "const gdb_byte *".
4446 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Replaces
4447 read_uleb128, read_sleb128. All callers updated.
4448 (safe_skip_leb128): New function.
4449 (dwarf_block_to_dwarf_reg): Update to match API of leb128 functions.
4450 Call gdb_read_uleb128, gdb_skip_leb128 instead of read_uleb128.
4451 (dwarf_block_to_dwarf_reg_deref): Update to match API of leb128
4452 functions. Call gdb_read_uleb128, gdb_read_sleb128 instead of
4453 read_uleb128, read_sleb128.
4454 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
4455 (execute_stack_op): Update to match API of leb128 functions.
4456 * dwarf2expr.h: #include "leb128.h".
4457 (read_uleb128, read_sleb128): Delete.
4458 (gdb_read_uleb128, gdb_read_sleb128, gdb_skip_leb128): New functions.
4459 (safe_read_uleb128, safe_read_sleb128, safe_skip_leb128): Declare.
4460 * dwarf2loc.c (debug_loc_kind): New enum.
4461 (decode_debug_loc_addresses): New function.
4462 (decode_debug_loc_dwo_addresses): New function.
4463 (dwarf2_find_location_expression): Rewrite.
4464 (dwarf2_compile_expr_to_ax): Update to match API of leb128 functions.
4465 (locexpr_describe_location_piece): Ditto.
4466 (disassemble_dwarf_expression): Ditto.
4467 (locexpr_describe_location_1): Ditto.
4468 (loclist_describe_location): Rewrite.
4469 * dwarf2loc.h (dwarf2_loclist_baton): New member "from_dwo".
4470 * dwarf2read.c (die_reader_specs): New member "buffer_end".
4471 (dwarf2_section_buffer_overflow_complaint): Renamed from
4472 dwarf2_macros_too_long_complaint. All callers updated.
4473 (skip_leb128): Delete.
4474 (init_cu_die_reader): Initialize reader->buffer_end.
4475 (skip_one_die): Replace call to skip_leb128 with safe_skip_leb128.
4476 (skip_form_bytes): New arg buffer_end. All callers updated.
4477 Replace call to skip_leb128 with gdb_skip_leb128.
4478 (skip_unknown_opcode): New arg mac_end. All callers updated.
4479 (fill_in_loclist_baton): Initialize baton->from_dwo.
4480
837a1b32
MR
44812012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
4482
4483 * mips-linux-nat.c (mips_linux_read_description): Use a more
4484 verbose error message.
4485
d0e64392
MR
44862012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
4487
4488 * NEWS: Add MIPS/Linux DSP support.
4489 * mips-linux-tdep.c: Document post-2.6.12 o32 sigcontext layout.
4490 (SIGCONTEXT_DSPCTL): New macro.
4491 (SIGCONTEXT_HI1, SIGCONTEXT_LO1): Likewise.
4492 (SIGCONTEXT_HI2, SIGCONTEXT_LO2): Likewise.
4493 (SIGCONTEXT_HI3, SIGCONTEXT_LO3): Likewise.
4494 (N64_SIGCONTEXT_HI1, N64_SIGCONTEXT_HI2): Likewise.
4495 (N64_SIGCONTEXT_HI3): Likewise.
4496 (N64_SIGCONTEXT_LO1, N64_SIGCONTEXT_LO2): Likewise.
4497 (N64_SIGCONTEXT_LO3): Likewise.
4498 (N64_SIGCONTEXT_DSPCTL): Likewise.
4499 (N64_SIGCONTEXT_FPCSR): Clarify definition.
4500 (mips_linux_o32_sigframe_init): Handle DSP registers.
4501 (mips_linux_n32n64_sigframe_init): Likewise.
4502
8bea7ed1
PM
45032012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
4504
4505 * common/buffer.c (buffer_grow): ARI fix: Remove unneeded
4506 call to abort.
4507
dab06dbe
PA
45082012-05-22 Pedro Alves <palves@redhat.com>
4509
4510 * target.h (store_waitstatus): Move declaration ...
4511 * inf-child.h (store_waitstatus): ... here.
4512 * target.c: Move inclusion of gdb_wait.h, and ...
4513 (store_waitstatus): ... this ...
4514 * inf-child.c: ... here.
4515 * linux-nat.c: Include inf-child.h.
4516 * rs6000-nat.c: Include inf-child.h.
4517 * spu-linux-nat.c: Include inf-child.h.
4518
43011e52
PM
45192012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
4520
4521 * tracepoint.c (start_tracing): Add missing i18n markup.
4522 (stop_tracing, set_trace_user): Ditto.
4523 (set_trace_notes, set_trace_stop_notes): Ditto.
4524
b1af9e97
TT
45252012-05-21 Tom Tromey <tromey@redhat.com>
4526
4527 PR c++/7173:
4528 * gnu-v3-abi.c (gnuv3_baseclass_offset): Return early for Java
4529 types.
4530 * value.h (value_cast_pointers): Update.
4531 * valops.c (value_cast_pointers): Add 'subclass_check' argument.
4532 (value_cast): Update.
4533 (update_search_result): New function.
4534 (do_search_struct_field): New, from search_struct_field. Check
4535 for ambiguous results.
4536 (search_struct_field): Rewrite.
4537 * infcall.c (value_arg_coerce): Update.
4538 * eval.c (evaluate_subexp_standard) <STRUCTOP_MEMBER>: Use
4539 value_cast_pointers.
4540 * ada-lang.c (ada_convert_actual): Update.
4541
e9e5e6b3
TT
45422012-05-21 Tom Tromey <tromey@redhat.com>
4543
4544 * macroexp.c (macro_stringify): Terminate the string.
4545
1564a261
JK
45462012-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4547
4548 * NEWS (--with-auto-load-dir): Prepend $debugdir to the default path.
4549 Describe it.
4550 * auto-load.c (auto_load_expand_dir_vars): New function.
4551 (auto_load_safe_path_vec_update): Use it, remove the
4552 substitute_path_component call thanks to it.
4553 (auto_load_objfile_script): Remove the debug_file_directory processing.
4554 Use auto_load_expand_dir_vars, remove the substitute_path_component
4555 call thanks to it.
4556 * configure: Regenerate.
4557 * configure.ac (--with-auto-load-dir): Prepend $debugdir to the default
4558 path. Escape $ also for $debugdir.
4559 (--with_auto_load_safe_path): Escape $ also for $debugdir.
4560 * utils.c (substitute_path_component): Accept also DIRNAME_SEPARATOR.
4561
a3ec0bb1
DE
45622012-05-20 Doug Evans <dje@google.com>
4563
4564 * dwarf2read.c (recursively_find_pc_sect_symtab): Initialize "s"
4565 before use. Check for symtab->includes == NULL before scanning it.
4566
d467df4e
MR
45672012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
4568
4569 * mips-tdep.c (mips_reg3_to_reg): Optimize storage.
4570
4cc0665f
MR
45712012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
4572
4573 * NEWS: Add microMIPS support and "set mips compression",
4574 "show mips compression" commands.
4575 * mips-tdep.h (mips_isa): New enum.
4576 (gdbarch_tdep): Add mips_isa.
4577 (mips_pc_is_mips16): Update prototype.
4578 (mips_pc_is_mips, mips_pc_is_micromips): New prototypes.
4579 * mips-tdep.c (mips_compression_mips16): New variable.
4580 (mips_compression_micromips): Likewise.
4581 (mips_compression_strings): Likewise.
4582 (mips_compression_string): Likewise.
4583 (is_mips16_isa, is_micromips_isa): New functions.
4584 (is_mips16_addr): Rename to...
4585 (is_compact_addr): ... this.
4586 (unmake_mips16_addr): Likewise to...
4587 (unmake_compact_addr): ... this.
4588 (make_mips16_addr): Likewise to...
4589 (make_compact_addr): ... this.
4590 (is_mips_addr, is_mips16_addr, is_micromips_addr): New
4591 functions.
4592 (mips_elf_make_msymbol_special): Handle microMIPS code.
4593 (msymbol_is_special): Rename to...
4594 (msymbol_is_mips16): ... this.
4595 (mips_make_symbol_special, mips_pc_is_mips16): Update
4596 accordingly.
4597 (msymbol_is_mips, msymbol_is_micromips): New functions.
4598 (mips16_to_32_reg): Rename to...
4599 (mips_reg3_to_reg): ... this.
4600 (mips_pc_is_mips, mips_pc_is_micromips): New functions.
4601 (mips_pc_isa): Likewise.
4602 (mips_read_pc, mips_unwind_pc, mips_write_pc): Handle microMIPS
4603 code.
4604 (mips_fetch_instruction): Pass return status instead of printing
4605 an error message if requested. Handle microMIPS code. Bail out
4606 on an invalid ISA.
4607 (micromips_op): New macro.
4608 (b0s4_imm, b0s5_imm, b0s5_reg, b0s7_imm, b0s10_imm): Likewise.
4609 (b1s9_imm, b2s3_cc, b4s2_regl, b5s5_op, b5s5_reg): Likewise.
4610 (b6s4_op, b7s3_reg): Likewise.
4611 (b0s6_op, b0s11_op, b0s12_imm, b0s16_imm, b0s26_imm): Likewise.
4612 (b6s10_ext, b11s5_reg, b12s4_op): Likewise.
4613 (mips_insn_size): New function.
4614 (mips32_next_pc): Update mips_fetch_instruction call.
4615 (micromips_relative_offset7): New function.
4616 (micromips_relative_offset10): Likewise.
4617 (micromips_relative_offset16): Likewise.
4618 (micromips_pc_insn_size): Likewise.
4619 (micromips_bc1_pc): Likewise.
4620 (micromips_next_pc): Likewise.
4621 (unpack_mips16): Update mips_fetch_instruction call.
4622 (extended_mips16_next_pc): Update according to change to
4623 mips16_to_32_reg.
4624 (mips_next_pc): Update mips_pc_is_mips16 call. Handle microMIPS
4625 code.
4626 (mips16_scan_prologue): Update mips_fetch_instruction call.
4627 Update according to change to mips16_to_32_reg.
4628 (mips_insn16_frame_sniffer): Update mips_pc_is_mips16 call.
4629 (mips_insn16_frame_base_sniffer): Likewise.
4630 (micromips_decode_imm9): New function.
4631 (micromips_scan_prologue): Likewise.
4632 (mips_micro_frame_cache): Likewise.
4633 (mips_micro_frame_this_id): Likewise.
4634 (mips_micro_frame_prev_register): Likewise.
4635 (mips_micro_frame_sniffer): Likewise.
4636 (mips_micro_frame_unwind): New variable.
4637 (mips_micro_frame_base_address): New function.
4638 (mips_micro_frame_base): New variable.
4639 (mips_micro_frame_base_sniffer): New function.
4640 (mips32_scan_prologue): Update mips_fetch_instruction call.
4641 (mips_insn32_frame_sniffer): Check for the standard MIPS ISA
4642 rather than for MIPS16.
4643 (mips_insn32_frame_base_sniffer): Likewise.
4644 (mips_addr_bits_remove): Handle microMIPS code.
4645 (deal_with_atomic_sequence): Rename to...
4646 (mips_deal_with_atomic_sequence): ... this. Update the type
4647 of the variable used to hold an instruction. Remove the ISA bit
4648 check. Update mips_fetch_instruction call.
4649 (micromips_deal_with_atomic_sequence): New function.
4650 (deal_with_atomic_sequence): Likewise.
4651 (mips_about_to_return): Handle microMIPS code. Update
4652 mips_fetch_instruction call.
4653 (heuristic_proc_start): Check for the standard MIPS ISA rather
4654 than for MIPS16. Update mips_pc_is_mips16 and
4655 mips_fetch_instruction calls. Handle microMIPS code.
4656 (mips_push_dummy_code): Handle microMIPS code.
4657 (mips_eabi_push_dummy_call): Likewise.
4658 (mips_o32_return_value): Update mips_pc_is_mips16 call.
4659 (mips_o64_push_dummy_call): Handle microMIPS code.
4660 (mips_o64_return_value): Update mips_pc_is_mips16 call.
4661 (is_delayed): Remove function.
4662 (mips_single_step_through_delay): Replace the call to is_delayed
4663 with mips32_instruction_has_delay_slot. Correct MIPS16 handling.
4664 Handle microMIPS code.
4665 (mips_skip_prologue): Update mips_pc_is_mips16 call. Handle
4666 microMIPS code.
4667 (mips32_in_function_epilogue_p): Update mips_fetch_instruction
4668 call.
4669 (micromips_in_function_epilogue_p): New function.
4670 (mips16_in_function_epilogue_p): Update mips_fetch_instruction
4671 call.
4672 (mips_in_function_epilogue_p): Update mips_pc_is_mips16 call.
4673 Handle microMIPS.
4674 (gdb_print_insn_mips): Likewise.
4675 (mips_breakpoint_from_pc): Likewise.
4676 (mips_remote_breakpoint_from_pc): New function.
4677 (mips32_instruction_has_delay_slot): Simplify making use of the
4678 updated mips_fetch_instruction interface.
4679 (micromips_instruction_has_delay_slot): New function.
4680 (mips16_instruction_has_delay_slot): Simplify making use of the
4681 updated mips_fetch_instruction interface.
4682 (mips_adjust_breakpoint_address): Check for the standard MIPS
f782ad9b 4683 ISA rather than for MIPS16 ISA. Update for unmake_compact_addr
4cc0665f
MR
4684 calls. Handle microMIPS code.
4685 (mips_get_mips16_fn_stub_pc): Update mips_fetch_instruction call.
4686 (mips_skip_trampoline_code): Handle microMIPS code.
4687 (global_mips_compression): New function.
4688 (mips_gdbarch_init): Handle the compressed ISA setting from ELF
4689 file flags. Register the microMIPS remote breakpoint handler
4690 and heuristic frame unwinder.
4691 (show_mips_compression): New function.
4692 (_initialize_mips_tdep): Add the "set mips compression" and
4693 "show mips compression" commands.
4694
22e048c9
SDJ
46952012-05-18 Sergio Durigan Junior <sergiodj@redhat.com>
4696
4697 * ada-lang.c:
4698 * ada-tasks.c:
4699 * ada-varobj.c:
4700 * amd64-darwin-tdep.c:
4701 * arm-symbian-tdep.c:
4702 * arm-tdep.c:
4703 * avr-tdep.c:
4704 * ax-gdb.c:
4705 * bfin-linux-tdep.c:
4706 * breakpoint.c:
4707 * c-valprint.c:
4708 * cli/cli-cmds.c:
4709 * coffread.c:
4710 * cp-support.c:
4711 * cris-tdep.c:
4712 * dwarf2-frame-tailcall.c:
4713 * dwarf2-frame.c:
4714 * dwarf2expr.c:
4715 * dwarf2loc.c:
4716 * dwarf2read.c:
4717 * elfread.c:
4718 * eval.c:
4719 * expprint.c:
4720 * f-valprint.c:
4721 * frv-tdep.c:
4722 * h8300-tdep.c:
4723 * hppa-hpux-tdep.c:
4724 * hppa-tdep.c:
4725 * hppanbsd-tdep.c:
4726 * i386-nto-tdep.c:
4727 * i386-tdep.c:
4728 * i387-tdep.c:
4729 * ia64-tdep.c:
4730 * jit.c:
4731 * linespec.c:
4732 * linux-tdep.c:
4733 * lm32-tdep.c:
4734 * m2-valprint.c:
4735 * m32c-tdep.c:
4736 * m32r-rom.c:
4737 * m32r-tdep.c:
4738 * m68k-tdep.c:
4739 * m68klinux-tdep.c:
4740 * mi/mi-main.c:
4741 * microblaze-tdep.c:
4742 * mips-linux-tdep.c:
4743 * mips-tdep.c:
4744 * mn10300-tdep.c:
4745 * p-valprint.c:
4746 * parse.c:
4747 * ppc-linux-tdep.c:
4748 * ppc-sysv-tdep.c:
4749 * printcmd.c:
4750 * python/py-finishbreakpoint.c:
4751 * python/py-inferior.c:
4752 * python/py-infthread.c:
4753 * python/py-type.c:
4754 * python/python.c:
4755 * remote-fileio.c:
4756 * remote-m32r-sdi.c:
4757 * remote-mips.c:
4758 * reverse.c:
4759 * rl78-tdep.c:
4760 * rs6000-aix-tdep.c:
4761 * rs6000-tdep.c:
4762 * s390-tdep.c:
4763 * score-tdep.c:
4764 * sh64-tdep.c:
4765 * skip.c:
4766 * solib-darwin.c:
4767 * solib-dsbt.c:
4768 * solib-frv.c:
4769 * sparc-tdep.c:
4770 * spu-multiarch.c:
4771 * spu-tdep.c:
4772 * stack.c:
4773 * symfile.c:
4774 * symtab.c:
4775 * tic6x-tdep.c:
4776 * tracepoint.c:
4777 * v850-tdep.c:
4778 * valarith.c:
4779 * valprint.c:
4780 * value.c:
4781 * xcoffread.c:
4782 * xtensa-tdep.c:
4783 * ada-lang.c:
4784 * ada-tasks.c:
4785 * ada-varobj.c:
4786 * amd64-darwin-tdep.c:
4787 * arm-symbian-tdep.c:
4788 * arm-tdep.c: Delete unused variables.
4789
aff139ff
JK
47902012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4791
4792 Rename $ddir to $datadir.
4793 * NEWS (--with-auto-load-dir): Rename $ddir to $datadir.
4794 * auto-load.c (auto_load_safe_path_vec_update)
4795 (auto_load_gdb_datadir_changed, auto_load_objfile_script): Likewise.
4796 * configure: Regenerate.
4797 * configure.ac (--with-auto-load-dir, --with-auto-load-safe-path):
4798 Likewise. Remove the 'use $ddir' help string.
4799
f7bfa992
JK
48002012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4801
4802 * auto-load.c (show_auto_load_safe_path): Accept any combination of
4803 DIRNAME_SEPARATOR and IS_DIR_SEPARATOR for wild-match.
4804
9cb709b6
TT
48052012-05-18 Tom Tromey <tromey@redhat.com>
4806
4807 PR exp/13907:
4808 * valprint.h (struct value_print_options) <symbol_print>: New
4809 field.
4810 * valprint.c (user_print_options): Add default for symbol_print.
4811 (show_symbol_print): New function.
4812 (generic_val_print): Respect symbol_print.
4813 (_initialize_valprint): Add "print symbol" setting.
4814 * f-valprint.c (f_val_print): Respect symbol_print.
4815 * c-valprint.c (c_val_print): Respect symbol_print.
4816 * NEWS: Update.
4817 * printcmd.c (print_address_symbolic): Return int. Ignore some
4818 zero-size symbols.
4819 (print_address_demangle): Return int.
4820 * defs.h: (print_address_symbolic): Return int.
4821 * value.h (print_address_demangle): Return int.
4822
b012acdd
TT
48232012-05-18 Tom Tromey <tromey@redhat.com>
4824
4825 * valprint.c (val_print_string): Don't print leading space.
4826 * p-valprint.c (pascal_val_print) <TYPE_CODE_PTR>: Optionally
4827 print space before string or vtbl.
4828 * m2-valprint.c (print_unpacked_pointer): Optionally print space
4829 before string.
4830 * jv-valprint.c (java_value_print): Print space before string.
4831 * go-valprint.c (print_go_string): Print space before string.
4832 * f-valprint.c (f_val_print) <TYPE_CODE_PTR>: Optionally print
4833 space before string.
4834 * c-valprint.c (c_val_print) <TYPE_CODE_PTR>: Optionally print
4835 space before string or vtbl.
4836 * auxv.c (fprint_target_auxv): Print space after address.
4837
1d51a733
TT
48382012-05-18 Tom Tromey <tromey@redhat.com>
4839
4840 * printcmd.c (print_address_demangle): Remove special case for 0.
4841
edf0c1b7
TT
48422012-05-18 Tom Tromey <tromey@redhat.com>
4843
4844 * printcmd.c (print_address_demangle): Add 'opts' argument.
4845 * p-valprint.c (pascal_val_print): Update.
4846 * jv-valprint.c (java_val_print): Update.
4847 * value.h: Update.
4848 * valprint.c (generic_val_print): Update.
4849 (print_function_pointer_address): Add 'options' argument. Remove
4850 'addressprint' argument. Update.
4851 * m2-valprint.c (print_unpacked_pointer): Update.
4852 * gnu-v3-abi.c (print_one_vtable): Update.
4853 (gnuv3_print_method_ptr): Update.
4854 * f-valprint.c (f_val_print): Update.
4855 * cp-valprint.c (cp_print_value_fields): Update.
4856 * valprint.h (print_function_pointer_address): Update.
4857 * c-valprint.c (c_val_print): Update.
4858
9703b513
TT
48592012-05-18 Tom Tromey <tromey@redhat.com>
4860
4861 * psymtab.c (find_pc_sect_symtab_from_partial): Return the symtab
4862 directly corresponding to the found psymtab.
4863 * dwarf2read.c (recursively_find_pc_sect_symtab): New function.
4864 (dw2_find_pc_sect_symtab): Use it.
4865 * block.h (blockvector_contains_pc): Declare.
4866 * block.c (find_block_in_blockvector): New function.
4867 (blockvector_for_pc_sect): Use it.
4868 (blockvector_contains_pc): New function.
4869
5a439849
MR
48702012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
4871
4872 * mips-tdep.h (mips_write_pc): New prototype.
4873 * mips-tdep.c (mips_write_pc): Make external, add description.
4874 * mips-linux-tdep.c (mips_linux_write_pc): Use mips_write_pc,
4875 add description.
4876
8376de04
MR
48772012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
4878
4879 * mips-tdep.c (mips_read_pc): Use gdbarch_pc_regnum instead of
4880 mips_regnum->pc.
4881 (mips_unwind_pc, mips_write_pc): Likewise.
4882 (mips_gdbarch_init): Remove a comment on gdbarch_pc_regnum and
4883 gdbarch_read_pc.
4884
d3581e61
JB
48852012-05-17 Joel Brobecker <brobecker@adacore.com>
4886
4887 * procfs.c (procfs_find_new_threads, procfs_pid_to_str,
4888 proc_warn, proc_error, proc_get_status, proc_flags,
4889 proc_why, proc_what, proc_nsysarg, proc_sysargs,
4890 proc_set_run_on_last_close, proc_unset_run_on_last_close,
4891 proc_unset_inherit_on_fork, proc_set_async, proc_unset_async,
4892 proc_stop_process, proc_wait_for_stop, proc_run_process,
4893 proc_set_traced_signals, proc_set_traced_faults,
4894 proc_set_traced_sysentry, proc_set_traced_sysexit,
4895 proc_set_held_signals, proc_get_held_signals,
4896 proc_get_traced_signals, proc_get_traced_faults,
4897 proc_get_traced_sysentry, proc_get_traced_sysexit,
4898 proc_clear_current_fault, proc_set_current_signal,
4899 proc_clear_current_signal, proc_get_gregs, proc_get_fpregs,
4900 proc_set_gregs, proc_set_fpregs, proc_kill, proc_parent_pid,
4901 proc_get_nthreads, proc_get_nthreads, proc_get_nthreads,
4902 proc_get_current_thread, proc_get_current_thread,
4903 proc_get_current_thread, proc_update_threads,
4904 proc_update_threads, proc_update_threads, proc_update_threads,
4905 proc_iterate_over_threads, procfs_find_new_threads,
4906 procfs_pid_to_str): Make static. Remove advance declaration.
4907 (proc_cursig): Make static. Conditionalized defintion on
4908 PROCFS_DONT_PIOCSSIG_CURSIG being defined.
4909 (proc_syscall, proc_set_kill_on_last_close,
4910 proc_unset_kill_on_last_close, proc_set_inherit_on_fork,
4911 proc_get_pending_signals, proc_get_signal_actions,
4912 proc_trace_signal, proc_ignore_signal): Delete.
4913
81b9b86e
SDJ
49142012-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
4915
4916 * coffread.c (cs_section_address): Passing proper argument for
4917 `bfd_get_section_vma'.
4918 * dwarf2read.c (dwarf2_locate_sections): Likewise, for
4919 `bfd_get_section_flags'.
4920 * remote.c (remote_trace_set_readonly_regions): Likewise, for
4921 `bfd_get_section_vma'.
4922
abc9d0dc
TT
49232012-05-16 Tom Tromey <tromey@redhat.com>
4924
4925 PR macros/13205:
4926 * macrotab.h: (macro_define_special): Declare.
4927 (enum macro_special_kind): New.
4928 (struct macro_definition) <argc, replacement>: Update comments.
4929 * macrotab.c (new_macro_definition): Unconditionally set 'argc'.
4930 (macro_define_object_internal): New function.
4931 (macro_define_object): Use it.
4932 (macro_define_special): New function.
4933 (fixup_definition): New function.
4934 (macro_lookup_definition, foreach_macro_in_scope)
4935 (foreach_macro): Use fixup_definition.
4936 * macroexp.h (macro_stringify): Declare.
4937 * macroexp.c (free_buffer_return_text): New function.
4938 (stringify): Constify "arg".
4939 (macro_stringify): New function.
4940 * dwarf2read.c (macro_start_file): Call macro_define_special.
4941
6a3a010b 49422012-05-16 Maciej W. Rozycki <macro@codesourcery.com>
f782ad9b 4943 Maciej W. Rozycki <macro@mips.com>
6a3a010b
MR
4944
4945 * breakpoint.h (bp_location): Add related_address member.
4946 * inferior.h (get_return_value): Take a pointer to struct value
4947 instead of struct type for the function requested.
4948 * value.h (using_struct_return): Likewise.
4949 * gdbarch.sh (return_value): Take a pointer to struct value
4950 instead of struct type for the function requested.
4951 * breakpoint.c (set_breakpoint_location_function): Initialize
4952 related_address for bp_gnu_ifunc_resolver breakpoints.
4953 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the
4954 requested function's address to gdbarch_return_value.
4955 * eval.c (evaluate_subexp_standard): Pass the requested
4956 function's address to using_struct_return.
4957 * infcall.c (call_function_by_hand): Pass the requested
4958 function's address to using_struct_return and
4959 gdbarch_return_value.
4960 * infcmd.c (get_return_value): Take a pointer to struct value
4961 instead of struct type for the function requested.
4962 (print_return_value): Update accordingly.
4963 (finish_command_continuation): Likewise.
4964 * stack.c (return_command): Pass the requested function's
4965 address to using_struct_return and gdbarch_return_value.
4966 * value.c (using_struct_return): Take a pointer to struct value
4967 instead of struct type for the function requested. Pass the
4968 requested function's address to gdbarch_return_value.
4969 * python/py-finishbreakpoint.c (finish_breakpoint_object):
4970 New function_value member, replacing function_type.
4971 (bpfinishpy_dealloc): Update accordingly.
4972 (bpfinishpy_pre_stop_hook): Likewise.
4973 (bpfinishpy_init): Likewise. Record the requested function's
4974 address.
4975 * mips-tdep.c (mips_fval_reg): New enum.
4976 (mips_o32_push_dummy_call): For MIPS16 FP doubles do not swap
4977 words put in GP registers.
4978 (mips_o64_push_dummy_call): Update a comment.
4979 (mips_o32_return_value): Take a pointer to struct value instead
4980 of struct type for the function requested and use it to check if
4981 using the MIPS16 calling convention. Return the designated
4982 general purpose registers for floating-point values returned in
4983 MIPS16 mode.
4984 (mips_o64_return_value): Likewise.
4985 * ppc-tdep.h (ppc_sysv_abi_return_value): Update prototype.
4986 (ppc_sysv_abi_broken_return_value): Likewise.
4987 (ppc64_sysv_abi_return_value): Likewise.
4988 * alpha-tdep.c (alpha_return_value): Take a pointer to struct
4989 value instead of struct type for the function requested.
4990 * amd64-tdep.c (amd64_return_value): Likewise.
4991 * amd64-windows-tdep.c (amd64_windows_return_value): Likewise.
4992 * arm-tdep.c (arm_return_value): Likewise.
4993 * avr-tdep.c (avr_return_value): Likewise.
4994 * bfin-tdep.c (bfin_return_value): Likewise.
4995 * cris-tdep.c (cris_return_value): Likewise.
4996 * frv-tdep.c (frv_return_value): Likewise.
4997 * h8300-tdep.c (h8300_return_value): Likewise.
4998 (h8300h_return_value): Likewise.
4999 * hppa-tdep.c (hppa32_return_value): Likewise.
5000 (hppa64_return_value): Likewise.
5001 * i386-tdep.c (i386_return_value): Likewise.
5002 * ia64-tdep.c (ia64_return_value): Likewise.
5003 * iq2000-tdep.c (iq2000_return_value): Likewise.
5004 * lm32-tdep.c (lm32_return_value): Likewise.
5005 * m32c-tdep.c (m32c_return_value): Likewise.
5006 * m32r-tdep.c (m32r_return_value): Likewise.
5007 * m68hc11-tdep.c (m68hc11_return_value): Likewise.
5008 * m68k-tdep.c (m68k_return_value): Likewise.
5009 (m68k_svr4_return_value): Likewise.
5010 * m88k-tdep.c (m88k_return_value): Likewise.
5011 * mep-tdep.c (mep_return_value): Likewise.
5012 * microblaze-tdep.c (microblaze_return_value): Likewise.
5013 * mn10300-tdep.c (mn10300_return_value): Likewise.
5014 * moxie-tdep.c (moxie_return_value): Likewise.
5015 * mt-tdep.c (mt_return_value): Likewise.
5016 * ppc-linux-tdep.c (ppc_linux_return_value): Likewise.
5017 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Likewise.
5018 (ppc_sysv_abi_broken_return_value): Likewise.
5019 (ppc64_sysv_abi_return_value): Likewise.
5020 * ppcnbsd-tdep.c (ppcnbsd_return_value): Likewise.
5021 * rl78-tdep.c (rl78_return_value): Likewise.
5022 * rs6000-aix-tdep.c (rs6000_return_value): Likewise.
5023 * rx-tdep.c (rx_return_value): Likewise.
5024 * s390-tdep.c (s390_return_value): Likewise.
5025 * score-tdep.c (score_return_value): Likewise.
5026 * sh-tdep.c (sh_return_value_nofpu): Likewise.
5027 (sh_return_value_fpu): Likewise.
5028 * sh64-tdep.c (sh64_return_value): Likewise.
5029 * sparc-tdep.c (sparc32_return_value): Likewise.
5030 * sparc64-tdep.c (sparc64_return_value): Likewise.
5031 * spu-tdep.c (spu_return_value): Likewise.
5032 * tic6x-tdep.c (tic6x_return_value): Likewise.
5033 * v850-tdep.c (v850_return_value): Likewise.
5034 * vax-tdep.c (vax_return_value): Likewise.
5035 * xstormy16-tdep.c (xstormy16_return_value): Likewise.
5036 * xtensa-tdep.c (xtensa_return_value): Likewise.
5037 * gdbarch.c: Regenerate.
5038 * gdbarch.h: Regenerate.
5039
29ca12b3
TT
50402012-05-15 Tom Tromey <tromey@redhat.com>
5041
5042 * python/python.c (gdbpy_find_pc_line): Use gdb_py_ulongest.
5043
588ae58c
JB
50442012-05-15 Joel Brobecker <brobecker@adacore.com>
5045
5046 * breakpoint.c (init_breakpoint_sal): Add quotes around part
5047 of command in two error message.
5048
855a6e68
JB
50492012-05-15 Joel Brobecker <brobecker@adacore.com>
5050
5051 * breakpoint.c (init_breakpoint_sal): Remove trailing spaces.
5052
d634f2de
JB
50532012-05-15 Joel Brobecker <brobecker@adacore.com>
5054
5055 * breakpoint.c (find_condition_and_thread): Minor reformatting.
5056
9cc815f5
JK
50572012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
5058
5059 * NEWS (show auto-load scripts-directory): Add forgotten command.
5060
6a609e58
JK
50612012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
5062
5063 * spu-tdep.c (spu_catch_start): Update create_breakpoint caller
5064 parameters.
5065
ac1438b5
L
50662012-05-14 H.J. Lu <hongjiu.lu@intel.com>
5067
5068 * amd64-tdep.c: Include features/i386/x32.c and
5069 features/i386/x32-avx.c.
5070 (_initialize_amd64_tdep): Call initialize_tdesc_x32 and
5071 initialize_tdesc_x32_avx.
5072
e7e0cddf
SS
50732012-05-14 Stan Shebs <stan@codesourcery.com>
5074
5075 Add dynamic printf.
5076 * breakpoint.h (enum bptype): New type bp_dprintf.
5077 (struct breakpoint): New field extra_string.
5078 (struct breakpoint_ops): Add arg to create_breakpoints_sal.
5079 (create_breakpoint): Add extra_string arg.
5080 * breakpoint.c (dprintf_breakpoint_ops): New.
5081 (is_breakpoint): Add bp_dprintf.
5082 (bpstat_what): Add dprintf case.
5083 (bptype_string): Ditto.
5084 (print_one_breakpoint_location): Ditto.
5085 (init_bp_location): Ditto.
5086 (bkpt_print_mention): Ditto.
5087 (dprintf_style_enums): New array.
5088 (dprintf_style): New global.
5089 (dprintf_function): New global.
5090 (dprintf_channel): New global.
5091 (update_dprintf_command_list): New function.
5092 (update_dprintf_commands): New function.
5093 (init_breakpoint_sal): Add extra_string argument, handle it.
5094 (create_breakpoint_sal): Add extra_string argument.
5095 (create_breakpoints_sal): Add extra_string argument, update callers.
5096 (find_condition_and_thread): Add extra argument.
5097 (create_breakpoint): Add extra_string argument, record it.
5098 (dprintf_command): New function.
5099 (break_command_1): Add arg to create_breakpoint call.
5100 (handle_gnu_v3_exceptions): Ditto.
5101 (trace_command): Ditto.
5102 (ftrace_command): Ditto.
5103 (strace_command): Ditto.
5104 (bkpt_print_mention): Add dprintf case.
5105 (create_breakpoint_sal_default): Add extra_string argument.
5106 (_initialize_breakpoint): Add new commands.
5107 * mi/mi-cmd-break.c (mi_cmd_break_insert): Add arg to call.
5108 * python/py-breakpoint.c (bppy_init): Ditto.
5109 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
5110
8ae38c14
MR
51112012-05-14 Maciej W. Rozycki <macro@codesourcery.com>
5112
5113 * mips-tdep.c (mips_push_dummy_code): Correct description typo.
5114
9f676e66
SCR
51152012-05-14 Siva Chandra Reddy <sivachandra@google.com>
5116
5117 * python/python.c (gdbpy_find_pc_line): Use ULONGEST instead of
5118 unsigned long long.
5119
7efc75aa
SCR
51202012-05-13 Siva Chandra Reddy <sivachandra@google.com>
5121
5122 Add a new function gdb.find_pc_line to the Python API.
5123 * NEWS (Python Scripting): Add entry about the new function.
5124 * python/python.c (gdbpy_find_pc_line): New function which
5125 implements gdb.find_pc_line.
5126 (GdbMethods): Add entry for the new function.
5127
70af3797
PA
51282012-05-12 Pedro Alves <palves@redhat.com>
5129
5130 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Call
5131 initialize_tdesc_x32_linux and initialize_tdesc_x32_avx_linux.
5132
06da564e
EZ
51332012-05-12 Eli Zaretskii <eliz@gnu.org>
5134
5135 * inferior.c: Include completer.h
5136 (initialize_inferiors): Set completer of add-inferior to
5137 filename_completer.
5138
0288cee2
L
51392012-05-11 H.J. Lu <hongjiu.lu@intel.com>
5140
5141 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
5142 gdbarch_ptr_bit for x32 core dump.
5143
f6537a2c
L
51442012-05-11 H.J. Lu <hongjiu.lu@intel.com>
5145
5146 * amd64-linux-tdep.c: Include features/i386/x32-linux.c
5147 and features/i386/x32-avx-linux.c.
5148
85d4a676
SS
51492012-05-11 Stan Shebs <stan@codesourcery.com>
5150 Kwok Cheung Yeung <kcy@codesourcery.com>
5151
5152 * NEWS: Describe new info os commands.
5153 * common/linux-osdata.c (PID_T, TIME_T): Define.
5154 (MAX_PID_T_STRLEN): New.
5155 (linux_common_core_of_thread): Add comment. Change to use PID_T and
5156 MAX_PID_T_STRLEN.
5157 (command_from_pid): Add comment. Change to use PID_T.
5158 (commandline_from_pid): Change to use PID_T.
5159 (user_from_pid): Add comment.
5160 (get_process_owner): Add comment. Change to use PID_T and
5161 MAX_PID_T_STRLEN.
5162 (get_number_of_cpu_cores): Add comment.
5163 (get_cores_used_by_process): Add comment. Change to use PID_T and
5164 MAX_PID_T_STRLEN.
5165 (linux_xfer_osdata_processes): Change to use PID_T and
5166 MAX_PID_T_STRLEN.
5167 (compare_processes): New function.
5168 (linux_xfer_osdata_processgroups): New function.
5169 (linux_xfer_osdata_threads): Change to use PID_T.
5170 (linux_xfer_osdata_fds): New function.
5171 (format_socket_state, print_sockets): New functions.
5172 (union socket_addr): New union.
5173 (linux_xfer_osdata_isockets): New function.
5174 (time_from_time_t, group_from_gid): New functions.
5175 (linux_xfer_osdata_shm): New function.
5176 (linux_xfer_osdata_sem): New function.
5177 (linux_xfer_osdata_msg): New function.
5178 (linux_xfer_osdata_modules): New function.
5179 (osdata_table): Add new entries.
5180 * common/buffer.c (buffer_xml_printf): Add support for long and
5181 long long format specifiers.
5182
f24afd6d
L
51832012-05-11 H.J. Lu <hongjiu.lu@intel.com>
5184
5185 * amd64-linux-tdep.h (tdesc_x32_linux): New.
5186 (tdesc_x32_avx_linux): Likewise.
5187
7349ff92
JK
51882012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5189
5190 Implement multi-component --with-auto-load-dir.
5191 * NEWS (set auto-load scripts-directory, --with-auto-load-dir): New
5192 entries.
5193 (--with-auto-load-safe-path): Update the default value description.
5194 * auto-load.c (auto_load_dir, set_auto_load_dir, show_auto_load_dir):
5195 New.
5196 (auto_load_objfile_script): Add DEBUG_AUTO_LOAD output. Remove
5197 GDB_DATADIR NULL check. Replace GDB_DATADIR/auto-load by
5198 AUTO_LOAD_DIR. Support $ddir and multiple components in it.
5199 (_initialize_auto_load): Initialize also auto_load_dir. Install new
5200 "set auto-load scripts-directory".
5201 * config.in: Regenerate.
5202 * configure: Regenerate.
5203 * configure.ac (--with-auto-load-dir): New configure option.
5204 (--auto-load-safe-path): Change the default to --with-auto-load-dir.
5205
6dea1fbd
JK
52062012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5207
5208 Provide $ddir substitution for --with-auto-load-safe-path.
5209 * NEWS (--with-auto-load-safe-path, --without-auto-load-safe-path): New
5210 entries.
5211 * auto-load.c: Include observer.h.
5212 (auto_load_safe_path_vec_update): Call substitute_path_component for
5213 each component. New variable ddir_subst.
5214 (auto_load_gdb_datadir_changed): New function.
5215 (set_auto_load_safe_path): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
5216 AUTO_LOAD_SAFE_PATH. New comment.
5217 (_initialize_auto_load): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
5218 AUTO_LOAD_SAFE_PATH. Install auto_load_gdb_datadir_changed.
5219 * config.in: Regenerate.
5220 * configure: Regenerate.
5221 * configure.ac (--auto-load-safe-path): Rename
5222 DEFAULT_AUTO_LOAD_SAFE_PATH to AUTO_LOAD_SAFE_PATH. Default to
5223 GDB_DATADIR/auto-load.
5224 * defs.h (substitute_path_component): New declaration.
5225 * top.c: Include observer.h.
5226 (set_gdb_datadir): New function.
5227 (init_main): Install it for "set data-directory".
5228 * utils.c (substitute_path_component): New function.
5229
b09aca3a
JK
52302012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5231
5232 Make auto-load handle multiple components of DEBUG_FILE_DIRECTORY.
5233 * auto-load.c (auto_load_objfile_script): Remove check for NULL
5234 DEBUG_FILE_DIRECTORY. Handle multiple components of
5235 DEBUG_FILE_DIRECTORY.
5236
95554aad
TT
52372012-05-10 Tom Tromey <tromey@redhat.com>
5238
5239 * dwarf2read.c (recursively_write_psymbols): New function.
5240 (write_psymtabs_to_index): Use it.
5241
5242 * dwarf2read.c (struct dwarf2_queue_item) <pretend_language>: New
5243 field.
5244 (load_cu, dw2_do_instantiate_symtab, process_psymtab_comp_unit)
5245 (load_partial_comp_unit): Update.
5246 (queue_comp_unit): Add argument 'pretend_language'.
5247 (process_queue): Update.
5248 (psymtab_to_symtab_1): Skip dependencies that have a user.
5249 (load_partial_comp_unit_reader): Give meaning to the 'data'
5250 argument.
5251 (load_full_comp_unit): Add 'pretend_language' argument.
5252 (process_full_comp_unit): Add 'pretend_language' argument. Set
5253 language on CU.
5254 (process_imported_unit_die, read_file_scope, read_type_unit_scope):
5255 Update.
5256 (maybe_queue_comp_unit): Add 'pretend_language' argument.
5257 (follow_die_offset, follow_die_sig, read_signatured_type_reader):
5258 Update.
5259 (prepare_one_comp_unit): Add 'pretend_language' argument.
5260
5261 * dwarf2read.c: (dwarf2_per_cu_ptr): New typedef.
5262 (struct dwarf2_per_objfile) <just_read_cus>: New field.
5263 (struct dwarf2_per_cu_data) <imported_symtabs>: New field.
5264 (dw2_do_instantiate_symtab): Check whether symtab was read in
5265 before queueing.
5266 (dw2_instantiate_symtab): Add assertion. Call
5267 process_cu_includes.
5268 (process_psymtab_comp_unit): Compute 'dependencies' for psymtab.
5269 (partial_symtab_p): New typedef.
5270 (set_partial_user): New function.
5271 (dwarf2_build_psymtabs_hard): Use set_partial_user.
5272 (scan_partial_symbols): Add imported CU to imported_symtabs.
5273 (dwarf2_psymtab_to_symtab): Call process_cu_includes.
5274 (psymtab_to_symtab_1): Do nothing if psymtab is readin.
5275 (get_symtab, recursively_compute_inclusions)
5276 (compute_symtab_includes, process_cu_includes)
5277 (process_imported_unit_die): New functions.
5278 (process_die) <DW_TAG_imported_unit>: New case.
5279 (dwarf2_per_objfile_free): Free 'imported_symtabs'.
5280
5281 * dwarf2read.c (struct dwarf2_per_cu_data) <psymtab>: Update
5282 comment.
5283 (struct partial_die_info) <locdesc>: Remove.
5284 <d>: New field.
5285 (process_psymtab_comp_unit): Add 'read_partial' argument.
5286 Update.
5287 (process_type_comp_unit, dwarf2_build_psymtabs_hard): Update.
5288 (scan_partial_symbols): Handle DW_TAG_imported_unit.
5289 (add_partial_symbol): Update.
5290 (process_die): Handle DW_TAG_partial_unit.
5291 (read_file_scope): Update comment.
5292 (load_partial_dies): Handle DW_TAG_imported_unit.
5293 (read_partial_die): Handle DW_TAG_partial_unit, DW_AT_import.
5294 (determine_prefix, dwarf2_name): Handle DW_TAG_partial_unit.
5295
e871fbb9
TT
52962012-05-10 Tom Tromey <tromey@redhat.com>
5297
5298 * cc-with-dwz.sh: New file.
5299
b5b04b5b
TT
53002012-05-10 Tom Tromey <tromey@redhat.com>
5301
5302 * symtab.h (struct symtab) <includes, user>: New fields.
5303 * block.h (struct block_iterator) <d, idx, which>: New fields.
5304 * block.c (initialize_block_iterator, find_iterator_symtab)
5305 (block_iterator_step, block_iter_name_step)
5306 (block_iter_match_step): New functions.
5307 (block_iterator_first, block_iterator_next)
5308 (block_iter_name_first, block_iter_name_next)
5309 (block_iter_match_first, block_iter_match_next): Rewrite.
5310 (get_block_symtab): New function.
5311
84a146c9
TT
53122012-05-10 Tom Tromey <tromey@redhat.com>
5313
5314 * jv-lang.c (get_java_class_symtab): Use allocate_global_block,
5315 set_block_symtab.
5316 * jit.c (finalize_symtab): Use allocate_global_block,
5317 set_block_symtab.
5318 * buildsym.c (finish_block_internal): New function, from old
5319 finish_block.
5320 (finish_block): Rewrite.
5321 (end_symtab): Use finish_block_internal, set_block_symtab.
5322 * block.h (struct global_block): New.
5323 (allocate_global_block, set_block_symtab): Declare.
5324 * block.c (allocate_global_block, set_block_symtab): New
5325 functions.
5326
9439a077
TT
53272012-05-10 Tom Tromey <tromey@redhat.com>
5328
5329 * psymtab.c (partial_map_expand_apply): Add assertion.
5330 (partial_map_symtabs_matching_filename): Skip included psymtabs.
5331 (psymtab_to_symtab): Find unshared psymtab.
5332 (dump_psymtab): Print including psymtabs.
5333 (recursively_search_psymtabs): New function.
5334 (expand_symtabs_matching_via_partial): Use it.
5335 * psympriv.h (struct partial_symtab) <user, searched_flag>: New
5336 fields.
5337 (enum psymtab_search_status): New.
5338
8157b174
TT
53392012-05-10 Tom Tromey <tromey@redhat.com>
5340
5341 * tracepoint.c (scope_info): Update.
5342 * symtab.c (lookup_block_symbol, iterate_over_symbols)
5343 (find_pc_sect_symtab, search_symbols)
5344 (default_make_symbol_completion_list_break_on)
5345 (make_file_symbol_completion_list): Update.
5346 * symmisc.c (dump_symtab_1): Update.
5347 * stack.c (print_frame_args, iterate_over_block_locals)
5348 (print_frame_labels, iterate_over_block_arg_vars): Update.
5349 * python/py-block.c (block_object) <dict>: Remove.
5350 <block>: New field.
5351 <iter>: Change type.
5352 (blpy_iter): Update.
5353 (blpy_block_syms_iternext): Update.
5354 * psymtab.c (map_block): Use block iterators.
5355 * objfiles.c (objfile_relocate1): Use ALL_DICT_SYMBOLS.
5356 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
5357 * mdebugread.c (parse_symbol, mylookup_symbol): Update.
5358 * infrun.c (check_exception_resume): Update.
5359 * cp-support.c (make_symbol_overload_list_block): Update.
5360 * coffread.c (patch_opaque_types): Update.
5361 * buildsym.c (finish_block, end_symtab): Use ALL_DICT_SYMBOLS.
5362 * block.h (struct block_iterator): New.
5363 (block_iterator_first, block_iterator_next, block_iter_name_first)
5364 (block_iter_name_next, block_iter_match_first)
5365 (block_iter_match_next): Declare.
5366 (ALL_BLOCK_SYMBOLS): Redefine.
5367 * block.c (block_iterator_first, block_iterator_next)
5368 (block_iter_name_first, block_iter_name_next)
5369 (block_iter_match_first, block_iter_match_next): New functions.
5370 * ada-lang.c (ada_add_block_symbols)
5371 (ada_make_symbol_completion_list): Use block iterator.
5372
a2ca7a52
TT
53732012-05-10 Tom Tromey <tromey@redhat.com>
5374
5375 * psymtab.c (PSYMTAB_TO_SYMTAB): Remove.
5376 (find_pc_sect_symtab_from_partial, lookup_symbol_aux_psymtabs)
5377 (lookup_partial_symbol, find_last_source_symtab_from_partial)
5378 (read_psymtabs_with_filename, map_matching_symbols_psymtab)
5379 (expand_symtabs_matching_via_partial, maintenance_check_symtabs):
5380 Update.
5381
64ea88dc
JB
53822012-05-10 Joel Brobecker <brobecker@adacore.com>
5383
5384 * config/djgpp/fnchange.lst: Add entries for print-file-var-lib1.c,
5385 print-file-var-lib2.c, print-file-var-main.c and
5386 print-file-var.exp (located in gdb/testsuite/gdb.base).
5387
99a547d6
JB
53882012-05-10 Joel Brobecker <brobecker@adacore.com>
5389
5390 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
5391 try locating the symbol in the symbol's own objfile first, before
5392 extending the search to all objfiles.
5393 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
5394 out of lookup_symbol_aux_symtabs.
5395 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
5396 Replace extracted-out code by call to lookup_symbol_aux_objfile.
5397 Do not search EXCLUDE_OBJFILE.
5398 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
5399 (lookup_symbol_global): Search for matches in the block's objfile
5400 first, before searching all other objfiles.
5401
0ece64fd
TG
54022012-05-10 Tristan Gingold <gingold@adacore.com>
5403
5404 * printcmd.c (set_command): Add pre/post inc/dec.
5405
3d16a105
FCE
54062012-05-09 Frank Ch. Eigler <fche@redhat.com>
5407
5408 * gdb.1: Document -ex option.
5409
2efbc0f7
JB
54102012-05-09 Joel Brobecker <brobecker@adacore.com>
5411
5412 * infcall.c (call_function_by_hand): Remove AT_SYMBOL handling.
5413 * inferior.h (AT_SYMBOL): Delete.
5414
2c76a0c7
JB
54152012-05-09 Joel Brobecker <brobecker@adacore.com>
5416
5417 * mips-tdep.c (mips_push_dummy_code): New function.
5418 (mips_gdbarch_init): Set the gdbarch call_dummy_location to
5419 ON_STACK and install mips_push_dummy_code as our gdbarch
5420 push_dummy_code routine.
5421
9401a810
PA
54222012-05-09 Pedro Alves <palves@redhat.com>
5423
5424 * target.c (set_maintenance_target_async_permitted): Rename to ...
5425 (set_target_async_command): ... this.
5426 (show_maintenance_target_async_permitted): Rename to ...
5427 (show_target_async_command): ... this.
5428 (initialize_targets): Adjust.
5429
3929b321
DE
54302012-05-08 Doug Evans <dje@google.com>
5431
5432 * go-exp.y (classify_name): Add missing assignment of fields of
5433 yylval.ssym.
5434
c41535fd
EZ
54352012-05-08 Eli Zaretskii <eliz@gnu.org>
5436
5437 Display the ">" prompt in interactive mode while reading canned
5438 commands, even when the current interpreter is MI.
5439
5440 * interps.c (interp_set_temp): New function.
5441
5442 * interps.h (interp_set_temp): Add prototype.
5443
5444 * cli/cli-script.c (restore_interp): New cleanup function.
5445 (read_command_lines): Temporarily override the current interpreter
5446 with CLI and arrange for restoring the original one.
5447
c0749c4d
JS
54482012-05-12 Joel Sherrill <joel.sherrill@oarcorp.com>
5449
5450 * microblaze-rom.c (_initialize_picobug_rom): Add prototype.
5451
d7333987
SDJ
54522012-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
5453
5454 * probe.c (parse_probes): Move conditional to check for
5455 debuginfo files from here...
5456 * stap-probe.c (stap_get_probes): ... to here.
5457
649e6d92
MK
54582012-05-07 Mark Kettenis <kettenis@gnu.org>
5459 H.J. Lu <hongjiu.lu@intel.com>
5460
5461 * amd64-tdep.c (amd64_analyze_prologue): Additionally check for
5462 `movl %esp, %ebp' for the X32 ABI.
5463
f39c6ffd
TT
54642012-05-07 Tom Tromey <tromey@redhat.com>
5465
5466 * dwarf2read.c (dwarf_tag_name): Return const char *. Use
5467 get_DW_TAG_name.
5468 (dwarf_attr_name): Return const char *. Use get_DW_AT_name.
5469 (dwarf_form_name): Return const char *. Use get_DW_FORM_name.
5470 (dwarf_stack_op_name): Remove.
5471 (dwarf_cfi_name): Return const char *. Use get_DW_ATE_name.
5472 (decode_locdesc): Use get_DW_OP_name.
5473 * dwarf2loc.c (unimplemented): Use get_DW_OP_name.
5474 (dwarf2_compile_expr_to_ax): Likewise.
5475 (disassemble_dwarf_expression): Likewise.
5476 * dwarf2expr.h: (dwarf_stack_op_name): Remove.
5477
1e1f6591
CLT
54782012-05-07 Chung-Lin Tang <cltang@codesourcery.com>
5479
5480 * sh-linux-tdep.c: Include trad-frame.h and tramp-frame.h.
5481 (sh_linux_sigtramp_cache): New function.
5482 (sh_linux_sigreturn_init): New function.
5483 (sh_linux_rt_sigreturn_init): New function.
5484 (SH_MOVW,SH_TRAP,SH_OR_R0_R0): New symbols for instruction
5485 patterns.
5486 (SH_NR_SIGRETURN,SH_NR_RT_SIGRETURN): New symbols for sigreturn
5487 syscall codes.
5488 (sh_linux_sigreturn_tramp_frame): New tramp_frame definition.
5489 (sh_linux_rt_sigreturn_tramp_frame): Likewise.
5490 (sh_linux_init_abi): Add init calls to register new tramp_frame
5491 definitions under 32-bit SH, update comments.
5492
545c08b4
PA
54932012-05-07 Pedro Alves <palves@redhat.com>
5494
daac165e
PA
5495 PR gdb/10952
5496
545c08b4
PA
5497 * amd64-linux-tdep.c: Include glibc-tdep.h.
5498 (amd64_linux_init_abi): Install glibc_skip_solib_resolver as
5499 gdbarch_skip_solib_resolver callback.
5500
af2c1515
JK
55012012-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5502
5503 * auto-load.c (set_auto_load_safe_path): Reset AUTO_LOAD_SAFE_PATH
5504 back to DEFAULT_AUTO_LOAD_SAFE_PATH if it is being set to "".
5505 (show_auto_load_safe_path): Check any-directory by comparison with "/".
5506 (add_auto_load_safe_path): Change the error message.
5507 (_initialize_auto_load): Change the "safe-path" help text.
5508 * configure: Regenerate
5509 * configure.ac (--without-auto-load-safe-path): Set
5510 WITH_AUTO_LOAD_SAFE_PATH to /.
5511
1067f998
SDJ
55122012-05-05 Sergio Durigan Junior <sergiodj@redhat.com>
5513
5514 * stap-probe.h: Do not include unecessary `probe.h'.
5515
45dfa85a
AM
55162012-05-05 Alan Modra <amodra@gmail.com>
5517
5518 * elfread.c (elf_symtab_read): Use bfd_abs_section_ptr and
5519 bfd_und_section_ptr.
5520 * machoread.c (macho_symtab_add_minsym): Use bfd_abs_section_ptr
5521 and bfd_com_section_ptr.
5522
cf093994
JB
55232012-05-04 Joel Brobecker <brobecker@adacore.com>
5524
762ebb75 5525 * MAINTAINERS (Past Maintainers): Add Chris Faylor.
cf093994 5526
d40dc7a8
JB
55272012-05-04 Joel Brobecker <brobecker@adacore.com>
5528
5529 * windows-nat.h (segment_register_p_ftype): New typedef.
5530 (windows_set_segment_register_p): Add declaration.
5531 * windows-nat.c (segment_register_p): New static global.
5532 (windows_set_segment_register_p): New function.
5533 (do_windows_fetch_inferior_registers): Add special handling
5534 for segment registers.
5535 * amd64-windows-nat.c: #include "amd64-tdep.h".
5536 (amd64_windows_segment_register_p): New function.
5537 (_initialize_amd64_windows_nat): Call windows_set_segment_register_p.
5538 * i386-windows-nat.c: #include "i386-tdep.h".
5539 (i386_windows_segment_register_p): New function.
5540 (_initialize_i386_windows_nat): Call windows_set_segment_register_p.
5541
52b3699b
TG
55422012-05-04 Tristan Gingold <gingold@adacore.com>
5543
5544 * printcmd.c (set_command): Emit a warning if the expression is not
5545 an assignment.
5546
94c74239
JB
55472012-05-03 Joel Brobecker <brobecker@adacore.com>
5548
5549 * nto-procfs.c (procfs_find_new_threads, procfs_pid_to_str):
5550 Make static.
5551
fcf57f19
SDJ
55522012-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
5553
5554 * stap-probe.c (stap_is_operator): Change declaration.
5555 (stap_get_opcode): Change return value.
5556 (stap_parse_argument_1): Update calls to `stap_get_opcode' and
5557 `stap_parse_argument_1'.
5558
27d2932e
PA
55592012-05-03 Pedro Alves <pedro@codesourcery.com>
5560
5561 * infrun.c (displaced_step_fixup): Add "displaced:" prefix to
5562 debug log.
5563
a20ee7a4
SCR
55642012-05-03 Siva Chandra Reddy <sivachandra@google.com>
5565
5566 Add two new methods global_block and static_block to gdb.Symtab
5567 objects.
5568 * NEWS (Python scripting): Add entry about the new methods.
5569 * python/py-symtab.c (stpy_global_block): New function which
5570 implements the gdb.Symtab.global_block() method.
5571 (stpy_static_block): New function which implements the
5572 gdb.Symtab.static_block() method.
5573 (symtab_object_methods): Add entries for the two new methods.
5574
943cb756
DE
55752012-05-03 Doug Evans <dje@google.com>
5576
5577 * dwarf2read.c (dw2_find_symbol_file): Don't crash if there are no
5578 files.
5579
f4644a3f
YQ
55802012-05-03 Yao Qi <yao@codesourcery.com>
5581
5582 * i386-tdep.c (i386_fetch_pointer_argument): Remove extra
5583 space.
5584 (i386_process_record): Ditto.
5585
ef61f180
JB
55862012-05-02 Joel Brobecker <brobecker@adacore.com>
5587
5588 * infcall.c (unwind_on_signal_p): Make static.
5589
02f1df11
JB
55902012-05-02 Joel Brobecker <brobecker@adacore.com>
5591
5592 * sol-thread.c (solaris_pid_to_str): Make static.
5593 (_initialize_sol_thread): Add prototype.
5594
39023530
JB
55952012-05-02 Joel Brobecker <brobecker@adacore.com>
5596
5597 * sol-thread.c (procfs_pid_to_str): Delete extern declaration.
5598
c6b0c501
CF
55992012-05-02 Christopher Faylor <me.cygwin2012@cgf.cx>
5600
5601 * MAINTAINERS: Remove myself.
5602
1ef71717
JK
56032012-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5604
5605 Fix --without-auto-load-safe-path for MS-Windows host platform.
5606 * auto-load.c (filename_is_in_dir): Return 1 for DIR_LEN 0.
5607
b31b86a7
EZ
56082012-05-02 Eli Zaretskii <eliz@gnu.org>
5609
5610 * gdb_curses.h: Undefine KEY_EVENT before including curses
5611 headers. Move "#undef MOUSE_MOVED" before any curses header
5612 inclusion.
5613
777532fc
SDJ
56142012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
5615
5616 * features/i386/i386-mmx-linux.c: Regenerate.
5617 * features/rs6000/powerpc-32.c: Likewise.
5618 * features/rs6000/powerpc-32l.c: Likewise.
5619 * features/rs6000/powerpc-403.c: Likewise.
5620 * features/rs6000/powerpc-403gc.c: Likewise.
5621 * features/rs6000/powerpc-405.c: Likewise.
5622 * features/rs6000/powerpc-505.c: Likewise.
5623 * features/rs6000/powerpc-601.c: Likewise.
5624 * features/rs6000/powerpc-602.c: Likewise.
5625 * features/rs6000/powerpc-603.c: Likewise.
5626 * features/rs6000/powerpc-604.c: Likewise.
5627 * features/rs6000/powerpc-64.c: Likewise.
5628 * features/rs6000/powerpc-64l.c: Likewise.
5629 * features/rs6000/powerpc-750.c: Likewise.
5630 * features/rs6000/powerpc-860.c: Likewise.
5631 * features/rs6000/powerpc-e500.c: Likewise.
5632 * features/rs6000/powerpc-e500l.c: Likewise.
5633 * features/rs6000/powerpc-isa205-32l.c: Likewise.
5634 * features/rs6000/powerpc-isa205-64l.c: Likewise.
5635 * features/rs6000/rs6000.c: Likewise.
5636
d71871bc
SDJ
56372012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
5638
5639 * i386-tdep.c (i386_stap_parse_special_token) <s>: Remove unused
5640 variable.
5641 * stap-probe.c (stap_parse_single_operand) <reg_suffix,
5642 reg_ind_suffix, reg_suffix_len, reg_ind_suffix_len>: Likewise.
5643 (stap_parse_argument) <e>: Likewise.
5644 (handle_stap_probe) <byte_order>: Likewise.
5645
fd820528
DE
56462012-04-30 Doug Evans <dje@google.com>
5647
5648 * dwarf2read.c (init_cutu_and_read_dies): Renamed from
5649 init_and_read_dies_worker. All callers updated.
5650 (init_cu_and_read_dies, init_tu_and_read_dies): Delete. All calls
5651 replaced with init_cutu_and_read_dies.
5652 (load_partial_comp_unit): Pass 1 for use_existing_cu.
5653 (find_partial_die): Remove FIXME. Don't free current CU.
5654
ec3f619d 56552012-04-30 Sterling Augustine <saugustine@google.com>
be36f02d
SA
5656
5657 * contrib: New directory.
5658 * contrib/test_pubnames_and_indexes.py: New file.
5659
fceca515
DE
56602012-04-30 Doug Evans <dje@google.com>
5661
5662 * dwarf2read.c (dwarf_decode_macros): New arg section_name.
5663 All callers updated.
5664 (init_cu_die_reader): Verify the section is non-empty.
5665 (dwarf_decode_line_header): Don't dereference section->asection
5666 until we know the section is present.
5667
311fe7e1
SDJ
56682012-04-29 Sergio Durigan Junior <sergiodj@redhat.com>
5669
5670 * tracepoint.c (start_tracing, stop_tracing): Checking for NULL
5671 probes.
5672
5977971a
YQ
56732012-04-29 Yao Qi <yao@codesourcery.com>
5674
5675 * gdb-code-style.el: New hook gdb-markup-hook
5676 and gdb-comment-hook.
5677
dee91e82
DE
56782012-04-28 Doug Evans <dje@google.com>
5679
3019eac3
DE
5680 Initial support for Fission. http://gcc.gnu.org/wiki/DebugFission
5681 * symfile.c (default_symfile_relocate): Use sectp->owner instead of
5682 objfile->obfd.
5683 * symfile.h (dwarf2_debug_sections): New member addr.
5684 * dwarf2expr.c (execute_stack_op): New case DW_OP_GNU_addr_index.
5685 (ctx_no_get_addr_index): New function.
5686 * dwarf2expr.h (dwarf_expr_context_funcs): New member get_addr_index.
5687 (ctx_no_get_addr_index): Declare.
5688 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Update.
5689 * dwarf2loc.c (dwarf_expr_get_addr_index): New function.
5690 (dwarf_expr_ctx_funcs): Update.
5691 (needs_get_addr_index): New function.
5692 (needs_frame_ctx_funcs): Update.
5693 * dwarf2loc.h (dwarf2_read_addr_index): Declare.
5694 * dwarf2read.c: #include "gdbcore.h".
5695 (dwarf2_per_objfile): New members addr, dwo_files.
5696 (dwarf2_elf_names): Add entry for addr.
5697 (struct dwo_section_names): New type.
5698 (dwo_section_names): New static global.
5699 (dwarf2_cu): New members dwo_unit, addr_base, have_addr_base.
5700 (dwarf2_per_cu_data): New member is_debug_types, all boolean uses of
5701 old debug_types_section member updated to use this.
5702 Rename member debug_types_section to info_or_types_section,
5703 all uses updated.
5704 (signatured_type): Rename member type_offset to type_offset_in_tu,
5705 all uses updated. New member type_offset_in_section.
5706 (struct dwo_sections): New type.
5707 (struct dwo_unit): New type.
5708 (struct dwo_file): New type.
5709 (die_reader_specs): New member dwo_file.
5710 (dwarf2_locate_sections): Watch for .debug_addr.
5711 (zlib_decompress_section): Use sectp->owner instead of objfile->obfd.
5712 (dwarf2_read_section): Get bfd of section from bfd's asection,
5713 instead of objfile.
5714 (create_cus_from_index): Initialize the_cu->info_or_types_section.
5715 (create_signatured_type_table_from_index): Initialize
5716 sig_type->info_or_types_section.
5717 (dw2_get_file_names): Statement lists for type units with DWO files
5718 live in the DWO file.
5719 (create_debug_types_hash_table): New function.
5720 (create_all_type_units): Rewrite.
5721 (init_cu_die_reader): New arg dwo_file, all callers updated.
5722 (init_and_read_dies_worker): Get section from
5723 this_cu->info_or_types_section. Set sig_type->type_offset_in_section.
5724 Watch for DW_AT_GNU_dwo_name and if present lookup the file and
5725 continue reading the CU/TU from there.
5726 (init_cutu_and_read_dies_no_follow): New arg dwo_file, all callers
5727 updated. Get section from this_cu->info_or_types_section.
5728 (create_all_comp_units): Initialize this_cu->info_or_types_section.
5729 (skip_one_die): New cases DW_FORM_GNU_addr_index,
5730 DW_FORM_GNU_str_index.
5731 (hash_dwo_file, eq_dwo_file): New functions.
5732 (allocate_dwo_file_hash_table): New function.
5733 (hash_dwo_unit, eq_dwo_unit): New functions.
5734 (allocate_dwo_unit_table): New function.
5735 (dwarf2_locate_dwo_sections): New function.
5736 (struct create_dwo_info_table_data): New type.
5737 (create_debug_info_hash_table_reader): New function.
5738 (create_debug_info_hash_table): New function.
5739 (try_open_dwo_file, open_dwo_file, init_dwo_file): New function.
5740 (lookup_dwo_file): New function.
5741 (lookup_dwo_comp_unit, lookup_dwo_type_unit): New functions.
5742 (free_dwo_file, free_dwo_file_cleanup): New functions.
5743 (free_dwo_file_from_slot, free_dwo_files): New functions.
5744 (dwarf2_get_pc_bounds): Handle DW_FORM_GNU_addr_index.
5745 (dwarf2_record_block_ranges): Ditto.
5746 (read_partial_die): Ditto.
5747 (process_enumeration_scope): Update to use type_offset_in_section.
5748 (read_full_die_1): New function.
5749 (read_full_die): Rewrite.
5750 (read_attribute_value): New cases DW_FORM_GNU_addr_index,
5751 DW_FORM_GNU_str_index.
5752 (read_addr_index_1, read_addr_index): New functions.
5753 (read_addr_index_from_leb128): New function.
5754 (struct dwarf2_read_addr_index_data): New type.
5755 (dwarf2_read_addr_index_reader): New function.
5756 (dwarf2_read_addr_index): New function.
5757 (read_str_index): New function.
5758 (leb128_size): New function.
5759 (dwarf_decode_line_header): Delete arg abfd, all callers updated.
5760 If processing a type unit from a DWO file, get the line section
5761 from the DWO file.
5762 (var_decode_location): Watch for DW_OP_GNU_addr_index.
5763 (dwarf2_const_value_attr): New cases DW_FORM_GNU_addr_index,
5764 DW_FORM_GNU_str_index.
5765 (lookup_die_type): Check whether section offset of type's die is
5766 known before looking it up. Remove assert. Condition can
5767 legimately happen for inter-cu type references.
5768 (dwarf_attr_name): Handle Fission attributes.
5769 (dwarf_form_name): Handle Fission forms.
5770 (dump_die_shallow): New cases DW_FORM_GNU_addr_index,
5771 DW_FORM_GNU_str_index.
5772 (follow_die_sig): Update to use type_offset_in_section.
5773 (decode_locdesc): New case DW_OP_GNU_addr_index.
5774 (skip_form_bytes): New cases DW_FORM_GNU_addr_index,
5775 DW_FORM_GNU_str_index.
5776 (cu_debug_loc_section): New function.
5777 (fill_in_loclist_baton, dwarf2_symbol_mark_computed): Call it.
5778 (dwarf2_per_objfile_free): Unmap .debug_addr section.
5779 Free DWO files if present.
5780 * xcoffread.c (dwarf2_xcoff_names): Add .debug_addr.
5781
dee91e82
DE
5782 Refactor DIE reading.
5783 * dwarf2read.c (dwarf2_per_objfile): Replace members
5784 debug_info_type_hash and debug_types_type_hash with die_type_hash.
5785 (die_reader_specs): New member "die_section". Temporarily make
5786 member "buffer" non-const, pending constifying all info_ptr uses.
5787 (die_reader_func_ftype): New typedef.
5788 (dw2_get_file_names_reader): New function.
5789 (dw2_get_file_names): Rewrite.
5790 (read_and_check_type_unit_head): Rename arg type_offset to
5791 type_offset_in_tu.
5792 (create_all_type_units): Improve debugging message.
5793 Improve dummy type unit check.
5794 (init_cu_die_reader): New arg "section". All callers updated.
5795 (init_and_read_dies_worker): New function.
5796 (init_cu_and_read_dies, init_tu_and_read_dies): New functions.
5797 (init_cutu_and_read_dies_no_follow): New function.
5798 (init_cutu_and_read_dies_simple): New function.
5799 (process_psymtab_comp_unit_reader): New function.
5800 (process_psymtab_comp_unit): Delete args section,
5801 is_debug_types_section. Rewrite. All callers updated.
5802 (process_psymtab_type_unit): Renamed from process_type_comp_unit.
5803 All callers updated. Rewrite.
5804 (load_partial_comp_unit_reader): New function.
5805 (load_partial_comp_unit): Rewrite.
5806 (skip_children): New arg reader. Delete args buffer, cu.
5807 All callers updated.
5808 (skip_one_die): New arg reader. Delete args buffer, cu.
5809 All callers updated.
5810 (locate_pdi_sibling): New arg reader. Delete args buffer, abfd, cu.
5811 All callers updated.
5812 (load_full_comp_unit_reader): New function.
5813 (load_full_comp_unit): Rewrite.
5814 (read_comp_unit): Delete.
5815 (read_die_and_children_1): Delete, contents moved ...
5816 (read_die_and_children): ... here.
5817 (dwarf2_read_abbrevs): New arg abbrev_section. All callers updated.
5818 (load_partial_dies): New arg reader. Delete args abfd, buffer, cu.
5819 All callers updated.
5820 (read_partial_die): New arg reader. Delete args abfd, buffer, cu.
5821 All callers updated.
5822 (find_partial_die): Rewrite load_all_dies support.
5823 (read_attribute_value): New arg reader. Delete args abfd, cu.
5824 All callers updated.
5825 (read_attribute): New arg reader. Delete args abfd, cu.
5826 All callers updated.
5827 (load_full_type_unit): Add assert.
5828 (read_signatured_type_reader): New function.
5829 (read_signatured_type): Rewrite.
5830 (free_stack_comp_unit): Remove call to age_cached_comp_units.
5831 (free_one_cached_comp_unit): Change target_cu arg to target_per_cu.
5832 All callers updated. Set per_cu->cu = NULL after freeing it.
5833 (dwarf2_per_cu_offset_and_type): Renamed from dwarf2_offset_and_type.
5834 (per_cu_offset_and_type_hash): Renamed from offset_and_type_hash.
5835 (per_cu_offset_and_type_eq): Renamed from offset_and_type_eq.
5836 (set_die_type): Update.
5837 (get_die_type_at_offset): Update.
5838 (read_file_scope): Call prepare_one_comp_unit.
5839 (read_type_unit_scope): Ditto.
5840 (prepare_one_comp_unit): Set producer if present.
5841
72d59e0d
SDJ
58422012-04-28 Sergio Durigan Junior <sergiodj@redhat.com>
5843
5844 * probe.c (compile_rx_or_error): Silence ARI warning about missing
5845 gettext function on `error'.
5846
0fefef59
DE
58472012-04-27 Doug Evans <dje@google.com>
5848
5849 * dwarf2read.c (dwarf2_read_index): Don't use index if symbol table
5850 is empty.
5851
28106bc2
SDJ
58522012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
5853 Tom Tromey <tromey@redhat.com>
5854
5855 * breakpoint.c (struct breakpoint_objfile_data)
5856 <longjmp_searched>,<longjmp_probes>,<exception_searched>,
5857 <exception_probes>: New fields.
5858 (free_breakpoint_probes): New function.
5859 (create_longjmp_master_breakpoint): Prefer SystemTap probe over
5860 `_Unwind_DebugHook'.
5861 (create_exception_master_breakpoint): Likewise.
5862 (_initialize_breakpoint): Registering cleanup for SystemTap probes.
5863 * infrun.c: Including necessary header files for handling SystemTap
5864 probes.
5865 (handle_inferior_event): Handling longjmp breakpoint and exceptions
5866 via SystemTap probes.
5867 (check_exception_resume): Remove `func' argument. Handle exception
5868 unwinding breakpoint set via a SystemTap probe.
5869 (insert_exception_resume_from_probe): New function.
5870
55aa24fb
SDJ
58712012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
5872 Tom Tromey <tromey@redhat.com>
5873 Jan Kratochvil <jan.kratochvil@redhat.com>
5874
5875 * Makefile.in (SFILES): Add `probe' and `stap-probe'.
5876 (COMMON_OBS): Likewise.
5877 (HFILES_NO_SRCDIR): Add `probe'.
5878 * NEWS: Mention support for static and SystemTap probes.
5879 * amd64-tdep.c (amd64_init_abi): Initializing proper fields used by
5880 SystemTap probes' arguments parser.
5881 * arm-linux-tdep.c: Including headers needed to perform the parsing
5882 of SystemTap probes' arguments.
5883 (arm_stap_is_single_operand): New function.
5884 (arm_stap_parse_special_token): Likewise.
5885 (arm_linux_init_abi): Initializing proper fields used by SystemTap
5886 probes' arguments parser.
5887 * ax-gdb.c (require_rvalue): Removing static declaration.
5888 (gen_expr): Likewise.
5889 * ax-gdb.h (gen_expr): Declaring function.
5890 (require_rvalue): Likewise.
5891 * breakpoint.c: Include `gdb_regex.h' and `probe.h'.
5892 (bkpt_probe_breakpoint_ops): New variable.
5893 (momentary_breakpoint_from_master): Set the `probe' value.
5894 (add_location_to_breakpoint): Likewise.
5895 (break_command_1): Using proper breakpoint_ops according to the
5896 argument passed by the user in the command line.
5897 (bkpt_probe_insert_location): New function.
5898 (bkpt_probe_remove_location): Likewise.
5899 (bkpt_probe_create_sals_from_address): Likewise.
5900 (bkpt_probe_decode_linespec): Likewise.
5901 (tracepoint_probe_create_sals_from_address): Likewise.
5902 (tracepoint_probe_decode_linespec): Likewise.
5903 (tracepoint_probe_breakpoint_ops): New variable.
5904 (trace_command): Using proper breakpoint_ops according to the
5905 argument passed by the user in the command line.
5906 (initialize_breakpoint_ops): Initializing breakpoint_ops for
5907 static probes on breakpoints and tracepoints.
5908 * breakpoint.h (struct bp_location) <probe>: New field.
5909 * cli-utils.c (skip_spaces_const): New function.
5910 (extract_arg): Likewise.
5911 * cli-utils.h (skip_spaces_const): Likewise.
5912 (extract_arg): Likewise.
5913 * coffread.c (coff_sym_fns): Add `sym_probe_fns' value.
5914 * configure.ac: Append `stap-probe.o' to be generated when ELF
5915 support is present.
5916 * configure: Regenerate.
5917 * dbxread.c (aout_sym_fns): Add `sym_probe_fns' value.
5918 * elfread.c: Include `probe.h' and `arch-utils.h'.
5919 (probe_key): New variable.
5920 (elf_get_probes): New function.
5921 (elf_get_probe_argument_count): Likewise.
5922 (elf_evaluate_probe_argument): Likewise.
5923 (elf_compile_to_ax): Likewise.
5924 (elf_symfile_relocate_probe): Likewise.
5925 (stap_probe_key_free): Likewise.
5926 (elf_probe_fns): New variable.
5927 (elf_sym_fns): Add `sym_probe_fns' value.
5928 (elf_sym_fns_lazy_psyms): Likewise.
5929 (elf_sym_fns_gdb_index): Likewise.
5930 (_initialize_elfread): Initialize objfile cache for static
5931 probes.
5932 * gdb_vecs.h (struct probe): New forward declaration.
5933 (probe_p): New VEC declaration.
5934 * gdbarch.c: Regenerate.
5935 * gdbarch.h: Regenerate.
5936 * gdbarch.sh (stap_integer_prefix): New variable.
5937 (stap_integer_suffix): Likewise.
5938 (stap_register_prefix): Likewise.
5939 (stap_register_suffix): Likewise.
5940 (stap_register_indirection_prefix): Likewise.
5941 (stap_register_indirection_suffix): Likewise.
5942 (stap_gdb_register_prefix): Likewise.
5943 (stap_gdb_register_suffix): Likewise.
5944 (stap_is_single_operand): New function.
5945 (stap_parse_special_token): Likewise.
5946 (struct stap_parse_info): Forward declaration.
5947 * i386-tdep.c: Including headers needed to perform the parsing
5948 of SystemTap probes' arguments.
5949 (i386_stap_is_single_operand): New function.
5950 (i386_stap_parse_special_token): Likewise.
5951 (i386_elf_init_abi): Initializing proper fields used by SystemTap
5952 probes' arguments parser.
5953 * i386-tdep.h (i386_stap_is_single_operand): New function.
5954 (i386_stap_parse_special_token): Likewise.
5955 * machoread.c (macho_sym_fns): Add `sym_probe_fns' value.
5956 * mipsread.c (ecoff_sym_fns): Likewise.
5957 * objfiles.c (objfile_relocate1): Support relocation for static
5958 probes.
5959 * parse.c (prefixify_expression): Remove static declaration.
5960 (initialize_expout): Likewise.
5961 (reallocate_expout): Likewise.
5962 * parser-defs.h (initialize_expout): Declare function.
5963 (reallocate_expout): Likewise.
5964 (prefixify_expression): Likewise.
5965 * ppc-linux-tdep.c: Including headers needed to perform the parsing
5966 of SystemTap probes' arguments.
5967 (ppc_stap_is_single_operand): New function.
5968 (ppc_stap_parse_special_token): Likewise.
5969 (ppc_linux_init_abi): Initializing proper fields used by SystemTap
5970 probes' arguments parser.
5971 * probe.c: New file, for generic statically defined probe support.
5972 * probe.h: Likewise.
5973 * s390-tdep.c: Including headers needed to perform the parsing of
5974 SystemTap probes' arguments.
5975 (s390_stap_is_single_operand): New function.
5976 (s390_gdbarch_init): Initializing proper fields used by SystemTap
5977 probes' arguments parser.
5978 * somread.c (som_sym_fns): Add `sym_probe_fns' value.
5979 * stap-probe.c: New file, for SystemTap probe support.
5980 * stap-probe.h: Likewise.
5981 * symfile.h: Include `gdb_vecs.h'.
5982 (struct sym_probe_fns): New struct.
5983 (struct sym_fns) <sym_probe_fns>: New field.
5984 * symtab.c (init_sal): Initialize `probe' field.
5985 * symtab.h (struct probe): Forward declaration.
5986 (struct symtab_and_line) <probe>: New field.
5987 * tracepoint.c (start_tracing): Adjust semaphore on breakpoints
5988 locations.
5989 (stop_tracing): Likewise.
5990 * xcoffread.c (xcoff_sym_fns): Add `sym_probe_fns' value.
5991
22d2b532
SDJ
59922012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
5993 Tom Tromey <tromey@redhat.com>
5994
5995 * ax-gdb.c (gen_expr): Clean up code to handle internal variables
5996 and to compile agent expressions.
5997 * infrun.c (siginfo_make_value): New argument `ignore'.
5998 (siginfo_funcs): New struct.
5999 (_initialize_infrun): New argument when calling
6000 `create_internalvar_type_lazy'.
6001 * thread.c (thread_id_make_value): New argument `ignore'.
6002 (thread_funcs): New struct.
6003 (_initialize_thread): New argument when calling
6004 `create_internalvar_type_lazy'.
6005 * tracepoint.c (sdata_make_value): New argument `ignore'.
6006 (sdata_funcs): New struct.
6007 (_initialize_tracepoint): New argument when calling
6008 `create_internalvar_type_lazy'.
6009 * value.c (make_value): New struct.
6010 (create_internalvar_type_lazy): New argument `data'.
6011 (compile_internalvar_to_ax): New function.
6012 (value_of_internalvar): Properly handling `make_value' case.
6013 (clear_internalvar): Likewise.
6014 (show_convenience): Adding `TRY_CATCH' block.
6015 * value.h (internalvar_make_value): Delete, replace by...
6016 (struct internalvar_funcs): ... this.
6017 (create_internalvar_type_lazy) <fun>: Delete argument.
6018 (create_internalvar_type_lazy) <funcs>, <data>: New arguments.
6019 (compile_internalvar_to_ax): New function.
6020 * windows-tdep.c (tlb_make_value): New argument `ignore'.
6021 (tlb_funcs): New struct.
6022 (_initialize_windows_tdep): New argument when calling
6023 `create_internalvar_type_lazy'.
6024
91da1414
MW
60252012-04-27 Mark Wielaard <mjw@redhat.com>
6026
6027 * dwarf2read.c (dwarf2_get_pc_bounds): Check DW_AT_high_pc form to
6028 see whether it is an address or a constant offset from DW_AT_low_pc.
6029 (dwarf2_record_block_ranges): Likewise.
6030 (read_partial_die): Likewise.
6031
4ab9d8ec
MW
60322012-04-26 Mark Wielaard <mjw@redhat.com>
6033
6034 * MAINTAINERS (Write After Approval): Add myself to the list.
6035
a0911fd0
MR
60362012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
6037
6038 * proc-utils.h (proc_prettyprint_signalset): New prototype.
6039 (proc_prettyprint_signal): Likewise.
6040 (proc_prettyprint_faultset): Likewise.
6041 (proc_prettyprint_fault): Likewise.
6042 (proc_prettyprint_actionset): Likewise.
6043 (proc_prettyprint_flags): Move to new proc-flags.c section.
6044 (proc_prettyfprint_flags): New prototype.
6045 * procfs.c (proc_nsysarg, proc_sysargs): Add prototypes.
6046 (proc_syscall, proc_cursig): Likewise.
6047 (proc_set_kill_on_last_close): Likewise.
6048 (proc_unset_kill_on_last_close): Likewise.
6049 (proc_set_watchpoint): Make static.
6050 (proc_delete_dead_threads): Likewise.
6051 (procfs_set_watchpoint): Likewise.
6052 (_initialize_procfs): Add prototype.
6053 * proc-events.c: Include proc-utils.h.
6054 (init_syscall_table): Make static.
6055 * proc-api.c (_initialize_proc_api): Add prototype.
6056 * proc-flags.c: Include proc-utils.h.
6057
9009e1ae
MR
60582012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
6059
6060 * configure.ac: Add AC_ARG_PROGRAM.
6061 * configure: Regenerate.
6062
4fae6e18
JK
60632012-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
6064
6065 Fix DW_AT_lower_bound defaults for DWARF-4+.
6066 * dwarf2read.c (read_subrange_type): Remove initialization of low and
6067 high. New variable low_default_is_valid. Implement DWARF-4+
6068 DW_AT_lower_bound defaults. Print complaint for DW_AT_lower_bound with
6069 no default by the DWARF standard.
6070
14132e89 60712012-04-26 Maciej W. Rozycki <macro@mips.com>
f782ad9b 6072 Maciej W. Rozycki <macro@codesourcery.com>
14132e89
MR
6073
6074 * infrun.c (handle_inferior_event): Move the check for return
6075 trampolines ahead of the check for function trampolines.
6076 * mips-tdep.h (MIPS_S2_REGNUM, MIPS_GP_REGNUM): New macros.
6077 * mips-tdep.c (mips_str_mips16_call_stub): New variable.
6078 (mips_str_mips16_ret_stub): Likewise.
6079 (mips_str_call_fp_stub): Likewise.
6080 (mips_str_call_stub): Likewise.
6081 (mips_str_fn_stub): Likewise.
6082 (mips_str_pic): Likewise.
6083 (mips_in_frame_stub): New function.
6084 (mips_unwind_pc): Return the return address rather than the PC
6085 if the PC of an intermediate frame is inside a call thunk.
6086 (mips_is_stub_suffix): New function.
6087 (mips_is_stub_mode): Likewise.
6088 (mips_get_mips16_fn_stub_pc): Likewise.
6089 (mips_skip_mips16_trampoline_code): Update to handle all the
6090 currently generated stub types. Don't recurse into __fn_stub
6091 thunks. Remove heuristics to handle stubs beyond etext/_etext.
6092 Use cooked register accesses.
6093 (mips_in_return_stub): Reintroduce function.
6094 (mips_skip_trampoline_code): Traverse trampolines recursively.
6095 (mips_gdbarch_init): Handle MIPS16 return trampolines.
6096
518f0db5 60972012-04-26 Joel Brobecker <brobecker@adacore.com>
6098
6099 GDB 7.4.1 released.
6100
3184d3f9
JL
61012012-04-26 Jonathan Larmour <jifl@eCosCentric.com>
6102
6103 * arm-tdep.h (VFP_REGISTER_SIZE): Define.
6104 * features/arm-with-m-vfp-d16.xml: New file. Describes
6105 Cortex-M with VFPv4-sp-d16 FPU register layout.
6106 * features/Makefile (WHICH): Add arm-with-m-vfp-d16.
6107 * features/arm-with-m-vfp-d16.c: New. Generated from above.
6108 * arm-tdep.c: Include arm-with-m-vfp-d16.c.
6109 (arm-register_g_packet_guesses): Add vfp-d16 guess.
6110 (_initialise_arm_tdep): Initialize arm-with-m-vfp-d16 tdesc.
6111
b6201d44
DE
61122012-04-25 Doug Evans <dje@google.com>
6113
6114 * cli/cli-decode.c (print_doc_line): Use stream instead of
6115 current_uiout.
6116
4e2f8df6
SDJ
61172012-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
6118
6119 * features/arm-with-iwmmxt.c: Regenerate.
6120 * features/arm-with-m-fpa-layout.c: Likewise.
6121 * features/arm-with-m.c: Likewise.
6122 * features/arm-with-neon.c: Likewise.
6123 * features/arm-with-vfpv2.c: Likewise.
6124 * features/arm-with-vfpv3.c: Likewise.
6125 * features/mips-dsp-linux.c: Likewise.
6126 * features/mips-linux.c: Likewise.
6127 * features/mips64-dsp-linux.c: Likewise.
6128 * features/mips64-linux.c: Likewise.
6129 * features/s390-linux32.c: Likewise.
6130 * features/s390-linux32v1.c: Likewise.
6131 * features/s390-linux32v2.c: Likewise.
6132 * features/s390-linux64.c: Likewise.
6133 * features/s390-linux64v1.c: Likewise.
6134 * features/s390-linux64v2.c: Likewise.
6135 * features/s390x-linux64.c: Likewise.
6136 * features/s390x-linux64v1.c: Likewise.
6137 * features/s390x-linux64v2.c: Likewise.
6138 * features/tic6x-c62x-linux.c: Likewise.
6139 * features/tic6x-c62x.c: Likewise.
6140 * features/tic6x-c64x-linux.c: Likewise.
6141 * features/tic6x-c64x.c: Likewise.
6142 * features/tic6x-c64xp-linux.c: Likewise.
6143 * features/tic6x-c64xp.c: Likewise.
6144 * target-descriptions.c: Only generate `field_type' and `type'
6145 variables when needed.
6146
2def3e66
JB
61472012-04-25 Fredrik Hederstierna <fredrikh.hederstierna@securitas-direct.com>
6148
6149 * cli/cli-cmds.c (cd_command): Use memmove instead of strcpy.
6150
a766d390
DE
61512012-04-25 Doug Evans <dje@google.com>
6152
6153 Initial pass at Go language support.
6154 * NEWS: Mention Go.
6155 * Makefile.in (SFILES): Add go-exp.y, go-lang.c, go-typeprint.c,
6156 go-valprint.c.
6157 (COMMON_OBS): Add go-lang.o, go-val.print.o, go-typeprint.o.
6158 (YYFILES): Add go-exp.c.
6159 (YYOBJ): Add go-exp.o.
6160 (local-maintainer-clean): Delete go-exp.c.
6161 * defs.h (enum language): Add language_go.
6162 * dwarf2read.c: #include "go-lang.h".
6163 (fixup_go_packaging): New function.
6164 (process_full_comp_unit): Call it when processing Go CUs.
6165 (dwarf2_physname): Add Go support.
6166 (read_file_scope): Handle missing language spec for GNU Go.
6167 (set_cu_language): Handle DW_LANG_Go.
6168 * go-exp.y: New file.
6169 * go-lang.h: New file.
6170 * go-lang.c: New file.
6171 * go-typeprint.c: New file.
6172 * go-valprint.c: New file.
6173 * symtab.c: #include "go-lang.h".
6174 (symbol_set_language): Handle language_go.
6175 (symbol_find_demangled_name, symbol_set_names): Ditto.
6176 (symbol_natural_name, demangle_for_lookup, find_main_name): Ditto.
6177
4e2af517
JM
61782012-04-24 Jim Meyering <meyering@redhat.com>
6179
6180 avoid a few strncpy-induced buffer overruns
6181 * procfs.c (procfs_make_note_section): Be sure to NUL-terminate
6182 fname and psargs before trying to concatenate.
6183 * tui/tui-stack.c (tui_get_function_from_frame): NUL-terminate
6184 "name" before applying strchr.
6185
b77b7f52
SCR
61862012-04-25 Siva Chandra Reddy <sivachandra@google.com>
6187
6188 * CONTRIBUTE: Use unified diff instead of context diff when
6189 generating patches.
6190
6321c22a
MR
61912012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
6192
6193 * mips-tdep.c (mips_about_to_return): Remove dead MIPS16 support
6194 code. Handle JR.HB correctly.
6195
742c84f6
MR
61962012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
6197
6198 * mips-tdep.c
6199 (is_mips16_addr, unmake_mips16_addr, make_mips16_addr): Group
6200 with the other MIPS16 helpers.
6201
7fc7e0c3
SDJ
62022012-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
6203
6204 * observer.sh: Conditionally declare `args', thus cleaning up
6205 unused instances of this variable.
6206
20388dd6
YQ
62072012-04-24 Yao Qi <yao@codesourcery.com>
6208
6209 Revert this patch to allow breakpoint always-inserted
6210 in record target.
6211 2011-12-05 Pedro Alves <pedro@codesourcery.com>
f782ad9b
AS
6212 * breakpoint.c: Include record.h.
6213 (breakpoints_always_inserted_mode): Return false when the record
6214 target is in use.
20388dd6
YQ
6215
6216 * breakpoint.c (iterate_over_bp_locations): New.
6217 * breakpoint.h: Declare.
6218 New typedef walk_bp_location_callback.
6219 * record.c (record_open): Call record_init_record_breakpoints.
6220 (record_sync_record_breakpoints): New.
6221 (record_init_record_breakpoints): New.
6222 * NEWS: Mention supporting breakpoint always-inserted mode in
6223 record target.
6224
4734f50e
MK
62252012-04-24 Marc Khouzam <marc.khouzam@ericsson.com>
6226
6227 * mi/mi-main.c (mi_cmd_execute): Choose a live thread not just
6228 any thread.
6229
c326b90e
YQ
62302012-04-24 Yao Qi <yao@codesourcery.com>
6231
6232 * breakpoint.c (ep_is_catchpoint): Renamed to ...
6233 (is_catchpoint): ... it.
6234 (print_one_breakpoint_location): Caller update.
6235 * breakpoint.h: Update declaration.
6236
d8fb5a1e
DM
62372012-04-23 David S. Miller <davem@davemloft.net>
6238
6239 * configure.tgt (sparc-*-linux*): Set build_gdbserver to yes.
6240
34431a2a
TT
62412012-04-23 Tom Tromey <tromey@redhat.com>
6242
6243 * buildsym.c (add_free_pendings): Remove.
6244 * buildsym.h (add_free_pendings): Remove.
6245
4568ecf9
DE
62462012-04-23 Doug Evans <dje@google.com>
6247
6248 * dwarf2read.c (partial_die_full_name): Record DW_FORM_ref_addr in
6249 attr.u.unsnd instead of attr.u.addr.
6250 (read_attribute_value) Ditto for cases DW_FORM_ref_addr,
6251 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4, DW_FORM_reg8,
6252 DW_FORM_ref_udata.
6253 (dump_die_shallow): Update cases DW_FORM_ref_addr,
6254 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4. Add cases DW_FORM_ref8,
6255 DW_FORM_ref_udata.
6256 (dwarf2_get_ref_die_offset): Use DW_UNSND for reference attributes.
6257
dca9aa3a
MR
62582012-04-23 Maciej W. Rozycki <macro@codesourcery.com>
6259
6260 * mips-tdep.c (mips_n32n64_return_value): Fix coding style.
6261 (mips_o32_return_value): Likewise.
6262 (mips_o64_return_value): Likewise.
6263
c8ea1972
PH
62642012-04-21 Paul Hilfinger <hilfinger@adacore.com>
6265
6266 * ada-lang.c (ada_evaluate_subexp): Add cases for
f782ad9b
AS
6267 TYPE_CODE_INTERNAL_FUNCTION and for TYPE_GNU_IFUNC, following
6268 their treatment in eval.c.
c8ea1972 6269
8d1b3521
DM
62702012-04-21 David S. Miller <davem@davemloft.net>
6271
6272 * sparc-tdep.c (X_DISP10): Define.
6273 (sparc_analyze_control_transfer): Handle compare-and-branch.
6274
03145bf4
JL
62752012-04-21 Jonathan Larmour <jifl@eCosCentric.com>
6276
6277 * features/Makefile (WHICH): Add arm-with-m and arm-with-m-fpa-layout.
6278 * arm-tdep.c (arm_register_g_packet_guesses): Fix comment.
6279
004159a2 62802012-04-20 Nigel Stephens <nigel@mips.com>
f782ad9b 6281 Maciej W. Rozycki <macro@codesourcery.com>
004159a2
MR
6282
6283 * mips-tdep.c (mips_float_register_p): New function.
6284 (mips_convert_register_float_case_p): Use mips_float_register_p.
6285 (mips_register_type): Likewise.
6286 (mips_print_register): Likewise.
6287 (print_gp_register_row): Likewise.
6288 (mips_print_registers_info): Likewise.
6289
7f0e6aae
MR
62902012-04-20 Shun-Yen Lu <dark.asparagus@gmail.com>
6291
6292 * mips-tdep.c (mips_elf_make_msymbol_special): Fix identification
6293 of mips16 symbols.
6294
bc17beea
AP
62952012-04-20 Andrew Pinski <apinski@cavium.com>
6296
6297 * MAINTAINERS (Write After Approval): Add myself to the list.
6298
1730a5a5
SDJ
62992012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
6300
6301 * MAINTAINERS: Update my e-mail address.
6302
38ea300a
PA
63032012-04-20 Pedro Alves <palves@redhat.com>
6304
6305 * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Handle absolute
6306 $srcdir.
6307 * configure: Regenerate.
6308
111dfaae
SDJ
63092012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
6310
6311 * cp-support.h: Include `gdb_vecs.h'. Delete `const_char_ptr' VEC
6312 declaration.
6313 * gdb_vecs.h: Declare `const_char_ptr' VEC.
6314
4fb2c64a
JK
63152012-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6316
6317 Fix compilation compatibility with python-2.4
6318 * python/py-type.c (convert_field): Cast ADDRSTRING for
6319 PyObject_SetAttrString as non-const. New comment.
6320
6328eb38
TT
63212012-04-19 Tom Tromey <tromey@redhat.com>
6322
6323 * top.c (quit_target): Use all_cleanups.
6324 * main.c (captured_command_loop): Use all_cleanups.
6325 * exceptions.c (throw_exception): Use all_cleanups.
6326
c971b7fa
PA
63272012-04-19 Pedro Alves <palves@redhat.com>
6328
6329 * Makefile.in (GNULIB_BUILDDIR): New.
6330 (LIBGNU, INCGNU, GNULIB_H): Adjust.
6331 (SUBDIRS): Add $(GNULIB_BUILDDIR).
6332 (CLEANDIRS). Remove gnulib/import.
6333 (REQUIRED_SUBDIRS): Replace gnulib/import with $(GNULIB_BUILDDIR).
6334 (all-lib): Ditto.
6335 (distclean): Remove the $(GNULIB_BUILDDIR) directory.
6336 (gnulib/import/Makefile): Replace gnulib/import with
6337 $(GNULIB_BUILDDIR). Set CONFIG_FILES to just Makefile.
6338 (ACLOCAL_AMFLAGS): Remove '-I gnulib/import/m4'.
6339 (aclocal_m4_deps): Remove the gnulib dependencies. Add
6340 acx_configure_dir.m4.
6341 * acinclude.m4: Include acx_configure_dir.m4.
6342 * acx_configure_dir.m4: New file.
6343 * aclocal.m4: Regenerate.
a09130f9
PA
6344 * configure.ac: Remove gl_EARLY, gl_INIT and AM_INIT_AUTOMAKE
6345 calls. Configure gnulib using ACX_CONFIGURE_DIR.
6346 (GNULIB): New variable.
6347 (GNULIB_STDINT_H): Adjust.
6348 (AC_OUTPUT): Don't output gnulib/Makefile.
6349 * gdb/defs.h: Include build-gnulib/config.h.
6350 * aclocal.m4: Regenerate.
6351 * config.in: Regenerate.
6352 * configure: Regenerate.
6353
6354 * gnulib/Makefile.in: New file.
6355 * gnulib/configure.ac: New file.
6356 * gnulib/aclocal.m4: New file.
6357 * gnulib/config.in: New file.
6358 * gnulib/configure: New file.
c971b7fa
PA
6359 * gnulib/: Re-run gnulib-tool to adjust.
6360
b10faa68
DE
63612012-04-19 Doug Evans <dje@google.com>
6362
6363 * cleanups.h (struct cleanup): Move to cleanups.c.
6364 (make_cleanup_dtor_ftype): New typedef.
6365 (make_cleanup_dtor): Use it.
6366 (ALL_CLEANUPS): Replace with ...
6367 (all_cleanups): ... this. Declare. All uses updated.
6368 * cleanups.c: #include "gdb_assert.h".
6369 (sentinel_cleanup): New static global.
6370 (SENTINEL_CLEANUP): Define.
6371 (cleanup_chain, final_cleanup_chain): Initialize to SENTINEL_CLEANUP.
6372 (make_my_cleanup2): Assert result is non-NULL.
6373 (all_cleanups): New function.
6374 (save_my_cleanups): Initialize new chain to SENTINEL_CLEANUP instead
6375 of NULL.
6376
d8c267cc
PA
63772012-04-19 Pedro Alves <palves@redhat.com>
6378
6379 * Makefile.in (HFILES_NO_SRCDIR): Remove gnulib/wchar.in.h.
6380 Adjust paths to gnulib imported files.
6381
809277f8
PA
63822012-04-19 Pedro Alves <palves@redhat.com>
6383
6384 * gnulib/: Move whole directory ...
6385 * gnulib/import/: ... here, and re-rerun gnulib-tool to adjust.
6386 * Makefile.in (LIBGNU, INCGNU, GNULIB_H, CLEANDIRS)
6387 (REQUIRED_SUBDIRS, all-lib, gnulib/Makefile, ACLOCAL_AMFLAGS)
6388 (aclocal_m4_deps): Adjust.
6389 * aclocal.m4: Regenerate.
6390 * configure: Regenerate.
6391 * configure.ac: Adjust AC_OUTPUT output.
6392
aad9eab9
YQ
63932012-04-19 Yao Qi <yao@codesourcery.com>
6394
6395 * Makefile.in (SFILES): Add common/vec.c and remove vec.c.
6396 (vec.o): New rule.
6397 * vec.c: Move it ...
6398 * common/vec.c: ... here.
6399 * vec.h: Move it ...
6400 * common/vec.h: ... here.
6401
48fe4669
YQ
64022012-04-19 Yao Qi <yao@codesourcery.com>
6403
6404 * gdb-code-style.el: New.
6405
770d76d7
PA
64062012-04-18 Pedro Alves <palves@redhat.com>
6407
6408 Update gnulib from latest git.
6409 (639ea5ae15e39fe48d43e04864b2997301e4b969)
6410
6411 * gnulib/Makefile.am: Update.
6412 * gnulib/dummy.c: Update.
6413 * gnulib/extra/arg-nonnull.h: Update.
6414 * gnulib/extra/c++defs.h: Update.
6415 * gnulib/extra/update-copyright: Update.
6416 * gnulib/extra/warn-on-use.h: Update.
6417 * gnulib/inttypes.in.h: Update.
6418 * gnulib/m4/00gnulib.m4: Update.
6419 * gnulib/m4/extensions.m4: Update.
6420 * gnulib/m4/gnulib-cache.m4: Update.
6421 * gnulib/m4/gnulib-common.m4: Update.
6422 * gnulib/m4/gnulib-comp.m4: Update.
6423 * gnulib/m4/gnulib-tool.m4: Update.
6424 * gnulib/m4/include_next.m4: Update.
6425 * gnulib/m4/inttypes-pri.m4: Update.
6426 * gnulib/m4/inttypes.m4: Update.
6427 * gnulib/m4/longlong.m4: Update.
6428 * gnulib/m4/memchr.m4: Update.
6429 * gnulib/m4/memmem.m4: Update.
6430 * gnulib/m4/mmap-anon.m4: Update.
6431 * gnulib/m4/multiarch.m4: Update.
6432 * gnulib/m4/onceonly.m4: Update.
6433 * gnulib/m4/stddef_h.m4: Update.
6434 * gnulib/m4/stdint.m4: Update.
6435 * gnulib/m4/string_h.m4: Update.
6436 * gnulib/m4/warn-on-use.m4: Update.
6437 * gnulib/m4/wchar_h.m4: Update.
6438 * gnulib/m4/wchar_t.m4: Update.
6439 * gnulib/m4/wint_t.m4: Update.
6440 * gnulib/memchr.c: Update.
6441 * gnulib/memmem.c: Update.
6442 * gnulib/stddef.in.h: Update.
6443 * gnulib/stdint.in.h: Update.
6444 * gnulib/str-two-way.h: Update.
6445 * gnulib/string.in.h: Update.
6446 * gnulib/wchar.in.h: Update.
6447
6448 * gnulib/extra/arg-nonnull.h: Delete.
6449 * gnulib/extra/c++defs.h: Delete.
6450 * gnulib/extra/warn-on-use.h: Delete.
6451 * gnulib/m4/wchar_h.m4: Delete.
6452 * gnulib/m4/wint_t.m4: Delete.
6453 * gnulib/wchar.in.h: Delete.
6454
6455 * gnulib/extra/snippets/arg-nonnull.h: New.
6456 * gnulib/extra/snippets/c++defs.h: New.
6457 * gnulib/extra/snippets/warn-on-use.h: New.
6458
6459 * aclocal.m4: Regenerate.
6460 * config.in: Regenerate.
6461 * configure: Regenerate.
6462 * gnulib/Makefile.in: Regenerate.
6463
174e088e
PA
64642012-04-18 Pedro Alves <palves@redhat.com>
6465
6466 Reimport the update-copyright module from gnulib
6467 (250b80067c1e1d8faa0c42fb572f721975b929c5).
6468
6469 * configure: Regenerate.
6470 * gnulib/Makefile.am: Update.
6471 * gnulib/Makefile.in: Regenerate.
6472 * gnulib/extra/update-copyright: Update.
6473 * gnulib/m4/gnulib-cache.m4: Update.
6474 * gnulib/m4/gnulib-comp.m4: Update.
6475
7f533142
JB
64762012-04-18 Tristan Gingold <gingold@adacore.com>
6477
6478 * configure.ac (aix): Put -lpthread into libs.
6479 * configure: Regenerate.
6480
001822aa
TT
64812012-04-18 Tom Tromey <tromey@redhat.com>
6482
6483 * linespec.c (convert_linespec_to_sals): Don't use
6484 SYMBOL_OBJ_SECTION.
6485 (compare_msymbols): Arguments are minsym_and_objfile, not
6486 minimal_symbol*. Don't use SYMBOL_OBJ_SECTION.
6487
db026a31
PA
64882012-04-18 Pedro Alves <palves@redhat.com>
6489
6490 Revert gnulib/ part of:
6491 2011-01-01 Joel Brobecker <brobecker@adacore.com>
6492 Copyright year update in most files (performed by copyright.sh).
6493
12df843f
JK
64942012-04-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6495
6496 Fix 64-bit constants on 32-bit hosts.
6497 * dwarf2read.c (read_unsigned_leb128): Change declaration return type
6498 from unsigned long to ULONGEST.
6499 (read_signed_leb128): Change declaration return type from long to
6500 LONGEST.
6501 (dwarf2_const_value_attr): Change declaration parameter value from long
6502 to LONGEST.
6503 (dwarf2_compute_name): Change variable value from long to LONGEST.
6504 (read_unsigned_leb128): Change return type, variable result and some
6505 casts from unsigned long to ULONGEST.
6506 (read_signed_leb128): Change return type, variable result and some
6507 casts from long to LONGEST.
6508 (dwarf2_const_value_data, dwarf2_const_value_attr): Change parameter
6509 value from long to LONGEST.
6510 (dwarf2_const_value): Change variable value from long to LONGEST.
6511 * symmisc.c (print_symbol): Change SYMBOL_VALUE format strings to use
6512 plongest and hex_string.
6513 * symtab.h (struct general_symbol_info): Change ivalue from long to
6514 LONGEST, remove the comment.
6515 * tracepoint.c (validate_actionline, collect_symbol, scope_info):
6516 Change SYMBOL_VALUE format strings to use plongest and hex_string.
6517
14e75d8e
JK
65182012-04-18 Siddhesh Poyarekar <siddhesh@redhat.com>
6519
6520 PR symtab/7259:
6521 * ada-exp.y (convert_char_literal): Use TYPE_FIELD_ENUMVAL.
6522 * ada-lang.c (ada_discrete_type_high_bound)
ac4ea3c2
JK
6523 (ada_discrete_type_low_bound): Fix function comment. Use
6524 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
14e75d8e
JK
6525 (ada_identical_enum_types_p): Use TYPE_FIELD_ENUMVAL.
6526 (pos_atr, value_val_atr): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6527 * ada-typeprint.c (print_enum_type): Change variable lastval to LONGEST.
6528 Use TYPE_FIELD_ENUMVAL.
6529 * ada-valprint.c (print_optional_low_bound, ada_print_scalar)
6530 (ada_val_print_1): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6531 * c-typeprint.c (c_type_print_base): Move variable lastval to inner
6532 block, change it to LONGEST. Use TYPE_FIELD_ENUMVAL for
6533 TYPE_CODE_ENUM.
6534 * coffread.c (coff_read_enum_type): Use SET_FIELD_ENUMVAL.
6535 * dwarf2read.c (process_enumeration_scope): Likewise.
6536 * gdb-gdb.py (TypeFlagsPrinter): Use field.enumval instead of
6537 field.bitpos.
6538 (class StructMainTypePrettyPrinter): Support also
6539 FIELD_LOC_KIND_ENUMVAL.
6540 * gdbtypes.c (get_discrete_bounds): Use TYPE_FIELD_ENUMVAL for
6541 TYPE_CODE_ENUM.
6542 (recursive_dump_type): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6543 (copy_type_recursive): Support also FIELD_LOC_KIND_ENUMVAL.
6544 * gdbtypes.h (enum field_loc_kind): New FIELD_LOC_KIND_ENUMVAL.
6545 (struct main_type.flds_bnds.fields.loc): Adjust bitpos comment. New
6546 field enumval.
6547 (struct main_type.flds_bnds.bields): Adjust loc_kind and bitsize to
6548 accommodate enumval.
6549 (struct call_site): Adjust loc_kind to accommodate enumval.
6550 (FIELD_ENUMVAL, FIELD_ENUMVAL_LVAL, SET_FIELD_ENUMVAL)
6551 (TYPE_FIELD_ENUMVAL): New macros.
6552 * m2-typeprint.c (m2_enum): Use TYPE_FIELD_ENUMVAL.
6553 * mdebugread.c (parse_symbol): Use TYPE_FIELD_ENUMVAL for
6554 TYPE_CODE_ENUM.
6555 * p-typeprint.c (pascal_type_print_base): Likewise.
6556 * python/lib/gdb/printing.py (class FlagEnumerationPrinter): Use
6557 enumval.
6558 * python/lib/gdb/types.py (make_enum_dict): Likewise.
6559 * python/py-type.c (convert_field): New variable addrstring. Use
6560 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6561 (check_types_equal): Support also FIELD_LOC_KIND_ENUMVAL.
6562 * stabsread.c (read_enum_type): Use SET_FIELD_ENUMVAL.
6563 * typepint.c (print_type_scalar): Use TYPE_FIELD_ENUMVAL for
6564 TYPE_CODE_ENUM.
6565 * valprint.c (generic_val_print): Likewise.
6566
380bca97
DE
65672012-04-17 Doug Evans <dje@google.com>
6568
dcc07052
DE
6569 * dwarf2read.c (lookup_signatured_type): Return NULL instead of 0.
6570
380bca97
DE
6571 * dwarf2read.c: Whitespace fixes.
6572 (lookup_signatured_type): Tweak comment.
6573 (get_die_type_at_offset): Fix comment.
6574
ec92004f
JB
65752012-04-17 Joel Brobecker <brobecker@adacore.com>
6576
6577 * xcoffread.c (xcoff_secnum_to_sections): New function.
6578 (secnum_to_section, secnum_to_bfd_section): Reimplement
6579 using xcoff_secnum_to_sections. Rename "secnum" parameter
6580 into "n_scnum".
6581 (RECORD_MINIMAL_SYMBOL): Delete.
6582 (record_minimal_symbol): New function.
6583 (scan_xcoff_symtab): Replace uses of RECORD_MINIMAL_SYMBOL
6584 by call to record_minimal_symbol and set misc_func_recorded
6585 to 1. Set last_csect_sec to the XCOFF section index instead
6586 of GDB's section_offset index. Update calls to
6587 prim_record_minimal_symbol_and_info to pass the BFD section
6588 as well.
6589
40301fb7
JB
65902012-04-17 Joel Brobecker <brobecker@adacore.com>
6591
6592 * xcoffread.c (read_xcoff_symtab): Delete variables
6593 last_csect_val and last_csect_sec and associated code.
6594
e0088cfd
DE
65952012-04-17 Doug Evans <dje@google.com>
6596
58d5e2c3
DE
6597 * cleanups.c (make_my_cleanup,make_my_cleanup2): Make static.
6598 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
6599 * cleanups.h (make_my_cleanup,make_my_cleanup2): Delete
6600 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Delete.
6601
c27f5738
DE
6602 * cleanups.h: New file.
6603 * cleanups.c: New file.
6604 * Makefile.in (SFILES): Add cleanups.c.
6605 (HFILES_NO_SRCDIR): Add cleanups.h.
6606 (COMMON_OBS): Add cleanups.o.
6607 * defs.h (struct cleanup): Moved to cleanups.h.
6608 (do_cleanups,do_final_cleanups): Ditto.
6609 (discard_cleanups,discard_final_cleanups): Ditto
6610 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
6611 (save_cleanups,save_final_cleanups): Ditto.
6612 (restore_cleanups,restore_final_cleanups): Ditto.
6613 (null_cleanup): Ditto.
6614 (make_my_cleanup,make_my_cleanup2): Ditto.
6615 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
6616 * utils.c (cleanup_chain,final_cleanup_chain): Moved to cleanups.c.
6617 (do_cleanups,do_final_cleanups): Ditto.
6618 (discard_cleanups,discard_final_cleanups): Ditto
6619 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
6620 (save_cleanups,save_final_cleanups): Ditto.
6621 (restore_cleanups,restore_final_cleanups): Ditto.
6622 (null_cleanup): Ditto.
6623 (make_my_cleanup,make_my_cleanup2): Ditto.
6624 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
6625
e0088cfd
DE
6626 * utils.c (make_cleanup_freeargv): Use make_cleanup instead of
6627 make_my_cleanup.
6628 (make_cleanup_dyn_string_delete): Ditto.
6629 (make_cleanup_ui_file_delete): Ditto.
6630 (make_cleanup_ui_out_redirect_pop): Ditto.
6631 (make_cleanup_free_section_addr_info): Ditto.
6632 (make_cleanup_restore_integer): Ditto.
6633 (make_cleanup_unpush_target): Ditto.
6634 (make_cleanup_value_free_to_mark): Ditto.
6635 (make_cleanup_value_free): Ditto.
6636 (make_cleanup_free_so): Ditto.
6637
4dc84fd1
JK
66382012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6639
6640 New option "set debug auto-load".
6641 * NEWS: New commands "set debug auto-load" and "show debug auto-load".
6642 * auto-load.c (debug_auto_load, show_debug_auto_load: New.
6643 (auto_load_safe_path_vec_update)
6644 (filename_is_in_auto_load_safe_path_vec): Call fprintf_unfiltered
6645 if DEBUG_AUTO_LOAD.
6646 (file_is_auto_load_safe): New parameters debug_fmt and ....
6647 Call fprintf_unfiltered if DEBUG_AUTO_LOAD.
6648 (source_gdb_script_for_objfile): Extend the file_is_auto_load_safe
6649 caller by explanatory string.
6650 (_initialize_auto_load): Register "set debug auto-load".
6651 * auto-load.h (file_is_auto_load_safe): New parameters debug_fmt
6652 and ....
6653 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
6654 (try_thread_db_load_from_dir): Extend the file_is_auto_load_safe caller
6655 by explanatory string.
6656 * main.c (captured_main): Likewise.
6657 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
6658 (source_section_scripts): Likewise.
6659
bccbefd2
JK
66602012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6661
6662 New option "set auto-load safe-path".
6663 * NEWS: New commands "set auto-load safe-path"
6664 and "show auto-load safe-path".
6665 * auto-load.c: Include gdb_vecs.h, readline/tilde.h and completer.h.
6666 (auto_load_safe_path, auto_load_safe_path_vec)
6667 (auto_load_safe_path_vec_update, set_auto_load_safe_path)
6668 (show_auto_load_safe_path, add_auto_load_safe_path, filename_is_in_dir)
6669 (filename_is_in_auto_load_safe_path_vec, file_is_auto_load_safe): New.
6670 (source_gdb_script_for_objfile): New variable is_safe. Call
6671 file_is_auto_load_safe. Return if it is not.
6672 (struct loaded_script): New field loaded.
6673 (maybe_add_script): Add parameter loaded. Initialize SLOT with it.
6674 (print_script): Use LOADED indicator instead of FULL_PATH. Change
6675 output "Missing" to "No".
6676 (_initialize_auto_load): New variable cmd. Initialize
6677 auto_load_safe_path. Register "set auto-load safe-path",
6678 "show auto-load safe-path" and "add-auto-load-safe-path".
6679 * auto-load.h (maybe_add_script): Add parameter loaded.
6680 (file_is_auto_load_safe): New declaration.
6681 * config.in: Regenerate.
6682 * configure: Regenerate.
6683 * configure.ac: New parameters --with-auto-load-safe-path
6684 and --without-auto-load-safe-path.
6685 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
6686 (try_thread_db_load_from_dir): Check file_is_auto_load_safe first.
6687 * main.c (captured_main): Check file_is_auto_load_safe for
6688 LOCAL_GDBINIT.
6689 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile): New
6690 variable is_safe. Call file_is_auto_load_safe. Return if it is not.
6691 (source_section_scripts): Call file_is_auto_load_safe. Return if it is
6692 not.
6693
bf88dd68
JK
66942012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6695
6696 auto-load: Implementation.
6697 * NEWS: New descriptions for "info auto-load",
6698 "info auto-load gdb-scripts", "info auto-load python-scripts",
6699 "info auto-load local-gdbinit" and "info auto-load libthread-db".
6700 Deprecate "info auto-load-scripts", "set auto-load-scripts on|off"
6701 and "show auto-load-scripts". New description for "set auto-load",
6702 "show auto-load", "set auto-load gdb-scripts",
6703 "show auto-load gdb-scripts", "set auto-load python-scripts",
6704 "show auto-load python-scripts", "set auto-load local-gdbinit",
6705 "show auto-load local-gdbinit", "set auto-load libthread-db" and
6706 "show auto-load libthread-db".
6707 * auto-load.c: Remove include python/python-internal.h. Add includes
6708 exceptions.h, cli/cli-script.h, gdbcmd.h, cli/cli-decode.h and
6709 cli/cli-setshow.h.
6710 (GDB_AUTO_FILE_NAME, source_gdb_script_for_objfile)
6711 (auto_load_gdb_scripts, show_auto_load_gdb_scripts): New.
6712 (gdbpy_global_auto_load): Rename to ...
6713 (global_auto_load): ... here.
6714 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
6715 (auto_load_local_gdbinit_loaded, show_auto_load_local_gdbinit)
6716 (script_language_gdb, source_gdb_script_for_objfile): New.
6717 (struct loaded_script): New field language.
6718 (hash_loaded_script_entry, eq_loaded_script_entry): Calculate also
6719 LANGUAGE.
6720 (maybe_add_script): Add parameter language. Drop redundant
6721 entry.full_path initialization. Initialize entry.language and
6722 (*slot)->language.
6723 (auto_load_objfile_script): Change parameter suffix to language.
6724 Remove the call of maybe_add_script.
6725 Call language->source_script_for_objfile.
6726 (load_auto_scripts_for_objfile, struct collect_matching_scripts_data):
6727 New.
6728 (collect_matching_scripts): Adjust it for
6729 struct collect_matching_scripts_data.
6730 (auto_load_info_scripts_pattern_nl): New variable.
6731 (info_auto_load_scripts): Rename to ...
6732 (auto_load_info_scripts): ... here, add parameter language. Adjust it
6733 for struct collect_matching_scripts_data.
6734 (info_auto_load_gdb_scripts, info_auto_load_local_gdbinit)
6735 (set_auto_load_cmd, auto_load_set_cmdlist_get, show_auto_load_cmd)
6736 (auto_load_show_cmdlist_get, info_auto_load_cmd)
6737 (auto_load_info_cmdlist_get): New.
6738 (_initialize_auto_load): Move add_info of "auto-load-scripts" to
6739 python/py-auto-load.c. New installment for "set auto-load gdb-scripts",
6740 "info auto-load gdb-scripts", "set auto-load local-gdbinit" and
6741 "info auto-load local-gdbinit".
6742 * auto-load.h (struct script_language): New.
6743 (gdbpy_global_auto_load): Rename to ...
6744 (global_auto_load): ... here.
6745 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
6746 (auto_load_local_gdbinit_loaded): New declarations.
6747 (maybe_add_script): New parameter language.
6748 (auto_load_objfile_script): Change parameter suffix to language.
6749 (load_auto_scripts_for_objfile, auto_load_info_scripts_pattern_nl)
6750 (auto_load_info_scripts, auto_load_set_cmdlist_get)
6751 (auto_load_show_cmdlist_get, auto_load_info_cmdlist_get): New
6752 declarations.
6753 * linux-thread-db.c: Include auto-load.h and ctype.h.
6754 (auto_load_thread_db, show_auto_load_thread_db): New.
6755 (struct thread_db_info): New field filename.
6756 (delete_thread_db_info): Call xfree for FILENAME.
6757 (try_thread_db_load): Initialize FILENAME.
6758 (try_thread_db_load_from_pdir, try_thread_db_load_from_dir): Return
6759 if !AUTO_LOAD_THREAD_DB.
6760 (info_auto_load_libthread_db_compare, info_auto_load_libthread_db): New.
6761 (_initialize_thread_db): Install auto_load_thread_db
6762 as "set auto-load libthread-db" and install info_auto_load_libthread_db
6763 as "info auto-load libthread-db".
6764 * main.c (captured_main): Rename gdbpy_global_auto_load to
6765 global_auto_load. Initialize AUTO_LOAD_LOCAL_GDBINIT_PATHNAME and
6766 AUTO_LOAD_LOCAL_GDBINIT_LOADED.
6767 (print_gdb_help): Extend the help for 'local init file'.
6768 * python/py-auto-load.c: Remove a comment about gdb scripts extension.
6769 (GDBPY_AUTO_SECTION_NAME): Extend the comment it is Python specific.
6770 (auto_load_scripts): Rename to ...
6771 (auto_load_python_scripts): ... here, update the comment.
6772 (gdbpy_load_auto_script_for_objfile): New declaration.
6773 (show_auto_load_python_scripts, script_language_python)
6774 (gdbpy_load_auto_script_for_objfile): New.
6775 (source_section_scripts): Refactor the code.
6776 (load_auto_scripts_for_objfile): Rename to ...
6777 (gdbpy_load_auto_scripts_for_objfile): ... here, update the
6778 auto_load_objfile_script caller, drop GDBPY_GLOBAL_AUTO_LOAD checking.
6779 (info_auto_load_python_scripts): New.
6780 (gdbpy_initialize_auto_load): New variables cmd and cmd_name.
6781 Rename "set auto-load-scripts" to "set auto-load python-scripts".
6782 Register "set auto-load-scripts" as its deprecated alias. Register
6783 "info auto-load python-scripts". Register "info auto-load-scripts" as
6784 its deprecated alias.
6785 (load_auto_scripts_for_objfile): Rename to ...
6786 (gdbpy_load_auto_scripts_for_objfile): ... here.
6787 * python/python.h (load_auto_scripts_for_objfile): Rename to ...
6788 (gdbpy_load_auto_scripts_for_objfile): ... here.
6789
e2207b9a
JK
67902012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6791
6792 auto-load: Move files.
6793 * Makefile.in (SFILES): Add auto-load.c.
6794 (HFILES_NO_SRCDIR): Add auto-load.h.
6795 (COMMON_OBS): Add auto-load.o.
6796 (distclean): Change .gdbinit for gdb-gdb.gdb.
6797 * auto-load.c: New file, with parts from python/py-auto-load.c.
6798 * auto-load.h: New file, with parts from python/python.h.
6799 * configure: Regenerate.
6800 * configure.ac (AC_OUTPUT): Change .gdbinit for gdb-gdb.gdb.
6801 * gdb-gdb.gdb.in: New file, renamed from gdbinit.in.
6802 * gdbinit.in: Remove file, rename it to gdb-gdb.gdb.in.
6803 * main.c: Include auto-load.h.
6804 * python/py-auto-load.c: Move include filenames.h, gdb_regex.h,
6805 command.h, observer.h and progspace.h to auto-load.c. Add include
6806 auto-load.h.
6807 (gdbpy_global_auto_load, struct auto_load_pspace_info)
6808 (struct loaded_script, auto_load_pspace_data)
6809 (auto_load_pspace_data_cleanup, get_auto_load_pspace_data)
6810 (hash_loaded_script_entry, eq_loaded_script_entry)
6811 (init_loaded_scripts_info, get_auto_load_pspace_data_for_loading)
6812 (maybe_add_script): Move to auto-load.c.
6813 (source_section_scripts): Change maybe_add_script parameters passing,
6814 use script_not_found_warning_print.
6815 (clear_section_scripts, auto_load_objfile_script)
6816 (auto_load_new_objfile, loaded_script_ptr)
6817 (DEF_VEC_P (loaded_script_ptr), collect_matching_scripts, print_script)
6818 (sort_scripts_by_name, info_auto_load_scripts): Move to auto-load.c.
6819 (gdbpy_initialize_auto_load): Move auto_load_pspace_data,
6820 auto_load_new_objfile and info_auto_load_scripts initizations to
6821 auto-load.c.
6822 * python/python.h (gdbpy_global_auto_load): Move to auto-load.h.
6823
e4ab2fad
JK
68242012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6825
6826 Code cleanup.
6827 * charset.c (find_charset_names): Remove variables ix and elt.
6828 Use free_char_ptr_vec.
6829 * elfread.c (build_id_to_debug_filename): New variables debugdir_vec,
6830 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
6831 debugdir_end. New variable debugdir_len.
6832 * gdb_vecs.h (free_char_ptr_vec, make_cleanup_free_char_ptr_vec)
6833 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): New
6834 declarations.
6835 * progspace.c (clear_program_space_solib_cache): Remove variables ix
6836 and elt. Use free_char_ptr_vec.
6837 * source.c (add_path): Remove variables argv, arg and argv_index.
6838 New variables dir_vec, back_to, ix and name.
6839 Use dirnames_to_char_ptr_vec_append. Use freeargv instead of
6840 make_cleanup_freeargv. Remove variable separator. Simplify the code
6841 no longer expecting DIRNAME_SEPARATOR.
6842 (openp): Remove variable p, p1 and len. New variables dir_vec,
6843 back_to, ix and dir. Use dirnames_to_char_ptr_vec. Simplify the code
6844 no longer expecting DIRNAME_SEPARATOR.
6845 * symfile.c (find_separate_debug_file): New variables debugdir_vec,
6846 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
6847 debugdir_end.
6848 * utils.c (free_char_ptr_vec, do_free_char_ptr_vec)
6849 (make_cleanup_free_char_ptr_vec, dirnames_to_char_ptr_vec_append)
6850 (dirnames_to_char_ptr_vec): New functions.
6851
5ee4ed9f
JK
68522012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6853
6854 Code cleanup.
6855 * source.c (add_path): Remove always true conditional 'p == 0' and
6856 unindent its code block.
6857
f41f5e61
PA
68582012-04-17 Pedro Alves <palves@redhat.com>
6859
6860 * gdbtypes.h (FIELD_BITPOS): Rename to ...
6861 (FIELD_BITPOS_LVAL): ... this.
6862 (FIELD_BITPOS): New.
6863 (SET_FIELD_BITPOS): Adjust to use FIELD_BITPOS_LVAL.
6864 * dwarf2read.c (dwarf2_add_field): Use SET_FIELD_BITPOS.
6865 * gdbtypes.c (append_composite_type_field_aligned): Adjust to use
6866 SET_FIELD_BITPOS.
6867 * gnu-v3-abi.c (build_gdb_vtable_type): Adjust to use
6868 SET_FIELD_BITPOS.
6869 * stabsread.c (read_cpp_abbrev, read_one_struct_field)
6870 (read_baseclasses): Adjust to use SET_FIELD_BITPOS.
6871 * target-descriptions.c (tdesc_gdb_type): Adjust to use
6872 SET_FIELD_BITPOS.
6873
945b3a32
JK
68742012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6875
6876 Do not rely on FIELD_LOC_KIND_BITPOS being zero.
6877 * ada-lang.c (ada_template_to_fixed_record_type_1): Replace
6878 TYPE_FIELD_BITPOS used as lvalue by SET_FIELD_BITPOS.
6879 * gdbtypes.c (append_flags_type_flag): Likewise, twice.
6880 * jv-lang.c (java_link_class_type): Likewise, once.
6881 * stabsread.c (read_enum_type): Likewise.
6882
42476b70
YQ
68832012-04-16 Yao Qi <yao@codesourcery.com>
6884
6885 * common/agent.c (agent_run_command): Add one more parameter `len'.
6886 Update callers.
6887 * common/agent.h: Update declaration.
6888 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
6889 Update.
6890 (linux_child_static_tracepoint_markers_by_strid): Ditto.
6891
8264ba82
AG
68922012-04-14 Anton Gorenkov <xgsa@yandex.ru>
6893
6894 PR mi/13393
6895 * value.c (value_actual_type): New function.
6896 * value.h (value_actual_type): New declaration.
6897 * varobj.c (update_type_if_necessary): New function.
6898 (varobj_create): Call value_actual_type instead of
6899 value_type.
6900 (install_dynamic_child): distinct changed and type changed MI variable
6901 objects.
6902 (update_dynamic_varobj_children): Updated for install_dynamic_child
6903 change. All callers updated.
a09130f9 6904 (varobj_update): Support for MI variable object type change if
8264ba82
AG
6905 the value changed and RTTI is used to determine the type.
6906 (create_child_with_value): Call value_actual_type instead of
6907 value_type.
a09130f9 6908 (adjust_value_for_child_access): Extended with a new parameter which
8264ba82
AG
6909 specify whether the given value should be casted to enclosing type.
6910 All callers updated.
6911
55a8c076
YQ
69122012-04-14 Yao Qi <yao@codesourcery.com>
6913
6914 Import gnulib module inttypes from git
6915 (250b80067c1e1d8faa0c42fb572f721975b929c5)
6916 * Makefile.in (HFILES_NO_SRCDIR): Add gnulib/inttypes.in.h.
a09130f9
PA
6917 (aclocal_m4_deps): Add gnulib/m4/inttypes.m4 and
6918 gnulib/m4/inttypes-pri.m4
55a8c076
YQ
6919 * aclocal.m4, config.in, configure: Regenerated.
6920 * gnulib/Makefile.am: Update.
6921 * gnulib/Makefile.in: Update.
6922 * gnulib/m4/gnulib-cache.m4: Update.
6923 * gnulib/m4/gnulib-comp.m4: Update.
6924 * gnulib/inttypes.in.h: New.
6925 * gnulib/m4/inttypes-pri.m4: New.
a09130f9 6926 * gnulib/m4/inttypes.m4: New.
55a8c076 6927
ca7781d2
LM
69282012-04-13 Luis Machado <lgustavo@codesourcery.com>
6929
6930 * infrun.c (resume): Update PC address to the real PC after
6931 preparing to do displaced stepping.
6932
e319fa28
DE
69332012-04-12 Doug Evans <dje@google.com>
6934
6935 * dwarf2read.c (lookup_signatured_type): Remove arg "objfile", unused.
6936 All callers updated.
6937
15add3f5
MK
69382012-04-12 Mark Kettenis <kettenis@gnu.org>
6939
6940 * i386bsd-nat.c (_initialize_i386bsd_nat): Add missing prototype.
6941
52dc124a
DE
69422012-04-12 Doug Evans <dje@google.com>
6943
0e50663e
DE
6944 * dwarf2read.c (create_all_type_units): Renamed from
6945 create_debug_types_hash_table. All callers updated.
6946
52dc124a
DE
6947 * dwarf2read.c (create_signatured_type_table_from_index): Rename
6948 local type_sig to sig_type, type_offset to type_offset_in_tu.
6949 (hash_signatured_type): Renamed from hash_type_signature,
6950 all callers updated.
6951 (eq_signatured_type): Renamed from eq_type_signature,
6952 all callers updated.
6953 (create_debug_types_hash_table): Rename local type_sig to sig_type.
6954 (process_enumeration_scope): Ditto.
6955 (lookup_signatured_type_at_offset): Ditto.
6956 (load_full_type_unit, read_signatured_type): Ditto.
6957
248fd3bf
YQ
69582012-04-12 Yao Qi <yao@codesourcery.com>
6959
6960 * remote.c (async_remote_interrupt): Correct function name in
6961 debug message.
6962 (async_remote_interrupt_twice): Ditto.
6963
bc3aa6c3
DE
69642012-04-11 Yuanhui Zhang <asmwarrior@gmail.com>
6965
6966 * source.c (find_and_open_source): Consistently pass resulting
6967 full path through xfullpath.
6968
9e529e1d
JK
69692012-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6970
6971 Provide more specific displaced-stepping memory error message.
6972 * infrun.c (displaced_step_prepare): New variable status. Call
6973 target_read_memory instead of read_memory, provide more specific
6974 error message.
6975
82e0cec1
TG
69762012-04-11 Tristan Gingold <gingold@adacore.com>
6977
6978 PR gdb/13901
6979 * darwin-nat.c (darwin_execvp): Revert previous patch.
6980
d987a266
TG
69812012-04-11 Tristan Gingold <gingold@adacore.com>
6982
6983 PR gdb/13901
6984 * darwin-nat.c (darwin_resume_thread): Call darwin_set_sstep only
6985 in case of change.
6986
016b7430
TG
69872012-04-11 Tristan Gingold <gingold@adacore.com>
6988
6989 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
6990 warning.
6991
06fc020f
SCR
69922012-04-11 Siva Chandra Reddy <sivachandra@google.com>
6993
6994 New command 'explore' which helps explore values and types in
6995 scope.
6996 * NEWS: Add an entry about the new 'explore' command.
6997 * data-directory/Makefile.in: Add gdb/command/explore.py
6998 * python/lib/gdb/command/explore.py: Implemention of the 'explore'
a09130f9 6999 command using the GDB Python API.
06fc020f 7000
de0919f8 70012012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
34b192ce
MR
7002
7003 * mips-tdep.c (mips_skip_pic_trampoline_code): Correct sign
7004 extension in jump target calculation.
7005
de0919f8 70062012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
9e8da49c
MR
7007
7008 * mips-tdep.c (mips32_next_pc): Handle JALX.
7009
2f26ef89
YQ
70102012-04-10 Yao Qi <yao@codesourcery.com>
7011
7012 * Makefile.in (gnulib/Makefile): Remove duplicated dependency.
7013
2e505b66
YQ
70142012-04-10 Yao Qi <yao@codesourcery.com>
7015
7016 * Makefile.in (aclocal_m4_deps): Add gnulib/m4/gnulib-cache.m4
7017 and gnulib/m4/gnulib-tool.m4.
7018
0d99eb77
DE
70192012-04-10 Doug Evans <dje@google.com>
7020
7021 * dwarf2read.c (dwarf2_per_cu_data). Clarify comment.
7022 (load_partial_dies): Clarify comment.
7023 (find_partial_die): Support rereading type units.
7024 Clarify CU handling, if we know offset is in CU, don't search for the
7025 containing CU. Add comment regarding memory waste.
7026
9a82b8ff
L
70272012-04-10 H.J. Lu <hongjiu.lu@intel.com>
7028
7029 * features/Makefile (WHICH): Add i386/x32, i386/x32-linux,
7030 i386/x32-avx and i386/x32-avx-linux.
7031 (i386/x32-expedite): New.
7032 (i386/x32-linux-expedite): Likewise.
7033 (i386/x32-avx-expedite): Likewise.
7034 (i386/x32-avx-linux-expedite): Likewise.
7035 ($(outdir)/i386/x32.dat): Likewise.
7036 ($(outdir)/i386/x32-linux.dat): Likewise.
7037 ($(outdir)/i386/x32-avx.dat): Likewise.
7038 ($(outdir)/i386/x32-avx-linux.dat): Likewise.
7039
7040 * features/i386/x32-avx-linux.xml: New file.
7041 * features/i386/x32-avx.xml: Likewise.
7042 * features/i386/x32-core.xml: Likewise.
7043 * features/i386/x32-linux.xml: Likewise.
7044 * features/i386/x32.xml: Likewise.
7045
7046 * features/i386/x32-avx-linux.c: New. Generated.
7047 * features/i386/x32-avx.c: Likewise.
7048 * features/i386/x32-linux.c: Likewise.
7049 * features/i386/x32.c: Likewise.
7050 * regformats/i386/x32-avx-linux.dat: Likewise.
7051 * regformats/i386/x32-avx.dat: Likewise.
7052 * regformats/i386/x32-linux.dat: Likewise.
7053 * regformats/i386/x32.dat: Likewise.
7054
ee41036f
TG
70552012-04-10 Tristan Gingold <gingold@adacore.com>
7056
7057 * darwin-nat.c (darwin_kill_inferior): Always use the no ptrace
7058 code to kill the inferior.
7059
a7aa5b8a
MK
70602012-04-09 Mark Kettenis <kettenis@gnu.org>
7061
7062 * ada-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7063 defines.
7064 * c-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7065 defines.
a09130f9 7066 * cp-name-parser.y (yyss, yysslim, yyssp, yystacksize, yyvs)
a7aa5b8a
MK
7067 (yyvsp): New defines.
7068 * f-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7069 defines.
7070 * jv-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7071 defines.
7072 * m2-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7073 defines.
7074 * objc-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7075 defines.
7076 * p-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7077 defines.
7078
fb57d452
MK
70792012-04-09 Mark Kettenis <kettenis@gnu.org>
7080
a09130f9 7081 * sparc64-tdep.c (sparc64_store_arguments)
fb57d452
MK
7082 (sparc64_store_arguments): Fix coding style.
7083
cdc7b32f
MK
70842012-04-07 Mark Kettenis <kettenis@gnu.org>
7085
7086 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
7087 complex floats, adjust some related comments and tighten a related
7088 assertion.
7089 (sparc64_extract_return_value): Handle complex floats.
7090
7adf1e79
DE
70912012-04-07 Doug Evans <dje@google.com>
7092
7093 * dwarf2read.c (load_partial_dies): Change condition to assert.
7094
50f1ae7b
DE
70952012-04-06 Doug Evans <dje@google.com>
7096
7097 * amd64-tdep.c (amd64_analyze_prologue): Recognize both variations of
7098 "mov %rsp,%rbp".
7099
55fa75c3
KB
71002012-04-05 Kevin Buettner <kevinb@redhat.com>
7101
7102 * v850-tdep.c (E_NUM_OF_V850_REGS, E_NUM_OF_V850E_REGS): Fix
7103 fencepost error.
7104 (v850_frame_cache): Use gdbarch_num_regs() instead of E_NUM_REGS.
7105 (v850_gdbarch_init): Set `num_regs' as appropriate for the
7106 architecture.
7107
40e084e1
KS
71082012-04-05 Keith Seitz <keiths@redhat.com>
7109
7110 * linespec.c (decode_compound): Remove.
7111 (enum offset_relative_sign): New enum.
7112 (struct line_offset): New struct.
7113 (struct linespec): New struct.
7114 (struct linespec_state): Move file_symtabs,
7115 user_filename, and user_function into struct linespec.
7116 Make result an anonymous struct holding vectors of
7117 symbolp and minsym_and_objfile_d.
7118 Add language member.
7119 (enum ls_token_type): New enum.
7120 (linespec_keywords): New array.
7121 (struct ls_token): New struct.
7122 (struct ls_parser): New struct.
7123 (linespec_lexer_lex_number): New function.
7124 (linespec_lexer_lex_keyword): New function.
7125 (is_ada_operator): New function.
7126 (skip_quote_char): New function.
7127 (copy_token_string): New function.
7128 (is_closing_quote_enclosed): New function.
7129 (find_parameter_list_end): New function.
7130 (linespec_lexer_lex_string): New function.
7131 (linespec_lexer_lex_one): New function.
7132 (linespec_lexer_consume_token): New function.
7133 (linespec_lexer_peek_token): New function.
7134 (cplusplus_error): Remove unused function.
7135 (find_methods): Update comment.
7136 (find_toplevel_char): Return const.
7137 (is_objc_method_format): Remove unused function.
7138 (find_toplevel_string): New function.
7139 (is_linespec_boundary): Remove.
7140 (symbol_not_found_error): New function.
7141 (find_method_overload_end): Remove function.
7142 (unexpected_linespec_error): New function.
7143 (keep_name_info): Remove.
7144 (linespec_parse_line_offset): New function.
7145 (linespec_parse_basic): New function.
7146 (canonicalize_linespec): New function.
7147 (decode_line_internal): Remove.
7148 (create_sals_line_offset): New function adapted from
7149 decode_all_digits.
7150 (convert_linespec_to_sals): New function.
7151 (parse_linespec): New function.
7152 (linespec_parser_new): New function.
7153 (linespec_state_destructor): Change parameter type to
7154 struct linespec_state *.
7155 Add language parameter.
7156 Remove freeing of moved members.
7157 (linespec_parser_delete): New function.
7158 (decode_line_full): Use parse_linespec and linespec_parser_new.
7159 (decode_line_1): Likewise.
7160 (decode_indirect): Rename to ...
7161 (linespec_expression_to_pc): ... this and rewrite
7162 to simply find CORE_ADDR, storing this result for later
7163 conversion to SALs.
7164 (locate_first_half): Remove.
7165 (deocde_objc): Add parameter LS.
7166 Initialize new struct collect_info members.
7167 Handle minimal symbols, too.
7168 (decode_compound): Delete.
7169 (lookup_prefix_sym): Rewrite.
7170 (compare_msymbols): New function.
7171 (find_method): Rewrite.
7172 Do not call cplusplus_error.
7173 (symtabs_from_filename): Rewrite.
7174 (collect_function_symbols): Delete.
7175 (find_function_symbols): Rewrite without ARGPTR-style
7176 processing.
7177 (decode_all_digits): Delete. (Rewritten as create_sals_line_offset.)
7178 (decode_dollar): Adapted and renamed to ...
7179 (linespec_parse_variable): ... this.
7180 (find_linespec_symbols): New function.
7181 (decode_label): Adapted and renamed to ...
7182 (find_label_symbols): ... this.
7183 (decode_digits_list_mode): Add and use LS argument.
7184 (decode_digits_ordinary): Likewise.
7185 (collect_symbols): Do not collect SALs, just symbols and msymbols.
7186 If in list mode, allow any symbol class. Otherwise, only
7187 permit LOC_BLOCK symbols.
7188 (minsym_found): Update comments.
7189 (search_minsyms_for_name): Do not convert the matching symbol
7190 into a SAL. Simply push the symbol and objfile into the
7191 result vector.
7192 (decode_variable): Delete. Contents adapted into
7193 find_linespec_symbols.
7194
7195 * cp-support.c (SKIP_SPACE): Remove.
7196 (operator_tokens): Remove unused global.
7197 (cp_validate_operator): Remove.
7198 * cp-support.h (cp_validate_operator): Remove declaration.
7199
a72c8f6a
JK
72002012-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7201
7202 * cp-valprint.c (cp_print_value_fields): Check valprint_check_validity
7203 for TYPE_VPTR_FIELDNO.
7204 * valprint.c (valprint_check_validity): Make it global, move the
7205 function comment ...
7206 * value.h (valprint_check_validity): ... to this new declaration.
7207
cf9bb588
TG
72082012-04-02 Tristan Gingold <gingold@adacore.com>
7209
7210 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Use
7211 the STATE32 api for i386 state.
7212 (i386_darwin_store_inferior_registers): Likewise.
7213
17092398
TG
72142012-04-02 Tristan Gingold <gingold@adacore.com>
7215
7216 * i386-darwin-tdep.c (i386_darwin_thread_state_reg_offset): Fix
7217 SS offset.
7218 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
7219 format_string.
7220
ece0061f
TG
72212012-04-02 Tristan Gingold <gingold@adacore.com>
7222
7223 PR gdb/13901
d987a266 7224 * darwin-nat.c (darwin_execvp): Set binary preference.
ece0061f 7225
cf65ecd3
JK
72262012-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7227
7228 * NEWS (set breakpoint condition-evaluation): Use imperative mood.
7229
9bc3523d
TT
72302012-03-30 Tom Tromey <tromey@redhat.com>
7231
7232 * python/python.c (gdbpy_decode_line): Move cleanup creation out
7233 of TRY_CATCH. Fix error handling.
7234 * python/py-value.c (convert_value_from_python): Move 'old'
7235 declaration to innermost scope.
7236
b1ed564a
JB
72372012-03-29 Joel Brobecker <brobecker@adacore.com>
7238 Andrey Smirnov <andrew.smirnov@gmail.com>
7239
7240 -Wshadow warning fix.
7241 * ada-lang.c (ada_make_symbol_completion_list): Rename parameters
7242 "wild_match" and "encoded" into "wild_match_p" and "encoded_p".
7243 Adjust code accordingly.
7244
cb8e9b97
JB
72452012-03-29 Joel Brobecker <brobecker@adacore.com>
7246
7247 * ada-lang.c (symbol_completion_add): Rename parameter
7248 "encoded" into "encoded_p". Ajust code and documentation
7249 accordingly.
7250
c0af1706
JB
72512012-03-29 Joel Brobecker <brobecker@adacore.com>
7252 Andrey Smirnov <andrew.smirnov@gmail.com>
7253
7254 -Wshadow warning fix.
7255 * ada-lang.c (symbol_completion_add): Rename parameter
7256 "wild_match" into wild_match_p. Update code and documentation
7257 accordingly.
7258
6ea35997
JB
72592012-03-29 Joel Brobecker <brobecker@adacore.com>
7260
7261 * ada-lang.c (symbol_completion_match): Rename parameter
7262 "encoded" into "encoded_p". Ajust code and documentation
7263 accordingly.
7264
e701b3c0
JB
72652012-03-29 Joel Brobecker <brobecker@adacore.com>
7266 Andrey Smirnov <andrew.smirnov@gmail.com>
7267
7268 -Wshadow warning fix.
7269 * ada-lang.c (symbol_completion_match): Rename parameter
7270 "wild_match" into "wild_match_p". Adjust code and function
7271 documentation accordingly.
7272
5e2336be
JB
72732012-03-29 Joel Brobecker <brobecker@adacore.com>
7274 Andrey Smirnov <andrew.smirnov@gmail.com>
7275
7276 -Wshadow warning fix.
7277 * ada-lang.c (ada_lookup_encoded_symbol): Rename parameter
7278 "symbol_info" into "info". Adjust code accordingly.
7279 (ada_lookup_symbol): Likewise.
7280
9f88c959
JB
72812012-03-29 Joel Brobecker <brobecker@adacore.com>
7282
7283 * ada-lang.c (ada_lookup_symbol_list): Minor reformatting
7284 of this function's documentation.
7285
82ccd55e
JB
72862012-03-29 Joel Brobecker <brobecker@adacore.com>
7287 Andrey Smirnov <andrew.smirnov@gmail.com>
7288
7289 -Wshadow warning fix.
7290 * ada-lang.c (ada_lookup_symbol_list): Rename "wild_match"
7291 variable into "wild_match_p". Adjust code accordingly.
7292
d0a8ab18
JB
72932012-03-29 Joel Brobecker <brobecker@adacore.com>
7294 Andrey Smirnov <andrew.smirnov@gmail.com>
7295
7296 -Wshadow warning fix.
7297 * ada-lang.c (ada_add_local_symbols): Rename "wild_match"
7298 parameter into "wild_match_p". Adjust code accordingly.
7299 Document this parameter in the function description.
7300
48b78332
JB
73012012-03-29 Joel Brobecker <brobecker@adacore.com>
7302 Andrey Smirnov <andrew.smirnov@gmail.com>
7303
7304 -Wshadow warning fix.
7305 * ada-lang.c (add_symbols_from_enclosing_procs): Rename
7306 "wild_match" parameter to "wild_match_p" (-Wshadow).
7307
2e6e0353
JB
73082012-03-29 Joel Brobecker <brobecker@adacore.com>
7309
7310 * ada-lang.c (ada_lookup_simple_minsym): Remove trailing spaces
7311 in function documentation.
7312
dc4024cd
JB
73132012-03-29 Joel Brobecker <brobecker@adacore.com>
7314 Andrey Smirnov <andrew.smirnov@gmail.com>
7315
7316 -Wshadow warning fix.
7317 * ada-lang.c (ada_lookup_simple_minsym): Rename wild_match local
7318 variable into wild_match_p. Adjust code accordingly.
7319
6c88661c
JB
73202012-03-29 Joel Brobecker <brobecker@adacore.com>
7321 Andrey Smirnov <andrew.smirnov@gmail.com>
7322
7323 * ada-valprint.c (ada_val_print_1): Move the code handling
7324 TYPE_CODE_ENUM inside its own lexical block. Declare
7325 variables len and val there, instead of in the function's
7326 top level block. Avoid declaring deref_val again in a way
7327 that shadows another variable of the same name declared
7328 in one of the up-level blocks. Just re-use the up-level
7329 variable instead.
7330
4e5c77fe
JB
73312012-03-29 Joel Brobecker <brobecker@adacore.com>
7332
7333 * ada-lang.c (ada_lookup_encoded_symbol): Now returns void.
7334 Replace block_found argument by symbol_info. Adjust
7335 implementation accordingly. Add function documentation.
7336 (ada_lookup_symbol): Adjust to new ada_lookup_encoded_symbol.
7337 Fix documentation.
7338 * ada-lang.h (ada_lookup_encoded_symbol): Update declaration.
7339 * ada-exp.y (write_object_renaming): Adjust to new
7340 ada_lookup_encoded_symbol API.
7341
1c0ac8c7
JB
73422012-03-29 Joel Brobecker <brobecker@adacore.com>
7343
7344 * ada-lang.h (struct ada_symbol_info): Reformat. Improve
7345 documentation.
7346
2aaed979
KB
73472012-03-28 Rathish C <rathish.c@kpitcummins.com>
7348
7349 * v850-tdep.c: Add the enum values for mpu and fpu registers.
7350 (v850_register_name): Add the mpu and fpu register names.
7351 (v850e_register_name): Add the mpu and fpu register names.
7352 (v850e2_register_name): New function.
a09130f9 7353 (v850_gdbarch_init): Add case for bfd_mach_v850e2 and
2aaed979
KB
7354 bfd_mach_v850e2v3.
7355
927fbba6
JB
73562012-03-28 Joel Brobecker <brobecker@adacore.com>
7357
7358 * NEWS: Add entry for Ada varobj support.
7359
d32cafc7
JB
73602012-03-28 Joel Brobecker <brobecker@adacore.com>
7361
7362 * varobj.c (default_value_is_changeable_p): New function,
7363 extracted from varobj_value_is_changeable_p. Add declaration.
7364 (ada_value_is_changeable_p): New function, extracted from
7365 varobj_value_is_changeable_p. Add declaration.
7366 (struct language_specific): New field "value_is_changeable_p".
7367 (languages): Add entries for new field.
7368 (varobj_create): Set language before calling install_new_value.
7369 (varobj_value_is_changeable_p): Reimplement to call the varobj's
7370 "value_is_changeable_p" language callback.
7371
181875a4
JB
73722012-03-28 Joel Brobecker <brobecker@adacore.com>
7373
7374 * ada-varobj.h, ada-varobj.c: New files.
7375 * Makefile.in (SFILES): Add ada-varobj.c.
7376 (HFILES_NO_SRCDIR): Add ada-varobj.h.
7377 (COMMON_OBS): Add ada-varobj.o.
7378
7a290c40
JB
73792012-03-28 Joel Brobecker <brobecker@adacore.com>
7380
7381 * varobj.c (ada_value_has_mutated): Add declaration. New function.
7382 (struct language_specific): New field "value_has_mutated".
7383 (languages): Set field "value_has_mutated" in each entry of array.
7384 (varobj_value_has_mutated): New function.
7385 (varobj_udpdate): Add handling of type mutation.
7386 (value_of_root): Add handling of type mutation.
7387 (ada_value_has_mutated): New function.
7388
ca9b8b9c
PA
73892012-03-28 Pedro Alves <palves@redhat.com>
7390
7391 * ia64-linux-nat.c (supply_fpregset, ia64_linux_fetch_register):
7392 Always supply $fr0 as 0.0 and $fr1 as 1.0.
7393
cc0265cd
TT
73942012-03-28 Tom Tromey <tromey@redhat.com>
7395
7396 * python/py-inferior.c (infpy_read_memory): Remove cleanups and
7397 explicitly free 'buffer' on exit paths. Decref 'membuf_object'
7398 before returning.
7399
3ad2ec6f
TT
74002012-03-28 Tom Tromey <tromey@redhat.com>
7401
7402 * .dir-locals.el: New file.
7403
4a6510ba
PA
74042012-03-28 Pedro Alves <palves@redhat.com>
7405
7406 * ia64-linux-nat.c (u_offsets): Map IA64_EC_REGNUM to PT_AR_EC.
7407
5a75128f
JB
74082012-03-28 Joel Brobecker <brobecker@adacore.com>
7409
7410 * ia64-linux-nat.c (ia64_linux_fetch_register): Add special
7411 handling for r0.
7412
f99d8bf4
PA
74132012-03-27 Pedro Alves <palves@redhat.com>
7414
7415 Eliminate struct ui_stream.
7416
7417 * ui-out.h (struct ui_stream): Delete.
7418 (ui_out_field_stream): Adjust prototype.
7419 (ui_out_stream_new, ui_out_stream_delete)
7420 (make_cleanup_ui_out_stream_delete): Delete declarations.
7421 * ui-out.c (ui_out_field_stream): Change prototype to take a
7422 ui_file instead of a ui_stream. Adjust.
7423 (ui_out_stream_new, ui_out_stream_delete, do_stream_delete)
7424 (make_cleanup_ui_out_stream_delete): Delete.
7425 * breakpoint.c (print_breakpoint_location)
7426 (print_one_detail_ranged_breakpoint, print_it_watchpoint): Use
7427 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
7428 * disasm.c (dump_insns): Ditto.
7429 (do_mixed_source_and_assembly, do_assembly_only): Adjust
7430 prototype.
7431 (gdb_disassembly): Use ui_file/mem_fileopen instead of
7432 ui_stream/ui_out_stream_new.
7433 * infcmd.c (print_return_value): Ditto.
7434 * osdata.c (info_osdata_command): Don't allocate a local
7435 ui_stream.
7436 * stack.c (print_frame_arg, print_frame_args, print_frame): Use
7437 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
7438 * tracepoint.c (print_one_static_tracepoint_marker): Don't
7439 allocate a local ui_stream.
7440 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_file/mem_fileopen
7441 instead of ui_stream/ui_out_stream_new.
7442 (list_args_or_locals): Don't allocate a local ui_stream.
7443 * mi/mi-main.c (get_register, mi_cmd_data_evaluate_expression)
7444 (mi_cmd_data_read_memory): Use ui_file/mem_fileopen instead of
7445 ui_stream/ui_out_stream_new.
7446 * cli/cli-setshow.c (do_setshow_command): Ditto.
7447
6350a066 74482012-03-27 Oza Pawandeep <oza.pawandeep@gmail.com>
72508ac0 7449
6350a066
PA
7450 * arm-linux-tdep.c (arm_linux_init_abi): Call
7451 set_gdbarch_process_record. Initialize `arm_swi_record' field.
7452 * arm-tdep.c (arm_process_record): New function.
7453 (deallocate_reg_mem): New function.
7454 (decode_insn): New function.
7455 (thumb_record_branch): New function.
7456 (thumb_record_ldm_stm_swi(): New function.
7457 (thumb_record_misc): New function.
7458 (thumb_record_ld_st_stack): New function.
7459 (thumb_record_ld_st_imm_offset): New function.
7460 (thumb_record_ld_st_reg_offset(): New function.
7461 (thumb_record_add_sub_cmp_mov): New function.
7462 (thumb_record_shift_add_sub): New function.
7463 (arm_record_coproc_data_proc): New function.
7464 (arm_record_coproc): New function.
7465 (arm_record_b_bl): New function.
7466 (arm_record_ld_st_multiple): New function.
7467 (arm_record_ld_st_reg_offset): New function.
7468 (arm_record_ld_st_imm_offset): New function.
7469 (arm_record_data_proc_imm): New function.
7470 (arm_record_data_proc_misc_ld_str): New function.
7471 (arm_record_extension_space): New function.
7472 (arm_record_strx): New function.
7473 (sbo_sbz): New function.
7474 (struct insn_decode_record): New structure for arm insn record.
7475 (REG_ALLOC): New macro for reg allocations.
7476 (MEM_ALLOC): New macro for memory allocations.
7477 * arm-tdep.h (struct gdbarch_tdep): New field 'arm_swi_record'.
72508ac0 7478
89e028e2
AS
74792012-03-27 Andreas Schwab <schwab@linux-m68k.org>
7480
7481 * m68klinux-nat.c (fetch_register): Fix strict-aliasing violation.
7482 (store_register): Likewise.
7483
6350a066 74842012-03-26 Oza Pawandeep <oza.pawandeep@gmail.com>
3d9a9eb0 7485
6350a066 7486 * MAINTAINERS (Write After Approval): Add myself to the list.
3d9a9eb0 7487
5b43fab2
JK
74882012-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7489
7490 * NEWS (set breakpoint condition-evaluation): Change "gdb" to "host".
7491 Describe also the option "auto".
7492
b5453b95
RH
74932012-03-22 Richard Henderson <rth@redhat.com>
7494
7495 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Fix prototype.
7496 * sparc-nat.c (sparc_xfer_wcookie): Make static.
7497
227ee7fc
RH
74982012-03-22 Richard Henderson <rth@redhat.com>
7499
7500 * jit.c (jit_read_code_entry): Compute alignment and offset of
7501 int64_t member before computing entry_size.
7502
7b282c5a
SCR
75032012-03-22 Siva Chandra Reddy <sivachandra@google.com>
7504
7505 Python scripting: Add new method Value.referenced_value to
7506 gdb.Value which can dereference pointer as well as reference
7507 values.
7508 * NEWS: Add entry under 'Python scripting' about the new method
7509 Value.referenced_value on gdb.Value objects.
7510 * python/py-value.c (valpy_referenced_value): New function
7511 defining a new method on gdb.Value objects which can dereference
7512 pointer and reference values.
7513
0c83539f
SCR
75142012-03-22 Siva Chandra Reddy <sivachandra@google.com>
7515
7516 * MAINTAINERS (Write After Approval): Add myself to the list.
7517
7ccffd7c
KB
75182012-03-21 Kevin Buettner <kevinb@redhat.com>
7519
7520 * symtab.c (skip_prologue_sal): Change test to check for "main()"
7521 in addition to "main".
7522
bd0b9f9e
JB
75232012-03-21 Joel Brobecker <brobecker@adacore.com>
7524
7525 * expression.h (op_name): Add declaration.
7526 * expprint.c (op_name): Remove declaration. Make non-static.
7527 * ax-gdb.c (gen_expr): Use op_name instead of op_string.
7528
a5362b9a
TS
75292012-03-21 Thomas Schwinge <thomas@codesourcery.com>
7530
7531 * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Use siginfo_t instead
7532 of struct siginfo.
7533 * arm-linux-nat.c (arm_linux_stopped_data_address): Likewise.
7534 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
7535 * linux-nat.c (linux_nat_siginfo_fixup, siginfo_fixup)
7536 (linux_xfer_siginfo, linux_nat_set_siginfo_fixup)
7537 (linux_nat_get_siginfo): Likewise.
7538 * linux-nat.h (struct lwp_info, linux_nat_set_siginfo_fixup)
7539 (linux_nat_get_siginfo): Likewise.
7540 * linux-tdep.c (linux_get_siginfo_type): Likewise.
7541 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Likewise.
7542 * procfs.c (gdb_siginfo_t): Likewise.
7543
adcadaab
MF
75442012-03-21 Mike Frysinger <vapier@gentoo.org>
7545
7546 * .gitignore: Ignore more files.
7547
e278ad5b
PA
75482012-03-20 Pedro Alves <palves@redhat.com>
7549
7550 * remote.c (remote_start_remote): Clear `rs->starting_up' on early
7551 returns.
7552
741e63d7
YQ
75532012-03-20 Yao Qi <yao@codesourcery.com>
7554
7555 * amd64-tdep.c (amd64_displaced_step_copy_insn): Complete missing "}" in
7556 comment.
7557
b64f50a1
JK
75582012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7559
7560 Code cleanupp: Use cu_offset and sect_offset compile time type checking.
7561 * dwarf2expr.c (add_piece, dwarf_get_base_type, execute_stack_op)
7562 (ctx_no_dwarf_call, ctx_no_get_base_type): Use cu_offset and
7563 sect_offset.
7564 * dwarf2expr.h (cu_offset, sect_offset): New types.
7565 (struct dwarf_expr_context_funcs) <dwarf_call>
7566 (struct dwarf_expr_context_funcs) <get_base_type>: Use cu_offset and
7567 sect_offset.
7568 (struct dwarf_expr_context) <len>: Improve the comment.
7569 (struct dwarf_expr_piece, ctx_no_dwarf_call, ctx_no_get_base_type): Use
7570 cu_offset and sect_offset.
7571 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call)
7572 (dwarf_expr_get_base_type, needs_frame_dwarf_call)
7573 (dwarf2_compile_expr_to_ax, disassemble_dwarf_expression): Likewise.
7574 * dwarf2loc.h: Include dwarf2expr.h.
7575 (dwarf2_fetch_die_location_block, dwarf2_get_die_type): Use cu_offset
7576 and sect_offset.
7577 * dwarf2read.c (struct dwarf2_per_objfile) <debug_types_type_hash>:
7578 Improve the comment.
7579 (struct comp_unit_head, struct dwarf2_cu, struct dwarf2_per_cu_data)
7580 (struct signatured_type, struct line_header, struct partial_die_info)
7581 (struct die_info, find_partial_die, dwarf2_get_ref_die_offset)
7582 (lookup_signatured_type_at_offset, dwarf2_find_containing_comp_unit)
7583 (get_die_type_at_offset, create_cus_from_index)
7584 (create_signatured_type_table_from_index, dw2_get_file_names)
7585 (offset_in_cu_p, read_comp_unit_head, error_check_comp_unit_head)
7586 (read_and_check_comp_unit_head, read_and_check_type_unit_head)
7587 (create_debug_types_hash_table, process_psymtab_comp_unit)
7588 (load_partial_comp_unit, create_all_comp_units)
7589 (partial_die_parent_scope, partial_die_full_name, skip_one_die)
7590 (load_full_comp_unit, dwarf2_physname, read_import_statement)
7591 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
7592 (dwarf2_add_member_fn, process_enumeration_scope, read_module_type)
7593 (read_typedef, die_hash, die_eq, read_full_die, dwarf2_read_abbrevs)
7594 (load_partial_dies, read_partial_die, find_partial_die_in_comp_unit)
7595 (find_partial_die, read_attribute_value, lookup_die_type)
7596 (dump_die_shallow, store_in_ref_table): Use cu_offset and sect_offset.
7597 (is_ref_attr): New function comment.
7598 (dwarf2_get_ref_die_offset): New function comment, new variable retval.
7599 Use cu_offset and sect_offset.
7600 (follow_die_offset, follow_die_ref, dwarf2_fetch_die_location_block)
7601 (dwarf2_get_die_type, follow_die_sig, lookup_signatured_type_at_offset)
7602 (load_full_type_unit, read_signatured_type, per_cu_header_read_in)
7603 (dwarf2_find_containing_comp_unit, struct dwarf2_offset_and_type)
7604 (offset_and_type_hash, offset_and_type_eq, set_die_type)
7605 (get_die_type_at_offset, partial_die_hash, partial_die_eq)
7606 (write_one_signatured_type, write_psymtabs_to_index): Use cu_offset and
7607 sect_offset.
7608
e97a38f7
JK
76092012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7610
7611 Code cleanup.
7612 * python/py-auto-load.c (source_section_scripts): New variable back_to.
7613 Turn fclose and xfree calls into make_cleanup_fclose and make_cleanup
7614 with xfree.
7615 (auto_load_objfile_script): Turn fclose into make_cleanup_fclose.
7616
8320cc4f
JK
76172012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7618
7619 * NEWS: Describe new options --init-command=FILE, -ix and
7620 --init-eval-command=COMMAND, -iex.
7621 * main.c (struct cmdarg): New enum items CMDARG_INIT_FILE and
7622 CMDARG_INIT_COMMAND.
7623 (captured_main): New enum items OPT_IX and OPT_IEX. Add
7624 "init-command", "init-eval-command", "ix" and "iex" to the variable
7625 long_options. Handle OPT_IX and OPT_IEX. Process them from CMDARG_VEC.
7626 New comment for CMDARG_FILE and CMDARG_COMMAND processing.
7627 (print_gdb_help): Describe --init-command=FILE, -ix and
7628 --init-eval-command=COMMAND, -iex.
7629
26743505
JK
76302012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7631
7632 Code cleanup.
7633 * main.c (struct cmdarg): Move it here from main. Add more comments.
7634 (cmdarg_s, VEC (cmdarg_s)): New.
7635 (main): Move struct cmdarg from here. New variables cmdarg_vec and
7636 cmdarg_p. Remove variables cmdsize and ncmd and their initialization.
7637 Install cleanup for cmdarg_vec. Update filling for options 'x' and
7638 'X'. Replace cmdarg processing by cmdarg_vec processing. Remove xfree
7639 of CMDARG.
7640
5ff5c7b4
TT
76412012-03-19 Tom Tromey <tromey@redhat.com>
7642
7643 * gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'.
7644
ab260dad
JK
76452012-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7646
7647 PR symtab/13777
7648 * dwarf2read.c (process_full_comp_unit): Set LOCATIONS_VALID only for
7649 GCC >=4.5.
7650
c366c1f0
TT
76512012-03-16 Chris January <chris.january@allinea.com>
7652
7653 * tui-tui.win.c (tui_resize_all): Use erase and clearok instead
7654 of clear.
7655
e16edb45
TT
76562012-03-16 Chris January <chris.january@allinea.com>
7657
7658 * source.c (add_path): Use memmove instead of strcpy because the
7659 strings overlap.
7660
53ba8333
JB
76612012-03-16 Joel Brobecker <brobecker@adacore.com>
7662
7663 * value.h (set_value_parent): Add declaration.
7664 * value.c (set_value_parent): New function.
7665 (value_address): If VALUE->PARENT is not NULL, then use it as
7666 the base address instead of VALUE->LOCATION.address.
7667 * ada-lang.c (ada_value_primitive_packed_val): Keep V's address
7668 the same as OBJ's address. Adjust V's offset accordingly.
7669 Set V's parent.
7670
481860b3
GB
76712012-03-16 Gary Benson <gbenson@redhat.com>
7672
7673 PR breakpoints/10738
7674 * dwarf2read.c (use_deprecated_index_sections): New global.
7675 (struct partial_die_info): New member may_be_inlined.
7676 (read_partial_die): Set may_be_inlined where appropriate.
7677 (add_partial_subprogram): Add partial symbols for partial
7678 DIEs that may be inlined.
7679 (new_symbol_full): Add inlined subroutines to the current
7680 scope.
7681 (write_psymtabs_to_index): Bump version number.
7682 (dwarf2_read_index): Read only version 6 indices unless
7683 use_deprecated_index_sections is set.
7684 * linespec.c (symbol_and_data_callback): New structure.
7685 (iterate_inline_only): New function.
7686 (iterate_over_all_matching_symtabs): New argument
7687 "include_inline". If nonzero, also call the callback for
7688 symbols representing inlined subroutines.
7689 (lookup_prefix_sym): Pass extra argument to the above.
7690 (find_function_symbols): Likewise.
7691 (add_matching_symbols_to_info): Likewise.
7692 * NEWS: Mention that GDB can now set breakpoints on inlined
7693 functions.
7694
d0e7e15a
PM
76952012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
7696
7697 * p-typeprint.c (pascal_type_print_method_args):
7698 Fix display of parameter of methods.
7699
3d354654
PM
77002012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
7701
7702 * amd64-windows-nat.c (_initialize_amd64_windows_nat):
7703 Add missing prototype.
7704
cafe75b0
JK
77052012-03-16 Yao Qi <yao@codesourcery.com>
7706 Jan Kratochvil <jan.kratochvil@redhat.com>
7707
7708 Fix false compilation warning.
7709 * gnu-v3-abi.c (print_one_vtable): Initialize ADDR.
7710
25f8c692
JL
77112012-03-15 Jonathan Larmour <jifl@eCosCentric.com>
7712 Pedro Alves <pedro@codesourcery.com>
7713
7714 * arm-tdep.c: Include "remote.h" and "features/arm-with-m-fpa-layout.c".
7715 (arm_register_g_packet_guesses): New function.
7716 (arm_gdbarch_init): Don't force a target description with
7717 registers when the executable is detected as M-profile. Instead
7718 set gdbarch->tdep->is_m. Register `g' packet guesses.
7719 (_initialize_arm_tdep): Initialize the new target description.
7720 * features/arm-with-m-fpa-layout.xml: New description.
7721 * features/arm-with-m-fpa-layout.c: New, generated.
7722
35c63cd8
JB
77232012-03-15 Joel Brobecker <brobecker@adacore.com>
7724
7725 * breakpoint.c (breakpoint_xfer_memory): Add assertion.
7726 Update function description.
7727 (insert_bp_location): Do not wipe bl->target_info out.
7728 * mem-break.c: #include "gdb_string.h".
7729 (default_memory_insert_breakpoint): Do not call target_read_memory
7730 with a pointer to the breakpoint's shadow_contents buffer. Use
7731 a local buffer instead.
7732 * m32r-tdep.c (m32r_memory_insert_breakpoint): Ditto.
7733
57651221
TT
77342012-03-15 Tom Tromey <tromey@redhat.com>
7735
7736 * NEWS: Mention "info vtbl", not "info vtable".
7737 * cp-support.c (info_vtbl_command): Fix comment.
7738 (_initialize_cp_support): Fix text.
7739
410528f0
TT
77402012-03-15 Tom Tromey <tromey@redhat.com>
7741
7742 * cp-valprint.c (cp_print_value_fields): Use
7743 print_function_pointer_address for vtable slot.
7744
c4aeac85
TT
77452012-03-15 Tom Tromey <tromey@redhat.com>
7746
7747 * gnu-v3-abi.c (struct value_and_voffset): New.
7748 (hash_value_and_voffset, eq_value_and_voffset)
7749 (compare_value_and_voffset, compute_vtable_size)
7750 (print_one_vtable, gnuv3_print_vtable): New functions.
7751 (init_gnuv3_ops): Initialize 'print_vtable' field.
7752 * cp-support.c (info_vtbl_command): New function.
7753 (_initialize_cp_support): Add "info vtbl".
7754 * cp-abi.h (cplus_print_vtable): Declare.
7755 (struct cp_abi_ops) <print_vtable>: New field.
7756 * cp-abi.c (cplus_print_vtable): New function.
7757 * NEWS: Update.
7758
95cbceff
TT
77592012-03-15 Tom Tromey <tromey@redhat.com>
7760
7761 * d-lang.c (d_language_defn) <la_iterate_over_symbols>: Set to
7762 iterate_over_symbols.
7763
589b4a32
DE
77642012-03-14 Doug Evans <dje@google.com>
7765
7766 * dwarf2read.c (dwarf_stack_op_name): Add DW_OP_GNU_encoded_addr,
7767 DW_OP_GNU_parameter_ref.
7768
e837f12a
JK
77692012-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7770
7771 Fix double prompt of 'interpreter-exec mi'.
7772 * mi/mi-interp.c (mi_execute_command_input_handler): New prototype.
7773 (mi_interpreter_resume): use it.
7774 (mi_execute_command_input_handler): New function.
7775 * mi/mi-main.c (mi_execute_command): Move prompt printing to
7776 mi_execute_command_input_handler.
7777
ff1e4526 77782012-03-13 Josh Matthews <josh@joshmatthews.net> (tiny change)
c381a3f6
JB
7779
7780 * darwin-nat-info.c (_initialize_darwin_info_commands): Add
7781 prototype.
7782 (darwin_debug_port_info): Make static.
7783 * darwin-nat.c (_initialize_darwin_inferior): Add prototype.
7784 * machoread.c (_initialize_machoread): Add prototype.
7785 * i386-darwin-nat.c (i386_darwin_dr_set, i386_darwin_dr_get)
7786 (i386_darwin_set_control, i386_darwin_get_control)
7787 i386_darwin_dr_set_addr, i386_darwin_get_addr)
7788 i386_darwin_get_status, i386_darwin_get_control):
7789 Comment out with HW_WATCHPOINT_NOT_YET_ENABLED macro.
7790
d8a5d6ee
JB
77912012-03-13 Joel Brobecker <brobecker@adacore.com>
7792
7793 * ax-gdb.c (gen_usual_unary): Remove special handling of
7794 enum and bool types.
7795
af381b8c
JB
77962012-03-13 Joel Brobecker <brobecker@adacore.com>
7797
7798 * ax-gdb.c (gen_fetch): Add handling for TYPE_CODE_RANGE types.
7799
786c562f
JB
78002012-03-13 Joel Brobecker <brobecker@adacore.com>
7801
7802 * aix-thread.c (supply_fprs): Make more consistent with fill_fprs.
7803
e3ebf1bb
JB
78042012-03-13 Chris January <chris.january@allinea.com>
7805
7806 * aix-thread.c (fill_sprs): Store the floating point registers
7807 at the correct offsets into vals.
7808
c5b7e1cb
DE
78092012-03-13 Doug Evans <dje@google.com>
7810
16899756
DE
7811 * NEWS: Mention symbol-reloading has been deleted.
7812 * symfile.c (symbol_reloading): Delete.
7813 (show_symbol_reloading): Delete.
7814 (_initialize_symfile): Delete set/show symbol-reloading.
7815
c5b7e1cb
DE
7816 * dwarf2read.c (load_partial_comp_unit): Defer adding cu to
7817 read_in_chain until we have successfully read it in.
7818 (load_full_comp_unit): Ditto.
7819 (read_signatured_type): Add comment.
7820
46cb6474
JB
78212012-03-13 Chris January <chris.january@allinea.com>
7822
7823 * stabsread.c (fix_common_block): Change type of valu argument
7824 to CORE_ADDR.
7825
76219d77
JB
78262012-03-13 Chris January <chris.january@allinea.com>
7827
7828 * rs6000-tdep.c (skip_prologue): Support the oril r29, r1, 0x0
7829 instruction.
7830
87b0bb13
JK
78312012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7832
7833 * common/linux-procfs.c (linux_proc_get_int): New, from
7834 linux_proc_get_tgid, change its LWPID type to pid_t, add parameter
7835 field.
7836 (linux_proc_get_tgid): Only call linux_proc_get_int.
7837 (linux_proc_get_tracerpid): New.
7838 (linux_proc_pid_has_state): New, from linux_proc_pid_is_zombie.
7839 (linux_proc_pid_is_stopped, linux_proc_pid_is_zombie): Only call
7840 linux_proc_pid_has_state.
7841 * common/linux-procfs.h (linux_proc_get_tracerpid): New declaration.
7842 * common/linux-ptrace.c: Include linux-procfs.h and buffer.h.
7843 (linux_ptrace_attach_warnings): New.
7844 * common/linux-ptrace.h (struct buffer, linux_ptrace_attach_warnings):
7845 New declaration.
7846 * linux-nat.c: Include exceptions.h, linux-ptrace.h and buffer.h.
7847 (linux_nat_attach): New variables ex, buffer, message and message_s.
7848 Wrap to_attach by TRY_CATCH and call linux_ptrace_attach_warnings.
7849
5f572dec
JK
78502012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7851
7852 * Makefile.in (linux-ptrace.o): New.
7853 * common/linux-procfs.c (linux_proc_pid_is_zombie): New,
7854 from linux-nat.c.
7855 * common/linux-procfs.h (linux_proc_pid_is_zombie): New declaration.
7856 * common/linux-ptrace.c: New file.
7857 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-ptrace.o.
7858 * config/arm/linux.mh: Likewise.
7859 * config/i386/linux.mh: Likewise.
7860 * config/i386/linux64.mh: Likewise.
7861 * config/ia64/linux.mh: Likewise.
7862 * config/m32r/linux.mh: Likewise.
7863 * config/m68k/linux.mh: Likewise.
7864 * config/mips/linux.mh: Likewise.
7865 * config/pa/linux.mh: Likewise.
7866 * config/powerpc/linux.mh: Likewise.
7867 * config/powerpc/ppc64-linux.mh: Likewise.
7868 * config/powerpc/spu-linux.mh: Likewise.
7869 * config/s390/s390.mh: Likewise.
7870 * config/sparc/linux.mh: Likewise.
7871 * config/sparc/linux64.mh: Likewise.
7872 * config/xtensa/linux.mh: Likewise.
7873 * linux-nat.c (linux_lwp_is_zombie): Remove, move it to
7874 common/linux-procfs.c.
7875 (wait_lwp): Rename linux_lwp_is_zombie to linux_proc_pid_is_zombie.
7876
44f238bb
PA
78772012-03-13 Hui Zhu <teawater@gmail.com>
7878 Pedro Alves <palves@redhat.com>
7879
7880 * breakpoint.c (init_breakpoint_sal): New flags parameter. Handle
7881 CREATE_BREAKPOINT_FLAGS_INSERTED.
7882 (create_breakpoint_sal, create_breakpoints_sal)
7883 (base_breakpoint_create_breakpoints_sal)
7884 (tracepoint_create_breakpoints_sal)
7885 (strace_marker_create_breakpoints_sal): New flags parameter. Pass
7886 down.
7887 (break_command_1, handle_gnu_v3_exceptions, trace_command)
7888 (ftrace_command, strace_command): Adjust.
7889 (create_tracepoint_from_upload): Pass
7890 CREATE_BREAKPOINT_FLAGS_INSERTED.
7891 * breakpoint.h (enum breakpoint_create_flags): New.
7892 (create_breakpoint): New flags parameter.
7893 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
7894 * python/py-breakpoint.c (bppy_init): Adjust.
7895 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust.
7896 * spu-tdep.c (spu_catch_start): Adjust.
7897
1e51243a
PA
78982012-03-13 Pedro Alves <palves@redhat.com>
7899 Hui Zhu <teawater@gmail.com>
7900 Yao Qi <yao@codesourcery.com>
7901
7902 * remote.c (struct remote_state): New field `starting_up'.
7903 (remote_start_remote): Set and clear it.
7904 (remote_can_download_tracepoint): If starting up, return false.
7905
fa3064dd
YQ
79062012-03-13 Yao Qi <yao@codesourcery.com>
7907
7908 * inferior.h (struct inferior): Remove fields any_syscall_count,
7909 syscalls_counts and total_syscalls_count. Move them to new
7910 struct catch_syscall_inferior_data in breakpoint.c.
7911 * breakpoint.c: Call DEF_VEC_I(int).
7912 (struct catch_syscall_inferior_data): New.
7913 (get_catch_syscall_inferior_data): New.
7914 (catch_syscall_inferior_data_cleanup): New.
7915 (insert_catch_syscall): Update to access data in
7916 struct catch_syscall_inferior_data.
7917 (insert_catch_syscall): Likewise.
7918 (remove_catch_syscall): Likewise.
7919 (remove_catch_syscall): Likewise.
7920 (is_syscall_catchpoint_enabled): Likewise.
7921 (add_catch_command): Likewise.
7922 (_initialize_breakpoint): Register cleanup.
7923 * breakpoint.h: Removed DEF_VEC_I(int).
7924 * dwarf2loc.c: Call DEF_VEC_I(int).
7925 * mi/mi-main.c: Likewise.
7926
460fac3c
MK
79272012-03-12 Mark Kettenis <kettenis@gnu.org>
7928
7929 * inf-ptrace.c (inf_ptrace_post_attach): Make static.
7930
e1aca11e
JB
79312012-03-12 Chris January <chris.january@allinea.com>
7932
7933 * aix-thread.c (_initialize_aix_thread): Add prototype.
7934 * rs6000-nat.c (_initialize_rs6000_nat): Ditto.
7935 * xcoffsolib.c (_initialize_xcoffsolib): Ditto.
7936
649c7061
JB
79372012-03-12 Joel Brobecker <brobecker@adacore.com>
7938
7939 * amd64bsd-nat.c: Move #include of "amd64bsd-nat.h" after
7940 include of "amd64-nat.h".
7941
0b49e518
TT
79422012-03-12 Tom Tromey <tromey@redhat.com>
7943
7944 * buildsym.c (record_pending_block): Now static.
7945 * buildsym.h: (record_pending_block): Remove.
7946
fd24fa94
AT
79472012-03-12 Andreas Tobler <andreast@fgznet.ch>
7948
7949 * amd64bsd-nat.c: Include amd64bsd-nat.h.
7950
ba919b58
TT
79512012-03-09 Tom Tromey <tromey@redhat.com>
7952
7953 * dwarf2read.c (struct dwarf2_cu) <checked_producer,
7954 producer_is_gxx_lt_4_6>: New fields.
7955 (producer_is_gxx_lt_4_6): Use and update producer cache fields.
7956
a48e046c
TT
79572012-03-09 Tom Tromey <tromey@redhat.com>
7958
7959 * dwarf2read.c (dwarf2_attr): Avoid tail-recursive call.
7960
6f5e9362
JB
79612012-03-08 Joel Brobecker <brobecker@adacore.com>
7962
7963 * ravenscar-sparc-thread.c (_initialize_ravenscar_sparc): Add
7964 prototype.
7965
8d037db9
JB
79662012-03-08 Joel Brobecker <brobecker@adacore.com>
7967
7968 * ravenscar-thread.c (_initialize_ravenscar): Add prototype.
7969
4e841acf
JK
79702012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7971
7972 Fix -Wmissing-prototypes build.
7973 * arm-linux-nat.c (get_thread_id): Make it static.
7974 * xtensa-linux-nat.c (get_thread_id): Likewise.
7975
c6030312
JB
79762012-03-08 Joel Brobecker <brobecker@adacore.com>
7977
7978 * server.c (process_point_options): If a conditional expression
7979 is found, only print a message if remote_debug is nonzero.
7980
52323be9
LM
79812012-03-08 Luis Machado <lgustavo@codesourcery.com>
7982
7983 * ax-gdb.c (gen_fetch): Fail gracefully and use error instead
7984 of internal error for unknown/unsupported types.
7985
7fe25d9b
JK
79862012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7987
7988 Fix CU relative vs. absolute DIE offsets.
7989 * dwarf2loc.h (dwarf2_fetch_die_location_block): Rename parameter
7990 offset to offset_in_cu.
7991 * dwarf2read.c (process_enumeration_scope): Add CU offset to
7992 TYPE_OFFSET.
7993 (dwarf2_fetch_die_location_block): Rename parameter offset to
7994 offset_in_cu. New variable offset, add CU offset to OFFSET_IN_CU.
7995
05e7c244
JK
79962012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7997
7998 * libunwind-frame.c: Rename to ...
7999 * ia64-libunwind-tdep.c: ... here.
8000 * libunwind-frame.h: Rename to ...
8001 * ia64-libunwind-tdep.h: ... here.
8002 * Makefile.in (HFILES_NO_SRCDIR): Rename libunwind-frame.h to
8003 ia64-libunwind-tdep.h.
8004 (ALLDEPFILES): Rename libunwind-frame.c to ia64-libunwind-tdep.c.
8005 * README (--with-libunwind): Rename to ...
8006 (--with-libunwind-ia64): ... here, note it is ia64 specific now.
8007 * config.in: Regenerate.
8008 * configure: Regenerate.
8009 * configure.ac: New option --with-libunwind-ia64, make the
8010 AS_HELP_STRING ia64 specific. Deprecate option --with-libunwind.
8011 Remove AC_DEFINE for HAVE_LIBUNWIND.
8012 * ia64-libunwind-tdep.c: Make the file top comment ia64 specific.
8013 Rename libunwind-frame.h #include to ia64-libunwind-tdep.h.
8014 Rename libunwind-frame in the general comment.
8015 * ia64-libunwind-tdep.h: Make the file top comment ia64 specific.
8016 Rename symbol LIBUNWIND_FRAME_H to IA64_TDEP_LIBUNWIND_FRAME_H.
8017 Move forward declarations inside #ifndef. Rename libunwind-frame in
8018 the general comment.
8019 * ia64-tdep.c: Rename libunwind-frame.h #include to
8020 ia64-libunwind-tdep.h.
8021 (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum, ia64_is_fpreg)
8022 (ia64_libunwind_descr): Rename libunwind-frame to
8023 ia64-libunwind-tdep in these function comments.
8024 * ia64-tdep.h: Rename libunwind-frame.h #include to
8025 ia64-libunwind-tdep.h.
8026 * ia64-vms-tdep.c (ia64_vms_libunwind_descr): Rename libunwind-frame to
8027 ia64-libunwind-tdep in that data comment.
8028
3755cbfd
JK
80292012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8030
8031 * libunwind-frame.h (struct frame_unwind): New declaration.
8032
d1cda5d9
JB
80332012-03-08 Joel Brobecker <brobecker@adacore.com>
8034
8035 * breakpoint.c (_initialize_breakpoint): Fix error in help of
8036 "set breakpoint condition-evaluation" command.
8037
a0ba0aa2
TG
80382012-03-08 Tristan Gingold <gingold@adacore.com>
8039
8040 * sparc-stub.c: Move to stubs/
8041 * sh-stub.c: Likewise.
8042 * m68k-stub.c: Likewise.
8043 * m32r-stub.c: Likewise.
8044 * i386-stub.c: Likewise.
8045
7b8b6d6d
AS
80462012-03-08 Andreas Schwab <schwab@linux-m68k.org>
8047
007cafee
AS
8048 * m68klinux-tdep.c (m68k_linux_init_abi): Register
8049 linux_get_siginfo_type.
8050
7b8b6d6d
AS
8051 * m68klinux-nat.c: Include "gdb_proc_service.h".
8052 (PTRACE_GET_THREAD_AREA): Define.
8053 (ps_get_thread_area): New function.
8054
bba74b36
YQ
80552012-03-08 Yao Qi <yao@codesourcery.com>
8056
8057 * remote.c (remote_get_noisy_reply): Replace `sprintf' with
8058 `xsnprintf'.
8059 (remote_query_attached): Likewise.
8060 (remote_static_tracepoint_marker_at): Likewise.
8061 (remote_set_permissions): Likewise.
8062 (remote_detach_1, extended_remote_attach_1): Likewise.
8063 (send_g_packet, remote_vkill): Likewise.
8064 (extended_remote_disable_randomization): Likewise.
8065 (remote_add_target_side_condition): Likewise.
8066 (remote_insert_breakpoint): Likewise.
8067 (remote_remove_breakpoint): Likewise.
8068 (remote_insert_watchpoint): Likewise.
8069 (remote_remove_watchpoint): Likewise.
8070 (remote_insert_hw_breakpoint): Likewise.
8071 (remote_insert_hw_breakpoint): Likewise.
8072 (remote_remove_hw_breakpoint): Likewise.
8073 (remote_download_command_source): Likewise.
8074 (remote_download_tracepoint): Likewise.
8075 (remote_download_trace_state_variable): Likewise.
8076 (remote_disable_tracepoint): Likewise.
8077 (remote_trace_set_readonly_regions): Likewise.
8078 (remote_get_tracepoint_status): Likewise.
8079 (remote_trace_find): Likewise.
8080 (remote_get_trace_state_variable_value): Likewise.
8081 (remote_set_disconnected_tracing): Likewise.
8082 (remote_set_circular_trace_buffer): Likewise.
8083 (remote_get_min_fast_tracepoint_insn_len): Likewise.
8084 (remote_use_agent): Likewise.
8085 (remote_add_target_side_condition): Add one parameter BUF_SIZE.
8086 Update callers.
8087
9b224c5e
PA
80882012-03-07 Pedro Alves <palves@redhat.com>
8089
8090 * NEWS: Mention QProgramSignals.
8091 * inferior.h (update_signals_program_target): Declare.
8092 * infrun.c: (update_signals_program_target): New.
8093 (handle_command): Update the target of the new program signals
8094 array changes.
8095 * remote.c (PACKET_QProgramSignals): New enum.
8096 (last_program_signals_packet): New global.
8097 (remote_program_signals): New.
8098 (remote_start_remote): Update the target with the program signals
8099 list.
8100 (remote_protocol_features): Add entry for QPassSignals.
8101 (remote_open_1): Free anc clear last_program_signals_packet.
8102 (init_remote_ops): Install remote_program_signals.
8103 * target.c (update_current_target): Adjust.
8104 (target_program_signals): New.
8105 * target.h (struct target_ops) <to_program_signals>: New field.
8106 (target_program_signals): Declare.
8107
74c48cbb
PA
81082012-03-07 Pedro Alves <palves@redhat.com>
8109
8110 * NEWS: Add subtitle for new z0/z1 conditional breakpoint
8111 extensions.
8112
0c13fc49
AS
81132012-03-07 Andreas Schwab <schwab@linux-m68k.org>
8114
8115 * m68klinux-nat.c (getregs_supplies): Make static.
8116 (getfpregs_supplies): Likewise.
8117 (have_ptrace_getregs): Likewise.
8118
1281d2a3
JB
81192012-03-06 Joel Brobecker <brobecker@adacore.com>
8120
8121 * dwarf2read.c (dwarf2_get_die_type): Pass absolute offset
8122 in call to get_die_type_at_offset.
8123
2b03b41d
SS
81242012-03-06 Stan Shebs <stan@codesourcery.com>
8125
8126 * mi/mi-cmd-break.c: Enforce coding standards, fix comments.
8127 * mi/mi-cmd-disas.c: Ditto.
8128 * mi/mi-cmd-env.c: Ditto.
8129 * mi/mi-cmd-file.c: Ditto.
8130 * mi/mi-cmd-stack.c: Ditto.
8131 * mi/mi-cmd-target.c: Ditto.
8132 * mi/mi-cmd-var.c: Ditto.
8133 * mi/mi-cmds.c: Ditto.
8134 * mi/mi-cmds.h: Ditto.
8135 * mi/mi-console.c: Ditto.
8136 * mi/mi-getopt.c: Ditto.
8137 * mi/mi-getopt.h: Ditto.
8138 * mi/mi-interp.c: Ditto.
8139 * mi/mi-main.c: Ditto.
8140 * mi/mi-out.c: Ditto.
8141 * mi/mi-parse.c: Ditto.
8142 * mi/mi-parse.h: Ditto.
8143 * mi/mi-symbol-cmds.c: Ditto.
8144
8145 * mi/mi-getopt.h: Move mi_opt struct up.
8146 * mi/mi-main.c (captured_mi_execute_command): Remove redundant
8147 return.
8148 * mi/mi-out.c (_initialize_mi_out): Remove empty initialize.
8149
c988ad87
TT
81502012-03-06 Tom Tromey <tromey@redhat.com>
8151
8152 * proc-service.c (ps_pglobal_lookup): Set the current program
8153 space.
8154
1b7c1b10
PA
81552012-03-06 Pedro Alves <palves@redhat.com>
8156
8157 * gregset.h [HAVE_SYS_PROCFS_H]: Include <sys/procfs.h>.
8158
3c182069
JB
81592012-03-05 Joel Brobecker <brobecker@adacore.com>
8160
8161 * MAINTAINERS: List Maciej W. Rozycki as the mips maintainer.
8162
2e794194
JK
81632012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8164
8165 Code cleanup.
8166 * common/linux-osdata.c (linux_common_core_of_thread): New function
8167 comment.
8168 * linux-nat.c (linux_nat_wait_1): Replace linux_nat_core_of_thread_1
8169 call by linux_common_core_of_thread.
8170 (linux_nat_core_of_thread_1): Remove.
8171 * linux-nat.h (linux_nat_core_of_thread_1): Remove declaration.
8172 * linux-thread-db.c: Include linux-osdata.h.
8173 (update_thread_core): Replace linux_nat_core_of_thread_1 call by
8174 linux_common_core_of_thread.
8175
9f9f1f31
TT
81762012-03-05 Tom Tromey <tromey@redhat.com>
8177
8178 * value.c (value_primitive_field): Don't fetch contents for
8179 non-virtual bases.
8180
b7b189f3
TT
81812012-03-05 Tom Tromey <tromey@redhat.com>
8182
8183 * jv-valprint.c (java_value_print): Correctly compute 'obj_addr'.
8184
05b8a789 81852012-03-05 Andreas Arnez <arnez@linux.vnet.ibm.com>
5538f557 8186
5538f557
JB
8187 * s390-nat.c: Include "gregset.h".
8188
75528772
JK
81892012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8190
8191 * libunwind-frame.c (LIBUNWIND_SO): Change .7 to .8.
8192 [!LIBUNWIND_SO] (LIBUNWIND_SO_7): New #define.
8193 (libunwind_load): New variable so_error, use it for dlerror. Try to
8194 load also LIBUNWIND_SO_7.
8195
275418ae
PA
81962012-03-05 Pedro Alves <palves@redhat.com>
8197
8198 * i387-tdep.c (i387_supply_xsave): Assert the xsave section buffer
8199 is not NULL, and remove resulting dead code.
8200
5cbb9812
TS
82012012-03-05 Thomas Schwinge <thomas@codesourcery.com>
8202
8203 * sh-tdep.c (sh_skip_prologue): Provide an upper limit on the function
8204 prologue to sh_analyze_prologue.
8205 (sh_analyze_prologue): Make better use of such an upper limit, and
8206 generally be more cautious about accessing memory.
8207
541515ad
TT
82082012-03-05 Tom Tromey <tromey@redhat.com>
8209
8210 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from
8211 _initialize_ia64_hpux_tdep.
8212
b4d36fb8
PA
82132012-03-05 Pedro Alves <palves@redhat.com>
8214
24490249
PA
8215 PR gdb/13766
8216
b4d36fb8
PA
8217 * i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and
8218 the register state is clear, supply explicit zero, instead of
8219 marking the register unavailable.
8220
60c9a3c0
TG
82212012-03-05 Tristan Gingold <gingold@adacore.com>
8222
8223 * NEWS: Mention OpenVMS ia64 new target.
8224
696759ad
TG
82252012-03-05 Tristan Gingold <gingold@adacore.com>
8226
8227 * ia64-tdep.h: Include libunwind-frame.h and libunwind-ia64.h.
8228 (ia64_unw_accessors, ia64_unw_rse_accessors)
8229 (ia64_libunwind_descr): Declare.
8230 * ia64-vms-tdep.c: New file.
8231 * ia64-tdep.c (ia64_unw_accessors, ia64_unw_rse_accessors)
8232 (ia64_libunwind_descr): Make them public.
8233 * configure.tgt: Add ia64-*-*vms*.
8234 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-vms-tdep.o
8235 (ALLDEPFILES): Add ia64-vms-tdep.c
8236
34864976
TG
82372012-03-05 Tristan Gingold <gingold@adacore.com>
8238
169081d0
TG
8239 * target.h (target_object): Add TARGET_OBJECT_OPENVMS_UIB.
8240 * remote.c (PACKET_qXfer_uib): New enum value.
8241 (remote_protocol_features): Add entry for PACKET_qXfer_uib.
8242 (remote_xfer_partial): Handle TARGET_OBJECT_OPENVMS_UIB.
8243 (_initialize_remote): Call add_packet_config_cmd for
8244 xfer:uib packet.
8245
82462012-03-05 Tristan Gingold <gingold@adacore.com>
8247
8248 * osabi.c (gdb_osabi_names): Add OpenVMS.
8249 (generic_elf_osabi_sniffer): Likewise.
8250 * defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS.
34864976 8251
6597b100
JK
82522012-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
8253
8254 Removed unused code.
8255 * libunwind-frame.c (libunwind_frame_unwind)
8256 (libunwind_frame_base_address): Remove.
8257 * libunwind-frame.h (libunwind_frame_base_address): Remove declaration.
8258
87399aa1
YQ
82592012-03-04 Yao Qi <yao@codesourcery.com>
8260
8261 * common/agent.c (gdb_connect_sync_socket): Add _ markup and
8262 remove trailing new line.
8263 (agent_run_command, agent_run_command): Add _ markup.
8264 (agent_capability_check): Likewise.
8265
abf1152a
JK
82662012-03-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8267
8268 * breakpoint.c (set_condition_evaluation_mode): Set
8269 CONDITION_EVALUATION_MODE unconditionally.
8270
5808517f
YQ
82712012-03-03 Yao Qi <yao@codesourcery.com>
8272
8273 * common/agent.c (agent_look_up_symbols): Add one parameter 'arg'.
8274 * common/agent.h: Update declaration.
8275 * inf-child.c (inf_child_use_agent): New.
8276 (inf_child_can_use_agent): New.
8277 (inf_child_target): Initialize fields `to_use_agent'
8278 and `to_can_use_agent'.
8279 * agent.c (agent_new_objfile): New.
89b7509a 8280 (_initialize_agent): Add agent_new_objfile to new_objfile
5808517f
YQ
8281 observer.
8282
8283 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
8284 New.
89b7509a 8285 (linux_target_install_ops): Initialize field
5808517f
YQ
8286 `to_static_tracepoint_markers_by_strid'.
8287 * remote.c (free_current_marker): Move it to ...
8288 * tracepoint.c (free_current_marker): ... here. New.
8289 (cleanup_target_stop): New.
8290 * tracepoint.h: Declare free_current_marker.
8291 * NEWS: Add one entry about `info static-tracepoint-marker'.
8292
58b4daa5
YQ
82932012-03-03 Yao Qi <yao@codesourcery.com>
8294
8295 * common/agent.c (agent_loaded_p): New.
89b7509a 8296 (agent_look_up_symbols): New global.
58b4daa5
YQ
8297 * common/agent.h: Declare agent_loaded_p.
8298
8ffcbaaf
YQ
82992012-03-03 Yao Qi <yao@codesourcery.com>
8300
8301 * common/agent.c (struct ipa_sym_addresses) <addr_capability>: New.
8302 (agent_capability_check, agent_capability_invalidate): New.
8303 (symbol_list): New array element.
8304 * common/agent.h (enum agent_capa): New.
8305 * target.c (target_pre_inferior): Call agent_capability_invalidate.
8306
d1feda86
YQ
83072012-03-03 Yao Qi <yao@codesourcery.com>
8308
8309 * target.h (struct target_ops) <to_use_agent>: New field.
8310 (struct target_ops) <to_can_use_agent>: New field.
8311 (target_use_agent, target_can_use_agent): New macro.
8312 * target.c (update_current_target): Update.
8313 * remote.c: New enum `PACKET_QAgent'.
8314 (remote_protocol_features): Add a new element.
8315 (remote_use_agent, remote_can_use_agent): New.
8316 (init_remote_ops): Initialize field `can_use_agent' with
8317 remote_can_use_agent. Intiailize field `use_agent' with
8318 remote_use_agent.
8319 * common/agent.c (use_agent): New global.
8320 * common/agent.h: Declare it.
8321 * tracepoint.c (info_static_tracepoint_markers_command): Add
8322 comment.
8323 * Makefile.in (SFILES): Add common/agent.c and agent.c.
8324 (COMMON_OBS): Add common/agent.o and agent.o
8325 (common-agent.o): New rule.
8326 * agent.c: New.
8327
2fa291ac
YQ
83282012-03-03 Yao Qi <yao@codesourcery.com>
8329
8330 * common/agent.c: New.
8331 * common/agent.h: New.
8332 * configure.ac: Add `sys/socket.h' and `sys/un.h' to
8333 AC_CHECK_HEADERS.
8334 * configure, configh.in: Regenerated.
8335
9fc05685
KB
83362012-03-02 Kevin Buettner <kevinb@redhat.com>
8337
8338 * sh-tdep.c (sh_frame_cache): Don't fetch the FPSCR register
8339 unless it exists for this architecture.
8340
a5ee536b
JB
83412012-03-02 Joel Brobecker <brobecker@adacore.com>
8342
8343 * language.h (struct language_defn): New "method" la_read_var_value.
8344 * findvar.c: #include "language.h".
8345 (default_read_var_value): Renames read_var_value. Rewrite
8346 function description.
8347 (read_var_value): New function.
8348 * value.h (default_read_var_value): Add prototype.
8349 * ada-lang.c (ada_read_renaming_var_value, ada_read_var_value):
8350 New functions.
8351 (ada_language_defn): Add entry for la_read_var_value.
8352 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, language.c,
8353 * m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Update
8354 language_defn structures to add entry for new la_read_var_value
8355 field.
8356
f59f708a
PA
83572012-03-02 Tom Tromey <tromey@redhat.com>
8358 Pedro Alves <palves@redhat.com>
8359
8360 PR breakpoints/13776:
8361 * breakpoint.c (breakpoint_init_inferior): Delete step-resume
8362 breakpoints.
8363 (delete_longjmp_breakpoint_at_next_stop): New.
8364 * breakpoint.h (delete_longjmp_breakpoint_at_next_stop): Declare.
8365 * target.c (generic_mourn_inferior): Call mark_breakpoints_out
8366 before deleting the inferior. Add comments.
8367 * thread.c (clear_thread_inferior_resources): Don't delete lonjmp
8368 breakpoints immediately, but only on next stop. Move that code
8369 next to where we mark other breakpoints for deletion.
8370
44099a67
JB
83712012-03-02 Joel Brobecker <brobecker@adacore.com>
8372
8373 * mips-linux-nat.c (mips_linux_read_description): Add missing i18n
8374 marker.
8375 * mips-tdep.c (mips_linux_reg_names): Improve comment to avoid ARI
8376 violation.
8377
2a2ef594
PA
83782012-03-02 Pedro Alves <palves@redhat.com>
8379
8380 * linux-thread-db.c (attach_thread): Avoid in_thread_list call.
8381
b261e0c5
UW
83822012-03-02 Ulrich Weigand <uweigand@de.ibm.com>
8383
8384 Fix -Wmissing-prototypes build.
8385 * ppc-linux-nat.c (ppc_linux_get_hwcap): Make static.
8386 * remote-sim.c (gdbsim_has_all_memory): Likewise.
8387 (gdbsim_has_memory): Likewise.
8388
a95babbf
YQ
83892012-03-02 Yao Qi <yao@codesourcery.com>
8390
8391 Fix -Wmissing-prototypes build.
8392 * charset.c (phony_iconv_open): Make static.
8393 (phony_iconv_close, phony_iconv): Likewise.
8394 * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype.
8395 * i386-windows-nat.c (_initialize_i386_windows_nat): New
8396 prototype.
8397 * mingw-hdep.c (_initialize_mingw_hdep): New prototype.
8398 * ser-mingw.c (create_select_thread): Make static.
8399 * windows-termcap.c (tgetent): New prototype.
8400 (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
8401
d603d4b3
JK
84022012-03-02 Zhang Yuanhui <asmwarrior@gmail.com>
8403
8404 Fix -Wmissing-prototypes build.
8405 * windows-nat.c (dll_symbol_command, ctrl_c_handler): Make them static.
8406 (_initialize_windows_nat, _initialize_check_for_gdb_ini)
8407 (_initialize_loadable): New prototypes.
8408
7fb3ad1f
DE
84092012-03-02 Doug Evans <dje@google.com>
8410
8411 * dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
8412 abbrev table, read_comp_unit will do it.
8413
693be288
JK
84142012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8415
8416 Fix -Wmissing-prototypes build.
8417 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Make it static.
8418 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): New prototype.
8419 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Likewise.
8420 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code): Make it static.
8421 (_initialize_arm_symbian_tdep): New prototype.
8422 * arm-wince-tdep.c (arm_wince_skip_main_prologue): Make it static.
8423 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): New prototype.
8424 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Make it
8425 static.
8426 * lm32-tdep.c (_initialize_lm32_tdep): New prototype.
8427 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): New
8428 prototype.
8429 * microblaze-tdep.c (microblaze_debug, microblaze_fetch_instruction)
8430 (microblaze_skip_prologue, microblaze_frame_cache): Make them static.
8431 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Make it
8432 static.
8433 * moxie-tdep.c (moxie_process_record): Likewise.
8434 * remote-mips.c (mips_can_use_watchpoint, mips_insert_watchpoint)
8435 (mips_remove_watchpoint, mips_stopped_by_watchpoint): Make them static.
8436 * rl78-tdep.c (rl78_breakpoint_from_pc): Make it static.
8437 (_initialize_rl78_tdep): New prototype.
8438 * rx-tdep.c (rx_breakpoint_from_pc): Make it static.
8439 (_initialize_rx_tdep): New prototype.
8440 * solib-darwin.c (darwin_in_dynsym_resolve_code): Make it static.
8441 (_initialize_darwin_solib): New prototype.
8442 * solib-spu.c: Include solib-spu.h.
8443 (_initialize_spu_solib): New prototype.
8444 * spu-multiarch.c (_initialize_spu_multiarch): New prototype.
8445 * tic6x-tdep.c (tic6x_analyze_prologue, tic6x_skip_prologue)
8446 (tic6x_breakpoint_from_pc, tic6x_frame_unwind_cache)
8447 (tic6x_software_single_step): Make it static.
8448 (_initialize_tic6x_tdep): New prototype.
8449
638234e5
JK
84502012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8451
8452 Fix -Wmissing-prototypes build.
8453 * cris-tdep.c (cris_can_use_hardware_watchpoint)
8454 (cris_region_ok_for_watchpoint, cris_stopped_data_address): Remove.
8455
f4a6f16d
JK
84562012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
8457
8458 Fix -Wmissing-prototypes build.
8459 * frv-tdep.c (frv_check_watch_resources, frv_stopped_data_address)
8460 (frv_have_stopped_data_address): Remove.
8461
04dcf5fa
JK
84622012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
8463
8464 Fix -Wmissing-prototypes build.
8465 * Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h.
8466 * sh-tdep.c: Include sh64-tdep.h.
8467 * sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations.
8468 * sh64-tdep.c: Include sh64-tdep.h.
8469 * sh64-tdep.h: New file.
8470
19080931
MR
84712012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
8472
8473 * mips-tdep.c (mips32_scan_prologue): Correct indentation.
8474
9aac7884
MR
84752012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
8476
8477 * mips-tdep.c (mips_gdbarch_init): Only set pc_regnum and
8478 sp_regnum once the gdbarch_init_osabi hook has been called.
8479
a385295e
MR
84802012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
8481
8482 * mips-tdep.c (mips32_bc1_pc): New function.
8483 (mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T,
8484 BPOSGE32 and BPOSGE64 instructions.
8485 (deal_with_atomic_sequence): Likewise.
8486 (mips32_instruction_has_delay_slot): Likewise.
8487
1faeff08 84882012-03-01 Maciej W. Rozycki <macro@mips.com>
a09130f9
PA
8489 Chris Dearman <chris@mips.com>
8490 Maciej W. Rozycki <macro@codesourcery.com>
8491 Joseph Myers <joseph@codesourcery.com>
1faeff08
MR
8492
8493 * features/mips-dsp.xml: New file.
8494 * features/mips64-dsp.xml: New file.
8495 * features/mips-dsp-linux.xml: New file.
8496 * features/mips64-dsp-linux.xml: New file.
8497 * features/Makefile (WHICH): Add mips-dsp-linux and
8498 mips64-dsp-linux.
8499 (mips-dsp-expedite, mips64-dsp-expedite): New variables.
8500 * features/mips-dsp-linux.c: New file.
8501 * features/mips64-dsp-linux.c: New file.
8502 * regformats/mips-dsp-linux.dat: New file.
8503 * regformats/mips64-dsp-linux.dat: New file.
8504 * mips-linux-nat.c (mips_linux_register_addr): Handle DSP
8505 registers.
8506 (mips64_linux_register_addr): Likewise.
8507 (mips64_linux_regsets_fetch_registers): Likewise.
8508 (mips64_linux_regsets_store_registers): Likewise.
8509 (mips64_linux_fetch_registers): Update call to
8510 mips64_linux_regsets_fetch_registers.
8511 (mips64_linux_store_registers): Update call to
8512 mips64_linux_regsets_store_registers.
8513 (mips_linux_read_description): Probe for DSP registers.
8514 (_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux
8515 and initialize_tdesc_mips64_dsp_linux.
8516 * mips-linux-tdep.c (supply_gregset, mips64_supply_gregset):
8517 Remove padding of no longer used embedded register slots.
8518 * mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros.
8519 (MIPS_RESTART_REGNUM): Redefine enum value.
8520 * mips-tdep.c (mips_generic_reg_names): Remove trailing null
8521 strings.
8522 (mips_tx39_reg_names): Likewise.
8523 (mips_linux_reg_names): New array of register names for Linux
8524 targets.
8525 (mips_register_name): Check for a null pointer in
8526 mips_processor_reg_names and return an empty string.
8527 (mips_register_type): Exclude embedded registers for the IRIX
8528 and Linux ABIs.
8529 (mips_pseudo_register_type): Likewise. Use dynamic numbers to
8530 refer to FP registers, LO, HI, BadVAddr, Cause and PC. Handle
8531 DSP registers.
8532 (mips_stab_reg_to_regnum): Handle DSP accumulators.
8533 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
8534 (mips_gdbarch_init): Likewise. Initialize internal register
8535 indices for the Linux ABI. Use dynamic numbers to refer to
8536 registers, as applicable, while parsing the target description.
8537 * mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets.
8538
263689d8
JB
85392012-03-01 Joel Brobecker <brobecker@adacore.com>
8540
8541 * frame.h (read_frame_register_unsigned): Fix typo in function
8542 description.
8543
f3b4f45c
PA
85442012-03-01 Pedro Alves <palves@redhat.com>
8545
8546 * jit-reader.in [!__cplusplus]
8547 (GDB_DECLARE_GPL_COMPATIBLE_READER): Add missing backslash.
8548
b03a2011
PA
85492012-03-01 Pedro Alves <palves@redhat.com>
8550
8551 * configure.ac (build_warnings): Add -Wmissing-prototypes.
8552 * configure: Regenerate.
8553
70221824
PA
85542012-03-01 Pedro Alves <palves@redhat.com>
8555
8556 * amd64-linux-tdep.c (amd64_linux_record_signal): Make static.
8557 * breakpoint.c (create_exception_master_breakpoint, trace_command)
8558 (ftrace_command, strace_command): Make static.
8559 * d-lang.c (_initialize_d_language): Declare.
8560 * dwarf2expr.c (_initialize_dwarf2expr): Declare.
8561 * dwarf2loc.c (_initialize_dwarf2loc):
8562 * dwarf2read.c (process_psymtab_comp_unit): Make static.
8563 * exec.c (exec_get_section_table): Make static.
8564 * i386-linux-tdep.c (i386_linux_record_signal): Make static.
8565 * infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static.
8566 * inferior.c (remove_inferior_command, add_inferior_command)
8567 (clone_inferior_command): Make static.
8568 * linux-nat.c (linux_nat_thread_address_space)
8569 (linux_nat_core_of_thread): Make static.
8570 * linux-tdep.c (_initialize_linux_tdep): Declare.
8571 * objc-lang.c (_initialize_objc_lang): Declare.
8572 * opencl-lang.c (builtin_opencl_type, opencl_language_arch_info):
8573 Make static.
8574 (_initialize_opencl_language): Declare.
8575 * record.c (_initialize_record): Declare.
8576 * remote.c (demand_private_info, remote_get_tib_address)
8577 (remote_supports_cond_tracepoints)
8578 (remote_supports_fast_tracepoints, remote_get_tracepoint_status):
8579 Make static.
8580 * skip.c (_initialize_step_skip): Declare.
8581 * symtab.c (skip_prologue_using_lineinfo): Make static.
8582 * tracepoint.c (delete_trace_state_variable)
8583 (trace_variable_command, delete_trace_variable_command)
8584 (get_uploaded_tsv, find_matching_tracepoint_location)
8585 (find_matching_tsv, create_tsv_from_upload, get_traceframe_info):
8586 Make static.
8587 * value.c (pack_unsigned_long): Make static.
8588 * varobj.c (varobj_ensure_python_env): Make static.
8589 * windows-tdep.c (_initialize_windows_tdep): Declare.
8590 * xml-syscall.c (make_cleanup_free_syscalls_info): Make static.
8591
33fbcbee
PA
85922012-03-01 Pedro Alves <palves@redhat.com>
8593
8594 * linux-tdep.c (linux_has_shared_address_space): Make static. Add
8595 gdbarch parameter.
8596 (linux_init_abi): Install it as has_shared_address_space gdbarch
8597 callback.
8598
44d0cd3b
PA
85992012-03-01 Pedro Alves <palves@redhat.com>
8600
8601 * observer.c (observer_test_first_notification_function)
8602 (observer_test_second_notification_function)
8603 (observer_test_third_notification_function): Add declarations.
8604
ed01b82c
PA
86052012-03-01 Pedro Alves <palves@redhat.com>
8606
8607 * common/signals.c (default_target_signal_to_host)
8608 (default_target_signal_from_host): Move ...
8609 * arch-utils.c: ... here.
8610 * arch-utils.h (default_target_signal_to_host)
8611 (default_target_signal_from_host): Declare.
8612
8613 * common/signals.c (target_signal_from_command): Move ...
8614 * infrun.c: ... here.
8615 * inferior.h (target_signal_from_command): Declare.
8616 * target.h (target_signal_from_command)
8617 (default_target_signal_from_host, default_target_signal_to_host):
8618 Delete declarations.
8619
8620 * common/signals.c (_initialize_signals): Delete.
8621
c9b87335
PA
86222012-03-01 Pedro Alves <palves@redhat.com>
8623
8624 * jit-reader.in (plugin_is_GPL_compatible): Add declarations for
8625 both __cplusplus and !__cplusplus.
8626
9340a6c0
PA
86272012-03-01 Pedro Alves <palves@redhat.com>
8628
8629 * psymtab.c (find_and_open_source): Delete declaration.
8630 * source.c (find_and_open_source): Move comment ...
8631 * source.h (find_and_open_source): ... to this new declaration.
8632
e451c4a1
PA
86332012-03-01 Pedro Alves <palves@redhat.com>
8634
8635 * inline-frame.c: Include inline-frame.h.
8636
983fb104
PA
86372012-03-01 Pedro Alves <palves@redhat.com>
8638
8639 * tui/tui-data.c (set_gen_win_origin): Delete.
8640 * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration.
8641 * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete.
8642
5fbce5df
PA
86432012-03-01 Pedro Alves <palves@redhat.com>
8644
8645 * remote.c (encode_actions): Delete declaration.
8646 * tracepoint.c (encode_actions): Make extern.
8647 * tracepoint.h (encode_actions): Declare.
8648
49a8461d
PA
86492012-03-01 Pedro Alves <palves@redhat.com>
8650
8651 * python/py-breakpoint.c: Include python.h.
8652 * python/py-continueevent.c (create_continue_event_object): Make
8653 static.
8654 * python/py-lazy-string.c (stpy_get_type): Make static.
8655 * python/py-newobjfileevent.c (create_new_objfile_event_object):
8656 Make static.
8657 * python/py-utils.c (unicode_to_target_python_string): Make
8658 static.
8659 * python/py-value.c: Include python.h.
8660
9079102f
PA
86612012-03-01 Pedro Alves <palves@redhat.com>
8662
8663 * inferior.c (delete_threads_of_inferior): Delete.
8664
a298c5e8
PA
86652012-03-01 Pedro Alves <palves@redhat.com>
8666
8667 Import fallback definitions from glibc.
8668
8669 * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
8670 ps_prochandle): Forward declare.
8671 (ps_err_e): Use glibc's comments.
8672 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
8673 (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
8674 (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup)
8675 (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize)
8676 (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare.
8677 (struct ps_prochandle): Adjust comment.
8678
e3084549
PA
86792012-03-01 Pedro Alves <palves@redhat.com>
8680
8681 * ada-lang.c (ada_modulus_from_name): Delete.
8682 * ada-lex.l (lexer_init): Make static.
8683
ad5f7d6e
PA
86842012-03-01 Pedro Alves <palves@redhat.com>
8685
8686 PR gdb/13767
8687
8688 * frame.c (read_frame_register_unsigned): New.
8689 * frame.h (read_frame_register_unsigned): Declare.
8690 * i387-tdep.c (print_i387_status_word): New parameter `status_p'.
8691 Handle it.
8692 (print_i387_control_word): New parameter `control_p'. Handle it.
8693 (i387_print_float_info): Handle unavailable float registers.
8694
e0a4d108
KS
86952012-03-01 Keith Seitz <keiths@redhat.com>
8696
8697 * linespec.c (decode_line_2): Sort the list of methods
8698 alphabetically before presenting the user with a selection
8699 menu.
8700
122d1940
DE
87012012-03-01 Doug Evans <dje@google.com>
8702
8703 * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
8704 has_namespace_info.
8705 (dwarf2_read_abbrevs): Remove corresponding initialization.
8706
7d74f244
DE
87072012-03-01 Scott J. Goldman <scottjg@vmware.com>
8708
8709 * NEWS: Mention new python command class gdb.COMMAND_USER.
8710 * cli/cli-cmds.c (show_user): Print error when used on a python
8711 command.
8712 (init_cli_cmds): Update documentation strings for "show user" and
8713 "set/show max-user-call-depth" to clarify that it does not apply to
8714 python commands.
8715 * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in
8716 error check.
8717 (gdbpy_initialize_commands): Add COMMAND_USER as a constant in
8718 gdb python api.
8719 * top.c (execute_command): Only execute a user-defined command as a
8720 legacy macro if c->user_commands is set.
8721
e88acd96
TT
87222012-03-01 Tom Tromey <tromey@redhat.com>
8723
8724 * valprint.h (struct generic_val_print_decorations): New.
8725 (generic_val_print): Declare.
8726 * valprint.c (generic_val_print): New function.
8727 * p-valprint.c (p_decorations): New global.
8728 (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM,
8729 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT,
8730 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF,
8731 TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print.
8732 * m2-valprint.c (m2_decorations): New global.
8733 (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC,
8734 TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR,
8735 TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF,
8736 TYPE_CODE_ERROR>: Call generic_val_print.
8737 * f-valprint.c (f_decorations): New global.
8738 (f_val_print): Use print_function_pointer_address.
8739 <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS,
8740 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE,
8741 TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call
8742 generic_val_print.
8743 * c-valprint.c (c_decorations): New global.
8744 (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM,
8745 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL,
8746 TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT,
8747 TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR,
8748 TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print.
8749 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove
8750 case.
8751
d3eab38a
TT
87522012-03-01 Tom Tromey <tromey@redhat.com>
8753
8754 * valprint.c (val_print): Update.
8755 * p-valprint (pascal_val_print): Return void.
8756 * p-lang.h (pascal_val_print): Return void.
8757 * m2-valprint.c (m2_val_print): Return void.
8758 * m2-lang.h (m2_val_print): Return void.
8759 * language.h (struct language_defn) <la_val_print>: Return void.
8760 * language.c (unk_lang_val_print): Return void.
8761 * jv-valprint.c (java_val_print): Return void.
8762 * jv-lang.h (java_val_print): Return void.
8763 * f-valprint.c (f_val_print): Return void.
8764 * f-lang.h (f_val_print): Return void.
8765 * d-valprint.c (d_val_print): Return void.
8766 (dynamic_array_type): Update.
8767 * d-lang.h (d_val_print): Return void.
8768 * c-valprint.c (c_val_print): Return void.
8769 * c-lang.h (c_val_print): Return void.
8770 * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
8771 void.
8772 * ada-lang.h (ada_val_print): Return void.
8773
35c0084b
TT
87742012-03-01 Tom Tromey <tromey@redhat.com>
8775
8776 * value.h (val_print): Return void.
8777 * valprint.c (val_print): Return void.
8778
a1f5dd1b
TT
87792012-03-01 Tom Tromey <tromey@redhat.com>
8780
8781 * value.h (common_val_print): Return void.
8782 * valprint.c (common_val_print): Return void.
8783
8e069a98
TT
87842012-03-01 Tom Tromey <tromey@redhat.com>
8785
8786 * value.h (value_print): Return void.
8787 * valprint.c (value_print): Return void.
8788 * p-valprint.c (pascal_value_print): Return void.
8789 * p-lang.h (pascal_value_print): Return void.
8790 * language.h (struct language_defn) <la_value_print>: Return
8791 void.
8792 * language.c (unk_lang_value_print): Return void.
8793 * jv-valprint.c (java_value_print): Return void.
8794 * jv-lang.h (java_value_print): Return void.
8795 * f-valprint.c (c_value_print): Don't declare.
8796 Include c-lang.h.
8797 * c-valprint.c (c_value_print): Return void.
8798 * c-lang.h (c_value_print): Return void.
8799 * ada-valprint.c (ada_value_print): Return void.
8800 * ada-lang.h (ada_value_print): Return void.
8801
be335936
TT
88022012-03-01 Tom Tromey <tromey@redhat.com>
8803
8804 * value.c (value_primitive_field): Handle virtual base classes.
8805
b0db66a7
TT
88062012-03-01 Tom Tromey <tromey@redhat.com>
8807
8808 * gdbtypes.h (struct vbase): Remove.
8809
132c57b4
TT
88102012-03-01 Tom Tromey <tromey@redhat.com>
8811
8812 * c-valprint.c (print_function_pointer_address): Move...
8813 * valprint.c: ... here. Make non-static.
8814 * m2-valprint.c (print_function_pointer_address): Remove.
8815 * valprint.h (print_function_pointer_address): Declare.
8816
e41eec66
JB
88172012-03-01 Joel Brobecker <brobecker@adacore.com>
8818
8819 * NEWS: Document the fact that one can provide a condition when
8820 creating an Ada exception catchpoint.
8821
19c37f24
TT
88222012-03-01 Tom Tromey <tromey@redhat.com>
8823
8824 * valprint.c (val_print_type_code_flags): Fix placement of
8825 trailing brace.
8826
f0fed3a3
JB
88272012-03-01 Joel Brobecker <brobecker@adacore.com>
8828
8829 * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
8830 (update_files): Do not set MULTILINE_COMMENT_PREFIXES
8831 environment variable before calling update-copyright.
8832
8ba85d85
JB
88332012-03-01 Joel Brobecker <brobecker@adacore.com>
8834
8835 * gnulib/extra/update-copyright: Update to the latest from
8836 gnulib's git repository.
8837 * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
8838 variable to 2 instead of 1.
8839
8219b1e8
JB
88402012-02-29 Joel Brobecker <brobecker@adacore.com>
8841
8842 * varobj.c (c_value_of_variable): Remove dead code.
8843
718cb7da
JB
88442012-02-29 Joel Brobecker <brobecker@adacore.com>
8845
8846 * ada-lex.p (processId): Do not modify already encoded IDs.
8847 Update function documentation.
8848
739593e0
JB
88492012-02-29 Joel Brobecker <brobecker@adacore.com>
8850
8851 * ada-lang.h (ada_find_renaming_symbol): Replace parameter
8852 "name" with "struct symbol *name_sym".
8853 * ada-exp.y (write_var_or_type): Update call to
8854 ada_find_renaming_symbol.
8855 "name" with "struct symbol *name_sym". Adjust Implementation
8856 accordingly. Adjust the function documentation.
8857
852dff6c
JB
88582012-02-29 Joel Brobecker <brobecker@adacore.com>
8859
8860 * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
8861 * ada-lang.c (ada_find_any_type): Add advance declaration.
8862 Make static. Replace ada_find_any_symbol by
8863 ada_find_any_type_symbol.
8864 (ada_find_any_type_symbol): Renames ada_find_any_symbol.
8865 Improve function description. Make static.
8866 (ada_find_renaming_symbol, find_old_style_renaming_symbol):
8867 Replace ada_find_any_symbol by ada_find_any_type_symbol.
8868
1b611343
JB
88692012-02-29 Joel Brobecker <brobecker@adacore.com>
8870
8871 * ada-lang.c (struct tag_args): Delete.
8872 (ada_get_tsd_type): Function body moved up in source file.
8873 (ada_tag_name_1, ada_tag_name_2): Delete.
8874 (ada_get_tsd_from_tag): New function.
8875 (ada_tag_name_from_tsd): New function.
8876 (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
8877 to determine the tag name.
8878
41246937
JB
88792012-02-29 Joel Brobecker <brobecker@adacore.com>
8880
8881 * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
8882 declaration.
8883 * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
8884 function.
8885
ffde82bf
JB
88862012-02-29 Joel Brobecker <brobecker@adacore.com>
8887
8888 * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
8889
2ad01556
JB
88902012-02-29 Joel Brobecker <brobecker@adacore.com>
8891
8892 * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
8893 full searches.
8894
99b1c762
JB
88952012-02-29 Joel Brobecker <brobecker@adacore.com>
8896
8897 * ada-lang.c (constrained_packed_array_type): If there is a
8898 parallel XA type, use it to determine the array index type.
8899
2d4a02ee
JB
89002012-02-29 Joel Brobecker <brobecker@adacore.com>
8901
8902 * ada-valprint.c (ada_val_print_1): If our value is a reference
8903 to an array descriptor, dereference it before converting it
8904 to a simple array.
8905
c48db5ca
JB
89062012-02-29 Joel Brobecker <brobecker@adacore.com>
8907
8908 * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
8909 creating fixed value.
8910 (ada_value_ind, ada_coerce_ref, assign_component)
8911 (ada_evaluate_subexp): Remove call to unwrap_value before
8912 call to ada_to_fixed_value.
8913
2e6fda7d
JB
89142012-02-29 Joel Brobecker <brobecker@adacore.com>
8915
8916 * ada-lang.c (to_fixed_array_type): Set result's type name.
8917
5845583d
JB
89182012-02-29 Joel Brobecker <brobecker@adacore.com>
8919
8920 * ada-lang.c (catch_ada_exception_command_split): Add new
8921 argument cond_string. Add support for condition at end of
8922 "catch exception" commands.
8923 (ada_decode_exception_location): Add new argument cond_string.
8924 Update call to catch_ada_exception_command_split.
8925 (create_ada_exception_catchpoint): Add new argument cond_string.
8926 Set the breakpoint condition if needed.
8927 (catch_ada_exception_command): Update call to
8928 ada_decode_exception_location.
8929 (ada_decode_assert_location): Add function documentation.
8930 Add support for condition at end of "catch assert" command.
8931 (catch_assert_command): Update calls to ada_decode_assert_location
8932 and create_ada_exception_catchpoint.
8933
9a7f938f
JK
89342012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
8935
8936 Fix disp-step-syscall.exp: fork: single step over fork.
8937 * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
8938 (i386_linux_get_syscall_number_from_regcache): ... here, new function
8939 comment, change parameters gdbarch and ptid to regcache. Remove
8940 parameter regcache, initialize gdbarch from regcache here.
8941 (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
8942 New functions.
8943 (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
8944 instead.
8945 * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
8946 'syscall'. Make the 'int' check more strict.
8947
ffdf6de5
JK
89482012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
8949
8950 Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
8951 * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
8952 (i386_linux_intx80_sysenter_syscall_record): ... here.
8953 (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
8954 Use the renamed function name.
8955
c70a6932
JK
89562012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
8957
8958 * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
8959 * breakpoint.c (until_break_command): Likewise.
8960 * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
8961 * infcall.c (call_function_by_hand): Likewise.
8962 * infcmd.c (finish_forward): Likewise.
8963 * infrun.c (insert_exception_resume_breakpoint): Likewise.
8964
05b8a789 89652012-02-28 Tristan Gingold <gingold@adacore.com>
d4cd3da9 8966
d4cd3da9
JB
8967 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
8968 avoid variable assignments inside condition.
8969
6425366c
JK
89702012-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
8971
8972 Fix static analysis issue found by cppcheck.
8973 * microblaze-tdep.c (microblaze_extract_return_value): Fix
8974 uninitialized BUF for size 2.
8975
c8cef75f 89762012-02-27 Chris Dearman <chris@mips.com>
a09130f9
PA
8977 Nathan Froyd <froydnj@codesourcery.com>
8978 Maciej W. Rozycki <macro@codesourcery.com>
c8cef75f
MR
8979
8980 * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
8981 (mips16_instruction_has_delay_slot): Likewise.
8982 (mips_segment_boundary): Likewise.
8983 (mips_adjust_breakpoint_address): Likewise.
8984 (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
8985
473347ad 89862012-02-27 Maciej W. Rozycki <macro@mips.com>
a09130f9 8987 Maciej W. Rozycki <macro@codesourcery.com>
473347ad
MR
8988
8989 * infrun.c (handle_inferior_event): Don't proceed through
8990 shared library trampolines if stepping at the machine
8991 instruction level.
8992
cf233303
MR
89932012-02-27 Maciej W. Rozycki <macro@codesourcery.com>
8994
8995 * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
8996 too.
8997
cb2cf4ce
TS
89982012-02-27 Thomas Schwinge <thomas@codesourcery.com>
8999
9000 * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
9001 (sh_stub_unwind_sniffer): New functions.
9002 (sh_stub_unwind): New variable.
9003 (sh_gdbarch_init): Wire everything.
9004
644cebc9
PA
90052012-02-27 Pedro Alves <palves@redhat.com>
9006
9007 * linux-nat.c (pid_is_stopped): Delete, moved to common/.
9008 (linux_nat_post_attach_wait): Adjust to use
9009 linux_proc_pid_is_stopped.
9010 * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
9011 * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
9012 based on pid_is_stopped from both linux-nat.c and
9013 gdbserver/linux-low.c, and renamed.
9014
283002cf
MR
90152012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
9016
9017 * remote.c (remote_watchpoint_addr_within_range): New function.
9018 (init_remote_ops): Use it.
9019
9b3e86b1
MR
90202012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
9021
9022 * target.h (target_watchpoint_addr_within_range): Document macro.
9023
e36930bb
PA
90242012-02-24 Pedro Alves <palves@redhat.com>
9025
9026 * stack.c (set_last_displayed_sal): Issue internal_error instead
9027 of warning, and issue it after clearing the last displayed sal.
9028
883bc8d1
PA
90292012-02-24 Jan Kratochvil <jan.kratochvil@redhat.com>
9030 Pedro Alves <palves@redhat.com>
9031
9032 * breakpoint.c (until_break_command): Install breakpoints after
9033 all frame manipulations.
9034
b775012e
LM
90352012-02-24 Luis Machado <lgustavo@codesourcery.com>
9036
9037 * remote.c (remote_supports_cond_breakpoints): New forward
9038 declaration.
9039 (remote_add_target_side_condition): New function.
9040 (remote_insert_breakpoint): Add target-side breakpoint
9041 conditional if supported.
9042 (remote_insert_hw_breakpoint): Likewise.
9043 (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
9044 hook.
9045
9046 * target.c (update_current_target): Inherit
9047 to_supports_evaluation_of_breakpoint_conditions.
9048 Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
9049
9050 * target.h (struct target_ops)
9051 <to_supports_evaluation_of_breakpoint_conditions>: New field.
9052 (target_supports_evaluation_of_breakpoint_conditions): New #define.
9053
9054 * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
9055 (condition_evaluation_both, condition_evaluation_auto,
9056 condition_evaluation_host, condition_evaluation_target,
9057 condition_evaluation_enums, condition_evaluation_mode_1,
9058 condition_evaluation_mode): New static globals.
9059 (translate_condition_evaluation_mode): New function.
9060 (breakpoint_condition_evaluation_mode): New function.
9061 (gdb_evaluates_breakpoint_condition_p): New function.
9062 (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
9063 (mark_breakpoint_modified): New function.
9064 (mark_breakpoint_location_modified): New function.
9065 (set_condition_evaluation_mode): New function.
9066 (show_condition_evaluation_mode): New function.
9067 (bp_location_compare_addrs): New function.
9068 (get_first_location_gte_addr): New helper function.
9069 (set_breakpoint_condition): Free condition bytecode if locations
9070 has become unconditional. Call mark_breakpoint_modified (...).
9071 (condition_command): Call update_global_location_list (1) for
9072 breakpoints.
9073 (breakpoint_xfer_memory): Use is_breakpoint (...).
9074 (is_breakpoint): New function.
9075 (parse_cond_to_aexpr): New function.
9076 (build_target_condition_list): New function.
9077 (insert_bp_location): Handle target-side conditional
9078 breakpoints and call build_target_condition_list (...).
9079 (update_inserted_breakpoint_locations): New function.
9080 (insert_breakpoint_locations): Handle target-side conditional
9081 breakpoints.
9082 (bpstat_check_breakpoint_conditions): Add comment.
9083 (bp_condition_evaluator): New function.
9084 (bp_location_condition_evaluator): New function.
9085 (print_breakpoint_location): Print information on where the condition
9086 will be evaluated.
9087 (print_one_breakpoint_location): Likewise.
9088 (init_bp_location): Call mark_breakpoint_location_modified (...) for
9089 breakpoint location.
9090 (force_breakpoint_reinsertion): New functions.
9091 (update_global_location_list): Handle target-side breakpoint
9092 conditions.
9093 Reinsert locations that are already inserted if conditions have
9094 changed.
9095 (bp_location_dtor): Free agent expression bytecode.
9096 (disable_breakpoint): Call mark_breakpoint_modified (...).
9097 Call update_global_location_list (...) with parameter 1 for breakpoints.
9098 (disable_command): Call mark_breakpoint_location_modified (...).
9099 Call update_global_location_list (...) with parameter 1 for breakpoints.
9100 (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
9101 (enable_command): mark_breakpoint_location_modified (...).
9102 (_initialize_breakpoint): Update documentation and add
9103 condition-evaluation breakpoint subcommand.
9104
9105 * breakpoint.h: Include ax.h.
9106 (condition_list): New data structure.
9107 (condition_status): New enum.
9108 (bp_target_info) <cond_list>: New field.
9109 (bp_location) <condition_changed, cond_bytecode>: New fields.
9110 (is_breakpoint): New prototype.
9111
3788aec7
LM
91122012-02-24 Luis Machado <lgustavo@codesourcery.com>
9113
9114 * remote.c (remote_state) <cond_breakpoints>: New field.
9115 (PACKET_ConditionalBreakpoints): New enum.
9116 (remote_cond_breakpoint_feature): New function.
9117 (remote_protocol_features): Add new ConditionalBreakpoints entry.
9118 (remote_supports_cond_breakpoints): New function.
9119 (_initialize_remote): Add new packet configuration for
9120 target-side conditional breakpoints.
9121
72895ff6
LM
91222012-02-24 Luis Machado <lgustavo@codesourcery.com>
9123
9124 * NEWS: Mention target-side conditional breakpoint support,
9125 new condition-evaluation breakpoint subcommand and remote
9126 packet extensions.
9127
dea2aa5f
LM
91282012-02-24 Luis Machado <lgustavo@codesourcery.com>
9129
9130 * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
9131 number.
9132
8a8bc27f
TS
91332012-02-24 Thomas Schwinge <thomas@codesourcery.com>
9134
9135 * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
9136 (after_prologue): Remove.
9137
6b446fdf
TT
91382012-02-23 Tom Tromey <tromey@redhat.com>
9139
9140 * jv-valprint.c (java_val_print): Remove dead code.
9141
ef59abfb
TG
91422012-02-23 Tristan Gingold <gingold@adacore.com>
9143
a09130f9
PA
9144 * ada-tasks.c (struct ada_tasks_inferior_data): Add
9145 known_tasks_element and known_tasks_length fields.
9146 (read_known_tasks_array): Change argument type. Use pointer type
9147 and number of elements from DATA. Adjust.
9148 (read_known_tasks_list): Likewise.
9149 (get_known_tasks_addr): Remove.
9150 (ada_set_current_inferior_known_tasks_addr): Renamed to ...
9151 (ada_tasks_inferior_data_sniffer): ... this. Use symtab for element
9152 type and array length. Merge former get_known_tasks_addr code.
ef59abfb 9153
def166f6
JK
91542012-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
9155
9156 PR backtrace/13716
9157 * infcmd.c (finish_forward): New variable frame_id, initialize it, use
9158 it after set_momentary_breakpoint.
9159
aeaa2474
SA
91602012-02-22 Sterling Augustine <saugustine@google.com>
9161
9162 PR 13689:
9163 * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
9164
feea76c2
GB
91652012-02-22 Gary Benson <gbenson@redhat.com>
9166
9167 * dwarf2read.c (dwarf2_read_index): Correct misspelling.
9168 (find_slot_in_mapped_hash): Likewise.
9169
f06e05e0
JK
91702012-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9171
9172 PR build/13638
9173 * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
9174 (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
9175 * configure: Regenerate.
9176
b54a8fd7
PA
91772012-02-21 Tristan Gingold <gingold@adacore.com>
9178 Pedro Alves <palves@redhat.com>
9179
9180 * ia64-tdep.c: Do not include libunwind-ia64.h.
9181 * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
9182 Include libunwind-ia64.h instead of libunwind.h.
9183 * configure.ac (--with-libunwind, $enable_libunwind): Don't check
9184 for libunwind.h existence.
9185 * configure, config.in: Regenerate.
9186
dfcee124
AG
91872012-02-21 Anton Gorenkov <xgsa@yandex.ru>
9188
9189 * c-valprint.c (c_value_print): Use value_rtti_indirect_type
9190 instead of value_rtti_target_type.
9191 * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
9192 instead of value_rtti_target_type.
9193 * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
9194 value_rtti_target_type.
9195 * valops.c (value_ind): Extract function readjust_indirect_value_type.
9196 (value_rtti_target_type): Rename to ...
9197 (value_rtti_indirect_type): ... here and make it indirect. Update
9198 function comment.
9199 * value.c (readjust_indirect_value_type): New function.
9200 (coerce_ref): Support for enclosing type setting for references
9201 with readjust_indirect_value_type.
9202 * value.h (readjust_value_type): New declaration.
9203 (value_rtti_target_type): Rename to ...
9204 (value_rtti_indirect_type): ... here.
9205
02568277
AG
92062012-02-21 Anton Gorenkov <xgsa@yandex.ru>
9207
9208 * MAINTAINERS (Write After Approval): Add myself to the list.
9209
10c07b7e 92102012-02-20 Doug Evans <dje@google.com>
28ee876a 9211
d82ea6a8
DE
9212 * objfiles.c (add_to_objfile_sections): Remove outdated comments.
9213 Rename objfile_p_char parameter to objfilep.
9214 (build_objfile_section_table): Result is now void. All callers
9215 updated.
9216 * objfiles.h (struct objfile): Tweak comments, whitespace.
9217 (build_objfile_section_table): Update.
9218
28ee876a
DE
9219 * elfread.c (elf_symfile_segments): Fix warning text.
9220
24c79950
TT
92212012-02-20 Tom Tromey <tromey@redhat.com>
9222
9223 PR gdb/13498:
9224 * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
9225 particular set of file names once.
9226 (dw2_map_symbol_filenames): Likewise.
9227
3a9b40b6
JK
92282012-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9229
9230 Code cleanup.
9231 * main.c (write_files): Remove the declaration.
9232 (external_editor_command): Move the declaration ...
9233 [GDBTK] (external_editor_command): ... here. Fix the comment.
9234
4d0795ca
TT
92352012-02-20 Tom Tromey <tromey@redhat.com>
9236
9237 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
9238 extraneous block.
9239
637fd620
TG
92402012-02-20 Tristan Gingold <gingold@adacore.com>
9241
9242 * darwin-nat.h (enum darwin_msg_state): Add comments.
9243
6f124894
TG
92442012-02-20 Tristan Gingold <gingold@adacore.com>
9245
9246 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
9247 value.
9248
2e6e3d9c
JB
92492012-20-18 Joel Brobecker <brobecker@adacore.com>
9250
9251 * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
9252 between function description and implementation.
9253
2e8265fd
TT
92542012-02-17 Tom Tromey <tromey@redhat.com>
9255
9256 PR python/12070:
9257 * python/py-event.c (event_object_getset): New global.
9258 (event_object_type): Reference it.
9259 * python/py-type.c (field_object_getset): New global.
9260 (field_object_type): Reference it.
9261 * python/python-internal.h (gdb_py_generic_dict): Declare.
9262 * python/py-utils.c (gdb_py_generic_dict): New function.
9263
8544a150 92642012-02-17 Tristan Gingold <gingold@adacore.com>
6f124894 9265
8544a150 9266 * solib-darwin.c (darwin_current_sos): Check magic and filetype
6f124894 9267
ca193e27
TS
92682012-02-17 Thomas Schwinge <thomas@codesourcery.com>
9269
9270 * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
9271 TYPE_CALLING_CONVENTION annotation.
9272
e5586183
KB
92732012-02-16 Kevin Buettner <kevinb@redhat.com>
9274
9275 * MAINTAINERS: Add rx to target ISA section.
9276 * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
9277 (ALLDEPFILES): Add rx-tdep.c.
9278
7dcd53a0
TT
92792012-02-16 Tom Tromey <tromey@redhat.com>
9280
9281 * symfile.c (symbol_file_add_main_1): Use inferior's
9282 symfile_flags.
9283 * solib.c (solib_read_symbols): Use inferior's symfile_flags.
9284 * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
9285 inferior.
9286 * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
9287 inferior.
9288 (follow_exec): Use inferior's symfile_flags.
9289 * inferior.h (struct inferior) <symfile_flags>: New field.
9290
ddd60447
MF
92912012-02-16 Mike Frysinger <vapier@gentoo.org>
9292
9293 PR gdb/9734:
9294 * remote-sim.c (gdbsim_create_inferior): Call error() when
9295 sim_create_inferior() fails.
9296
b0d32fb6
TG
92972012-02-16 Josh Matthews <josh@joshmatthews.net>
9298
9299 * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
9300
9addecb9
TT
93012012-02-16 Tom Tromey <tromey@redhat.com>
9302
9303 PR c++/13653:
9304 * thread.c (struct current_thread_cleanup) <was_removable>: New
9305 field.
9306 (restore_current_thread_cleanup_dtor): Restore 'removable' field.
9307 (make_cleanup_restore_current_thread): Initialize new field.
9308
a58b110a
KB
93092012-02-15 Kevin Buettner <kevinb@redhat.com>
9310
9311 * MAINTAINERS: Add rl78 to target ISA section.
9312 * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
9313 (ALLDEPFILES): Add rl78-tdep.c.
9314 * NEWS: Mention rl78 as a new target.
9315
4cb6da1c
AR
93162012-02-15 Aleksandar Ristovski <aristovski@qnx.com>
9317
9318 * frame.c (find_frame_sal): Initialize sal->pspace field from frame
9319 data.
9320 * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
9321
3af2590d
TT
93222012-02-15 Tom Tromey <tromey@redhat.com>
9323
9324 PR gdb/12659:
9325 * infcmd.c (registers_info): Print just the current register's
9326 name.
9327
c6910659
TT
93282012-02-15 Tom Tromey <tromey@redhat.com>
9329
9330 * python/py-symbol.c (sympy_value): Use _().
9331
7cee1e54
PA
93322012-02-15 Pedro Alves <palves@redhat.com>
9333
9334 * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
9335 output to be like native targets'.
9336 (remote_pid_to_str): Special case the null ptid.
9337
816338b5
SS
93382012-02-14 Stan Shebs <stan@codesourcery.com>
9339
9340 * NEWS: Mention enable count command.
9341 * breakpoint.h (struct breakpoint): New field enable_count.
9342 * breakpoint.c (enable_breakpoint_disp): Add count argument.
9343 (enable_breakpoint): Add arg to call.
9344 (struct disp_data): New struct.
9345 (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
9346 (do_map_enable_once_breakpoint): Create a struct and pass it.
9347 (do_map_enable_delete_breakpoint): Ditto.
9348 (do_map_enable_count_breakpoint): New function.
9349 (enable_count_command): New function.
9350 (bpstat_stop_status): Decrement enable_count.
9351 (print_one_breakpoint_location): Report enable count.
9352 (_initialize_breakpoint): Add enable count command.
9353
c47a44f4
KB
93542012-02-14 Kevin Buettner <kevinb@redhat.com>
9355
9356 * rl78-tdep.c (reggroups.h): Include.
9357 (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
9358 (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
9359 (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
9360 (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
9361 (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
9362 (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
9363 (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
9364 (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
9365 (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
9366 (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
9367 (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
9368 (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
9369 (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
9370 (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
9371 (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
9372 (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
9373 beginning of register list.
9374 (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
9375 (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
9376 (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
9377 (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
9378 (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
9379 (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
9380 (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
9381 (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
9382 (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
9383 (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
9384 (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
9385 the pseudo registers. Rearrange other pseudo registers too so
9386 that the bank registers appear at the end.
9387 (rl78_register_type): Account for the fact that the byte sized
9388 bank registers are now pseudo-registers.
9389 (rl78_register_name): Rearrange the register name array. Make
9390 initial set of raw banked registers inaccessible.
9391 (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
9392 (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
9393 case for copying bytes back and forth between raw and pseudo
9394 versions of the banked registers. Update other cases to reflect
9395 the changed names.
9396 (rl78_return_value): Update to account for changed names of
9397 raw registers.
9398 (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
9399 rl78_register_sim_regno().
9400
e4569f1e
KB
94012012-02-14 Kevin Buettner <kevinb@redhat.com>
9402
9403 * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
9404 the name parameter being passed to find_pc_partial_function().
9405
7a05aae7
JK
94062012-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9407
9408 * MAINTAINERS: Step down from being ia64 target maintainer.
9409
11fde611
JK
94102012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
9411
9412 * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
9413 compilation warning.
9414
57008375
JK
94152012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
9416
9417 Fix crash on loaded shlibs without loaded exec_bfd.
9418 * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
9419 (set_section_command): Replace exec_bfd by p->bfd.
9420
ff3c9849
TT
94212012-02-10 Tom Tromey <tromey@redhat.com>
9422
9423 * linespec.c (decode_line_internal): Skip symtabs_from_filename
9424 when we have a C++ qualified name.
9425
db2b9fdd
PA
94262012-02-10 Pedro Alves <palves@redhat.com>
9427
9428 * inferior.c (inferior_pid_to_str): New.
9429 (print_inferior, inferior_command): Use it.
9430
12cd34f3
PA
94312012-02-10 Pedro Alves <palves@redhat.com>
9432
9433 * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
9434 the test CFLAGS.
9435 * configure: Regenerate.
9436
e871429d
JK
94372012-02-10 Jan Kratochvil <jan.kratochvil@redhat.com>
9438
9439 * linespec.c (decode_line_internal): Fix comment correctness.
9440
1916efaf
PA
94412012-02-09 Valery Khromov <valery.khromov@gmail.com>
9442
9443 PR gdb/12953
9444 * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
9445 * amd64bsd-nat.c: Add support for debug registers (adapted from
9446 i386bsd-nat.c).
9447 [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
9448 (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
9449 (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
9450 (amd64bsd_dr_get_control): New functions.
9451 * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
9452 * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
9453 [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
9454 watchpoints initialization.
9455 * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
9456
f4859d94
JK
94572012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9458
9459 * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
9460 flds_bnds.fields.
9461 (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
9462
c56a97f9
JK
94632012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9464
9465 * breakpoint.c (bp_location_compare): Fix comment. Reindent the code.
9466
1a119f36
JB
94672012-02-08 Joel Brobecker <brobecker@adacore.com>
9468
9469 * language.h (symbol_name_cmp_ftype): Renames
9470 symbol_name_match_p_ftype.
9471 (struct language_defn)[la_get_symbol_name_cmp]: Renames
9472 la_get_symbol_name_match_p.
9473 * ada-lang.c (ada_get_symbol_name_cmp): Renames
9474 ada_get_symbol_name_match_p. Update comment.
9475 (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
9476 * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
9477 Renames symbol_name_match_p. Update field type.
9478 (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
9479 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
9480 opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
9481 "la_get_symbol_name_cmp" in comments.
9482 * language.c: Likewise.
9483
c71bb1cf
RO
94842012-02-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9485
9486 * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
9487 %eflags offset.
9488 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
9489 (amd64_sol2_gregset32_reg_offs): Likewise.
9490
4b2d20a5
TG
94912012-02-08 Joel Brobecker <brobecker@adacore.com>
9492
9493 * solib-darwin.c (darwin_bfd_open): Make sure that the filename
9494 of the returned BFD is allocated by GDB.
9495
f0823d2c
TT
94962012-02-07 Tom Tromey <tromey@redhat.com>
9497
9498 PR python/12027:
9499 * python/python-internal.h (frame_object_type): Declare.
9500 * python/py-symbol.c (sympy_needs_frame): New function.
9501 (sympy_value): New function.
9502 (symbol_object_getset): Add "needs_frame".
9503 (symbol_object_methods): Add "value".
9504 * python/py-frame.c (frame_object_type): No longer static.
9505
64e7d9dd
TT
95062012-02-07 Tom Tromey <tromey@redhat.com>
9507
9508 PR python/13599:
9509 * python/py-symbol.c (sympy_line): New function.
9510 (symbol_object_getset): Add "line".
9511
1d6b2d2b
TT
95122012-02-07 Tom Tromey <tromey@redhat.com>
9513
9514 * charset.c (find_charset_names): Check 'in' against NULL.
9515
0d5cff50
DE
95162012-02-06 Doug Evans <dje@google.com>
9517
9518 * gdbtypes.h (struct main_type): Change type of name,tag_name,
9519 and fields.name members from char * to const char *. All uses updated.
9520 (struct cplus_struct_type): Change type of fn_fieldlists.name member
9521 from char * to const char *. All uses updated.
9522 (type_name_no_tag): Update.
9523 (lookup_unsigned_typename, lookup_signed_typename): Update.
9524 * gdbtypes.c (type_name_no_tag): Change result type
9525 from char * to const char *. All callers updated.
9526 (lookup_unsigned_typename, lookup_signed_typename): Change type of
9527 name parameter from char * to const char *.
9528 * symtab.h (struct cplus_specific): Change type of demangled_name
9529 member from char * to const char *. All uses updated.
9530 (struct general_symbol_info): Change type of name and
9531 mangled_lang.demangled_name members from char * to const char *.
9532 All uses updated.
9533 (symbol_get_demangled_name, symbol_natural_name): Update.
9534 (symbol_demangled_name, symbol_search_name): Update.
9535 * symtab.c (symbol_get_demangled_name): Change result type
9536 from char * to const char *. All callers updated.
9537 (symbol_natural_name, symbol_demangled_name): Ditto.
9538 (symbol_search_name): Ditto.
9539 (completion_list_add_name): Change type of symname,sym_text,
9540 text,word parameters from char * to const char *.
9541 (completion_list_objc_symbol): Change type of sym_text,
9542 text,word parameters from char * to const char *.
9543 * ada-lang.c (find_struct_field): Change type of name parameter
9544 from char * to const char *.
9545 (encoded_ordered_before): Similarly for N0,N1 parameters.
9546 (old_renaming_is_invisible): Similarly for function_name parameter.
9547 (ada_type_name): Change result type from char * to const char *.
9548 All callers updated.
9549 * ada-lang.h (ada_type_name): Update.
9550 * buildsym.c (hashname): Change type of name parameter
9551 from char * to const char *.
9552 * buildsym.h (hashname): Update.
9553 * dbxread.c (end_psymtab): Change type of include_list parameter
9554 from char ** to const char **.
9555 * dwarf2read.c (determine_prefix): Change result type
9556 from char * to const char *. All callers updated.
9557 * f-lang.c (find_common_for_function): Change type of name, funcname
9558 parameters from char * to const char *.
9559 * f-lang.c (find_common_for_function): Update.
9560 * f-valprint.c (list_all_visible_commons): Change type of funcname
9561 parameters from char * to const char *.
9562 * gdbarch.sh (static_transform_name): Change type of name parameter
9563 and result from char * to const char *.
9564 * gdbarch.c: Regenerate.
9565 * gdbarch.h: Regenerate.
9566 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
9567 of name parameter from char * to const char *.
9568 * jv-lang.c (java_primitive_type_from_name): Ditto.
9569 (java_demangled_signature_length): Similarly for signature parameter.
9570 (java_demangled_signature_copy): Ditto.
9571 (java_demangle_type_signature): Ditto.
9572 * jv-lang.h (java_primitive_type_from_name): Update.
9573 (java_demangle_type_signature): Update.
9574 * objc-lang.c (specialcmp): Change type of a,b parameters
9575 from char * to const char *.
9576 * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
9577 from char * to const char *. All callers updated.
9578 * p-lang.h (is_pascal_string_type): Update.
9579 * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
9580 of name parameter from char * to const char *.
9581 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
9582 * utils.c (fprintf_symbol_filtered): Ditto.
9583 * defs.h (fprintf_symbol_filtered): Update.
9584 * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
9585 * stabsread.h (end_psymtab): Update.
9586 * stack.c (find_frame_funname): Change type of funname parameter
9587 from char ** to const char **.
9588 * stack.h (find_frame_funname): Update.
9589 * typeprint.c (type_print): Change type of varstring parameter
9590 from char * to const char *.
9591 * value.h (type_print): Update.
9592 * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
9593 from char * to const char *. All callers updated.
9594 (xcoff_end_psymtab): Change type of include_list parameter
9595 from char ** to const char **. All callers updated.
9596 (swap_sym): Similarly for name parameter. All callers updated.
9597 * coffread.c (patch_type): Add (char*) cast to xfree parameter.
9598 Use xstrdup.
9599 (process_coff_symbol): Use xstrdup.
9600 * stabsread.c (stabs_method_name_from_physname): Renamed from
9601 update_method_name_from_physname. Change result type from void
9602 to char *. All callers updated.
9603 (read_member_functions): In has_destructor case, store name in objfile
9604 obstack instead of malloc space. In !has_stub case, fix mem leak.
9605
5579a92e
TT
96062012-02-06 Luca Pizzamiglio <luca.pizzamiglio@gmail.com>
9607
9608 * configure: Rebuild.
9609 * configure.ac: Put -L../bfd and -L../libiberty at the front of
9610 LDFLAGS.
9611
9058f767
KB
96122012-02-03 Kevin Buettner <kevinb@redhat.com>
9613
9614 * configure.tgt (rl78-*-elf): New target.
9615 * rl78-tdep.c: New file.
9616
5b37825d
PW
96172012-02-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9618
9619 * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
9620 and continue the loop. Add QUIT statement.
9621
e009ee71
TT
96222012-02-03 Tom Tromey <tromey@redhat.com>
9623
9624 PR gdb/13596:
9625 * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
9626 bfd_lookup_symbol_from_symtab.
9627 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
9628 gdb_bfd_lookup_symbol_from_symtab.
9629
f7e44f65
JB
96302012-02-03 Joel Brobecker <brobecker@adacore.com>
9631
9632 * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
9633 use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
9634 symbol. Add assertion that sym2 is never NULL.
9635
2c02bd72
DE
96362012-02-02 Doug Evans <dje@google.com>
9637
9638 * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
9639 "name" parameter to const char ** from char **. All callers updated.
9640 (find_pc_partial_function): Ditto.
9641 (cache_pc_function_name): Change type to const char * from char *.
9642 * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
9643 (find_pc_partial_function): Update.
9644 * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
9645 type of "name" parameter to const char * from char *.
9646 All uses updated.
9647 * arch-utils.c (generic_in_solib_return_trampoline): Change
9648 type of "name" parameter to const char * from char *.
9649 * arch-utils.h (generic_in_solib_return_trampoline): Update.
9650 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
9651 type of "name" parameter to const char * from char *.
9652 * gdbarch.sh (in_solib_return_trampoline): Ditto.
9653 * gdbarch.c: Regenerate.
9654 * gdbarch.h: Regenerate.
9655 * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
9656 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
9657 * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
9658 type of "name" parameter to const char * from char *.
9659 * skip.c (skip_function_pc): Ditto.
9660 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
9661 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
9662 * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
9663 * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
9664 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
9665 * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
9666 * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
9667 * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
9668 * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
9669
e886a173
PA
96702012-02-02 Pedro Alves <palves@redhat.com>
9671
9672 * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
9673 the current inferior has no execution. Make sure the current
9674 remote process matches gdb's current inferior.
9675
c709a7c2
TT
96762012-02-02 Tom Tromey <tromey@redhat.com>
9677
9678 PR gdb/13405:
9679 * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
9680 read-only memory.
9681
f149aabd
TT
96822012-02-02 Tom Tromey <tromey@redhat.com>
9683
9684 PR gdb/9307:
9685 * symtab.c (lookup_language_this): Set block_found.
9686
03bef283
TT
96872012-02-01 Tom Tromey <tromey@redhat.com>
9688
9689 PR gdb/13431:
9690 * jit.c (struct jit_inferior_data): Rewrite.
9691 (struct jit_objfile_data): New.
9692 (get_jit_objfile_data): New function.
9693 (add_objfile_entry): Update.
9694 (jit_read_descriptor): Return int. Replace descriptor_addr
9695 argument with inf_data. Update. Don't call error.
9696 (jit_breakpoint_re_set_internal): Reorder logic. Update. Look up
9697 descriptor here.
9698 (jit_inferior_init): Don't look up descriptor. Don't call error.
9699 (jit_reset_inferior_data_and_breakpoints)
9700 (jit_inferior_created_observer): Remove.
9701 (jit_inferior_exit_hook): Update.
9702 (jit_executable_changed_observer): Remove.
9703 (jit_event_handler): Update.
9704 (free_objfile_data): Reset inferior data if needed.
9705 (_initialize_jit): Update.
9706
f0bbc364
TT
97072012-02-01 Tom Tromey <tromey@redhat.com>
9708
9709 * jit.c (bfd_open_from_target_memory): Move higher in file.
9710
47c1316c
TG
97112012-02-01 Tristan Gingold <gingold@adacore.com>
9712
9713 * libunwind-frame.c (libunwind_load): Display message if dlopen
9714 failed.
9715
8e704927
GB
97162012-02-01 Gary Benson <gbenson@redhat.com>
9717
09c7a31f 9718 * symtab.h (symbol_found_callback_ftype): New typedef.
8e704927
GB
9719 (iterate_over_symbols): Use the above.
9720 * symtab.c (iterate_over_symbols): Likewise.
9721 * language.h (language_defn->la_iterate_over_symbols): Likewise.
9722 * ada-lang.c (ada_iterate_over_symbols): Likewise.
9723 * linespec.c (iterate_over_all_matching_symtabs): Likewise.
9724 (iterate_name_matcher): Document return values.
9725 (collect_one_symbol): Likewise.
9726 (collect_function_symbols): Likewise.
9727 (collect_symbols): Likewise.
9728
d9680e73
TT
97292012-02-01 Tom Tromey <tromey@redhat.com>
9730
9731 * ada-lang.c (resolve_subexp): Update.
9732 (ada_lookup_symbol_list): Add 'full_search' argument.
9733 (ada_iterate_over_symbols): Pass 0 as full_search argument to
9734 ada_lookup_symbol_list.
9735 (ada_lookup_encoded_symbol): Update.
9736 (get_var_value): Update.
9737 * ada-exp.y (block_lookup): Update.
9738 (write_var_or_type): Update.
9739 (write_name_assoc): Update.
9740 * ada-lang.h (ada_lookup_symbol_list): Update.
9741
72e1143f
TT
97422012-01-31 Tom Tromey <tromey@redhat.com>
9743
9744 * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
9745 comment.
9746
ab2d2ad3
DE
97472012-01-31 Doug Evans <dje@google.com>
9748
9749 * symtab.h: Remove outdated comment.
e9111bf7 9750 (SYMBOL_MATCHES_NATURAL_NAME): Delete.
ab2d2ad3 9751
bc884eba
JB
97522012-02-01 Josh Matthews <josh@joshmatthews.net> (tiny change)
9753
9754 Fix build error in Darwin port.
9755 * i386-darwin-nat.c: Include i386-nat.h.
9756
8fc3fc34
TT
97572012-01-30 Tom Tromey <tromey@redhat.com>
9758
9759 PR breakpoints/13568:
9760 * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
9761 argument. Check for recursive includes.
9762 (dwarf_decode_macros): Create an include hash.
9763
5d853008
ME
97642012-01-30 Michael Eager <eager@eagercon.com>
9765
9766 * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
9767 * ppc-linux-tdep.c: Include glibc-tdep.h.
ab2d2ad3 9768 (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
5d853008
ME
9769 (powerpc_linux_in_plt_stub): New function.
9770 (powerpc_linux_in_dynsym_resolve_code): New function.
9771 (ppc_skip_trampoline_code): New function.
9772 (ppc_linux_init_abi): Use PPC specific functions rather than generic.
9773 Use glibc_skip_solib_resolver.
9774
40478521
JK
97752012-01-28 Jan Kratochvil <jan.kratochvil@redhat.com>
9776
9777 Code cleanup: Make 1440 bytes of data segment read-only.
9778 * arch-utils.c (endian_enum): Make it const char *const [].
9779 * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
9780 Likewise.
9781 * breakpoint.c (always_inserted_enums): Likewise.
9782 * cli/cli-cmds.c (script_ext_enums): Likewise.
9783 * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
9784 enumlist parameter const char *const *.
9785 * cli/cli-decode.h (struct cmd_list_element): Make the enums field
9786 const char *const *.
9787 * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
9788 parameter const char *const *.
9789 * cris-tdep.c (cris_modes): Make it const char *const [].
9790 * filesystem.c (target_file_system_kinds): Likewise.
9791 * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
9792 * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
9793 (can_use_displaced_stepping_enum, scheduler_enums)
9794 (exec_direction_names): Likewise.
9795 * language.c (_initialize_language): Make the type_or_range_names and
9796 case_sensitive_names variables const char *const [].
9797 * mips-tdep.c (mips_abi_strings): Make it const char *const [].
9798 * python/python.c (python_excp_enums): Likewise.
9799 * remote.c (interrupt_sequence_modes): Likewise.
9800 * rs6000-tdep.c (powerpc_vector_strings): Likewise.
9801 * serial.c (logbase_enums): Likewise.
9802 * sh-tdep.c (sh_cc_enum): Likewise.
9803 * stack.c (print_frame_arguments_choices, print_entry_values_choices):
9804 Likewise.
9805 * symtab.c (multiple_symbols_modes): Likewise.
9806 * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
9807 Likewise.
9808 * utils.c (internal_problem_modes): Likewise.
9809
b3b8b934
JK
98102012-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
9811
9812 Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
9813 * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
9814 result.
9815
8c85a4e2
DE
98162012-01-27 Doug Evans <dje@google.com>
9817
9818 * configure.ac (with_python): Fix absolute path handling for win32.
9819 * configure: Regenerate.
9820
78d8b4d7
DE
98212012-01-26 Doug Evans <dje@google.com>
9822
eca864fe
DE
9823 * symtab.c: Whitespace cleanup, no code changes.
9824
7e082072
DE
9825 * symtab.c (lookup_symbol_in_language): Improve comment.
9826 (lookup_symbol_aux): Fix comment.
9827
7dc25483
DE
9828 * psymtab.c (add_psymbol_to_list): Result is now "void".
9829 * psympriv.h (add_psymbol_to_list): Update.
9830
78d8b4d7
DE
9831 * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
9832
4c63965b
JK
98332012-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
9834
9835 Do not open script filenames twice.
9836 * cli/cli-cmds.c (source_script_from_stream): Pass to
9837 source_python_script also STREAM.
9838 * python/py-auto-load.c (source_section_scripts): Pass to
9839 source_python_script_for_objfile also STREAM.
9840 (auto_load_objfile_script): Pass to source_python_script_for_objfile
9841 also INPUT.
9842 * python/python-internal.h (source_python_script_for_objfile): New
9843 parameter file, rename parameter file to filename.
9844 * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
9845 instead if !_WIN32. Update the function comment.
9846 (source_python_script, source_python_script_for_objfile)
9847 (source_python_script): New parameter file, rename parameter file to
9848 filename. Pass FILENAME to python_run_simple_file.
9849 * python/python.h (source_python_script): New parameter file, rename
9850 parameter file to filename.
9851
88f38a04
PA
98522012-01-26 Pedro Alves <palves@redhat.com>
9853
9854 * corelow.c (core_has_fake_pid): Delete.
9855 (core_close): Delete references to `core_has_fake_pid'.
9856 (add_to_thread_list): Adjust to mark the inferior's pid as fake.
9857 (core_open): Delete references to `core_has_fake_pid'.
9858 (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
9859 the removed global.
9860
e078317b
JB
98612012-01-26 Joel Brobecker <brobecker@adacore.com>
9862
9863 * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
9864 Remove language parameter from name_matcher. Adjust the comment.
9865 * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
9866 Remove language parameter.
9867 * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
9868 * linespec.c (iterate_name_matcher): Likewise.
9869 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
9870 name_matcher. Adjust call accordingly.
9871 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
9872 (maintenance_check_symtabs): Adjust type of parameter "fun".
9873 * psymtab.h (maintenance_check_symtabs): Likewise.
9874
74ccd7f5
JB
98752012-01-26 Joel Brobecker <brobecker@adacore.com>
9876
9877 * language.h (symbol_name_match_p_ftype): New typedef.
9878 (struct language_defn): Replace field la_symbol_name_compare
9879 by la_get_symbol_name_match_p.
9880 * ada-lang.c (ada_get_symbol_name_match_p): New function.
9881 (ada_language_defn): Use it.
9882 * linespec.c (struct symbol_matcher_data): New type.
9883 (iterate_name_matcher): Rewrite.
9884 (iterate_over_all_matching_symtabs): Pass a pointer to
9885 a symbol_matcher_data struct to expand_symtabs_matching
9886 instead of just the lookup name.
9887 * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
9888 opencl-lang.c, p-lang.c, language.c: Delete field
9889 la_symbol_name_compare, and replace by NULL for new field
9890 la_get_symbol_name_match_p.
9891 * symfile.h (struct quick_symbol_functions): Update comment.
9892
5d268276
TT
98932012-01-25 Tom Tromey <tromey@redhat.com>
9894
9895 * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
9896 dereferencing.
9897
edcc5120
TT
98982012-01-24 Tom Tromey <tromey@redhat.com>
9899
9900 PR symtab/12406:
9901 * solib.c (update_solib_list): Update the program space's
9902 added_solibs and deleted_solibs fields.
9903 * progspace.h (struct program_space) <added_solibs,
9904 deleted_solibs>: New fields.
9905 (clear_program_space_solib_cache): Declare.
9906 * progspace.c (release_program_space): Call
9907 clear_program_space_solib_cache.
9908 (clear_program_space_solib_cache): New function.
9909 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
9910 bpstat_stop_status. Use handle_solib_event.
9911 * breakpoint.c: Include gdb_regex.h.
9912 (print_solib_event): New function.
9913 (bpstat_print): Use print_solib_event.
9914 (bpstat_stop_status): Add special case for bp_shlib_event.
9915 (handle_solib_event): New function.
9916 (bpstat_what): Use handle_solib_event.
9917 (struct solib_catchpoint): New.
9918 (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
9919 (breakpoint_hit_catch_solib, check_status_catch_solib)
9920 (print_it_catch_solib, print_one_catch_solib)
9921 (print_mention_catch_solib, print_recreate_catch_solib): New
9922 functions.
9923 (catch_solib_breakpoint_ops): New global.
9924 (catch_load_or_unload, catch_load_command_1)
9925 (catch_unload_command_1): New functions.
9926 (internal_bkpt_check_status): Add special case for
9927 bp_shlib_event.
9928 (internal_bkpt_print_it): Use print_solib_event.
9929 (initialize_breakpoint_ops): Initialize
9930 catch_solib_breakpoint_ops.
9931 (_initialize_breakpoint): Register "catch load" and "catch
9932 unload".
9933 * breakpoint.h (handle_solib_event): Declare.
9934 * NEWS: Add entry for "catch load" and "catch unload".
9935
fa864999
TT
99362012-01-24 Tom Tromey <tromey@redhat.com>
9937
9938 * ada-lang.c: Include gdb_vecs.h.
9939 * charset.c: Include gdb_vecs.h.
9940 * tracepoint.h: Include gdb_vecs.h.
9941 * gdb_vecs.h: New file.
9942
f90263c1
TT
99432012-01-24 Pedro Alves <pedro@codesourcery.com>
9944
9945 * breakpoint.c (breakpoint_hit_catch_fork)
9946 (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
9947 (breakpoint_hit_catch_exec): Make use of the `ws' argument.
9948 * infrun.c (inferior_has_forked, inferior_has_vforked)
9949 (inferior_has_execd, inferior_has_called_syscall): Delete.
9950 (handle_syscall_event): Get syscall_number from the execution
9951 control state's wait status.
9952 (wait_for_inferior): Don't clear syscall_number.
9953
09ac7c10
TT
99542012-01-24 Pedro Alves <palves@redhat.com>
9955
9956 * breakpoint.c (bpstat_check_location, bpstat_stop_status,
9957 pc_at_non_inline_function): Add `ws' parameter, and pass it down.
9958 (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
9959 (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
9960 `ws' parameter.
9961 (breakpoint_hit_ranged_breakpoint): Add `ws' parameter. Return
9962 false for events other than TARGET_SIGNAL_TRAP.
9963 (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
9964 Add `ws' parameter.
9965 (bkpt_breakpoint_hit): Add `ws' parameter. Return false for
9966 events other than TARGET_SIGNAL_TRAP.
9967 (tracepoint_breakpoint_hit): Add `ws' parameter.
9968 * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
9969 parameter.
9970 (bpstat_stop_status): Same.
9971 (pc_at_non_inline_function): Same.
9972 * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
9973 to pass the current event's waitstatus to bpstat_stop_status
9974 and pc_at_non_inline_function.
9975
86eb7e95
JK
99762012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
9977
9978 Code cleanup.
9979 * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
9980 Update the function comment for it.
9981 (source_script_with_search): Call make_cleanup_fclose for STREAM.
9982 * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
9983 for STREAM.
9984
a9b3a50f
PA
99852012-01-24 Pedro Alves <palves@redhat.com>
9986
9987 * breakpoint.c (bpstat_stop_status): Moving clearing print_it
9988 outside `bs->stop' block.
9989 (bpstat_what): Rework bp_shlib_event handling.
9990 (internal_bkpt_check_status): If the breakpoint is a
9991 bp_shlib_event, then set bs->stop and bs->print if
9992 stop_on_solib_events is set.
9993
53fe1783
GB
99942012-01-24 Gary Benson <gbenson@redhat.com>
9995
9996 Delete #if 0'd out code.
9997 * stack.c (print_frame_label_vars): Remove.
9998 (catch_info): Likewise.
9999 (_initialize_stack): Remove "info catch" command.
10000 * NEWS: Mention the above.
10001
49c62f2e
PA
100022012-01-24 Pedro Alves <palves@redhat.com>
10003
10004 * remote.c (remote_add_inferior): New `fake_pid_p' parameter. Use
10005 it.
10006 (remote_notice_new_inferior): If the remote end doesn't support
10007 the multiprocess extensions, then the PID is fake.
10008 (add_current_inferior_and_thread): New.
10009 (remote_start_remote): Use it.
10010 (extended_remote_attach_1): Adjust.
10011 (extended_remote_create_inferior_1): Use
10012 add_current_inferior_and_thread.
10013
d0d8b0c6
JK
100142012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
10015
10016 Fix watchpoints to be specific for each inferior.
10017 * breakpoint.c (watchpoint_in_thread_scope): Verify also
10018 current_program_space.
10019 * i386-nat.c (i386_inferior_data_cleanup): New.
10020 (i386_inferior_data_get): Replace variable inf_data_local by an
10021 inferior_data call.
10022 (i386_use_watchpoints): Initialize i386_inferior_data.
10023 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
10024 specific iterate_over_lwps.
10025
4403d8e9
JK
100262012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
10027
10028 Fix watchpoints across inferior fork.
10029 * amd64-linux-nat.c (update_debug_registers_callback): Update the
10030 comment for linux_nat_iterate_watchpoint_lwps.
10031 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
10032 linux_nat_iterate_watchpoint_lwps.
10033 (amd64_linux_prepare_to_resume): New comment on Linux kernel.
10034 * i386-linux-nat.c (update_debug_registers_callback): Update the
10035 comment for linux_nat_iterate_watchpoint_lwps.
10036 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
10037 linux_nat_iterate_watchpoint_lwps.
10038 (i386_linux_prepare_to_resume): New comment on Linux kernel.
10039 * i386-nat.c: Include inferior.h.
10040 (dr_mirror): Remove.
10041 (i386_inferior_data, struct i386_inferior_data)
10042 (i386_inferior_data_get): New.
10043 (i386_debug_reg_state): Use i386_inferior_data_get.
10044 (i386_cleanup_dregs, i386_update_inferior_debug_regs)
10045 (i386_insert_watchpoint, i386_remove_watchpoint)
10046 (i386_stopped_data_address, i386_insert_hw_breakpoint)
10047 (i386_remove_hw_breakpoint): New variable state, use
10048 i386_debug_reg_state instead of DR_MIRROR.
10049 * linux-nat.c (delete_lwp): New declaration.
10050 (num_lwps): Move here from downwards.
10051 (delete_lwp_cleanup): New.
10052 (linux_child_follow_fork): Create new child_lp, call
10053 linux_nat_new_thread and linux_nat_prepare_to_resume before calling
10054 PTRACE_DETACH.
10055 (num_lwps): Move upwards.
10056 (linux_nat_iterate_watchpoint_lwps): New.
10057 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
10058 (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
10059
2992c9a7 100602012-01-24 Joel Brobecker <brobecker@adacore.com>
10061
10062 GDB 7.4 released.
10063
e360902b
PA
100642012-01-23 Pedro Alves <palves@redhat.com>
10065
10066 * top.c (caution): Rename to ...
10067 (confirm): ... this.
10068 (show_caution): Rename to ...
10069 (show_confirm): ... this.
10070 (quit_cover): Adjust.
10071 (init_main): Adjust.
10072 * top.h (caution): Rename to ...
10073 (confirm): ... this.
10074 * utils.c (internal_vproblem, defaulted_query): Adjust.
10075
050a2e1d
PA
100762012-01-23 Pedro Alves <palves@redhat.com>
10077
10078 * top.c (caution): Update comment.
10079 (execute_command): Don't consider the current value of `caution'.
10080
77a35dd8
JK
100812012-01-23 Jan Kratochvil <jan.kratochvil@redhat.com>
10082
10083 * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
10084
a71b5a38
UW
100852012-01-23 Ulrich Weigand <ulrich.weigand@linaro.org>
10086
10087 * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
10088 * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
10089 * target.c (target_fileio_pwrite): Remove buffer address from
10090 debug output.
10091 (target_fileio_pread): Likewise.
10092
d99bd577
UW
100932012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10094
10095 * NEWS: Document remote "info proc" and "generate-core-file".
10096
35c2fab7
UW
100972012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10098
10099 * gdbarch.sh (find_memory_regions): New callback.
10100 * gdbarch.c, gdbarch.h: Regenerate.
10101
10102 * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
10103 callback before falling back to target method.
10104
10105 * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
10106 (linux_target_install_ops): No longer install it.
10107
10108 * linux-tdep.c (linux_find_memory_regions): New function.
10109 (linux_init_abi): Install it.
10110
6432734d
UW
101112012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10112
10113 * gdbarch.sh (make_corefile_notes): New architecture callback.
10114 * gdbarch.c: Regenerate.
10115 * gdbarch.h: Likewise.
10116
10117 * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
10118 before target_make_corefile_notes. If NULL is returned, the
10119 target does not support core file generation.
10120
10121 * linux-nat.c: Include "linux-tdep.h".
10122 (find_signalled_thread, find_stop_signal): Remove.
10123 (linux_nat_do_thread_registers): Likewise.
10124 (struct linux_nat_corefile_thread_data): Likewise.
10125 (linux_nat_corefile_thread_callback): Likewise.
10126 (iterate_over_spus): Likewise.
10127 (struct linux_spu_corefile_data): Likewise.
10128 (linux_spu_corefile_callback): Likewise.
10129 (linux_spu_make_corefile_notes): Likewise.
10130 (linux_nat_collect_thread_registers): New function.
10131 (linux_nat_make_corefile_notes): Replace contents by call to
10132 linux_make_corefile_notes passing linux_nat_collect_thread_registers
10133 as native-only callback.
10134
10135 * linux-tdep.h: Include "bfd.h".
10136 (struct regcache): Add forward declaration.
10137 (linux_collect_thread_registers_ftype): New typedef.
10138 (linux_make_corefile_notes): Add prototype.
10139 * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
10140 "regset.h", and "elf-bfd.h".
10141 (find_signalled_thread, find_stop_signal): New functions.
10142 (linux_spu_make_corefile_notes): Likewise.
10143 (linux_collect_thread_registers): Likewise.
10144 (struct linux_corefile_thread_data): New data structure.
10145 (linux_corefile_thread_callback): New funcion.
10146 (linux_make_corefile_notes): Likewise.
10147 (linux_make_corefile_notes_1): Likewise.
10148 (linux_init_abi): Install it.
10149
3030c96e
UW
101502012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10151
10152 * gdbarch.sh (info_proc): New callback.
10153 * gdbarch.c, gdbarch.h: Regenerate.
10154
10155 * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
10156 before falling back to the target info_proc callback.
10157
10158 * linux-nat.c: Do not include "cli/cli-utils.h".
10159 (linux_nat_info_proc): Remove.
10160 (linux_target_install_ops): No longer install it.
10161
10162 * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
10163 (read_mapping): New function.
10164 (linux_info_proc): Likewise.
10165 (linux_init_abi): Install it.
10166
145b16a9
UW
101672012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10168
10169 * defs.h (enum info_proc_what): Moved here from linux-nat.c
10170 * infcmd.c: (info_proc_cmd_1): New function.
10171 (info_proc_cmd): New function, moved here from equivalent routine
10172 orignally in linux-nat.c.
10173 (info_proc_cmd_mappings): Likewise.
10174 (info_proc_cmd_stat): Likewise.
10175 (info_proc_cmd_status): Likewise.
10176 (info_proc_cmd_cwd): Likewise.
10177 (info_proc_cmd_cmdline): Likewise.
10178 (info_proc_cmd_exe): Likewise.
10179 (info_proc_cmd_all): Likewise.
10180 (_initialize_infcmd): Install "info proc" command and subcommands.
10181
10182 * target.h (struct target_ops): Add to_info_proc.
10183 (target_info_proc): Add prototype.
10184 * target.c (target_info_proc): New function.
10185
10186 * procfs.c (procfs_info_proc): Add prototype.
10187 (info_proc_cmd): Rename into ...
10188 (procfs_info_proc): ... this. Update argument types as appropriate
10189 for a to_info_proc implementation. Handle "what" argument.
10190 (procfs_target): Install procfs_info_proc.
10191 (_initialize_procfs): No longer install "info proc" command.
10192
10193 * linux-nat.c: (enum info_proc_what): Remove.
10194 (linux_nat_info_proc_cmd_1): Rename into ...
10195 (linux_nat_info_proc): ... this. Update argument types as appropriate
10196 for a to_info_proc implementation.
10197 (linux_nat_info_proc_cmd): Remove.
10198 (linux_nat_info_proc_cmd_mappings): Likewise.
10199 (linux_nat_info_proc_cmd_stat): Likewise.
10200 (linux_nat_info_proc_cmd_status): Likewise.
10201 (linux_nat_info_proc_cmd_cwd): Likewise.
10202 (linux_nat_info_proc_cmd_cmdline): Likewise.
10203 (linux_nat_info_proc_cmd_exe): Likewise.
10204 (linux_nat_info_proc_cmd_all): Likewise.
10205 (linux_target_install_ops): Install linux_nat_info_proc.
10206 (_initialize_linux_nat): No longer install "info proc" command
10207 and subcommands.
10208
b9e7b9c3
UW
102092012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10210
10211 * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
10212 * config.in, configure: Regenerate.
10213
10214 * target.h (struct target_ops): Add to_fileio_readlink.
10215 (target_fileio_readlink): Add prototype.
10216 * target.c (target_fileio_readlink): New function.
10217
10218 * inf-child.c: Conditionally include <sys/param.h>.
10219 (inf_child_fileio_readlink): New function.
10220 (inf_child_target): Install it.
10221
10222 * remote.c (PACKET_vFile_readlink): New enum value.
10223 (remote_hostio_readlink): New function.
10224 (init_remote_ops): Install it.
10225 (_initialize_remote): Handle vFile:readlink packet type.
10226
7313baad
UW
102272012-01-20 Pedro Alves <palves@redhat.com>
10228 Ulrich Weigand <ulrich.weigand@linaro.org>
10229
10230 * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
10231 * config.in, configure: Regenerate.
10232
10233 * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
10234 to_fileio_pread, to_fileio_close, to_fileio_unlink.
10235 (target_fileio_open): Add prototype.
10236 (target_fileio_pwrite): Likewise.
10237 (target_fileio_pread): Likewise.
10238 (target_fileio_close): Likewise.
10239 (target_fileio_unlink): Likewise.
10240 (target_fileio_read_alloc): Likewise.
10241 (target_fileio_read_stralloc): Likewise.
10242
10243 * target.c: Include "gdb/fileio.h".
10244 (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
10245 (default_fileio_target): New function.
10246 (target_fileio_open): Likewise.
10247 (target_fileio_pwrite): Likewise.
10248 (target_fileio_pread): Likewise.
10249 (target_fileio_close): Likewise.
10250 (target_fileio_unlink): Likewise.
10251 (target_fileio_close_cleanup): Likewise.
10252 (target_fileio_read_alloc_1): Likewise.
10253 (target_fileio_read_alloc): Likewise.
10254 (target_fileio_read_stralloc): Likewise.
10255
10256 * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
10257 <fcntl.h>, and <unistd.h>.
10258 (inf_child_fileio_open_flags_to_host): New function.
10259 (inf_child_errno_to_fileio_error): Likewise.
10260 (inf_child_fileio_open): Likewise.
10261 (inf_child_fileio_pwrite): Likewise.
10262 (inf_child_fileio_pread): Likewise.
10263 (inf_child_fileio_close): Likewise.
10264 (inf_child_fileio_unlink): Likewise.
10265 (inf_child_target): Install to_fileio routines.
10266
10267 * remote.c (init_remote_ops): Install to_fileio routines.
10268
901f9912
UW
102692012-01-20 Pedro Alves <palves@redhat.com>
10270 Ulrich Weigand <ulrich.weigand@linaro.org>
10271
10272 * remote.c (remote_multi_process_p): Only check for multi-process
10273 protocol feature, do not check for extended protocol.
10274 (remote_supports_multi_process): Check for extended protocol here.
10275 (set_general_process): Likewise.
10276 (extended_remote_kill): Likewise.
10277 (remote_pid_to_str): Likewise.
10278 (remote_query_supported): Always query multiprocess mode.
10279
e714e1bf
UW
102802012-01-20 Pedro Alves <palves@redhat.com>
10281 Ulrich Weigand <ulrich.weigand@linaro.org>
10282
10283 * inferior.h (struct inferior): Add fake_pid_p.
10284 * inferior.c (exit_inferior_1): Clear fake_pid_p.
10285 * remote.c (remote_start_remote): Set fake_pid_p if we have to use
10286 magic_null_ptid since the remote side doesn't provide a real PID.
10287
50897289
TT
102882012-01-19 Tom Tromey <tromey@redhat.com>
10289
10290 * NEWS: Combine the two Python sections.
10291
1afc2033
JK
102922012-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
10293
10294 * target.h (target_close): Update comment on the target's unpush state.
10295
305436e0
PA
102962012-01-19 Pedro Alves <palves@redhat.com>
10297
10298 * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
10299 linux_nat_async directly instead of going through the target
10300 vector.
10301 * target.c (unpush_target): Close target after unpushing it, not
10302 before.
10303
49323895
GB
103042012-01-19 Gary Benson <gbenson@redhat.com>
10305
10306 * mdebugread.c (sort_blocks): Replace integer constants with ones
10307 derived from FIRST_LOCAL_BLOCK.
10308
1db33378
PP
103092012-01-18 Paul Pluzhnikov <ppluzhnikov@google.com>
10310 Jan Kratochvil <jan.kratochvil@redhat.com>
10311
10312 PR gdb/9538
10313 * symfile.c (find_separate_debug_file): New function.
10314 (terminate_after_last_dir_separator): Likewise.
10315 (find_separate_debug_file_by_debuglink): Also try realpath.
10316 * configure.ac (AC_CHECK_FUNCS): Add lstat.
10317 * configure: Regenerate.
10318 * config.in: Regenerate.
10319
f83d8a90
DE
103202012-01-18 Doug Evans <dje@google.com>
10321
10322 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
10323 (main.o): Remove rule.
10324 * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
10325 (--with-sysroot): Rewrite.
10326 * configure: Regenerate.
10327 * config.in: Regenerate.
10328
2dbca4d6
SDJ
103292012-01-18 Sergio Durigan Junior <sergiodj@redhat.com>
10330
10331 * parse.c (initialize_expout): New function.
10332 (reallocate_expout): Likewise.
10333 (parse_exp_in_context): Use `initialize_expout' and
10334 `reallocate_expout' when appropriate.
10335
0695b514
PA
103362012-01-18 Pedro Alves <palves@redhat.com>
10337
10338 * record.c (struct record_breakpoint, record_breakpoint_p)
10339 (record_breakpoints): New.
10340 (record_insert_breakpoint, record_remove_breakpoint): Manage
10341 record breakpoints list. Only remove breakpoints from the
10342 inferior if they had been inserted there in the first place.
10343
136e1c30
DE
103442012-01-17 Doug Evans <dje@google.com>
10345
10346 * linespec.c (decode_line_internal): Don't call symtabs_from_filename
10347 if we know we don't have a file name to look for.
10348
c0bf857d
PA
103492012-01-17 Pedro Alves <palves@redhat.com>
10350
10351 * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
10352 the frame's stop reason is UNWIND_UNAVAILABLE.
10353
b486de60
JK
103542012-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
10355
10356 Fix compilation error.
10357 * m2-exp.y (yyerror): Use ANSI C prototype.
10358
d04550a6
SDJ
103592012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
10360
10361 * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
10362 (growbuf_by_size): Likewise.
10363 (yyerror): Likewise.
10364 * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
10365 (modblock): Remove variable (was #if 0'ed).
10366 (parse_number): Convert prototype from K&R to ANSI C.
10367 (yyerror): Likewise.
10368 * objc-exp.y (parse_number): Likewise.
10369 (yyerror): Likewise.
10370 (yylex): Remove #if 0'ed code.
10371 * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
10372 (yyerror): Likewise.
10373
4aac40c8
TT
103742012-01-16 Tom Tromey <tromey@redhat.com>
10375
10376 * NEWS: Add item.
10377 * symtab.h (compare_filenames_for_search): Declare.
10378 * symtab.c (compare_filenames_for_search): New function.
10379 (iterate_over_some_symtabs): Use it.
10380 * symfile.h (struct quick_symbol_functions)
10381 <map_symtabs_matching_filename>: Change spec.
10382 * psymtab.c (partial_map_symtabs_matching_filename): Use
10383 compare_filenames_for_search. Update for new spec.
10384 * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
10385 compare_filenames_for_search. Update for new spec.
10386 * breakpoint.c (clear_command): Use compare_filenames_for_search.
10387
cafec441
TT
103882012-01-16 Tom Tromey <tromey@redhat.com>
10389
10390 PR python/13281:
10391 * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
10392 (struct main_type) <flag_flag_enum>: New field.
10393 * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
10394 * NEWS: Add entries.
10395 * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
10396 enums.
10397 * python/lib/gdb/printing.py (_EnumInstance): New class.
10398 (FlagEnumerationPrinter): Likewise.
10399
983af33b
SDJ
104002012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
10401
10402 * breakpoint.c (create_sals_from_address_default): New function.
10403 (create_breakpoints_sal_default): Likewise.
10404 (decode_linespec_default): Likewise.
10405 (is_marker_spec): Removed.
10406 (strace_marker_p): New function.
10407 (init_breakpoint_sal): Using `strace_marker_p' instead of
10408 `is_marker_spec'.
10409 (create_breakpoint): Call method `create_sals_from_address' from
10410 breakpoint_ops, replacing code that created SALs conditionally
10411 on the type of the breakpoint. Call method `create_breakpoints_sal',
10412 replacing code that created breakpoints conditionally on the type
10413 wanted.
10414 (base_breakpoint_create_sals_from_address): New function.
10415 (base_breakpoint_create_breakpoints_sal): Likewise.
10416 (base_breakpoint_decode_linespec): Likewise.
10417 (base_breakpoint_ops): Add methods
10418 `base_breakpoint_create_sals_from_address',
10419 `base_breakpoint_create_breakpoints_sal' and
10420 `base_breakpoint_decode_linespec'.
10421 (bkpt_create_sals_from_address): New function.
10422 (bkpt_create_breakpoints_sal): Likewise.
10423 (bkpt_decode_linespec): Likewise.
10424 (tracepoint_create_sals_from_address): Likewise.
10425 (tracepoint_create_breakpoints_sal): Likewise.
10426 (tracepoint_decode_linespec): Likewise.
10427 (strace_marker_create_sals_from_address): Likewise.
10428 (strace_marker_create_breakpoints_sal): Likewise.
10429 (strace_marker_decode_linespec): Likewise.
10430 (strace_marker_breakpoint_ops): New variable.
10431 (addr_string_to_sals): Remove `marker_spec'. Call method
10432 `decode_linespec' from breakpoint_ops, replacing code that decoded
10433 an address string into a SAL. Use `strace_marker_p' instead of
10434 `marker_spec'.
10435 (strace_command): Decide whether we are dealing with a static
10436 tracepoint with marker or not. Use the appropriate breakpoint_ops.
10437 (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
10438 * breakpoint.h (linespec_result, linespec_sals): New forward
10439 declarations.
10440 (breakpoint_ops) <create_sals_from_address>,
10441 <create_breakpoints_sal>, <decode_linespec>: New methods.
10442
4795f398
DE
104432012-01-14 Doug Evans <dje@google.com>
10444
10445 * NEWS: Update text for "maint set python print-stack".
10446 It is deprecated in gdb 7.4 and deleted in 7.5.
10447
ee5106fe
EZ
104482012-01-13 Eli Zaretskii <eliz@gnu.org>
10449
10450 * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
10451 including curses.h.
10452
b161e06f
JK
104532012-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
10454
10455 * configure: Regenerate.
10456 * config.in: Regenerate.
10457
85254831
KS
104582012-01-12 Keith Seitz <keiths@redhat.com>
10459
10460 PR mi/10586
10461 * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
10462 (ANONYMOUS_UNION_NAME): Define.
10463 (is_path_expr_parent): New function.
10464 (get_path_expr_parent): New function.
10465 (is_anonymous_child): New function.
10466 (create_child_with_value): If the child is anonymous and without
10467 a name, assign an object name to it.
10468 (c_describe_child): Use get_path_expr_parent to determine
10469 the parent expression.
10470 If there field represents an anonymous struct or union and
10471 has no name, set an appropriate display name and expression.
10472 (cplus_describe_child): Likewise.
10473
620fa63a
PA
104742012-01-12 Pedro Alves <palves@redhat.com>
10475
10476 * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
10477 available when %ebp is found to be zero (outermost).
10478
2efa2c79
AT
104792012-01-11 Andreas Tobler <andreast@fgznet.ch>
10480
10481 * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
10482 an internal gdb_static_assert.
10483 * mi/mi-common.c: Rename static_assert to gdb_static_assert.
10484
88e7d25d
TT
104852012-01-11 Tom Tromey <tromey@redhat.com>
10486
10487 PR gdb/9598:
10488 * breakpoint.c (_initialize_breakpoint): Fix help for "catch
10489 catch" and "catch throw".
10490
72384ba3
PH
104912012-01-11 Paul Hilfinger <hilfingr@adacore.com>
10492
10493 * blockframe.c (block_innermost_frame): Start search from selected
10494 frame, if present, or otherwise the current frame.
10495
10496 * c-exp.y (variable): Update innermost_block for
10497 'block COLONCOLON NAME' clause.
10498 * m2-exp.y (variable): Ditto.
10499 * objc-exp.y (variable): Ditto.
10500
065a711f
TT
105012012-01-10 Tom Tromey <tromey@redhat.com>
10502
10503 PR python/13199:
10504 * python/python.c (finish_python_initialization): Set sys.argv.
10505
f3f5162e
DE
105062012-01-10 Doug Evans <dje@google.com>
10507
10508 * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd". New arg
10509 "want_line_info". All callers updated.
10510 (dwarf_decode_lines_1): New function.
10511 (handle_DW_AT_stmt_list): Add function comment.
10512 New arg "want_line_info". All callers updated.
10513 (read_file_scope,read_type_unit_scope): Move comment from
10514 handle_DW_AT_stmt_list to here.
10515
9934703b
JK
105162012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10517
10518 Fix regression after libiberty/ update for GCC PR 6057 and others.
10519 * c-exp.y (operator) <OPERATOR DELETE>
10520 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
10521 * cp-name-parser.y (fill_comp, make_operator, make_dtor)
10522 (make_builtin_type, make_name): New variable i, add gdb_assert.
10523 (operator) <OPERATOR NEW>: Update ARGS to 3.
10524 (operator) <OPERATOR DELETE>: Add trailing space.
10525 (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
10526 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
10527 * cp-support.c (cp_canonicalize_string): Check NULL from
10528 cp_comp_to_string, call warning and return.
10529
06b9f45f
JK
105302012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10531
10532 Fix duplicate .o files after omitting libbfd.a.
10533 * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
10534 (SFILES): Add corelow.c.
10535 (COMMON_OBS): Add corelow.o.
10536 (ALLDEPFILES): Remove corelow.c.
10537 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
10538 * config/alpha/alpha-osf3.mh: Likewise.
10539 * config/alpha/fbsd.mh: Likewise.
10540 * config/arm/nbsdaout.mh: Likewise.
10541 * config/arm/nbsdelf.mh: Likewise.
10542 * config/i386/i386gnu.mh: Likewise.
10543 * config/ia64/hpux.mh: Likewise.
10544 * config/ia64/linux.mh: Likewise.
10545 * config/m32r/linux.mh: Likewise.
10546 * config/m68k/linux.mh: Likewise.
10547 * config/mips/irix5.mh: Likewise.
10548 * config/mips/irix6.mh: Likewise.
10549 * config/pa/hpux.mh: Likewise.
10550 * config/pa/linux.mh: Likewise.
10551 * config/powerpc/aix.mh: Likewise.
10552 * config/sparc/linux.mh: Likewise.
10553 * config/sparc/linux64.mh: Likewise.
10554 * config/sparc/sol2.mh: Likewise.
10555 * config/vax/vax.mh: Likewise.
10556 * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
10557 (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
10558 (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
10559 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
10560 (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
10561 (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
10562 (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
10563 (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
10564 (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
10565 (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
10566 (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
10567 (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
10568 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
10569 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
10570 (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
10571 (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
10572 (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
10573 (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
10574 (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
10575 (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
10576 (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
10577 (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
10578 corelow.o from gdb_target_obs.
10579 * corefile.c (core_target): Update the comment on NULL value.
10580 (core_file_command): Replace error by gdb_assert on CORE_TARGET.
10581 * corelow.c (sniff_core_bfd): Call error instead of warning on zero
10582 MATCHES. Drop YUMMY set on NULL.
10583 (core_close): Do not call exit_inferior_silent on zero PID. Do not
10584 reclaim CORE_DATA if it is already NULL.
10585
34365054
DE
105862012-01-09 Doug Evans <dje@google.com>
10587
10588 * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
10589 * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
10590
696166a3
KS
105912012-01-09 Keith Seitz <keiths@redhat.com>
10592
10593 * breakpoint.c (wrapper.h): Don't include.
10594
8e7b59a5
KS
105952012-01-09 Keith Seitz <keiths@redhat.com>
10596
10597 * Makefile.in (SFILES): Remove wrapper.c.
10598 (HFILES_NO_SRCDIR): Remove wrapper.h.
10599 (COMMON_OBS): Remove wrapper.o.
10600 * cli/cli-interp.c: Don't inlude wrapper.h.
10601 * corelow.c: Likewise.
10602 (core_open): Replace gdb_target_find_new_threads with
10603 TRY_CATCH around target_find_new_threads.
10604 * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
10605 * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
10606 * varobj.c (varobj_create): Likewise for parse_exp_1 and
10607 evaluate_expression.
10608 (varobj_set_value): Likewise for evaluate_expression and
10609 value_assign.
10610 (install_new_variable): Likewise for value_fetch_lazy.
10611 (adjust_value_for_child_access): Likewise for value_ind.
10612 (c_describe_child): Likewise for value_subscript and
10613 value_ind.
10614 (c_value_of_root): Likewise for evaluate_expression.
10615 * wrapper.c: Remove.
10616 * wrapper.h: Remove.
10617
1a4eeb98
DE
106182012-01-09 Doug Evans <dje@google.com>
10619
9ff913ba
DE
10620 * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
10621 partial_read_comp_unit_head. Replace "buffer", "buffer_size" and
10622 "abfd" args with "section". All callers updated.
10623 Error checking code moved ...
10624 (error_check_comp_unit_head): ... here. New function.
10625 (read_and_check_type_unit_head): Renamed from read_type_unit_head.
10626 Delete arg "abfd". New arg "type_offset". All callers updated.
10627 (create_debug_types_hash_table): Simplify by using
10628 read_and_check_type_unit_head.
10629
1a4eeb98
DE
10630 * parser-defs.h (namecopy): Delete.
10631 * parse.c (namecopy, namecopy_size): Move into copy_name.
10632
2e6af8c0
JK
106332012-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10634
10635 Partially fix duplicate .o files after omitting libbfd.a.
10636 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
10637 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
10638 * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
10639 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
10640 * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
10641 * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
10642 * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
10643
9f2f828a
PA
106442012-01-09 Pedro Alves <palves@redhat.com>
10645
10646 * MAINTAINERS: Update my email address.
10647
4d72c0bc
DE
106482012-01-08 Doug Evans <dje@google.com>
10649
d467dd73
DE
10650 * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
10651 n_type_units. Rename type_comp_units to all_type_units.
10652 All uses updated.
10653 (add_signatured_type_cu_to_table): Renamed from
10654 add_signatured_type_cu_to_list. All callers updated.
10655
4d72c0bc
DE
10656 * gdbtypes.h (struct cplus_struct_type): Delete member
10657 nfn_fields_total. All uses removed.
10658
21b2bd31
DE
106592012-01-06 Doug Evans <dje@google.com>
10660
10661 * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
10662 to top of file.
10663 (dwarf2_find_comp_unit): Delete.
10664 (process_psymtab_comp_unit): Make result "void".
10665 Delete args buffer, info_ptr, buffer_size, and replace with
10666 "section". All callers updated.
10667 (dwarf2_build_psymtabs_hard): Simplify.
10668
bfd189b1
SDJ
106692012-01-06 Sergio Durigan Junior <sergiodj@redhat.com>
10670 Thiago Jung Bauermann <bauerman@br.ibm.com>
10671
10672 * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
10673 before `struct gdb_exception'.
10674 * breakpoint.c (update_global_location_list_nothrow)
10675 (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
10676 * cp-abi.c (value_rtti_type): Likewise.
10677 * cp-support.c (cp_validate_operator): Likewise.
10678 * infrun.c (insert_exception_resume_breakpoint)
10679 (check_exception_resume, keep_going): Likewise.
10680 * mi-interp.c (mi_breakpoint_created)
10681 (mi_breakpoint_modified): Likewise.
10682 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
10683 * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
10684 (ia64_hpux_handle_dld_breakpoint_1): Likewise.
10685
6b07635f
DE
106862012-01-05 Doug Evans <dje@google.com>
10687
0b30b85c
DE
10688 * dwarf2read.c (statement_prologue): Delete, unused.
10689
98714339
DE
10690 * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
10691 * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
10692
6b07635f
DE
10693 * dwarf2read.c (comp_unit_header): Delete, unused.
10694
761f4555
UW
106952012-01-05 Ulrich Weigand <uweigand@de.ibm.com>
10696
10697 * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
10698 * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
10699
2ca0b532
PA
107002012-01-05 Khoo Yit Phang <khooyp@cs.umd.edu>
10701
10702 * infrun.c (normal_stop): Don't skip calling the normal_stop
10703 observers if the thread was doing a multi-step, but stopped for
10704 some reason other than stepping.
10705
50aeff07
PA
107062012-01-05 Pedro Alves <alves.ped@gmail.com>
10707
10708 * cli/cli-decode.h: Add comments.
10709 (CMD_LIST_AMBIGUOUS): Moved to command.h
10710 (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
10711 (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
10712 (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
10713 (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
10714 (add_com, add_com_alias, add_info, add_info_alias)
10715 (complete_on_cmdlist, complete_on_enum, help_list): Remove
10716 declarations.
10717 * command.h: Add and adjust comments.
10718 (CMD_LIST_AMBIGUOUS): Moved here.
10719 (help_cmd, help_cmd_list): Delete declarations.
10720
5953832c
DE
107212012-01-04 Doug Evans <dje@google.com>
10722
e5fe5e75
DE
10723 * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
10724 All callers updated.
10725 (load_full_type_unit): Renamed from read_signatured_type_at_offset.
10726 Replace all arguments with "per_cu". All callers updated.
10727
28dee7f5
DE
10728 * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
10729
23745b47
DE
10730 * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
10731 New arg "per_cu". All callers updated.
10732
5953832c
DE
10733 Delete #if 0'd out code.
10734 * language.c (binop_result_type): Delete.
10735 (simple_type, ordered_type, same_type, integral_type): Delete.
10736 (numeric_type, character_type, string_type, boolean_type): Delete.
10737 (float_type, structured_type): Delete.
10738 * language.h: Update.
10739
0f5b7562
TT
107402012-01-04 Tom Tromey <tromey@redhat.com>
10741
10742 * python/py-value.c (valpy_binop): Initialize 'res_val'.
10743
78218f56
JB
107442012-01-04 Joel Brobecker <brobecker@adacore.com>
10745
10746 * corefile.c (close_exec_file): Delete.
10747 (reopen_exec_file): Remove commented out code that seems related
10748 to close_exec_file, which is being deleted here.
10749 * inferior.h (close_exec_file): Delete.
10750 * fork-child.c (fork_inferior): Remove call to fork_inferior.
10751
0fcd72ba
JB
107522012-01-04 Joel Brobecker <brobecker@adacore.com>
10753
10754 * ada-lang.c: #include "cli/cli-utils.h".
10755 (get_selections): Use skip_spaces.
10756 (ada_get_next_arg): Use skip_spaces and skip_to_space.
10757 (catch_ada_exception_command_split): Use skip_spaces.
10758 (ada_decode_assert_location): Likewise.
10759
1dabb4c4
JB
107602012-01-04 Joel Brobecker <brobecker@adacore.com>
10761
10762 * linespec.c (decode_line_internal): Check for C++ or Java
10763 compound constructs only if the current language is C, C++
10764 or Java.
10765
5931a2fa
JK
107662012-01-04 Jan Kratochvil <jan.kratochvil@redhat.com>
10767
10768 Revert:
10769 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10770 Joel Brobecker <brobecker@adacore.com>
10771 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
10772 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
10773 3 times.
10774 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
10775 fall through into AT_ENTRY_POINT.
10776 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
10777 DUMMY_ADDR with it.
10778 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
10779 PPC_INSN_SIZE skip to 3 times.
10780
1a2da5ee
JB
107812012-01-04 Joel Brobecker <brobecker@adacore.com>
10782
10783 * linespec.c (add_minsym): Preserve function descriptors.
10784
8645ff69
UW
107852012-01-04 Ulrich Weigand <uweigand@de.ibm.com>
10786
10787 * breakpoint.c (all_locations_are_pending): Consider locations
10788 in program spaces executing during startup pending as well.
10789
0b302171
JB
107902012-01-04 Joel Brobecker <brobecker@adacore.com>
10791
10792 Copyright year update in most files of the GDB Project.
10793
8ba098ad
JB
107942012-01-04 Joel Brobecker <brobecker@adacore.com>
10795
10796 * copyright.sh: Delete.
10797 * copyright.py: Rewrite.
10798
09c01c30
JB
107992012-01-04 Joel Brobecker <brobecker@adacore.com>
10800
10801 * gnulib/extra/update-copyright: New file, imported from gnulib.
10802
3c36c0af
JB
108032012-01-04 Joel Brobecker <brobecker@adacore.com>
10804
10805 * README (Copyright and License Notices): New section.
10806
888fe1e1
TT
108072012-01-03 Tom Tromey <tromey@redhat.com>
10808
10809 PR python/12533:
10810 * python/py-value.c (valpy_dereference, valpy_get_address
10811 valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
10812 (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
10813 (valpy_absolute, valpy_richcompare): Free intermediate values.
10814
6e681866
JB
108152011-01-03 Joel Brobecker <brobecker@adacore.com>
10816
10817 * ada-lang.c: Reformat the copyright notice.
10818
0cd09acb
JK
108192012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10820
10821 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
10822 * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
10823 (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
10824 (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
10825 Revert this part of:
10826 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10827 Build gdb directly from *.o files not using libgdb.a.
10828 * Makefile.in (COMMON_OBS): Remove solib-target.o.
10829
12c3e59c
JB
108302012-01-02 Joel Brobecker <brobecker@adacore.com>
10831
10832 * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
10833 gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
10834 Reformat the copyright header.
10835
11bf1490
JK
108362012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10837
10838 Revert this part of:
10839 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10840 Remove the gdbtui binary.
10841 * gdb.c (main): Remove args.interpreter_p initialization.
10842 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
10843 * main.h (struct captured_main_args): Remove interpreter_p.
10844
1fef196f
JB
108452012-01-02 Joel Brobecker <brobecker@adacore.com>
10846
10847 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
10848
67827812
JB
108492012-01-02 Joel Brobecker <brobecker@adacore.com>
10850
10851 * top.c (print_gdb_version): Update copyright year.
10852
a4d0b831
YQ
108532012-01-02 Yao Qi <yao@codesourcery.com>
10854
10855 * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
10856
b5914469
JK
108572012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10858 Joel Brobecker <brobecker@adacore.com>
10859
10860 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
10861 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
10862 3 times.
10863 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
10864 fall through into AT_ENTRY_POINT.
10865 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
10866 DUMMY_ADDR with it.
10867 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
10868 PPC_INSN_SIZE skip to 3 times.
10869
8da828f7
JK
108702012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10871
10872 * amd64-linux-nat.c (update_debug_registers_callback): New comment on
10873 the return value.
10874 * i386-linux-nat.c (update_debug_registers_callback): Likewise.
10875
8574e74b
JK
108762012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10877
10878 Build gdb directly from *.o files not using libgdb.a.
10879 * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
10880 (COMMON_OBS): Remove solib-target.o.
10881 (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
10882 (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
10883 (LIBGDB_OBS, libgdb.a): Move it above.
10884 * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
10885 (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
10886 (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
10887 (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
10888 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
10889 (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
10890 (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
10891 (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
10892 (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
10893 (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
10894 (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
10895 (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
10896 (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
10897 (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
10898 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
10899 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
10900 (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
10901 (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
10902 (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
10903 (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
10904 (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
10905 (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
10906 (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
10907 (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
10908 (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
10909 (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
10910 (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
10911
217bff3e
JK
109122012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10913
10914 Remove the gdbtui binary.
10915 * .gitignore (/gdbtui): Remove.
10916 * Makefile.in (TUI): Remove.
10917 (SUBDIR_TUI_OBS): Remove tui-main.o.
10918 (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
10919 (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
10920 (tui-main.o): Remove.
10921 (all_object_files): Remove tui-main.o.
10922 * NEWS: New note for the gdbtui removal.
10923 * configure: Rebuilt.
10924 * configure.ac: No longer add all-tui, clean-tui, install-tui and
10925 uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
10926 CONFIG_UNINSTALL respectively.
10927 * gdb.c (main): Remove args.interpreter_p initialization.
10928 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
10929 * main.h (struct captured_main_args): Remove interpreter_p.
10930 * tui/tui-main.c: Remove.
10931
9cdd5dbd
DE
109322012-01-01 Doug Evans <dje@google.com>
10933
bb5ed363
DE
10934 * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
10935 (dwarf2_physname, read_import_statement): Ditto.
10936 (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
10937 (process_structure_scope read_subroutine_type): Ditto.
10938 (read_typedef, load_partial_dies, read_partial_die): Ditto.
10939 (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
10940 (dwarf2_fetch_die_location_block): Ditto.
10941 (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
10942
a0f42c21
DE
10943 * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
10944 All callers updated.
10945 (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
10946 (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
10947 (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
10948
2dc860c0
DE
10949 * dwarf2read.c (load_cu): Move assert to more useful location.
10950
68dc6402
DE
10951 * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
10952 All callers updated.
10953
9cdd5dbd
DE
10954 * dwarf2read.c (dwarf2_per_objfile): Add comment.
10955 (dwarf2_elf_names): Minor reformat.
10956 (dwarf2_per_cu_data): Tweak comment.
10957 (dwarf2_read_section): Fix comment.
10958 (create_all_comp_units): Fix comment.
10959 (load_full_comp_unit): Fix comment.
10960 (process_full_comp_unit): Fix comment.
10961 (read_signatured_type): Fix comment.
10962
0c10e53e 10963For older changes see ChangeLog-2011.
c906108c
SS
10964\f
10965Local Variables:
10966mode: change-log
10967left-margin: 8
10968fill-column: 74
10969version-control: never
57da7796 10970coding: utf-8
c906108c 10971End:
This page took 1.870462 seconds and 4 git commands to generate.