gdb/testsuite/
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
c83393b9
JB
12012-10-15 Joel Brobecker <brobecker@adacore.com>
2
3 * configure.ac: Build with -DMS_WIN64 if building with Python
4 enabled using GCC on amd64-windows.
5 * configure: Regenerate.
6
801e4185
TT
72012-10-15 Tom Tromey <tromey@redhat.com>
8
9 PR python/14635:
10 * python/py-symtab.c (del_objfile_sal): Set 'symtab' field
11 to Py_None.
12
74f910c8
TT
132012-10-15 Tom Tromey <tromey@redhat.com>
14
15 PR python/14634:
16 * python/py-symbol.c (sympy_dealloc): Check for NULL symbol.
17
2a7c8fd5
AB
182012-10-11 Andrew Burgess <aburgess@broadcom.com>
19
20 * remote-sim.c (gdbsim_create_inferior): Call init_thread_list to
21 reset thread numbering back to 1.
22
7c09e5a0
DE
232012-10-11 Doug Evans <dje@google.com>
24
25 PR breakpoints/14643.
26 * linespec.c (struct ls_parser): New member keyword_ok.
27 (linespec_lexer_lex_string): Add comment.
28 (linespec_lexer_lex_one): Ignore keywords if it's the wrong place
29 for one.
30 (parse_linespec): Set keyword_ok.
31
a1855c1d
DE
322012-10-10 Doug Evans <dje@google.com>
33
844226d6
DE
34 * dwarf2read.c (process_psymtab_comp_unit_reader): Remove duplicate
35 "0x" prefix on address in log message.
36
a1855c1d
DE
37 * dwarf2read.c (read_1_byte): Add const to buf parameter.
38 (read_1_signed_byte, read_2_bytes, read_2_signed_bytes): Ditto.
39 (read_4_bytes, read_4_signed_bytes, read_8_bytes): Ditto.
40 (lookup_dwo_file): Add const to dwo_name parameter.
41 (lookup_dwo_comp_unit, lookup_dwo_type_unit): Ditto.
42
2e24f4aa
JK
432012-10-06 Jan Kratochvil <jan.kratochvil@redhat.com>
44
45 Fix crash during stepping on ppc32.
46 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Test NULL
47 SYM.
48
aa14df25
DE
492012-10-03 Doug Evans <dje@google.com>
50
51 PR symtab/14601
52 * buildsym.c (buildsym_init): Reset using_directives to NULL.
53
3d468296
AB
542012-10-02 Andrew Burgess <aburgess@broadcom.com>
55
56 * remote-sim.c (dump_mem): Always dump buffer contents, zero fill
57 output and use uint32_t not long to ensure 4 byte size.
58
8f0ee2eb
JB
592012-10-02 Joel Brobecker <brobecker@adacore.com>
60
61 * rs6000-nat.c (add_vmap): Set "last" to "next" after having
62 unref'ed it.
63
b3dc46ff
AB
642012-10-01 Andrew Burgess <aburgess@broadcom.com>
65
66 * target.c (simple_search_memory): Include access length in
67 warning message.
68
f712f01f
EBM
692012-09-28 Nathan Miller <nathanm2@us.ibm.com>
70 Edjunior Machado <emachado@linux.vnet.ibm.com>
71
72 PR gdb/13989
73 * solib.c (solib_find): Prevent GDB from loading native libraries when
74 debugging a cross-target corefile.
75
39181896
PA
762012-09-28 selven <pcthegreat@gmail.com>
77
78 Make definition match declaration.
79
80 * regcache.c (regcache_register_status): Change return type to
81 enum register_status.
82
4c2786ba
YQ
832012-09-28 Yao Qi <yao@codesourcery.com>
84
85 * mi/mi-main.c (mi_cmd_data_write_memory): Call
86 write_memory_with_notification instead of write_memory.
87 (mi_cmd_data_write_memory_bytes): Call write_memory_with_notification
88 instead of target_write_memory.
89
1ae0c35e
YQ
902012-09-28 Yao Qi <yao@codesourcery.com>
91
92 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Emit error
93 when the length of content is not an even number.
94
7977e5d2
TT
952012-09-27 Tom Tromey <tromey@redhat.com>
96
97 Fix https://bugzilla.redhat.com/show_bug.cgi?id=849357
98 * cp-valprint.c (cp_print_value_fields): Use get_vptr_fieldno.
99
807160da
JB
1002012-09-27 Joel Brobecker <brobecker@adacore.com>
101
102 * sol-thread.c (sol_thread_fetch_registers)
103 (sol_thread_store_registers): Delete commented out code.
104
43c75337
JB
1052012-09-27 Joel Brobecker <brobecker@adacore.com>
106
107 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
108 Move these functions to sparc-sol-thread.c.
109 * sparc-sol-thread.c: New file.
110 * configure.ac: Add sparc-sol-thread.o to CONFIG_OBS and
111 sparc-sol-thread.c to CONFIG_SRCS for sparc-solaris native
112 configurations.
113 * configure: Regenerate.
114
d292a972
JB
1152012-09-27 Joel Brobecker <brobecker@adacore.com>
116
117 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
118 Remove commented-out code.
119
8c3da003
JB
1202012-09-27 Joel Brobecker <brobecker@adacore.com>
121
122 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
123 Enable this code for sparc hosts only.
124
f00482b6
JB
1252012-09-27 Joel Brobecker <brobecker@adacore.com>
126
127 * procfs.h (procfs_find_LDT_entry): Add declaration.
128 * sol-thread.c (ps_lgetLDT): Delete local declaration of
129 function procfs_find_LDT_entry.
130
337c776f
JB
1312012-09-27 Joel Brobecker <brobecker@adacore.com>
132
133 * procfs.c (proc_get_LDT_entry): Make static.
134
1a04d88f
JB
1352012-09-27 Joel Brobecker <brobecker@adacore.com>
136
137 * procfs.c (proc_find_memory_regions): Fix declaration.
138
bad43aa5
SP
1392012-09-27 Siddhesh Poyarekar <siddhesh@redhat.com>
140
141 * amd64-tdep.c (amd64_return_value): Revert previous change
142 that used TYPE_LENGTH directly.
143 * bfin-tdep.c (bfin_extract_return_value): Likewise.
144 (bfin_store_return_value): Likewise.
145 * cris-tdep.c (cris_store_return_value): Likewise.
146 (cris_extract_return_value): Likewise.
147 * h8300-tdep.c (h8300_extract_return_value): Likewise.
148 * hppa-tdep.c (hppa64_return_value): Likewise.
149 * lm32-tdep.c (lm32_store_return_value): Likewise.
150 * microblaze-tdep.c (microblaze_store_return_value): Likewise.
151 * spu-tdep.c (spu_value_from_register): Likewise.
152 * vax-tdep.c (vax_return_value): Likewise.
153
63375b74
SP
1542012-09-27 Siddhesh Poyarekar <siddhesh@redhat.com>
155
156 * gdbtypes.c (lookup_array_range_type): Expand parameters
157 LOW_BOUND and HIGH_BOUND to LONGEST.
158 (lookup_string_range_type): Likewise.
159 * gdbtypes.h (lookup_array_range_type): Likewise.
160 (lookup_string_range_type): Likewise.
161 * valops.c (value_cstring): Expand parameter LEN to ssize_t.
162 Expand HIGHBOUND to ssize_t.
163 (value_string): Likewise.
164 * value.h (value_cstring): Expand parameter LEN to ssize_t.
165 (value_string): Likewise.
166
19ca11c5
YQ
1672012-09-27 Yao Qi <yao@codesourcery.com>
168
169 PR breakpoints/13898
170 * breakpoint.h (tracepoint_breakpoint_ops): Forward declaration.
171 * mi/mi-cmd-break.c (mi_cmd_break_insert): Set breakpoint_ops
172 per breakpoint type.
173
92107356
PM
1742012-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
175
176 * procfs.c: Add gdb_bfd header.
177 * rs6000-nat.c: Likewise.
178 * solib-pa64.c: Likewise.
179 * spu-linux-nat.c: Likewise.
180 * windows-nat.c: Likewise.
181
9742094a
TT
1822012-09-26 Tom Tromey <tromey@redhat.com>
183
184 * f-lang.h (BLANK_COMMON_NAME_LOCAL): Remove.
185
0971de02
TT
1862012-09-26 Tom Tromey <tromey@redhat.com>
187
188 * dwarf2read.c (mark_common_block_symbol_computed): New function.
189 (read_common_block): Handle child DIEs with
190 DW_AT_data_member_location.
191 (new_symbol_full): Add special case for common blocks.
192
4357ac6c
TT
1932012-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
194 Tom Tromey <tromey@redhat.com>
195
196 * dwarf2read.c (read_common_block): Rewrite.
197 (new_symbol_full): Handle DW_TAG_common_block.
198 * f-lang.c (head_common_list, find_common_for_function):
199 Remove.
200 * f-lang.h (struct common_entry, struct saved_f77_common,
201 SAVED_F77_COMMON, SAVED_F77_COMMON_PTR, COMMON_ENTRY,
202 COMMON_ENTRY_PTR, head_common_list, find_common_for_function,
203 BLANK_COMMON_NAME_LOCAL): Remove.
204 (struct common_block): New.
205 * f-valprint.c (list_all_visible_commons): Remove.
206 (info_common_command_for_block): New function.
207 (info_common_command): Use it.
208 * stack.c (iterate_over_block_locals): Special case for
209 COMMON_BLOCK_DOMAIN.
210 * symtab.h (enum domain_enum_tag) <COMMON_BLOCK_DOMAIN>: New
211 constant.
212 (struct general_symbol_info) <value.common_block>: New field.
213 (SYMBOL_VALUE_COMMON_BLOCK): New define.
214
965f07a8
TT
2152012-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
216 Tom Tromey <tromey@redhat.com>
217
218 * f-lang.c (allocate_saved_bf_node,
219 allocate_saved_function_node, allocate_saved_f77_common_node,
220 allocate_common_entry_node, tail_common_list, current_common,
221 saved_bf_list, saved_bf_list_end, current_head_bf_list,
222 tmp_bf_ptr, add_common_block, add_common_entry,
223 find_first_common_named, patch_common_entries,
224 patch_all_commons_by_name, ADD_BF_SYMNUM, clear_bf_list,
225 global_remote_debug, get_bf_for_fcn, saved_function_list,
226 saved_function_list_end, clear_function_list, struct saved_fcn,
227 struct saved_bf_symnum, SAVED_FUNCTION, SAVED_FUNCTION_PTR,
228 SAVED_BF, SAVED_BF_PTR): Remove.
229 * f-lang.h (tail_common_list, current_common,
230 UNINITIALIZED_SECNUM, COMMON_NEEDS_PATCHING,
231 BLANK_COMMON_NAME_ORIGINAL, BLANK_COMMON_NAME_MF77,
232 DEFAULT_UPPER_BOUND, DEFAULT_LOWER_BOUND, real_main_name,
233 real_main_c_value): Remove.
234 * f-valprint.c (there_is_a_visible_common_named): Remove.
235
6f380991
AB
2362012-09-26 Andrew Burgess <aburgess@broadcom.com>
237
238 * breakpoint.c (update_global_location_list): Ignore previous
239 duplicate status of a breakpoint when starting a new scan for
240 duplicate breakpoints.
241
9ead7ae4 2422012-09-26 Karthik Bhat <kv.bhat@samsung.com>
8b3d5494 243 PR breakpoints/14419
2536b51c
YQ
244 * arm-tdep.c (arm_skip_prologue): Extending producer check to
245 support LLVM compiler.
9ead7ae4 246
8f8a23a2
SP
2472012-09-26 Siddhesh Poyarekar <siddhesh@redhat.com>
248
249 * amd64-tdep.c (amd64_return_value): Use TYPE_LENGTH directly.
250 * bfin-tdep.c (bfin_extract_return_value): Likewise.
251 (bfin_store_return_value): Likewise.
252 * cris-tdep.c (cris_store_return_value): Likewise.
253 (cris_extract_return_value): Likewise.
254 * h8300-tdep.c (h8300_extract_return_value): Likewise.
255 * hppa-tdep.c (hppa64_return_value): Likewise.
256 * lm32-tdep.c (lm32_store_return_value): Likewise.
257 * microblaze-tdep.c (microblaze_store_return_value): Likewise.
258 * spu-tdep.c (spu_value_from_register): Likewise.
259 * vax-tdep.c (vax_return_value): Likewise.
260
d7019589
SP
2612012-09-26 Siddhesh Poyarekar <siddhesh@redhat.com>
262
263 * breakpoint.c (invalidate_bp_value_on_memory_change): Expand
264 parameter LEN to ssize_t.
265
744a8059
SP
2662012-09-25 Siddhesh Poyarekar <siddhesh@redhat.com>
267
268 * ada-valprint.c (ada_val_print_1): Eliminate single-use
269 variable LEN.
270 * alpha-tdep.c (alpha_extract_return_value): Use TYPE_LENGTH
271 directly.
272 (alpha_store_return_value): Likewise.
273 * amd64-tdep.c (amd64_classify_aggregate): Likewise.
274 (amd64_push_arguments): Likewise.
275 * ax-gdb.c (gen_trace_static_fields): Likewise.
276 (gen_traced_pop): Likewise.
277 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
278 * breakpoint.c (update_watchpoint): Likewise.
279 * findcmd.c (parse_find_args): Use local variable for type
280 instead of length.
281 * findvar.c (default_read_var_value): Use TYPE_LENGTH directly.
282 * h8300-tdep.c (h8300h_extract_return_value): Likewise.
283 (h8300_store_return_value): Likewise.
284 * i386-darwin-tdep.c (i386_darwin_push_dummy_call): Likewise.
285 Use i386_darwin_arg_type_alignment directly.
286 * infcall.c (call_function_by_hand): Use TYPE_LENGTH directly.
287 * lm32-tdep.c (lm32_push_dummy_call): Likewise.
288 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
289 (m68hc11_extract_return_value): Likewise.
290 * mep-tdep.c (mep_push_dummy_call): Likewise.
291 * printcmd.c (float_type_from_length): Likewise.
292 * s390-tdep.c (s390_value_from_register): Likewise.
293 * stack.c (read_frame_arg): Likewise.
294 * tracepoint.c (encode_actions_1): Likewise.
295 * valops.c (value_fetch_lazy): Use local variable for type
296 instead of length. Use TYPE_LENGTH directly.
297 * value.c (value_contents_equal): Use TYPE_LENGTH directly.
298
a4b411d6
JB
2992012-09-25 Joel Brobecker <brobecker@adacore.com>
300
301 * symtab.c (skip_prologue_sal): Fix typo in comment.
302
11dba07a
JB
3032012-09-25 Joel Brobecker <brobecker@adacore.com>
304
305 * linespec.c (create_sals_line_offset): Fix typo in comment.
306
318102b9
SP
3072012-09-25 Siddhesh Poyarekar <siddhesh@redhat.com>
308
309 * c-typeprint.c (c_type_print_varspec_suffix): Remove cast and
310 use plongest to print the array size.
311
b4aa388a
SP
3122012-09-24 Siddhesh Poyarekar <siddhesh@redhat.com>
313
314 * m2-typeprint.c (m2_enum): Expand LASTVAL to LONGEST.
315 * p-valprint.c (pascal_type_print_base): Likewise.
316
84cebc4a
YQ
3172012-09-22 Yao Qi <yao@codesourcery.com>
318
319 * remote.c (remote_get_trace_status): Remove setting default
320 values of fields of 'ts'.
321
04e7407c
JK
3222012-09-21 Jan Kratochvil <jan.kratochvil@redhat.com>
323
324 Fix internal error on canonicalization of clang types.
325 * cp-name-parser.y (operator): New comment at make_operator call for
326 new, delete, new[] and delete[].
327 (exp): Use "sizeof ". Add new comment at make_operator call.
328
9bf4bce9
JK
3292012-09-21 Jan Kratochvil <jan.kratochvil@redhat.com>
330
331 Fix disassemble without parameters in tailcall frame.
332 * cli/cli-cmds.c (disassemble_current_function): Use
333 get_frame_address_in_block.
334
1c5b7826
TT
3352012-09-21 Tom Tromey <tromey@redhat.com>
336
337 * c-typeprint.c (c_type_print_base) <TYPE_CODE_STRUCT,
338 TYPE_CODE_UNION>: Unify, removing a goto.
339
62a49610
TT
3402012-09-21 Tom Tromey <tromey@redhat.com>
341
342 * c-typeprint.c (cp_type_print_derivation_info): Fix comment.
343
2603f7ee
AB
3442012-09-21 Andrew Burgess <aburgess@broadcom.com>
345
346 * findvar.c (read_frame_register_value): Mark the result value as
347 optimized out if any of the input registers have been optimized out.
348
810849a3
AS
3492012-09-21 Andreas Schwab <schwab@linux-m68k.org>
350
351 * python/python.c (finalize_python): Only define if HAVE_PYTHON.
352
0953dec1
SP
3532012-09-21 Siddhesh Poyarekar <siddhesh@redhat.com>
354
355 * eval.c (evaluate_subexp_standard): Eliminate single-use
356 variable LOWER.
357
82a90ccf
YQ
3582012-09-21 Yao Qi <yao@codesourcery.com>
359
360 * mi/mi-interp.c: Declare mi_record_changed.
361 (mi_interpreter_init): Call observer_attach_record_changed.
362 (mi_record_changed): New.
363 * record.c (record_open): Call observer_notify_record_changed.
364 (cmd_record_stop): Call observer_notify_record_changed.
365 * NEWS: Mention it.
366
d7de8e3c
TT
3672012-09-20 Tom Tromey <tromey@redhat.com>
368
369 * NEWS: Update.
370 * python/python.c (finalize_python): New function.
371 (_initialize_python): Make a final cleanup.
372
43c7c83d
DE
3732012-09-19 Doug Evans <dje@google.com>
374
375 * buildsym.h (param_symbols): Delete, unused.
376 (context_stack): Delete member "params", unused.
377 * buildsym.c (push_context): Update.
378 * dwarf2read.c (read_func_scope): Update.
379
aa9259cc
TS
3802012-09-19 Thomas Schwinge <thomas@codesourcery.com>
381
a6521d9a
TS
382 * sh-tdep.c (sh_register_convert_to_virtual)
383 (sh_register_convert_to_raw): Add a gdbarch parameter. Update
384 all callers. Just do a memcpy if not the little-endian case.
385
f92589cb
TS
386 * h8300-tdep.c (h8300_gdbarch_init): Invoke
387 set_gdbarch_double_format and set_gdbarch_long_double_format.
388 * m68hc11-tdep.c (m68hc11_gdbarch_init): Invoke
389 set_gdbarch_double_format.
390 * sh-tdep.c (sh_gdbarch_init): Likewise.
391
aa9259cc
TS
392 * NEWS: Document the removal of SH's 'regs' command.
393 * sh-tdep.c (_initialize_sh_tdep): Remove the deprecated 'regs'
394 command.
395
c1d780c2
SDJ
3962012-09-18 Sergio Durigan Junior <sergiodj@redhat.com>
397
398 * infcmd.c (_initialize_infcmd): Register `j' as an alias for
399 `jump'.
400
4ae24af0
JB
4012012-09-18 Joel Brobecker <brobecker@adacore.com>
402
403 * linespec.c (iterate_over_all_matching_symtabs): Use the correct
404 language when iterating over symbols.
405
bb25a15c
YQ
4062012-09-18 Yao Qi <yao@codesourcery.com>
407
408 * mi/mi-interp.c: Declare mi_tsv_created and mi_tsv_deleted.
409 (mi_interpreter_init): Call observer_attach_tsv_created and
410 observer_attach_tsv_deleted.
411 (mi_tsv_created, mi_tsv_deleted): New.
412 * tracepoint.c (delete_trace_state_variable): Call
413 observer_notify_tsv_deleted.
414 (trace_variable_command): Call observer_notify_tsv_created.
415 (delete_trace_variable_command): Call
416 observer_notify_tsv_deleted.
417 (create_tsv_from_upload): Call observer_notify_tsv_created.
418 * NEWS: Mention it.
419
201b4506
YQ
4202012-09-18 Yao Qi <yao@codesourcery.com>
421
422 * tracepoint.c (tfind_1): Call observer_notify_traceframe_changed
423 if traceframe changed.
424 * mi/mi-cmds.c (mi_cmd mi_cmds): Adjust for command
425 "trace-find".
426 * mi/mi-interp.c: Declare 'mi_traceframe_changed'.
427 (mi_interpreter_init): Hook mi_traceframe_changed to observer
428 'traceframe_changed'.
429 (mi_traceframe_changed): New.
430 * mi/mi-main.h (struct mi_suppress_notification) <traceframe>:
431 New field.
432 * NEWS: Mention the new MI notification.
433
eaeb12db
MW
4342012-09-17 Mike Wrighton <wrighton@codesourcery.com>
435
436 * MAINTAINERS (Write After Approval): Add "Mike Wrighton".
437
6e3c039e
JK
4382012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
439
440 * common/linux-ptrace.c: Change __i386__ to __i386__ || __x86_64__.
441 (linux_ptrace_test_ret_to_nx): Extend comment for x86_64. Change
442 __i386__ to __i386__ || __x86_64__. Extend code also for __x86_64__.
443 Extend code also for PaX support. Convert all gdb_assert to warning
444 calls.
445
9a950c7c
JK
4462012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
447
448 Implement auto-load user conveniences suggested by Doug Evans.
449 * auto-load.c: Include top.h.
450 (file_is_auto_load_safe): New variable advice_printed. Print advice.
451 (_initialize_auto_load): New variable scripts_directory_help. Mention
452 GDBPY_AUTO_FILE_NAME and GDB_AUTO_FILE_NAME for set auto-load
453 scripts-directory. Document in online help one can use also files for
454 set auto-load safe-path.
455 * python/py-auto-load.c: (GDBPY_AUTO_FILE_NAME): Move it from here ...
456 * python/python.h (GDBPY_AUTO_FILE_NAME): ... to here.
457
deec9a9d
SP
4582012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
459
460 * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused definition
461 of LEN.
462
354ecfd5
SP
4632012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
464
465 * m2-valprint.c (m2_print_array_contents): Eliminate variable
466 ELTLEN and use TYPE_LENGTH directly.
467 (m2_val_print): Likewise.
468 * m68k-tdep.c (m68k_svr4_extract_return_value): Eliminate
469 variable LEN and use TYPE_LENGTH directly.
470 (m68k_svr4_store_return_value): Likewise.
471 * mips-tdep.c (mips_o32_push_dummy_call): Eliminate variable
472 ARGLEN and use TYPE_LENGTH directly.
473 (mips_o64_push_dummy_call): Likewise.
474 * s390-tdep (s390_function_arg_pass_by_reference): Eliminate
475 variable LENGTH and use TYPE_LENGTH directly.
476 (s390_function_arg_float): Likewise.
477 (s390_function_arg_integer): Likewise.
478 (s390_push_dummy_call): Likewise.
479 (s390_return_value_convention): Likewise.
480 * spu-tdep.c (spu_push_dummy_call): Eliminate LEN and use
481 TYPE_LENGTH directly.
482
6fc1c773
YQ
4832012-09-17 Yao Qi <yao@codesourcery.com>
484
485 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): New.
486 Update comment to add_setshow_integer_cmd.
487 * cli/cli-setshow.c (do_set_command): Handle case
488 'var_zuinteger_unlimited'.
489 (do_show_command): Likewise.
490 * cli/cli-cmds.c (init_cmds): Call add_setshow_zuinteger_unlimited_cmd
491 for command 'remotetimeout'.
492 * command.h (enum var_types): New zuinteger_unlimited. Update comment
493 to var_integer.
494 * source.c (_initialize_source): Call add_setshow_zuinteger_unlimited_cmd
495 for command 'set listsize'.
496
6acef6cd
SP
4972012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
498
499 * infrun.c (restore_infcall_suspend_state): Eliminate single-use
500 variable LEN.
501
1ab3b62c
JK
5022012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
503
504 PR 14119
505 * frame.c (skip_inlined_frames): Skip also TAILCALL_FRAME frames.
506 (frame_pop): Drop also TAILCALL_FRAME frames.
507 * infcmd.c (finish_command): Ignore also TAILCALL_FRAME frames.
508
acf9414f
JK
5092012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
510 Pedro Alves <palves@redhat.com>
511
512 PR 14548
513 * infrun.c (handle_inferior_event): Do not reverse-continue back to the
514 function start if we are already at function start. Both for
515 reverse-next and for reverse-step into function without line number
516 info.
517
193facb3
JK
5182012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
519
520 Code cleanup - rename 'inline' depth to 'artificial' depth.
521 * breakpoint.c (set_momentary_breakpoint): Rename at a caller to
522 frame_id_artificial_p, extend the comment.
523 * dwarf2-frame-tailcall.c (tailcall_frame_this_id): Rename at a user.
524 * frame.c (fprint_frame_id): Rename at a user, change debug output
525 text to "artificial=".
526 (skip_inlined_frames): Rename to ...
527 (skip_artificial_frames): ... here. Extend the comment.
528 (get_stack_frame_id, frame_unwind_caller_id): Rename at a caller.
529 (frame_id_inlined_p): Rename to ...
530 (frame_id_artificial_p): ... here. Rename at a user.
531 (frame_id_eq, frame_id_inner, frame_unwind_caller_pc)
532 (frame_unwind_caller_pc_if_available, frame_unwind_caller_arch): Rename
533 at a user.
534 * frame.h (struct frame_id): Rename inline_depth to artificial_depth.
535 Extend the comment.
536 (frame_id_inlined_p): Rename to ...
537 (frame_id_artificial_p): ... here.
538 * inline-frame.c (inline_frame_this_id): Rename at a user.
539
42056501
AB
5402012-09-14 Andrew Burgess <aburgess@broadcom.com>
541
542 * c-typeprint.c (c_type_print_varspec_suffix): Display the size of
543 vector variables using vector_size syntax rather than array
544 syntax.
545
84c47588
SP
5462012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
547
548 * valarith.c (value_concat): Replace unsafe ALLOCA with
549 XMALLOC/XFREE.
550
f4045bcb
PA
5512012-09-14 Pedro Alves <palves@redhat.com>
552
553 * gdb.1 (SEE ALSO): Expand pointer to GDB's Texinfo manual.
554
63b46266
YPK
5552012-09-14 Khoo Yit Phang <khooyp@cs.umd.edu>
556
557 Point contrib/cc-with-tweaks.sh to the build-local data-directory.
558 * contrib/cc-with-tweaks.sh (GDB): Add -data-directory
559 data-directory as appropriate.
560
ddd7a8e7
SP
5612012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
562
563 * printcmd.c (ui_printf): Eliminate single-use variable
564 PARAM_LEN.
565
d649a38e
YQ
5662012-09-14 Yao Qi <yao@codesourcery.com>
567 Pedro Alves <palves@redhat.com>
568
569 * valops.c (value_assign): Move observer_notify_target_changed
570 below to replace reinit_frame_cache.
571
b9516fa1
YPK
5722012-09-13 Khoo Yit Phang <khooyp@cs.umd.edu>
573
574 Refactor Python "gdb" module into a proper Python package, by
575 introducing a new "_gdb" module for code implemented in C, and
576 using reload/__import__ instead of exec.
577 * python/lib/gdb/__init__.py: Import * from _gdb.
578 (GdbOutputFile, sys.stdout, GdbOutputErrorFile, sys.stderr,
579 prompt_hook, sys.argv): Moved from finish_python_initialization.
580 (pretty_printers, PYTHONDIR): Moved from _initialize_python.
581 (packages, auto_load_packages): New list and function replacing
582 module_dict and auto-loading code, using __file__ instead of
583 gdb.PYTHONDIR and reload/__import__ instead of exec.
584 (GdbSetPythonDirectory): Replacing function of the same name
585 from finish_python_initialization, using reload/__import__ instead
586 of exec, as well as call auto_load_packages.
587 * python/py-prettyprint.c (find_pretty_printer_from_gdb): Check
588 gdb_python_module and not gdb_module.
589 * python/python-internal.h (gdb_python_module): Declare.
590 * python/python.c (gdb_python_module): New global.
591 (before_prompt_hook): Check gdb_python_module and not gdb_module.
592 (_initialize_python): Rename gdb module to _gdb.
593 Move gdb.PYTHONDIR and gdb.pretty_printer to lib/gdb/__init__.py.
594 (finish_python_initialization): Move Python code to
595 lib/gdb/__init__.py; instead, set up sys.path and import gdb into
596 __main__.
597
aa0fbdd8
PA
5982012-09-13 Pedro Alves <palves@redhat.com>
599
600 * Makefile.in (COMMON_OBS): Add registry.o.
601 * registry.c: New file.
602 * registry.h (struct registry_container): Declare.
603 (registry_data_callback): New typedef.
604 (struct registry_data, struct registry_data_registration, struct
605 registry_data_registry): New type.
606 (register_data_with_cleanup, registry_alloc_data)
607 (registry_callback_adaptor, registry_clear_data)
608 (registry_container_free_data, registry_set_data, registry_data):
609 Declare.
610 (DEFINE_REGISTRY): Refactor structures and functions as shims over
611 the new common structures and functions.
612 (DECLARE_REGISTRY): Declare struct TAG ## _data. Use the tagged
613 callback typedefs.
614
42b5c53d
MW
6152012-09-12 Mike Wrighton <wrighton@codesourcery.com>
616
617 * remote.c (remote_insert_hw_breakpoint): Throw exception if
618 there is an error inserting hardware breakpoints and use the
619 error message from the target.
620
621 * breakpoint.c (insert_bp_location, insert_breakpoint_locations):
622 Catch this exception and print the error message contained within. Do not
623 print the default hardware error breakpoint message in this case.
624
a1b64ce1
DE
6252012-09-12 Doug Evans <dje@google.com>
626
627 * dwarf2read.c (dwarf2_read_addr_index): Fix handling the case where
628 cu == NULL.
629
83a788b8
DE
6302012-09-11 Doug Evans <dje@google.com>
631
632 * dwarf2read.c (dw2_do_expand_symtabs_matching): Don't examine
633 .gdb_index symbol attributes if there are none.
634
d9eaeb59
JB
6352012-09-11 Joel Brobecker <brobecker@adacore.com>
636
637 * symtab.h (struct minimal_symbol) [has_size]: New field.
638 (MSYMBOL_SIZE): Adjust to forbid macro from being used as lvalue.
639 (SET_MSYMBOL_SIZE, MSYMBOL_HAS_SIZE): New macros.
640 * printcmd.c (build_address_symbolic): Only filter out zero-sized
641 minimal symbols if the symbol's size is actually known.
642 * minsyms.c (prim_record_minimal_symbol_full): Adjust setting
643 of msymbol's size field. Add comment.
644 * elfread.c (elf_symtab_read, elf_rel_plt_read): Use
645 SET_MSYMBOL_SIZE to set the minimal symbol size.
646
a83e9154
JB
6472012-09-11 Joel Brobecker <brobecker@adacore.com>
648
649 * minsyms.c (install_minimal_symbols): Use memset to fill entire
650 minimal_symbol struct object, rather than setting some of its
651 fields one by one.
652
350b1b26
AB
6532012-09-11 Andrew Burgess <aburgess@broadcom.com>
654
655 * c-typeprint.c (c_type_print_varspec_prefix): Pass through the
656 passed_a_ptr flag when displaying typedef types.
657
2fa15f23
JB
6582012-09-10 Joel Brobecker <brobecker@adacore.com>
659
660 * ada-lang.c (coerce_unspec_val_to_type): Make sure that
661 the optimized_out flag is preserved.
662
5152ff90
AG
6632012-09-10 Anthony Green <green@moxielogic.com>
664
665 * moxie-tdep.c (moxie_analyze_prologue): Update for function
666 prologue changes in GCC.
667
5b4f6e25
KS
6682012-09-10 Keith Seitz <keiths@redhat.com>
669
670 PR gdb/13483
671 * gdbtypes.h (BOOL_PTR_CONVERSION_BADNESS): Rename to ...
672 (BOOL_CONVERSION_BADNESS): ... this.
673 * gdbtypes.c (BOOL_PTR_CONVERSION_BADNESS): Likewise.
674 (rank_one_type): Allow all boolean conversions
675 permitted by the standard.
676
f1070426
TT
6772012-09-06 Tom Tromey <tromey@redhat.com>
678
679 * python/py-newobjfileevent.c (create_new_objfile_event_object):
680 Don't decref py_objfile.
681
a8db4212
YPK
6822012-09-02 Khoo Yit Phang <khooyp@cs.umd.edu>
683
684 Do not enable -lmcheck by default when Python is enabled with
685 threading support.
686 * configure.ac: (python_has_threads) New variable, by testing
687 if WITH_THREAD is defined in Python.h.
688 Move --enable-lmcheck after --with-python.
689 Do not enable -lmcheck by default if python_has_threads=yes.
690 Warn if --enable-lmcheck and python_has_threads=yes.
691 * configure: Regenerate.
692
648beb2b
YQ
6932012-08-31 Yao Qi <yao@codesourcery.com>
694
695 * mi/mi-cmds.c (mi_cmds): New macros DEF_MI_CMD_CLI
696 DEF_MI_CMD_MI DEF_MI_CMD_CLI_1 and DEF_MI_CMD_CLI_1.
697 Update some commands.
698 * mi/mi-cmds.h (struct mi_cmd) <suppress_notification>: New field.
699 * mi/mi-main.c (mi_cmd_execute): Set '*parse->cmd->suppress_notification'
700 to 1.
701
ef07a9f7
YQ
7022012-08-31 Yao Qi <yao@codesourcery.com>
703
704 * mi/mi-cmds.c (mi_cmds): Add 'static'.
705
fda395cf
YPK
7062012-08-30 Khoo Yit Phang <khooyp@cs.umd.edu>
707
708 * MAINTAINERS (Write After Approval): Add "Khoo Yit Phang".
709
8efd8e78
DE
7102012-08-29 Doug Evans <dje@google.com>
711
712 * main.c (print_gdb_help): Remove reference to
713 --use-deprecated-index-sections.
714
883b9c6c
YQ
7152012-08-28 Yao Qi <yao@codesourcery.com>
716
717 * cli/cli-cmds.c (max_user_call_depth): Add 'unsigned'.
718 (init_cmds): Call add_setshow_uinteger_cmd for command
719 'max-user-call-depth'.
720 * cli/cli-script.c (execute_user_command): Add 'unsigned' to the
721 declaration of 'max_user_call_depth'.
722 * frame.c (backtrace_limit): Add 'unsigned'.
723 (_initialize_frame): Call add_setshow_uinteger_cmd for command
724 'limit'.
725 * remote.c (remoteaddresssize): Add 'unsigned'.
726 (remote_address_masked): Change local var 'address_size' to
727 'unsigned'.
728 (_initialize_remote): Call add_setshow_uinteger_cmd for
729 'remoteaddresssize'.
730 * top.c (history_size): Add 'unsigned'.
731 (show_commands): Change local variables to 'unsigned'.
732 (set_history_size_command): Don't check history_size is negative.
733 Adjust the condition to call unstifle_history and set history_size
734 to UNIT_MAX.
735
1292279a
PA
7362012-08-28 Pedro Alves <palves@redhat.com>
737
738 PR gdb/14428
739
740 * infcmd.c (default_print_one_register_info): New, factored out
741 from default_print_registers_info.
742 (default_print_registers_info): Use it. Mark value unavailable if
743 necessary.
744 (registers_info): Print user registers with
745 default_print_one_register_info.
746
f629cd75
L
7472010-08-27 H.J. Lu <hongjiu.lu@intel.com>
748
749 PR tui/14486
750 * tui/tui-source.c (tui_source_is_displayed): Check if TUI_SRC_WIN
751 is not NULL before referencing it.
752
1c8cdcb1
JK
7532012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
754
755 * breakpoint.c (parse_breakpoint_sals) <(*address) == NULL>: New
756 variable pc. Call find_pc_line instead of find_pc_overlay, restore
757 original PC for it.
758
e9687799
JK
7592012-08-27 Eli Zaretskii <eliz@gnu.org>
760 Jan Kratochvil <jan.kratochvil@redhat.com>
761
762 * auto-load.c (auto_load_objfile_script): Rename to ...
763 (auto_load_objfile_script_1): ... here, change variable realname to
764 parameter realname, document it, add return value, add variable retval.
765 (auto_load_objfile_script): New function.
766
7afa1642
JK
7672012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
768
769 * cli/cli-decode.c (print_doc_line): Keep skipping '.' and ',' not
770 followed by a whitespace.
771
dc7650b8
JK
7722012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
773
28e66c70 774 PR gdb/14494.
dc7650b8
JK
775 * dwarf2read.c (dwarf2_locate_sections): Move variable aflag here.
776 Move the SEC_HAS_CONTENTS check here - for any NAMES use.
777 (dwarf2_locate_sections) <eh_frame>: Move the variable and check from
778 here.
779
1591a1e8
PA
7802012-08-27 Wei-cheng Wang <cole945@gmail.com>
781
782 * memattr.c (create_mem_region): Fix memory region overlapping
783 checking.
784
ecfb0d68
SP
7852012-08-24 Siddhesh Poyarekar <siddhesh@redhat.com>
786
787 * h8300-tdep.c (h8300_push_dummy_call): Replace unsafe alloca
788 with xmalloc/cleanup.
789 * mt-tdep.c (mt_push_dummy_call): Likewise.
790 * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
791 * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
792
8c56c1b9
YQ
7932012-08-24 Yao Qi <yao@codesourcery.com>
794
795 * jv-exp.y (push_expression_name): Add "." at the end of error
796 message.
797
e3480f4a
YPK
7982012-08-23 Khoo Yit Phang <khooyp@cs.umd.edu>
799
800 Document how to return from "python-interactive" to GDB.
e3480f4a
YPK
801 * python/python.c (_initialize_python): Update documentation.
802
dfbd5e7b
PA
8032012-08-23 Pedro Alves <palves@redhat.com>
804
805 * infrun.c (_initialize_infrun) <handle command help text>:
806 Mention that multiple signals are supported.
807
2edda2ff
PA
8082012-08-23 Pedro Alves <palves@redhat.com>
809
810 * infcmd.c (_initialize_infcmd) <signal command>: Fix typo in help
811 string.
812
8d735b87
YQ
8132012-08-23 Yao Qi <yao@codesourcery.com>
814
815 * tracepoint.c (disconnect_tracing): Call set_tracepoint_num.
816 (tfind_1): Don't call registers_changed, set_traceframe_num,
817 and clear_traceframe_info.
818 Call set_current_traceframe.
819 (set_current_traceframe): call set_traceframe_num.
820
c5d9b215
SDJ
8212012-08-22 Sergio Durigan Junior <sergiodj@redhat.com>
822
823 * remote-sim.c (_initialize_remote_sim): Pass NULL argument to
824 `register_inferior_data_with_cleanup', fixing regression on PowerPC64.
825
037bbc8e
YPK
8262012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
827
828 Enable readline in Python in a GDB-specific way and block the
829 standard Python readline module to prevent conflicts with GDB.
830 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-gdb-readline.o.
831 (SUBDIR_PYTHON_SRCS): Add python/py-gdb-readline.c.
832 (py-gdb-readline.o): Add rule to compile python/py-gdb-readline.c.
833 * python/py-gdb-readline.c: New file.
834 * python/python-internal.h (gdbpy_initialize_gdb_readline): New
835 prototype.
836 * python/python.c (_initialize_python): Call
837 gdbpy_initialize_gdb_readline.
838
406b1477
KS
8392012-08-22 Keith Seitz <keiths@redhat.com>
840
841 * defs.h: Include build-gnulib/config.h
842
6ca1b147
JM
8432012-08-22 Joseph Myers <joseph@codesourcery.com>
844
845 * arm-tdep.c (thumb_get_next_pc_raw): Mask off low bits for bx pc
846 and blx pc.
847
8315665e
YPK
8482012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
849
850 Add a new "python-interactive" command that starts a standard
851 Python interactive prompt with "pi" as alias, and add "py" as
852 an alias to "python".
853 * NEWS: Mention the new commands.
8315665e
YPK
854 * python/python.c (eval_python_command): New function.
855 (python_interactive_command): For "python-interactive" with
856 arguments, call eval_python_command. For "python-interactive"
857 without arguments, call PyRun_InteractiveLoop.
858 (_initialize_python): Add "python-interactive" command with
859 "pi" as alias, and add "py" as an alias to "python".
860
522002f9
TT
8612012-08-22 Tom Tromey <tromey@redhat.com>
862
863 * defs.h (quit_flag): Don't declare.
864 (clear_quit_flag, check_quit_flag, set_quit_flag): Declare.
865 (QUIT): Use new functions.
866 * event-top.c (command_handler): Use clear_quit_flag.
867 (handle_sigint): Use set_quit_flag.
868 (async_request_quit): Use check_quit_flag. Don't check
869 immediate_quit.
870 * exceptions.c (throw_exception): Use clear_quit_flag.
871 * main.c (captured_main): Use clear_quit_flag.
872 * python/python.c (clear_quit_flag, set_quit_flag)
873 (check_quit_flag): New functions.
874 * remote-sim.c (gdb_os_poll_quit): Use check_quit_flag,
875 clear_quit_flag.
876 * remote.c (remote_wait_as): Use check_quit_flag,
877 clear_quit_flag.
878 (remote_start_remote): Call QUIT.
879 * symfile.c (load_progress): Use check_quit_flag.
880 * top.c (command_loop): Use clear_quit_flag.
881 (command_line_input): Call QUIT.
882 * utils.c (quit_flag): Conditionally define.
883 (clear_quit_flag, check_quit_flag, set_quit_flag): New
884 functions.
885 (prompt_for_continue): Call QUIT. Use quit, not
886 async_request_quit.
887 * remote-mips.c (mips_expect_timeout): Call QUIT.
888 * monitor.c (monitor_expect): Call QUIT.
889
b583003e
TT
8902012-08-22 Tom Tromey <tromey@redhat.com>
891
892 * event-top.c (sigwinch_token, handle_sigwinch): Remove.
893 (async_init_signals): Update.
894 * utils.c (init_page_info): Don't use SIGWINCH_HANDLER.
895 (SIGWINCH_HANDLER_BODY): Remove.
896
e1507e95
TT
8972012-08-22 Tom Tromey <tromey@redhat.com>
898
899 * jit.c (jit_object_close_impl): Don't malloc the objfile
900 name.
901 * objfiles.c (allocate_objfile): Don't malloc the objfile
902 name.
903 (free_objfile): Don't free the objfile name.
904 * objfiles.h (struct objfile) <name>: Update comment.
905 * symfile.c (reread_symbols): Fix reference counting. Don't
906 malloc objfile name.
907
1c00ec6b
TT
9082012-08-22 Tom Tromey <tromey@redhat.com>
909
910 * windows-nat.c (windows_make_so): Use gdb_bfd_open.
911 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_open.
912 (symfile_bfd_open): Likewise.
913 (generic_load): Likewise.
914 * solib.c (solib_bfd_fopen): Use gdb_bfd_open.
915 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
916 gdb_bfd_open.
917 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
918 Use gdb_bfd_open.
919 * rs6000-nat.c (add_vmap): Use gdb_bfd_open.
920 * remote-mips.c (mips_load_srec): Use gdb_bfd_open.
921 (pmon_load_fast): Likewise.
922 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_open.
923 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_open.
924 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_open.
925 (macho_check_dsym): Likewise.
926 * m32r-rom.c (m32r_load): Use gdb_bfd_open.
927 (m32r_upload_command): Likewise.
928 * gdb_bfd.h (gdb_bfd_cache): Declare.
929 * gdb_bfd.c (struct gdb_bfd_data): New.
930 (gdb_bfd_cache): New global.
931 (struct gdb_bfd_cache_search): New.
932 (hash_bfd): New function.
933 (eq_bfd): Likewise.
934 (gdb_bfd_open): Likewise.
935 (gdb_bfd_ref): Allocate a gdb_bfd_data and attach to the BFD.
936 (gdb_bfd_unref): Remove closed BFD from cache. Update for
937 gdb_bfd_data.
938 * exec.c (exec_file_attach): Use gdb_bfd_open.
939 * dsrec.c (load_srec): Use gdb_bfd_open.
940
6532ff36
TT
9412012-08-22 Tom Tromey <tromey@redhat.com>
942
943 * dwarf2read.c (macro_start_file): Update.
944 * objfiles.c (get_objfile_bfd_data): Initialize macro_cache.
945 (free_objfile_per_bfd_storage): Destroy macro_cache.
946 (allocate_objfile, free_objfile): Update.
947 * objfiles.h (struct objfile_per_bfd_storage) <macro_cache>:
948 New field.
949 (struct objfile) <macro_cache>: Remove.
950 * symfile.c (reread_symbols): Update.
951 * symmisc.c (print_symbol_bcache_statistics): Update.
952 (print_objfile_statistics): Update.
953
706e3705
TT
9542012-08-22 Tom Tromey <tromey@redhat.com>
955
956 * elfread.c (elf_symtab_read): Update.
957 * objfiles.c (objfiles_bfd_data): New global.
958 (get_objfile_bfd_data, free_objfile_per_bfd_storage)
959 (objfile_bfd_data_free, set_objfile_per_bfd): New functions.
960 (allocate_objfile, free_objfile): Update.
961 (_initialize_objfiles): Initialize objfiles_bfd_data.
962 * objfiles.h (struct objfile_per_bfd_storage): New.
963 (struct objfile) <per_bfd>: New field.
964 <filename_cache>: Remove.
965 (set_objfile_per_bfd): Declare.
966 * symfile.c (reread_symbols): Update. Call
967 set_objfile_per_bfd.
968 (allocate_symtab): Update.
969 * symmisc.c (print_symbol_bcache_statistics): Update.
970 (print_objfile_statistics): Print the size of the BFD obstack.
971
e992eda4
TT
9722012-08-22 Tom Tromey <tromey@redhat.com>
973
974 * gdb_bfd.h: Include registry.h. Use DECLARE_REGISTRY.
975 * gdb_bfd.c: Use DEFINE_REGISTRY.
976 (struct gdb_bfd_data): Add REGISTRY_FIELDS.
977 (gdb_bfd_ref): Call bfd_alloc_data.
978 (gdb_bfd_unref): Call bfd_free_data.
979
6b81941e
TT
9802012-08-22 Tom Tromey <tromey@redhat.com>
981
982 * registry.h (struct registry_fields): New.
983 (REGISTRY_FIELDS): Redefine.
984 (REGISTRY_ACCESS_FIELD): New macro.
985 (DEFINE_REGISTRY): Add ACCESS argument. Update defined
986 functions.
987
8e260fc0
TT
9882012-08-22 Tom Tromey <tromey@redhat.com>
989
990 * auto-load.c (_initialize_auto_load): Update.
991 * solib-svr4.c (_initialize_svr4_solib): Update
992 * solib-dsbt.c (_initialize_dsbt_solib): Update.
993 * solib-darwin.c (_initialize_darwin_solib): Update.
994 * registry.h: New file.
995 * python/py-progspace.c (gdbpy_initialize_pspace): Update.
996 * python/py-inferior.c (gdbpy_initialize_inferior): Update.
997 * progspace.h: Include registry.h. Use DECLARE_REGISTRY.
998 (register_program_space_data_with_cleanup)
999 (register_program_space_data, program_space_alloc_data)
1000 (clear_program_space_data, set_program_space_data)
1001 (program_space_data): Don't declare.
1002 * progspace.c: Use DEFINE_REGISTRY.
1003 (struct program_space_data, struct
1004 program_space_data_registration, struct
1005 program_space_data_registry, program_space_data_registry)
1006 (register_program_space_data_with_cleanup)
1007 (register_program_space_data, program_space_alloc_data)
1008 (program_space_free_data, clear_program_space_data)
1009 (set_program_space_data, program_space_data): Remove.
1010 * objfiles.h: Include registry.h. Use DECLARE_REGISTRY.
1011 (struct objfile) <data, num_data>: Replace with REGISTRY_FIELDS.
1012 (register_objfile_data_with_cleanup, register_objfile_data)
1013 (clear_objfile_data, set_objfile_data, objfile_data): Don't
1014 declare.
1015 * objfiles.c: Use DEFINE_REGISTRY.
1016 (struct objfile_data, struct objfile_data_registration, struct
1017 objfile_data_registry, objfile_data_registry)
1018 (register_objfile_data_with_cleanup, register_objfile_data)
1019 (objfile_alloc_data, objfile_free_data, clear_objfile_data)
1020 (set_objfile_data, objfile_data): Remove.
1021 (_initialize_objfiles): Update.
1022 * jit.c (_initialize_jit): Update.
1023 * inflow.c (_initialize_inflow): Update.
1024 * inferior.h: Include registry.h. Use DECLARE_REGISTRY.
1025 (struct inferior) <data, num_data>: Replace with REGISTRY_FIELDS.
1026 (register_inferior_data_with_cleanup, register_inferior_data)
1027 (clear_inferior_data, set_inferior_data, inferior_data): Don't
1028 declare.
1029 * inferior.c: Use DEFINE_REGISTRY.
1030 (struct inferior_data, struct inferior_data_registration, struct
1031 inferior_data_registry, inferior_data_registry)
1032 (register_inferior_data_with_cleanup, register_inferior_data)
1033 (inferior_alloc_data, inferior_free_data clear_inferior_data)
1034 (set_inferior_data, inferior_data): Remove.
1035 * auxv.c (_initialize_auxv): Update.
1036 * ada-lang.c (_initialize_ada_language): Update.
1037 * breakpoint.c (_initialize_breakpoint): Update.
1038 * i386-nat.c (i386_use_watchpoints): Update.
1039
ed9eebaf
TT
10402012-08-22 Tom Tromey <tromey@redhat.com>
1041
1042 * exec.c (exec_close, exec_file_attach): Update.
1043 (add_to_section_table): Initialize 'key' field.
1044 (add_target_sections, remove_target_sections): Add 'key' argument.
1045 * exec.h (add_target_sections, remove_target_sections): Add
1046 'key' argument.
1047 * solib.c (solib_map_sections, update_solib_list, clear_solib)
1048 (reload_shared_libraries_1): Update.
1049 * target.h (struct target_section) <key>: New field.
1050
2f2e97fa
TT
10512012-08-22 Tom Tromey <tromey@redhat.com>
1052
1053 * cli/cli-cmds.c (filter_sals): Handle nelts == 0 case.
1054
b3dbbd6f
PM
10552012-08-21 Pierre Muller <muller@ics.u-strasbg.fr>
1056
1057 * symfile.c (allocate_symtab): Use host_address_to_string
1058 function instead of cast of pointer to long which is not
1059 compatible with x86_64-w64-mingw32 build.
1060
f94363d7
AP
10612012-08-19 Andrew Pinski <apinski@cavium.com>
1062
1063 * mips-tdep.c (is_octeon): New function.
1064 (is_octeon_bbit_op): New function.
1065 (mips32_next_pc): Handle Octeon's bbit instructions.
1066 (mips32_instruction_has_delay_slot): Likewise.
1067
78a59c2f
AP
10682012-08-19 Andrew Pinski <apinski@cavium.com>
1069
1070 * mips-tdep.c (mips32_next_pc): Fix line spacing of the comment
1071 before the function.
1072
4f5bcb50
AP
10732012-08-19 Andrew Pinski <apinski@cavium.com>
1074
1075 * mips-tdep.c (mips32_next_pc): Consolidate calls to itype_op.
1076
e5afdbd7
KS
10772012-08-19 Keith Seitz <keiths@redhat.com>
1078
1079 PR c++/14365
1080 * c-typeprint.c (c_type_print_varspec_prefix): Pass
1081 -1 for SHOW to c_type_print_base for METHODPTR and MEMBERPTR.
1082
13c9750e
EZ
10832012-08-18 Eli Zaretskii <eliz@gnu.org>
1084
1085 * Makefile.in (HFILES_NO_SRCDIR): Fix a typo: golang.h -> go-lang.h.
1086 The typo broke "make TAGS".
1087
db761810 10882012-08-17 Joel Brobecker <brobecker@adacore.com>
1089
1090 GDB 7.5 released.
1091
a451cb65
KS
10922012-08-17 Keith Seitz <keiths@redhat.com>
1093
1094 PR c++/13356
1095 * gdbtypes.c (strict_type_checking): New variable.
1096 (show_strict_type_checking): New function.
1097 (rank_one_type): Return NS_POINTER_INTEGER_CONVERSION_BADNESS
1098 if strict type checking is disabled.
1099 (_initialize_gdbtypes): Add "check type" subcommand.
1100 * gdbtypes.h (NS_INTEGER_POINTER_CONVERSION_BADNESS): New struct.
1101
11022012-08-17 Keith Seitz <keiths@redhat.com>
1103
1104 * language.h (type_mode): Remove.
1105 (type_check): Remove.
1106 (struct language_defn): Remove la_type_check.
1107 (STRICT_TYPE): Remove unused macro.
1108 (type_error): Remove.
1109 * language.c (set_type_range_case): Renamed to ...
1110 (set_range_case): ... this. Update all callers.
1111 Remove type_mode/type_check.
1112 (type_mode): Remove.
1113 (type_check): Remove.
1114 (show_type_command): Remove.
1115 (set_type_command): Remove.
1116 (language_info): Remove type checking output.
1117 (type_error): Remove unused function.
1118 (range_error): Update comment.
1119 (unknown_language_defn): Remove la_type_check.
1120 (auto_language_defn): Likewise.
1121 (local_language_defn): Likewise.
1122 (_initialize_language): Remove "check type" subcommand.
1123 * ada-lang.c (ada_language_defn): Remove la_type_check.
1124 * c-lang.c (c_language_defn): Likewise.
1125 (cplus_language_defn): Likewise.
1126 (asm_language_defn): Likewise.
1127 (minimal_language_defn): Likewise.
1128 * d-lang.c (d_language_defn): Likewise.
1129 * f-lang.c (f_language_defn): Likewise.
1130 * go-lang.c (go_language_defn): Likewise.
1131 * jv-lang.c (java_language_defn): Likewise.
1132 * m2-lang.c (m2_language_defn): Likewise.
1133 * objc-lang.c (objc_language_defn): Likewise.
1134 * opencl-lang.c (opencl_language_defn): Likewise.
1135 * p-lang.c (pascal_language_defn): Likewise.
1136
dbf6a605
MF
11372012-08-16 Mike Frysinger <vapier@gentoo.org>
1138
1139 * infcmd.c (_initialize_infcmd): Remove trailing ) in next help text.
1140
973e3cf7
JB
11412012-08-16 Joel Brobecker <brobecker@adacore.com>
1142
1143 * ia64-hpux-nat.c (ia64_hpux_get_register_from_save_state_t):
1144 New function.
1145 (ia64_hpux_xfer_memory): Check if inferior_ptid is known before
1146 using the regache. Use ia64_hpux_get_register_from_save_state_t
1147 to access the bsp and bspstore registers if not.
1148
d80ee84f
JB
11492012-08-16 Joel Brobecker <brobecker@adacore.com>
1150
1151 * breakpoint.h (detach_breakpoints): pid parameter is now a ptid.
1152 * breakpoint.c (detach_breakpoints): Change pid parameter into
1153 a ptid. Adjust code accordingly.
1154 * infrun.c (handle_inferior_event): Delete variable child_pid.
1155 Update call to detach_breakpoints to pass the child ptid for
1156 fork events.
1157 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Remove
1158 assert that inferior_ptid's lwp is zero.
1159 (linux_handle_extended_wait): Update call to detach_breakpoints.
1160 * inf-ttrace.c (inf_ttrace_follow_fork): Update call to
1161 detach_breakpoints.
1162
2dcc6086
JB
11632012-08-16 Joel Brobecker <brobecker@adacore.com>
1164
1165 * inf-ttrace.c (inf_ttrace_follow_fork): When following the
1166 parent, only call detach_breakpoints if tts.tts_event ==
1167 TTEVT_VFORK.
1168
0c92d8c1
JB
11692012-08-16 Joel Brobecker <brobecker@adacore.com>
1170
1171 * dwarf2-frame.c (dwarf2_frame_cache): Use
1172 get_frame_address_in_block instead of get_frame_pc as
1173 the bound for executing the frame's FDE.
1174
6b1755ce
YQ
11752012-08-16 Yao Qi <yao@codesourcery.com>
1176
1177 * gdbtypes.h (enum type_code): Define TYPE_CODE_BITSTRING -1.
1178 * arm-tdep.c (arm_type_align): Remove code handling TYPE_CODE_BITSTRING.
1179 * c-typeprint.c (c_type_print_varspec_prefix): Likewise.
1180 (c_type_print_varspec_suffix): Likewise.
1181 * eval.c (evaluate_subexp_standard): Likewise.
1182 * f-typeprint.c (f_type_print_varspec_prefix): Likewise.
1183 (f_type_print_varspec_suffix): Likewise.
1184 * gdbtypes.c (is_scalar_type): Likewise.
1185 (recursive_dump_type): Likewise.
1186 * infcall.c (value_arg_coerce): Likewise.
1187 * m2-valprint.c (m2_val_print): Likewise.
1188 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
1189 (pascal_type_print_varspec_suffix): Likewise.
1190 (pascal_type_print_base): Likewise.
1191 * p-valprint.c (pascal_val_print): Likewise.
1192 (pascal_val_print): Likewise.
1193 * valops.c (value_slice): Likewise.
1194 * valprint.c (scalar_type_p): Likewise.
1195 * valarith.c (value_bitstring_subscript): Remove.
1196 (value_concat): Remove code handling TYPE_CODE_BITSTRING.
1197 Remove comment on TYPE_CODE_BITSTRING.
1198
1199 * stabsread.c (read_type): Don't set TYPE_CODE (type) to
1200 TYPE_CODE_BITSTRING.
1201
1202 * python/py-type.c (pyty_codes): Move ENTRY (TYPE_CODE_BITSTRING) to
1203 slot 0.
1204
8acc4065
YQ
12052012-08-16 Yao Qi <yao@codesourcery.com>
1206
1207 * tracepoint.c (trace_find_none_command): Remove.
1208 (_initialize_tracepoint): Call add_alias_cmd for "tfind none".
1209
8128fd8e
YQ
12102012-08-16 Yao Qi <yao@codesourcery.com>
1211
1212 * remote.c (handle_notification): Remove parameter 'length'.
1213 (putpkt_binary, getpkt_or_notif_sane_1): Caller update.
1214
2873700e
KS
12152012-08-15 Keith Seitz <keiths@redhat.com>
1216
1217 * gdbtypes.c (opaque_type_resolution): Make static.
1218 Add missing comment.
1219 (overload_debug): Add missing comment.
1220 (show_opaque_type_resolution): Likewise.
1221 (show_overload_debug): Likewise.
1222 (print_bit_vector): Remove unnecessary forward declaration.
1223 (print_arg_types): Likewise.
1224 (dump_fn_fieldlists): Likewise.
1225 (print_cplus_stuff): Likewise.
1226
b82d08cd
TT
12272012-08-15 Tom Tromey <tromey@redhat.com>
1228
1229 * gdb_bfd.c (struct gdb_bfd_data) <archive_bfd>: New field.
1230 (gdb_bfd_ref): Initialize new field.
1231 (gdb_bfd_unref): Unref the archive BFD.
1232 (gdb_bfd_openr_next_archived_file): Acquire a reference to the
1233 parent archive.
1234
db6573d6
TT
12352012-08-15 Tom Tromey <tromey@redhat.com>
1236
1237 PR python/14387:
1238 * python/py-bpevent.c (create_breakpoint_event_object): Update
1239 comment.
1240 * python/py-event.c (evpy_add_attribute): Update comment.
1241 * python/py-exitedevent.c (create_exited_event_object): Fix
1242 reference counting and error handling.
1243 * python/py-newobjfileevent.c (create_new_objfile_event_object):
1244 Fix reference counting.
1245 * python/py-signalevent.c (create_signal_event_object): Fix
1246 reference counting and error handling.
1247 * python/py-stopevent.c (emit_stop_event): Fix reference
1248 counting.
1249 * python/py-threadevent.c (get_event_thread): Return a
1250 borrowed reference.
1251 * python/py-type.c (convert_field): Fix reference counting.
1252
a036ba48
TT
12532012-08-15 Tom Tromey <tromey@redhat.com>
1254
1255 * dwarf2read.c (dwarf_decode_macro_bytes)
1256 <DW_MACRO_GNU_transparent_include>: Use pointer to included data
1257 as hash key.
1258
486c7739
MF
12592012-08-14 Mike Frysinger <vapier@gentoo.org>
1260
1261 * infcmd.c (_initialize_infcmd): Update help text for the signal,
1262 stepi, nexti, finish, next, step, jump, and continue commands.
1263 * infrun.c (_initialize_infrun): Update help text for the handle
1264 command.
1265
4cf93a03
DE
12662012-08-14 Doug Evans <dje@google.com>
1267
70b099cf
DE
1268 * gdbtypes.c (struct extra): Delete, unused.
1269
5212577a
DE
1270 * gdbtypes.c: Whitespace cleanup.
1271 (address_space_name_to_int): Remove "extern" from definition.
1272 (_initialize_gdbtypes): Declare with initialize_file_ftype.
1273
4cf93a03
DE
1274 * gdbtypes.c (make_pointer_type): Remove redundant setting of
1275 TYPE_POINTER_TYPE (type).
1276
3756ef7e
GB
12772012-08-14 Gary Benson <gbenson@redhat.com>
1278
1279 * solib-svr4.c (svr4_free_library_list): Use free_so.
1280
40d72643
MF
12812012-08-13 Mike Frysinger <vapier@gentoo.org>
1282
1283 * .gitignore: Add go-exp.c.
1284
f47f77df
DE
12852012-08-13 Doug Evans <dje@google.com>
1286
1287 * value.c (show_convenience): Tweak comment.
1288 (_initialize_values): Mention convenience functions in the help text
1289 for "show convenience".
1290
7507c54a
YQ
12912012-08-13 Yao Qi <yao@codesourcery.com>
1292
1293 * std-operator.def: Remove TERNOP_SLICE_COUNT.
1294 * breakpoint.c (watchpoint_exp_is_const): Remove handling to
1295 TERNOP_SLICE_COUNT.
1296 * eval.c (evaluate_subexp_standard): Likewise.
1297 * expprint.c (print_subexp_standard): Likewise.
1298 (dump_subexp_body_standard): Likewise.
1299 * parse.c (operator_length_standard): Likewise.
1300
5cad9736
YQ
13012012-08-13 Yao Qi <yao@codesourcery.com>
1302
1303 * std-operator.def: Remove OP_BITSTRING.
1304 * breakpoint.c (watchpoint_exp_is_const): Update.
1305 * eval.c (evaluate_subexp_standard): Remove handling to
1306 OP_BITSTRING.
1307 * expprint.c (print_subexp_standard): Likewise.
1308 (dump_subexp_body_standard): Likewise.
1309 * parse.c (operator_length_standard): Likewise.
1310 * valops.c (value_bitstring): Remove.
1311 * value.h: Remove the declaration of 'value_bitstring'.
1312
bad7670a
SDJ
13132012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
1314
1315 * linespec.c (find_methods): Remove unused variables `i1' and
1316 `name_len'.
1317 (decode_line_full): Likewise for `arg_start'.
1318
d9dce7fa
SDJ
13192012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
1320
1321 * gdb_bfd.c (gdb_bfd_unref): Remove unused variable `slot'.
1322 (zlib_decompress_section): Likewise for `section_data'.
1323 (gdb_bfd_map_section): Likewise for `buf' and `retbuf'.
1324
a72c3253
DE
13252012-08-10 Doug Evans <dje@google.com>
1326
1327 Add $_memeq, $_regex, $_streq, $_strlen convenience functions.
1328 * NEWS: Document them.
1329 * data-directory/Makefile.in (PYTHON_FILES): Add function/__init__.py,
1330 function/strfns.py.
1331 * python/py-type.c (typy_array_1): New function.
1332 (typy_array): Call it.
1333 (typy_vector): New function.
1334 (type_object_methods): Add "vector".
1335 * python/lib/gdb/function/__init__.py: New file.
1336 * python/lib/gdb/function/strfns.py: New file.
1337
200bc880
SP
13382012-08-10 Siddhesh Poyarekar <siddhesh@redhat.com>
1339
1340 * python/py-type.c (convert_field): Use gdb_py_long_from_longest
1341 for TYPE_FIELD_BITPOS.
1342 (typy_get_sizeof): Likewise for TYPE_LENGTH.
1343
de0bea00
MF
13442012-08-10 Mike Frysinger <vapier@gentoo.org>
1345
1346 PR cli/10436:
1347 * common/vec.h (VEC_merge): Define.
1348 (DEF_VEC_ALLOC_FUNC_I): Add a merge helper.
1349 (DEF_VEC_ALLOC_FUNC_P): Likewise.
1350 (DEF_VEC_ALLOC_FUNC_O): Likewise.
1351 * completer.c: Include gdb_signals.h.
1352 (signal_completer): Define.
1353 * completer.h (signal_completer): Add prototype.
1354 * infcmd.c (_initialize_infcmd): Assign the command
1355 completer for "signal" to handle_completer.
1356 * infrun.c: Include completer.h.
1357 (handle_completer): Define.
1358 (_initialize_infrun): Declare a new local variable c. Store the
1359 result of add_com("handle") to it. Assign the command
1360 completer for "handle" to handle_completer.
1361
5b9afe8a
YQ
13622012-08-09 Yao Qi <yao@codesourcery.com>
1363
1364 * cli/cli-decode.c (set_cmd_prefix): New.
1365 (lookup_cmd_for_prefixlist): New.
1366 (add_prefix_cmd): Call set_cmd_prefix and update field 'prefix'
1367 of each cmd_list_element in *prefixlist.
1368 (add_setshow_cmd_full): set_cmd_prefix.
1369 (add_alias_cmd): Likewise.
1370 * cli/cli-decode.h (struct cmd_list_element) <prefix>: New field.
1371 Declare 'auto_boolean_enums'.
1372 * cli/cli-setshow.c: Include "observer.h".
1373 (notify_command_param_changed_p): New.
1374 (add_setshow_auto_boolean_cmd): Move auto_boolean_enums out.
1375 Remove 'static'.
1376 (do_setshow_command): Split it to ...
1377 (do_set_command, do_show_command): ... them. New.
1378 (do_set_command): Call observer_notify_command_param_changed if
1379 notify_command_param_changed_p returns true.
1380 (cmd_show_list): Caller update.
1381 * auto-load.c (set_auto_load_cmd): Likewise.
1382 * remote.c (show_remote_cmd): Likewise.
1383 * cli/cli-setshow.h: Update declarations.
1384 * top.c (execute_command): Call do_set_command and do_show_command.
1385
1386 * NEWS: Mention new MI notification.
1387 * mi/mi-interp.c: Declare mi_command_param_changed.
1388 (mi_interpreter_init): Attach mi_command_param_changed to
1389 observer command_param_changed.
1390 (mi_command_param_changed): New.
1391 Remove mi_suppress_breakpoint_notifications.
1392 Define global variable mi_suppress_notification.
1393 (mi_breakpoint_created): Update.
1394 (mi_breakpoint_deleted): Likewise.
1395 (mi_breakpoint_modified): Likewise.
1396 * mi/mi-main.c (mi_cmd_execute): Likewise. Check command
1397 'gdb-set' and set mi_suppress_notification.
1398 * mi/mi-main.h: (mi_suppress_notification): New struct.
1399
1969df89
JK
14002012-08-09 Andreas Tobler <andreast@fgznet.ch>
1401 Jan Kratochvil <jan.kratochvil@redhat.com>
1402
1403 * fbsd-nat.h (fbsd_find_memory_regions): Use find_memory_region_ftype.
1404
8bfd80db
YQ
14052012-08-09 Yao Qi <yao@codesourcery.com>
1406
1407 * cli/cli-cmds.c (enablebreaklist): Move it to breakpoint.c.
1408 (skiplist): Move it to skip.c.
1409 (init_cmd_lists): Remove code setting enablebreaklist and
1410 skiplist to NULL.
1411 * breakpoint.c (enablebreaklist): Moved from cli/cli-cmds.c.
1412 * cli/cli-cmds.h: Remove declaration of enablebreaklist and
1413 skiplist.
1414 * gdbcmd.h: Likewise.
1415 * skip.c (_initialize_step_skip): Move 'skiplist' from
1416 cli/cli-cmds.c.
1417
28578e6b
YQ
14182012-08-09 Yao Qi <yao@codesourcery.com>
1419
1420 * cli/cli-dump.c: Add 'static' to some cmd_list_element variables.
1421 * gnu-nat.c, symfile.c: Likewise.
1422
260c0b2a
DE
14232012-08-08 Aaron Gamble <agamble@google.com>
1424
1425 * utils.c (prompt_for_continue_wait_time): New static global.
1426 (make_command_stats_cleanup): Initialize it.
1427 (report_command_stats): Subtract time waiting for user.
1428 (prompt_for_continue): Track time waiting for user.
1429 (defaulted_query): Track time waiting for user.
1430
4f485ebc
DE
14312012-08-08 Doug Evans <dje@google.com>
1432
1433 * eval.c (evaluate_subexp_standard): Fix thinko in handling
1434 UNOP_MEMVAL_TYPE.
1435 * expprint.c (print_subexp_standard, case OP_TYPE): New.
1436 (print_subexp_standard, case UNOP_CAST_TYPE): Don't increment pos.
1437 (print_subexp_standard, case UNOP_DYNAMIC_CAST): Ditto.
1438 (print_subexp_standard, case UNOP_REINTERPRET_CAST): Ditto.
1439 (print_subexp_standard, case UNOP_MEMVAL_TYPE): Ditto.
1440 (dump_subexp_body_standard, case UNOP_DYNAMIC_CAST): Don't increment
1441 elt.
1442 (dump_subexp_body_standard, case UNOP_REINTERPRET_CAST): Ditto.
1443 (dump_subexp_body_standard, case UNOP_CAST_TYPE): Ditto.
1444 (dump_subexp_body_standard, case UNOP_MEMVAL_TYPE): Ditto.
1445 (dump_prefix_expression): Handle OP_TYPE.
1446
2acf2b39
KS
14472012-08-08 Keith Seitz <keiths@redhat.com>
1448
1449 * breakpoint.c (parse_breakpoint_sals): Remove unused variable
1450 addr_start.
1451
e6712ff1
DE
14522012-08-08 Doug Evans <dje@google.com>
1453
1454 * linux-thread-db.c: #include "gdb_vecs.h".
1455 (try_thread_db_load_from_pdir_1): New arg "subdir". All callers
1456 updated.
1457 (try_thread_db_load_from_pdir): New arg "subdir". All callers updated.
1458 (thread_db_load_search): Use a vector to iterate over path elements.
1459 Handle text appearing after "$pdir".
1460
1461 * gdb_string.h: Moved to ...
1462 * common/gdb_string.h: ... here.
1463 * common/vec.h: Remove #ifndef GDBSERVER conditional inclusion of
1464 gdb_string.h and gdb_assert.h.
1465
ab854e54
YQ
14662012-08-08 Yao Qi <yao@codesourcery.com>
1467
1468 * tic6x-tdep.c (tic6x_register_to_value): Remove.
1469 (tic6x_value_to_register): Likewise.
1470 (tic6x_gdbarch_init): Don't call set_gdbarch_register_to_value
1471 and set_gdbarch_value_to_register.
1472
4f69f4c2
JK
14732012-08-07 Jan Kratochvil <jan.kratochvil@redhat.com>
1474 Jean-Marc Saffroy <saffroy@gmail.com>
1475
1476 PR 11804
1477 * defs.h (find_memory_region_ftype): New comment. New arg modified.
1478 * fbsd-nat.c (fbsd_find_memory_regions): Add the passed modified value.
1479 * gcore.c (gcore_create_callback): New function comment. Add modified
1480 parameter. Only write modified regions. Set SEC_READONLY exactly
1481 according to MODIFIED.
1482 (objfile_find_memory_regions): Ignore separate debug info files. Ass
1483 the passed modified value to FUNC.
1484 * gnu-nat.c (gnu_find_memory_regions): Add the passed modified value.
1485 * linux-tdep.c (linux_find_memory_regions): Try to reads smaps file
1486 first. New variables modified and has_anonymous. Parse the lines of
1487 smaps file. Add the passed MODIFIED value to FUNC.
1488 * procfs.c (find_memory_regions_callback): Add the passed modified
1489 value.
1490
78ac5f83
TT
14912012-08-06 Tom Tromey <tromey@redhat.com>
1492
1493 * dwarf2-frame.c (clear_pointer_cleanup): New function.
1494 (dwarf2_frame_cache): Use it.
1495 * frame-unwind.h (frame_sniffer_ftype): Document prologue
1496 cache initialization constraint.
1497
2c12abee
TT
14982012-08-06 Tom Tromey <tromey@redhat.com>
1499
1500 PR python/14386:
1501 * varobj.c (update_dynamic_varobj_children): Don't call
1502 PyIter_Check.
1503
4979d7f0
TT
15042012-08-06 Tom Tromey <tromey@redhat.com>
1505
1506 PR cli/14392:
1507 * cli/cli-cmds.c (list_command): Filter 'sals_end'.
1508
f3c8a52a
JK
15092012-08-06 Nathaniel Flath <flat0103@gmail.com>
1510
1511 * NEWS: New entry for 'cd' default parameters.
1512 * cli/cli-cmds.c (cd_command): Replace error_no_arg by DIR assignment.
1513
5a1cf4d6
TT
15142012-08-03 Tom Tromey <tromey@redhat.com>
1515
1516 * dwarf2-frame.c (dwarf2_frame_cache): Call do_cleanups before
1517 return.
1518
7c3270ae
UW
15192012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
1520
1521 * inf-child.c (inf_child_fileio_pwrite): If pwrite fails, fall back
1522 to attempting lseek/write.
1523 (inf_child_fileio_pread): Likewise for pread.
1524
ccce17b0
YQ
15252012-08-02 Yao Qi <yao@codesourcery.com>
1526
1527 * dwarf2loc.c (entry_values_debug): Add 'unsigned'.
1528 (_initialize_dwarf2loc): Call add_setshow_zuinteger_cmd instead of
1529 add_setshow_zinteger_cmd.
1530 * dwarf2loc.h: Update the declaration of 'entry_values_debug'.
1531 * dwarf2read.c (dwarf2_die_debug): Add 'unsigned'.
1532 (_initialize_dwarf2_read): Call add_setshow_zuinteger_cmd
1533 instead of add_setshow_zinteger_cmd.
1534 * darwin-nat.c (dwarwin_debug_flag): Add 'unsigned'.
1535 (_initialize_darwin_inferior): Call add_setshow_zuinteger_cmd
1536 instead of add_setshow_zinteger_cmd.
1537 * frame.c (frame_debug): Add 'unsigned'.
1538 (_intialize_frame): Call add_setshow_zuinteger_cmd instead of
1539 add_setshow_zinteger_cmd.
1540 * frame.h: Update the declaration of 'frame_debug'.
1541 * gdbtypes.c (overload_debug): Add 'unsigned'.
1542 (_initialize_gdbtypes): Call add_setshow_zuinteger_cmd instead of
1543 add_setshow_zinteger_cmd.
1544 * inferior.h: Update declaration of 'debug_infrun'.
1545 * infrun.c (debug_infrun): Add 'unsigned'.
1546 (_initialize_infrun): Call add_setshow_zuinteger_cmd instead of
1547 add_setshow_zinteger_cmd.
1548 * jit.c (jit_debug): Add 'unsigned'.
1549 (_initialize_jit): Call add_setshow_zuinteger_cmd instead of
1550 add_setshow_zinteger_cmd.
1551 * linux-nat.c (debug_linux_nat): Add 'unsigned'.
1552 (_initialize_linux_nat): Call add_setshow_zuinteger_cmd
1553 instead of add_setshow_zinteger_cmd.
1554 * linux-thread-db.c (libthread_db_debug): Add 'unsigned'.
1555 (_initialize_thread_db): Call add_setshow_zuinteger_cmd instead of
1556 add_setshow_zinteger_cmd.
1557 * machoread.c (mach_o_debug_level): Add 'unsigned'.
1558 (_initialize_machoread): Call add_setshow_zuinteger_cmd
1559 instead of add_setshow_zinteger_cmd.
1560 * mi/mi-cmd-var.c: Update the declaration of 'varobjdebug'.
1561 * microblaze-tdep.c (microblaze_debug_flag): Add 'unsigned'.
1562 (_initialize_microblaze_tdep): Call add_setshow_zuinteger_cmd
1563 intead of add_setshow_zinteger_cmd.
1564 * mips-tdep.c (mips_debug): Add 'unsigned'.
1565 (_initialize_mips_tdep): Call add_setshow_zuinteger_cmd
1566 instead of add_setshow_zinteger_cmd.
1567 * monitor.c (monitor_debug): Add 'unsigned'.
1568 (_initialize_remote_monitors): Call add_setshow_zuinteger_cmd instead of
1569 add_setshow_zinteger_cmd.
1570 * observer.c (observer_debug): Add 'unsigned'.
1571 (_initialize_observer): Call add_setshow_zuinteger_cmd instead of
1572 add_setshow_zinteger_cmd.
1573 * parse.c (expressiondebug): Add 'unsigned'.
1574 (_initialize_parse): Call add_setshow_zuinteger_cmd instead of
1575 add_setshow_zinteger_cmd.
1576 * record.c (record_debug): Add 'unsigned'.
1577 (_initialize_record): Call add_setshow_zuinteger_cmd instead of
1578 add_setshow_zinteger_cmd.
1579 * record.h: Update the declaration of 'record_debug'.
1580 * stap-probe.c (stap_expression_debug): Add 'unsigned'.
1581 (_initialize_stap_probe): Call add_setshow_zuinteger_cmd instead of
1582 add_setshow_zinteger_cmd.
1583 * serial.c (global_serial_debug_p): Add 'unsigned'.
1584 (_initialize_serial): Call add_setshow_zuinteger_cmd instead of
1585 add_setshow_zinteger_cmd.
1586 * solib-dsbt.c (solib_dsbt_debug): Add 'unsigned'.
1587 (_initialize_dsbt_solib): Call add_setshow_zuinteger_cmd instead of
1588 add_setshow_zinteger_cmd.
1589 * solib-frv.c (solib_frv_debug): Add 'unsigned'.
1590 (_initialize_frv_solib): Call add_setshow_zuinteger_cmd instead of
1591 add_setshow_zinteger_cmd.
1592 * target.c (targetdebug): Add 'unsigned'.
1593 (initialize_targets): Call add_setshow_zuinteger_cmd instead of
1594 add_setshow_zinteger_cmd.
1595 * valops.c (overload_debug): Add 'unsigned'.
1596 * varobj.c (varobjdebug): Add 'unsigned'.
1597 (_initialize_varobj): Call add_setshow_zuinteger_cmd instead of
1598 add_setshow_zinteger_cmd.
1599 * xtensa-tdep.c (xtensa_debug_level): Add 'unsigned'.
1600 (_initialize_xtensa_tdep): Call add_setshow_zuinteger_cmd
1601 instead of add_setshow_zinteger_cmd.
1602
1603 * arch-utils.h: Remove the declaration of 'gdbarch_debug'.
1604 * gdbarch.sh (gdbarch_debug): Add 'unsigned'.
1605 (extern void _initialize_gdbarch): Call add_setshow_zuinteger_cmd
1606 instead of add_setshow_zinteger_cmd.
1607 * gdbarch.c, gdbarch.h: Re-generated.
1608
95b07c96
YQ
16092012-08-02 Yao Qi <yao@codesourcery.com>
1610
1611 * nto-tdep.c: Don't include cli/cli-decode.h and
1612 cli/cli-cmds.h.
1613 (_initialize_nto_tdep): Remove.
1614 * nto-tdep.h (struct nto_target_ops) <internal_debugging>:
1615 Remove field.
1616 Remove macro nto_internal_debugging.
1617
57295b0b
RH
16182012-08-01 Richard Henderson <rth@redhat.com>
1619
1620 * configure.tgt (m32c-*-*) [gdb_target_obs]: Remove prologue-value.o.
1621 (mep-*-*) [gdb_target_obs]: Likewise.
1622
f782ad9b
AS
16232012-07-31 Andreas Schwab <schwab@linux-m68k.org>
1624
1625 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
1626 linux_get_siginfo_type.
1627
a14dd77e
JK
16282012-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
1629
1630 * infcall.c (call_function_by_hand): Move BP_ADDR comment to
1631 AT_ENTRY_POINT.
1632 (call_function_by_hand) <ON_STACK>: Call write_memory with
1633 gdbarch_breakpoint_from_pc, if possible.
1634 (call_function_by_hand) <AT_ENTRY_POINT>: The BP_ADDR comment is moved
1635 here.
1636
1467929f
YQ
16372012-07-31 Yao Qi <yao@codesourcery.com>
1638
1639 * tracepoint.c: Add 'static' for some variables.
1640
70976b65
YQ
16412012-07-31 Yao Qi <yao@codesourcery.com>
1642
1643 * go32-nat.c: Declare _initialize_go32_nat.
1644 * ser-go32.c: Declare _initialize_ser_dos.
1645 * top.c (do_chdir_cleanup): Add 'static'.
1646
eff9c3e6
KS
16472012-07-30 Keith Seitz <keiths@redhat.com>
1648
1649 * linespec.c (linespec_lex_number): A number followed
1650 by quotes is a valid number, too.
1651
728400d7
TT
16522012-07-30 Tom Tromey <tromey@redhat.com>
1653
1654 * remote-sim.c (gdb_os_poll_quit): Don't check immediate_quit.
1655
fcf303ab
UW
16562012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
1657
1658 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Do not
1659 attempt to 4-byte-align HW breakpoint addresses for Thumb.
1660
4e969b4f
AB
16612012-07-30 Andrew Burgess <aburgess@broadcom.com>
1662
1663 * varobj.c (varobj_invalidate_iter): All varobj must be marked as
1664 invalid or reevaluated to prevent prevent references to possibly
1665 delete'd type objects being left in the varobj.
1666
c4bfde41
JK
16672012-07-27 Tom Tromey <tromey@redhat.com>
1668 Jan Kratochvil <jan.kratochvil@redhat.com>
1669
1670 * copying.awk: Print buffer-read-only and vi ro markers.
1671 * copying.c: Rebuild.
1672 * gdbarch.sh (copyright): Print buffer-read-only and vi ro markers.
1673 * gdbarch.c, gdbarch.h: Rebuild.
1674 * target-descriptions.c (maint_print_c_tdesc_cmd): Print
1675 buffer-read-only and vi ro markers.
1676 * features/arm-with-iwmmxt.c: Rebuild.
1677 * features/arm-with-m-fpa-layout.c: Rebuild.
1678 * features/arm-with-m-vfp-d16.c: Rebuild.
1679 * features/arm-with-m.c: Rebuild.
1680 * features/arm-with-neon.c: Rebuild.
1681 * features/arm-with-vfpv2.c: Rebuild.
1682 * features/arm-with-vfpv3.c: Rebuild.
1683 * features/i386/amd64-avx-linux.c: Rebuild.
1684 * features/i386/amd64-avx.c: Rebuild.
1685 * features/i386/amd64-linux.c: Rebuild.
1686 * features/i386/amd64.c: Rebuild.
1687 * features/i386/i386-avx-linux.c: Rebuild.
1688 * features/i386/i386-avx.c: Rebuild.
1689 * features/i386/i386-linux.c: Rebuild.
1690 * features/i386/i386-mmx-linux.c: Rebuild.
1691 * features/i386/i386-mmx.c: Rebuild.
1692 * features/i386/i386.c: Rebuild.
1693 * features/i386/x32-avx-linux.c: Rebuild.
1694 * features/i386/x32-avx.c: Rebuild.
1695 * features/i386/x32-linux.c: Rebuild.
1696 * features/i386/x32.c: Rebuild.
1697 * features/mips-dsp-linux.c: Rebuild.
1698 * features/mips-linux.c: Rebuild.
1699 * features/mips64-dsp-linux.c: Rebuild.
1700 * features/mips64-linux.c: Rebuild.
1701 * features/rs6000/powerpc-32.c: Rebuild.
1702 * features/rs6000/powerpc-32l.c: Rebuild.
1703 * features/rs6000/powerpc-403.c: Rebuild.
1704 * features/rs6000/powerpc-403gc.c: Rebuild.
1705 * features/rs6000/powerpc-405.c: Rebuild.
1706 * features/rs6000/powerpc-505.c: Rebuild.
1707 * features/rs6000/powerpc-601.c: Rebuild.
1708 * features/rs6000/powerpc-602.c: Rebuild.
1709 * features/rs6000/powerpc-603.c: Rebuild.
1710 * features/rs6000/powerpc-604.c: Rebuild.
1711 * features/rs6000/powerpc-64.c: Rebuild.
1712 * features/rs6000/powerpc-64l.c: Rebuild.
1713 * features/rs6000/powerpc-7400.c: Rebuild.
1714 * features/rs6000/powerpc-750.c: Rebuild.
1715 * features/rs6000/powerpc-860.c: Rebuild.
1716 * features/rs6000/powerpc-altivec32.c: Rebuild.
1717 * features/rs6000/powerpc-altivec32l.c: Rebuild.
1718 * features/rs6000/powerpc-altivec64.c: Rebuild.
1719 * features/rs6000/powerpc-altivec64l.c: Rebuild.
1720 * features/rs6000/powerpc-cell32l.c: Rebuild.
1721 * features/rs6000/powerpc-cell64l.c: Rebuild.
1722 * features/rs6000/powerpc-e500.c: Rebuild.
1723 * features/rs6000/powerpc-e500l.c: Rebuild.
1724 * features/rs6000/powerpc-isa205-32l.c: Rebuild.
1725 * features/rs6000/powerpc-isa205-64l.c: Rebuild.
1726 * features/rs6000/powerpc-isa205-altivec32l.c: Rebuild.
1727 * features/rs6000/powerpc-isa205-altivec64l.c: Rebuild.
1728 * features/rs6000/powerpc-isa205-vsx32l.c: Rebuild.
1729 * features/rs6000/powerpc-isa205-vsx64l.c: Rebuild.
1730 * features/rs6000/powerpc-vsx32.c: Rebuild.
1731 * features/rs6000/powerpc-vsx32l.c: Rebuild.
1732 * features/rs6000/powerpc-vsx64.c: Rebuild.
1733 * features/rs6000/powerpc-vsx64l.c: Rebuild.
1734 * features/rs6000/rs6000.c: Rebuild.
1735 * features/s390-linux32.c: Rebuild.
1736 * features/s390-linux32v1.c: Rebuild.
1737 * features/s390-linux32v2.c: Rebuild.
1738 * features/s390-linux64.c: Rebuild.
1739 * features/s390-linux64v1.c: Rebuild.
1740 * features/s390-linux64v2.c: Rebuild.
1741 * features/s390x-linux64.c: Rebuild.
1742 * features/s390x-linux64v1.c: Rebuild.
1743 * features/s390x-linux64v2.c: Rebuild.
1744 * features/tic6x-c62x-linux.c: Rebuild.
1745 * features/tic6x-c62x.c: Rebuild.
1746 * features/tic6x-c64x-linux.c: Rebuild.
1747 * features/tic6x-c64x.c: Rebuild.
1748 * features/tic6x-c64xp-linux.c: Rebuild.
1749 * features/tic6x-c64xp.c: Rebuild.
1750
826f0041
TT
17512012-07-27 Tom Tromey <tromey@redhat.com>
1752
1753 * c-exp.y (classify_name): Avoid assignment in condition.
1754
84552b16
PA
17552012-07-27 Roland Schwingel <roland.schwingel@onevision.com>
1756
1757 * amd64-windows-tdep.c: Include "frame.h".
1758 (amd64_windows_skip_trampoline_code): New function.
1759 (amd64_windows_init_abi): Add trampoline registration.
1760
a8a64aa8
YQ
17612012-07-27 Yao Qi <yao@codesourcery.com>
1762
1763 * tracepoint.c (cur_traceframe_number): Remove.
1764 (set_tfile_traceframe): Remove.
1765 (tfile_trace_find, tfile_fetch_registers): Update callers.
1766 (tfile_xfer_partial, tfile_get_trace_state_variable_value): Likewise.
1767 (tfile_open, tfile_trace_find): Likewise.
1768
d99067cb
YQ
17692012-07-27 Yao Qi <yao@codesourcery.com>
1770
1771 * thread.c (switch_to_thread): Don't call registers_changed.
1772
f2e8016f
TT
17732012-07-26 Tom Tromey <tromey@redhat.com>
1774
f782ad9b
AS
1775 * Makefile.in (SFILES): Remove objc-exp.y.
1776 (YYFILES): Remove objc-exp.c.
1777 (YYOBJ): Remove objc-exp.o.
1778 (local-maintainer-clean): Don't mention objc-exp.c.
1779 * c-exp.y: Include objc-lang.h.
1780 (%union) <class>: New field.
1781 (NSSTRING, SELECTOR, CLASSNAME, OBJC_LBRAC): New tokens.
1782 (exp): Clone subscript production for OBJC_LBRAC. Add various
1783 Objective C productions.
1784 (msglist, msgarglist, msgarg): New productions.
1785 (array_mod, func_mod, operator): Clone productions for
1786 OBJC_LBRAC.
1787 (parse_string_or_char): Handle '@' strings.
1788 (lex_one_token): Return OBJC_LBRAC. Recognize @selector.
1789 (classify_name): Check la_name_of_this. Recognize ObjC class
1790 names.
1791 * objc-exp.y: Remove.
1792 * objc-lang.c (objc_language_defn): Use c_parse, c_error.
1793 * objc-lang.h (objc_parse, objc_error): Don't declare.
f2e8016f 1794
f66713d2
JK
17952012-07-26 Markus Metzger <markus.t.metzger@intel.com>
1796
1797 * python/py-inferior.c (infpy_threads): Call update_thread_list ().
1798
7cfe01b4
JK
17992012-07-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1800
1801 * auto-load.c (auto_load_info_scripts): Remove immediate_quit increment
1802 and decrement.
1803
5ba19b4c
TT
18042012-07-26 Tom Tromey <tromey@redhat.com>
1805
1806 * copying.c: Rebuild.
1807 * copying.awk: Don't use immediate_quit. Use 'no_set_class', not
1808 'no_class'.
1809
27618ce4
TT
18102012-07-26 Tom Tromey <tromey@redhat.com>
1811
1812 * symmisc.c (print_symbol_bcache_statistics): Use QUIT, not
1813 immediate_quit.
1814 (print_objfile_statistics): Likewise.
1815 (maintenance_print_symbols): Likewise.
1816 (maintenance_print_msymbols): Likewise.
1817 (maintenance_print_objfiles): Likewise.
1818 * psymtab.c (print_partial_symbols): Call QUIT.
1819 (maintenance_print_psymbols): Likewise. Don't modify
1820 immediate_quit.
1821 * copying.c (show_copying_command): Don't modify immediate_quit.
1822 (show_warranty_command): Likewise.
1823 * cli/cli-cmds.c (show_version): Don't modify immediate_quit.
1824
dd3818c8
KS
18252012-07-26 Keith Seitz <keiths@redhat.com>
1826
1827 * linespec.c (linespec_lexer_lex_number): The input
1828 is also a valid number if the next character is a comma
1829 or colon.
1830
23a80689
JB
18312012-07-26 Joel Brobecker <brobecker@adacore.com>
1832
1833 * NEWS: Document new --enable-libmcheck/--disable-libmcheck
1834 configure options.
1835
29f77997
TG
18362012-07-26 Tristan Gingold <gingold@adacore.com>
1837
1838 * machoread.c: Include gdb_bfd.h.
1839
a55c1f32
TG
18402012-07-26 Tristan Gingold <gingold@adacore.com>
1841
1842 * dwarf2loc.c (locexpr_describe_location_piece): Use uint64_t for
1843 offset.
1844
56eb65bd
SP
18452012-07-26 Siddhesh Poyarekar <siddhesh@redhat.com>
1846
1847 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Expand parameter
1848 SIZE to size_t.
1849 (dwarf2_evaluate_loc_desc): Likewise.
1850 (dwarf2_loc_desc_needs_frame): Likewise.
1851 (locexpr_describe_location_1): Likewise.
1852 * dwarf2loc.h (struct dwarf2_locexpr_baton): Make SIZE as
1853 size_t.
1854 (struct dwarf2_loclist_baton): Likewise.
1855 * dwarf2read.c (struct dwarf_block): Likewise.
1856 (dump_die_shallow): Use pulongest to print dwarf_block.size.
1857 (decode_locdesc): Expand SIZE and I to size_t.
1858
aec8845c
JK
18592012-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
1860
1861 * contrib/cc-with-tweaks.sh: Put into comment path gdb/contrib/.
1862
33d7655b
JB
18632012-07-25 Joel Brobecker <brobecker@adacore.com>
1864
1865 * doublest.c (convert_doublest_to_floatformat): If the exponent
1866 is too small, treat the value as zero. If the exponent is too
1867 large, treat the value as infinity.
1868
a22d44ff
JB
18692012-07-25 Joel Brobecker <brobecker@adacore.com>
1870
1871 * configure.ac: Add --enable-lmcheck configure option.
1872 * configure: Regenerate.
1873
d6b28940
TT
18742012-07-25 Tom Tromey <tromey@redhat.com>
1875
f782ad9b
AS
1876 * NEWS: Mention maint info bfds.
1877 * gdb_bfd.c (all_bfds): New global.
1878 (gdb_bfd_ref, gdb_bfd_unref): Update all_bfds.
1879 (print_one_bfd, maintenance_info_bfds, _initialize_gdb_bfd):
1880 New functions.
d6b28940 1881
6e73ba20
RC
18822012-07-25 Ralf Corsépius <ralf.corsepius@rtems.org>
1883
1884 * configure.tgt: Add v850*-*-rtems*.
1885
d560eebd
TT
18862012-07-25 Tom Tromey <tromey@redhat.com>
1887
1888 * macrotab.c (macro_bcache_str): Remove cast.
1889
d7cbec71
HZ
18902012-07-25 Hui Zhu <hui_zhu@mentor.com>
1891
1892 * linespec.c (linespec_lexer_lex_number): Update comments,
1893 change the return and add check to make sure the input is
1894 the decimal numbers.
1895 (linespec_lexer_lex_one): If linespec_lexer_lex_number return
1896 false, call linespec_lexer_lex_string.
1897
882f447f
TT
18982012-07-24 Tom Tromey <tromey@redhat.com>
1899
1900 * symfile.c (symbol_file_add): Don't open BFD twice.
1901
53ab4066 19022012-07-24 Marc Khouzam <marc.khouzam@ericsson.com>
e12c7713
MK
1903
1904 * breakpoint.c (create_breakpoint): Store condition for pending
1905 breakpoints.
1906
108fb0f7
AS
19072012-07-24 Andreas Schwab <schwab@linux-m68k.org>
1908
1909 * m68k-tdep.c (m68k_reg_struct_return_p): Accept complex types.
1910 (m68k_return_value): Handle complex types like structures.
1911 (m68k_svr4_return_value): Likewise.
1912
1634dcbe
JK
19132012-07-24 Marcus Shawcroft <marcus.shawcroft@arm.com>
1914
1915 * gdb_bfd.c (zlib_decompress_section) <!HAVE_ZLIB_H>: Adjust
1916 parameters to bfd_get_section_name.
1917
e2d12c21
YQ
19182012-07-24 Yao Qi <yao@codesourcery.com>
1919
1920 * cli/cli-setshow.c: Handle case 'var_uinteger'
1921 and 'var_zuninteger' together. Handle case 'var_integer' and
1922 'var_zinteger' together.
1923
64b92e45
KS
19242012-07-23 Keith Seitz <keiths@redhat.com>
1925
1926 * linespec.c (convert_linespec_to_sal): Don't add
1927 any symbols to the result vector if symbol_to_sal
1928 returns zero.
1929
0f5f4ffe
KS
19302012-07-23 Keith Seitz <keiths@redhat.com>
1931
1932 * linespec.c (decode_objc): Record the function name
1933 in the linespec.
1934
da1cc82f
TT
19352012-07-23 Tom Tromey <tromey@redhat.com>
1936
1937 * rs6000-nat.c (add_vmap): Rewrite archive loop. Fix reference
1938 counting.
1939 * exec.c (exec_close_1): Unconditionally release vmap's BFD.
1940 (map_vmap): Acquire a reference to the BFD.
1941
6c18f3e0
SP
19422012-07-23 Siddhesh Poyarekar <siddhesh@redhat.com>
1943
1944 * p-valprint.c (pascal_object_print_value): Replace potentially
1945 unsafe alloca with xmalloc/xfree.
1946 * valops.c (search_struct_method): Likewise.
1947
695c3173
TT
19482012-07-23 Tom Tromey <tromey@redhat.com>
1949
1950 * solib-svr4.c (enable_break): Update.
1951 * bfd-target.h (target_bfd_reopen): Update documentation.
1952
08d2cd74
TT
19532012-07-23 Tom Tromey <tromey@redhat.com>
1954
1955 * symfile.c (separate_debug_file_exists): Update.
1956 (gdb_bfd_open_maybe_remote): Rename from bfd_open_maybe_remote.
1957 (reread_symbols): Update.
1958 * elfread.c (build_id_verify): Update.
1959 * symfile.h (gdb_bfd_open_maybe_remote): Rename from
1960 bfd_open_maybe_remote.
1961
596f7d67
TT
19622012-07-23 Tom Tromey <tromey@redhat.com>
1963
1964 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Fix comment.
1965
8ac244b4
TT
19662012-07-23 Tom Tromey <tromey@redhat.com>
1967
1968 * coffread.c (coff_symfile_read): Make a cleanup for 'debugfile'
1969 and 'abfd'.
1970 * elfread.c (elf_symfile_read): Make a cleanup for 'debugfile'
1971 and 'abfd'.
1972 * jit.c (jit_bfd_try_read_symtab): Make a cleanup for 'nbfd'.
1973 * machoread.c (macho_add_oso_symfile): Make a cleanup for
1974 'abfd'.
1975 (macho_symfile_read): Make a cleanup for 'dsym_bfd'.
1976 * objfiles.c (allocate_objfile): Acquire a new reference.
1977 * rs6000-nat.c (add_vmap): Don't acquire a BFD reference.
1978 * solib.c (solib_read_symbols): Don't acquire a BFD reference.
1979 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Make
1980 a cleanup for 'nbfd'.
1981 * symfile-mem.c (symbol_file_add_from_memory): Make a cleanup
1982 for 'nbfd'.
1983 * symfile.c (symbol_file_add_with_addrs_or_offsets): Don't
1984 make a cleanup for 'abfd'.
1985 (symbol_file_add): Make a BFD cleanup.
1986
64c31149
TT
19872012-07-23 Tom Tromey <tromey@redhat.com>
1988
1989 * cli/cli-dump.c (bfd_openr_with_cleanup): Use gdb_bfd_openr.
1990 (bfd_openw_with_cleanup): Use gdb_bfd_openw.
1991 * corelow.c (core_open): Use gdb_bfd_fopen.
1992 * dsrec.c (load_srec): Use gdb_bfd_openr.
1993 * exec.c (exec_file_attach): Use gdb_bfd_fopen.
1994 * gcore.c (gcore_memory_sections): Use gdb_bfd_openw.
1995 * gdb_bfd.c (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
1996 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
1997 (gdb_bfd_fdopenr): New functions.
1998 * gdb_bfd.h (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
1999 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
2000 (gdb_bfd_fdopenr): Declare.
2001 * jit.c (bfd_open_from_target_memory): Use gdb_bfd_openr_iovec.
2002 * m32-rom.c (m32r_load, m32r_upload_command): Use gdb_bfd_openr.
2003 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_openr,
2004 gdb_bfd_openr_next_archived_file.
2005 (macho_check_dsym): Use gdb_bfd_openr.
2006 (macho_add_oso_symfile): Don't call gdb_bfd_stash_filename.
2007 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_fdopenr.
2008 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_openr.
2009 * remote-mips.c (mips_load_srec, pmon_load_fast): Use
2010 gdb_bfd_openr.
2011 * remote.c (remote_bfd_open): Use gdb_bfd_openr_iovec.
2012 * rs6000-nat.c (add_vmap): Use gdb_bfd_openr, gdb_bfd_fdopenr,
2013 gdb_bfd_openr_next_archived_file.
2014 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2015 Use gdb_bfd_openr.
2016 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
2017 gdb_bfd_openr.
2018 * solib-spu.c (spu_bfd_fopen): Use gdb_bfd_openr_iovec.
2019 * solib.c (solib_bfd_fopen): Use gdb_bfd_fopen.
2020 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_openr_iovec.
2021 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_openr.
2022 (symfile_bfd_open): Use gdb_bfd_fopen.
2023 (generic_load): Use gdb_bfd_openr.
2024 * windows-nat.c (windows_make_so): Use gdb_bfd_openr.
2025
520b0001
TT
20262012-07-23 Tom Tromey <tromey@redhat.com>
2027
2028 * bfd-target.c (target_bfd_reopen): Update.
2029 * cli/cli-dump.c (bfd_openr_with_cleanup)
2030 (bfd_openw_with_cleanup): Update.
2031 * corelow.c (core_open): Update.
2032 * dsrec.c (load_srec): Update.
2033 * exec.c (exec_file_attach): Update.
2034 * gcore.c (create_gcore_bfd): Update.
2035 * gdb_bfd.c (gdb_bfd_ref): Return void.
2036 (gdb_bfd_open): Update.
2037 * gdb_bfd.h (gdb_bfd_ref): Return void.
2038 Update comments.
2039 * jit.c (jit_bfd_try_read_symtab): Update.
2040 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
2041 * machoread.c (macho_symfile_read_all_oso): Update.
2042 (macho_check_dsym): Update.
2043 * procfs.c (insert_dbx_link_bpt_in_file): Update.
2044 * remote-m32r-sdi.c (m32r_load): Update.
2045 * remote-mips.c (mips_load_srec, pmon_load_fast): Update.
2046 * rs6000-nat.c (add_vmap): Update.
2047 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2048 Update.
2049 * solib-pa64.c (pa64_solib_create_inferior_hook): Update.
2050 * solib-spu.c (spu_bfd_open): Update.
2051 * solib.c (solib_bfd_fopen, solib_read_symbols): Update.
2052 * spu-linux-nat.c (spu_bfd_open): Update.
2053 * symfile.c (bfd_open_maybe_remote, symfile_bfd_open)
2054 (generic_load): Update.
2055 * windows-nat.c (windows_make_so): Update.
2056
2322ff16
SP
20572012-07-22 Siddhesh Poyarekar <siddhesh@redhat.com>
2058
2059 * sh-tdep.c (sh_treat_as_flt_p): Remove unused variable LEN.
2060
3def0b36
PA
20612012-07-20 Jeff Kenton <jkenton@tilera.com>
2062
2063 * tilegx-linux-tdep.c (tilegx_linux_sigframe_init): Fix
2064 SIGTRAMP_FRAME unwinding.
2065
e615022a
DE
20662012-07-20 Doug Evans <dje@google.com>
2067
2068 * NEWS: Document new options "set/show use-deprecated-index-sections",
2069 and delete reference to --use-deprecated-index-sections.
2070 * symfile.h (use_deprecated_index_sections): Delete.
2071 * dwarf2read.c (use_deprecated_index_sections): Make static.
2072 (read_index_from_section): Update wording of how to load
2073 deprecated index sections.
2074 (_initialize_dwarf2_read): New options
2075 "set/show use-deprecated-index-sections".
2076 * main.c (captured_main): Delete --use-deprecated-index-sections.
2077
64776a0b
PA
20782012-07-20 Pedro Alves <palves@redhat.com>
2079
2080 PR threads/11692
2081 PR gdb/12203
2082
2083 * infrun.c (handle_inferior_event) <new thread>: Don't special
2084 case minus_one_ptid.
2085 <TARGET_WAITKIND_SPURIOUS>: Ditto.
2086 * linux-thread-db.c (thread_get_info_callback): Don't return early
2087 if the thread is zombie.
2088 (thread_from_lwp): Change return type to void. Rewrite stale
2089 comment.
2090 (attach_thread): Don't return early if the thread is zombie,
2091 instead set its "dying" flag.
2092 (thread_db_wait): Don't return TARGET_WAITKIND_SPURIOUS anymore.
2093 (find_new_threads_callback): Don't return early if the thread is
2094 zombie.
2095
09826ec5
PA
20962012-07-20 Pedro Alves <palves@redhat.com>
2097
2098 * linux-nat.c (linux_nat_wait): Dump the passed in target options.
2099 * target.c (target_wait): Likewise.
2100 (str_comma_list_concat_elem, do_option, target_options_to_string):
2101 New functions.
2102 * target.h (target_options_to_string): Declare.
2103
f7a35f02
TT
21042012-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2105 Tom Tromey <tromey@redhat.com>
2106
2107 * dwarf2read.c (dwarf_decode_macros)
2108 <DW_MACRO_GNU_define_indirect_alt, DW_MACRO_GNU_undef_indirect_alt,
2109 DW_MACRO_GNU_transparent_include_alt>: New cases.
2110 (dwarf_decode_macro_bytes) <DW_MACRO_GNU_define_indirect,
2111 DW_MACRO_GNU_undef_indirect>: Examine 'section_is_dwz'.
2112
b81e1ee0
TT
21132012-07-20 Tom Tromey <tromey@redhat.com>
2114
2115 * dwarf2read.c (try_open_dwo_file): Don't call
2116 gdb_bfd_stash_filename.
2117
99c1624c
PA
21182012-07-20 Pedro Alves <palves@redhat.com>
2119
2120 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
2121 (i386_record_lea_modrm, i386_record_push, i386_record_floats)
2122 (i386_process_record): Tweak description comments.
2123
4ffa4fc7
PA
21242012-07-20 Pedro Alves <palves@redhat.com>
2125
2126 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
2127 (i386_process_record): Use record_read_memory.
2128 * record.c (record_read_memory): New function.
2129 (record_arch_list_add_mem, record_exec_insn): Use
2130 record_read_memory.
2131 * record.h (record_read_memory): Declare.
2132
c24343e2
YQ
21332012-07-20 Yao Qi <yao@codesourcery.com>
2134
2135 * cli/cli-setshow.c (do_setshow_command): Don't check pointer is
2136 NULL for xfree.
2137
90f47860
PA
21382012-07-19 Pedro Alves <palves@redhat.com>
2139
2140 * record.c (record_resume): Ask the target beneath to report all
2141 signals.
2142
01093045
DE
21432012-07-19 Doug Evans <dje@google.com>
2144
2145 * dwarf2read.c (dwarf2_ranges_read): Ignore ranges starting at zero if
2146 there's no section at address zero.
2147 (dwarf2_record_block_ranges): Ditto.
2148
a7c3d162
YQ
21492012-07-19 Yao Qi <yao@codesourcery.com>
2150
2151 * command.h, remote.c: Fix a typo in comment.
2152
608b4967
TT
21532012-07-19 Tom Tromey <tromey@redhat.com>
2154
2155 PR exp/13206:
2156 * ax-gdb.c (gen_expr) <OP_TYPEOF, OP_DECLTYPE>: New cases.
2157 * breakpoint.c (watchpoint_exp_is_const) <OP_TYPEOF,
2158 OP_DECLTYPE>: New cases.
2159 * c-exp.y (TYPEOF, DECLTYPE): New tokens.
2160 (type_exp): Add new productions.
2161 (ident_tokens): Add __typeof__, typeof, __typeof, __decltype,
2162 and decltype.
2163 * eval.c (evaluate_subexp_standard) <OP_TYPEOF, OP_DECLTYPE>:
2164 New case.
2165 * expprint.c (dump_subexp_body_standard) <OP_TYPEOF,
2166 OP_DECLTYPE>: New case.
2167 * parse.c (operator_length_standard) <OP_TYPEOF, OP_DECLTYPE>:
2168 New case.
2169 * std-operator.def (OP_TYPEOF, OP_DECLTYPE): New constants.
2170 * varobj.c (varobj_create): Handle OP_TYPEOF, OP_DECLTYPE.
2171
274b54d7
TT
21722012-07-19 Tom Tromey <tromey@redhat.com>
2173
2174 * c-exp.y (enum token_flags): New.
2175 (struct token) <cxx_only>: Remove.
2176 <flags>: New field.
2177 (tokentab3, tokentab2, ident_tokens): Update.
2178 (lex_one_token): Update. Handle FLAG_SHADOW.
2179
9eaf6705
TT
21802012-07-19 Tom Tromey <tromey@redhat.com>
2181
2182 * ax-gdb.c (gen_expr): Handle UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE.
2183 * breakpoint.c (watchpoint_exp_is_const): Handle UNOP_CAST_TYPE,
2184 UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST.
2185 * c-exp.y (exp): Emit UNOP_MEMVAL_TYPE, UNOP_CAST_TYPE. Update
2186 for changes to UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST. Use
2187 type_exp production where appropriate.
2188 * eval.c (evaluate_subexp_standard) <UNOP_CAST_TYPE>: New case.
2189 <UNOP_DYNAMIC_CAST, UNOP_REINTERPRET_CAST>: Update.
2190 <UNOP_MEMVAL_TYPE>: New case.
2191 (evaluate_subexp_for_address) <UNOP_MEMVAL_TYPE>: New case.
2192 (evaluate_subexp_for_sizeof) <UNOP_MEMVAL_TYPE>: New case.
2193 * expprint.c (print_subexp_standard) <UNOP_CAST_TYPE>: New case.
2194 <UNOP_MEMVAL_TYPE>: New case.
2195 (dump_subexp_body_standard) <UNOP_DYNAMIC_CAST,
2196 UNOP_REINTERPRET_CAST>: Update.
2197 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
2198 * parse.c (operator_length_standard) <UNOP_DYNAMIC_CAST,
2199 UNOP_REINTERPRET_CAST>: Update.
2200 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
2201 * stack.c (return_command): Also check for UNOP_CAST_TYPE.
2202 * std-operator.def (UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE): New
2203 constants.
2204
6ace3df1
YQ
22052012-07-19 Yao Qi <yao@codesourcery.com>
2206 Jan Kratochvil <jan.kratochvil@redhat.com>
2207
2208 * cli/cli-setshow.c (do_setshow_command): Handle case 'var_filename'
2209 and case 'var_optional_filename' together.
2210 * infcmd.c (_initialize_infcmd): Call add_setshow_string_noescape_cmd
2211 instead of add_setshow_optional_filename_cmd for setshow command
2212 'args'. Set completer for 'set args'.
2213
48faced0
DE
22142012-07-18 Doug Evans <dje@google.com>
2215
2216 * common/gdb_vecs.h: Moved here from ./gdb_vecs.h.
2217 * common/gdb_vecs.c: New file, contents from utils.c.
2218 * common/host-defs.h: New file, contents from defs.h.
2219 * utils.h: New file, contents from defs.h.
2220 * defs.h: Move all declarations of objects defined in utils.c
2221 to utils.h (except QUIT() and related).
2222 #include "utils.h", "host-defs.h".
2223 * probe.h (probe_p): Move here from gdb_vecs.h.
2224 * symfile.c: #include "probe.h" instead of "gdb_vecs.h".
2225 * utils.c (free_char_ptr_vec): Moved to common/gdb_vecs.c.
2226 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): Ditto.
2227 * Makefile.in (SFILES): Add common/gdb_vecs.c.
2228 (HFILES_NO_SRCDIR): Add common/gdb_vecs.h, common/host-defs.h, utils.h.
2229 (COMMON_OBS): Add gdb_vecs.o.
2230 (gdb_vecs.o): New rule.
2231
66f1999b
KS
22322012-07-18 Keith Seitz <keiths@redhat.com>
2233
2234 * linespec.c (add_sal_to_sals): Add LITERAL_CANONICAL
2235 parameter. If non-zero, use SYMNAME as the canonical name
2236 for the SaL.
2237 Update all callers.
2238 (convert_linespec_to_sals): Use add_sal_to_sals for
2239 expressions, too.
2240 (decode_line_full): No need to "fill in missing canonical names"
2241 anymore. Simply make cleanups for the allocated names.
2242
5d94e27b
KS
22432012-07-18 Keith Seitz <keiths@redhat.com>
2244
2245 * linespec.c (struct linespec): Constify expression,
2246 source_filename, function_name, and label_name.
2247 (symbol_not_found_error): Make all parameters const.
2248 (linespec_parser_delete): No need to check for NULL
2249 when using xfree. Cast const char * to char * for xfree.
2250
af4908ba
KS
22512012-07-18 Keith Seitz <keiths@redhat.com>
2252
2253 * breakpoint.c (invalid_thread_id_error): New function.
2254 (find_condition_and_thread): Use invalid_thread_id_error.
2255 (watch_command_1): Likewise.
2256
853254db
TT
22572012-07-18 Tom Tromey <tromey@redhat.com>
2258
2259 * cc-with-index.sh, cc-with-dwz.sh: Remove.
2260 * contrib/cc-with-tweaks.sh: New file.
2261
2ec9a5e0
TT
22622012-07-18 Tom Tromey <tromey@redhat.com>
2263
2264 * dwarf2read.c (struct dwz_file) <gdb_index>: New field.
2265 (locate_dwz_sections): Recognize .gdb_index.
2266 (create_cus_from_index_list): New function.
2267 (create_cus_from_index): Use it. Handle .dwz data.
2268 (read_index_from_section): New function, extracted from
2269 dwarf2_read_index.
2270 (dwarf2_read_index): Use it. Read .gdb_index from dwz file,
2271 if needed.
2272
36586728
TT
22732012-07-18 Tom Tromey <tromey@redhat.com>
2274
2275 * dwarf2read.c (struct dwarf2_per_objfile) <dwz_file>: New field.
2276 (struct dwarf2_per_cu_data) <length>: No longer bitfield.
2277 <is_dwz>: New field.
2278 (struct dwz_file): New.
2279 (struct partial_die_info) <is_dwz, spec_is_dwz>: New fields.
2280 (locate_dwz_sections, dwarf2_get_dwz_file)
2281 (get_abbrev_section_for_cu): New functions.
2282 (error_check_comp_unit_head, read_and_check_comp_unit_head)
2283 (read_and_check_type_unit_head): Add abbrev_section argument.
2284 (create_debug_types_hash_table): Update.
2285 (init_cutu_and_read_dies): Use proper abbrev section.
2286 (init_cutu_and_read_dies_no_follow): Likewise.
2287 (set_partial_user): Do nothing if PST==NULL.
2288 (read_comp_units_from_section): New function.
2289 (create_all_comp_units): Use it.
2290 (scan_partial_symbols, partial_die_parent_scope): Update.
2291 (skip_one_die): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
2292 (process_imported_unit_die, read_partial_die): Handle .dwz files.
2293 (find_partial_die): Add offset_in_dwz argument. Update.
2294 (guess_partial_die_structure_name, fixup_partial_die): Update.
2295 (read_attribute_value): Handle DW_FORM_GNU_ref_alt,
2296 DW_FORM_GNU_strp_alt.
2297 (read_indirect_string_from_dwz): New function.
2298 (dwarf2_const_value_attr): Handle DW_FORM_GNU_strp_alt.
2299 (dump_die_shallow): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
2300 (is_ref_attr): Handle DW_FORM_GNU_ref_alt.
2301 (follow_die_offset): Add offset_in_dwz argument.
2302 (follow_die_ref, dwarf2_fetch_die_location_block): Update.
2303 (skip_form_bytes): Handle DW_FORM_GNU_strp_alt.
2304 (dwarf_decode_macro_bytes): Add section_is_dwz argument.
2305 Handle new macro forms.
2306 (dwarf_decode_macros): Update.
2307 (dwarf2_find_containing_comp_unit): Add offset_in_dwz argument.
2308 (dwarf2_per_objfile_free): Unref dwz_bfd, if it exists
2309 (lookup_die_type): Handle DW_FORM_GNU_ref_alt.
2310 (create_debug_types_hash_table): Use correct abbrev section.
2311 (get_debug_line_section): New function.
2312 (dwarf_decode_line_header, dwarf_decode_lines_1): Use it.
2313 (process_full_comp_unit): Pass 'required' argument to
2314 end_symtab_get_static_block.
2315 * buildsym.h (end_symtab_get_static_block): Update.
2316 * buildsym.c (end_symtab_get_static_block): Add 'required'
2317 argument.
2318 (end_symtab, end_expandable_symtab): Update.
2319
4bf44c1c
TT
23202012-07-18 Tom Tromey <tromey@redhat.com>
2321
2322 * dwarf2read.c: Don't include zlib.h or sys/mman.h.
2323 (pagesize): Remove.
2324 (struct dwarf2_section_info) <map_addr, map_len>: Remove.
2325 (zlib_decompress_section): Remove.
2326 (dwarf2_read_section): Use gdb_bfd_map_section.
2327 (munmap_section_buffer): Remove.
2328 (free_dwo_file, dwarf2_per_objfile_free): Don't use
2329 munmap_section_buffer.
2330 * gdb_bfd.c: Include zlib.h, sys/mman.h.
2331 (struct gdb_bfd_section_data): New.
2332 (free_one_bfd_section): New function.
2333 (gdb_bfd_close_or_warn): Use free_one_bfd_section.
2334 (get_section_descriptor, zlib_decompress_section)
2335 (gdb_bfd_map_section): New functions.
2336 * gdb_bfd.h (gdb_bfd_map_section): Declare.
2337
bb397797
TT
23382012-07-18 Tom Tromey <tromey@redhat.com>
2339
2340 * dwarf2read.c (try_open_dwo_file): use gdb_bfd_open.
2341
6ec53d05
TT
23422012-07-18 Tom Tromey <tromey@redhat.com>
2343
2344 * gdb_bfd.c (struct gdb_bfd_data): New.
2345 (gdb_bfd_cache): New global.
2346 (struct gdb_bfd_cache_search): New.
2347 (hash_bfd, eq_bfd, gdb_bfd_open): New functions.
2348 (gdb_bfd_ref, gdb_bfd_unref): Use gdb_bfd_data.
2349 * gdb_bfd.h (gdb_bfd_open): Declare.
2350
f9a062ff
TT
23512012-07-18 Tom Tromey <tromey@redhat.com>
2352
2353 * utils.c (make_cleanup_bfd_unref): Rename from
2354 make_cleanup_bfd_close.
2355 * defs.h (make_cleanup_bfd_unref): Rename from
2356 make_cleanup_bfd_close.
2357 * cli/cli-dump.c (bfd_openr_with_cleanup): Update.
2358 (bfd_openw_with_cleanup): Update.
2359 * corelow.c (core_open): Update.
2360 * dsrec.c (load_srec): Update.
2361 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
2362 * remote-m32r-sdi.c (m32r_load): Update.
2363 * remote-mips.c (mips_load_srec): Update.
2364 (pmon_load_fast): Update.
2365 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2366 Update.
2367 (darwin_bfd_open): Update.
2368 * solib.c (solib_bfd_fopen): Update.
2369 * symfile-mem.c (symbol_file_add_from_memory): Update.
2370 * symfile.c (symbol_file_add_with_addrs_or_offsets): Update.
2371 (symfile_bfd_open): Update.
2372 (generic_load): Update.
2373
d6ad71ba
TT
23742012-07-18 Tom Tromey <tromey@redhat.com>
2375
2376 * remote-mips.c (mips_load_srec): Use make_cleanup_bfd_close.
2377 (pmon_load_fast): Likewise.
2378 * m32r-rom.c (m32r_load): Use make_cleanup_bfd_close.
2379 (m32r_upload_command): Likewise.
2380 * dsrec.c (load_srec): Use make_cleanup_bfd_close.
2381 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2382 Use make_cleanup_bfd_close.
2383
a4453b7e
TT
23842012-07-18 Tom Tromey <tromey@redhat.com>
2385
2386 * symfile.c (symfile_bfd_open): Don't copy name. Call
2387 gdb_bfd_stash_filename.
2388 (load_command): Open the new BFD before freeing the old.
2389 (bfd_open_maybe_remote): Call gdb_bfd_stash_filename.
2390 * symfile-mem.c (symbol_file_add_from_memory): Don't copy name.
2391 Call gdb_bfd_stash_filename.
2392 * spu-linux-nat.c (spu_bfd_open): Don't copy name.
2393 * solib-spu.c (spu_bfd_fopen): Don't copy name. Call
2394 gdb_bfd_stash_filename.
2395 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2396 Free found_pathname.
2397 * rs6000-nat.c (add_vmap): Don't copy filename. Call
2398 gdb_bfd_stash_filename.
2399 * remote.c (remote_bfd_open): Call gdb_bfd_stash_filename.
2400 * machoread.c (macho_add_oso_symfile): Call
2401 gdb_bfd_stash_filename.
2402 (macho_symfile_read_all_oso): Arrange to free archive_name. Call
2403 gdb_bfd_stash_filename.
2404 (macho_check_dsym): Don't copy filename. Call
2405 gdb_bfd_stash_filename.
2406 * jit.c (bfd_open_from_target_memory): Don't copy the filename.
2407 * gdb_bfd.c (gdb_bfd_stash_filename): New function.
2408 * gdb_bfd.h (gdb_bfd_stash_filename): Declare.
2409 * gcore.c (create_gcore_bfd): Call gdb_bfd_stash_filename.
2410 * exec.c (exec_close): Don't free the BFD's filename.
2411 (exec_file_attach): Don't copy the filename. Call
2412 gdb_bfd_stash_filename.
2413 * corelow.c (core_close): Don't free the BFD's filename.
2414 (core_open): Call gdb_bfd_stash_filename.
2415 * corefile.c (reopen_exec_file): Remove #if 0 code.
2416 * solib.c (solib_bfd_fopen): Call gdb_bfd_stash_filename. Free
2417 pathname.
2418 * dwarf2read.c (try_open_dwo_file): Call gdb_bfd_stash_filename.
2419
cbb099e8
TT
24202012-07-18 Tom Tromey <tromey@redhat.com>
2421
2422 * dwarf2read.c (try_open_dwo_file): Use gdb_bfd_ref and
2423 gdb_bfd_unref.
2424 (free_dwo_file): Use gdb_bfd_unref.
2425 * cli/cli-dump.c: Include gdb_bfd.h.
2426 (bfd_openw_with_cleanup): Use gdb_bfd_ref.
2427 (bfd_openr_with_cleanup): Likewise.
2428 * windows-nat.c (windows_make_so): Use gdb_bfd_ref,
2429 gdb_bfd_unref.
2430 * utils.c: Include gdb_bfd.h.
2431 (do_bfd_close_cleanup): Use gdb_bfd_unref.
2432 * symfile.c: Include gdb_bfd.h.
2433 (separate_debug_file_exists): Use gdb_bfd_unref.
2434 (bfd_open_maybe_remote): Use gdb_bfd_ref.
2435 (symfile_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
2436 (generic_load): Use gdb_bfd_ref.
2437 (reread_symbols): Use gdb_bfd_unref.
2438 * symfile-mem.c: Include gdb_bfd.h.
2439 (symbol_file_add_from_memory): Use make_cleanup_bfd_close.
2440 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
2441 * solib.c: Include gdb_bfd.h.
2442 (solib_bfd_fopen): Use gdb_bfd_ref.
2443 (solib_bfd_open): Use gdb_bfd_unref.
2444 (free_so_symbols): Use gdb_bfd_unref.
2445 (reload_shared_libraries_1): Use gdb_bfd_unref.
2446 * solib-spu.c: Include gdb_bfd.h.
2447 (spu_bfd_fopen): Use gdb_bfd_ref, gdb_bfd_unref.
2448 * solib-pa64.c (pa64_solib_create_inferior_hook): Use gdb_bfd_ref,
2449 gdb_bfd_unref.
2450 * solib-frv.c: Include gdb_bfd.h.
2451 (enable_break2): Use gdb_bfd_unref.
2452 * solib-dsbt.c: Include gdb_bfd.h.
2453 (enable_break2): Use gdb_bfd_unref.
2454 * solib-darwin.c: Include gdb_bfd.h.
2455 (darwin_solib_get_all_image_info_addr_at_init): Use gdb_bfd_ref,
2456 gdb_bfd_unref.
2457 (darwin_bfd_open): Use gdb_bfd_unref.
2458 * rs6000-nat.c (add_vmap): Use gdb_bfd_ref, gdb_bfd_unref.
2459 * remote-mips.c: Include gdb_bfd.h.
2460 (mips_load_srec): Use gdb_bfd_ref.
2461 (pmon_load_fast): Use gdb_bfd_ref.
2462 * remote-m32r-sdi.c: Include gdb_bfd.h.
2463 (m32r_load): Use gdb_bfd_ref.
2464 * record.c: Include gdb_bfd.h.
2465 (record_save_cleanups): Use gdb_bfd_unref.
2466 (cmd_record_save): Use gdb_bfd_unref.
2467 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_ref,
2468 gdb_bfd_unref.
2469 * objfiles.h (gdb_bfd_close_or_warn): Remove.
2470 (gdb_bfd_ref, gdb_bfd_unref): Move to gdb_bfd.h.
2471 * objfiles.c: Include gdb_bfd.h.
2472 (free_objfile): Use gdb_bfd_unref.
2473 (gdb_bfd_close_or_warn, gdb_bfd_ref, gdb_bfd_unref): Move to
2474 gdb_bfd.c.
2475 * machoread.c (macho_add_oso_symfile): Use gdb_bfd_unref.
2476 (macho_symfile_read_all_oso): Use gdb_bfd_ref, gdb_bfd_unref.
2477 (macho_check_dsym): Likewise.
2478 * m32r-rom.c: Include gdb_bfd.h.
2479 (m32r_load): Use gdb_bfd_ref.
2480 (m32r_upload_command): Use gdb_bfd_ref.
2481 * jit.c: Include gdb_bfd.h.
2482 (jit_bfd_try_read_symtab): Use gdb_bfd_ref, gdb_bfd_unref.
2483 * gdb_bfd.h: New file.
2484 * gdb_bfd.c: New file.
2485 * gcore.c: Include gdb_bfd.h.
2486 (create_gcore_bfd): Use gdb_bfd_ref.
2487 (do_bfd_delete_cleanup): Use gdb_bfd_unref.
2488 (gcore_command): Use gdb_bfd_unref.
2489 * exec.c: Include gdb_bfd.h.
2490 (exec_close): Use gdb_bfd_unref.
2491 (exec_close_1): Use gdb_bfd_unref.
2492 (exec_file_attach): Use gdb_bfd_ref.
2493 * elfread.c: Include gdb_bfd.h.
2494 (build_id_verify): Use gdb_bfd_unref.
2495 * dsrec.c: Include gdb_bfd.h.
2496 (load_srec): Use gdb_bfd_ref.
2497 * corelow.c: Include gdb_bfd.h.
2498 (core_close): Use gdb_bfd_unref.
2499 (core_open): Use gdb_bfd_ref.
2500 * bfd-target.c: Include gdb_bfd.h.
2501 (target_bfd_xclose): Use gdb_bfd_unref.
2502 (target_bfd_reopen): Use gdb_bfd_ref.
2503 * Makefile.in (SFILES): Add gdb_bfd.c.
2504 (HFILES_NO_SRCDIR): Add gdb_bfd.h.
2505 (COMMON_OBS): Add gdb_bfd.o.
2506
ed1d1739
KS
25072012-07-18 Keith Seitz <keiths@redhat.com>
2508
2509 * breakpoint.c (find_condition_and_thread): Initialize
2510 TASK and REST.
2511 (create_breakpiont): find_condition_and_thread will now
2512 initialize COND_STRING, THREAD, and REST (and TASK).
2513 (addr_string_to_sals): Likewise.
2514
eab402df
PA
25152012-07-18 Pedro Alves <palves@redhat.com>
2516
2517 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_NO_HISTORY>:
2518 Pull the single step breakpoints out of the target.
2519
2b963b68
SDJ
25202012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
2521
2522 * probe.c (probe_safe_evaluate_at_pc): Rename variable `n_probes'.
2523 * stap-probe.c (compile_probe_arg): Likewise.
2524
6bac7473
SDJ
25252012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
2526
2527 * elfread.c (elf_get_probe_argument_count): Remove `objfile' argument.
2528 (elf_compile_to_ax): Likewise.
2529 * infrun.c (insert_exception_resume_from_probe): Likewise.
2530 (check_exception_resume): Remove `objfile' variable.
2531 * probe.c (find_probe_by_pc): Remove `objfile' argument.
2532 (struct probe_and_objfile, probe_and_objfile_s): Delete.
2533 (collect_probes): Adjust return value to `VEC (probe_p) *'.
2534 (compare_entries): Rename to...
2535 (compare_probes): ...this. Adjust function to work with
2536 `struct probe *'. Rename variables `ea' and `eb' to `pa' and `pb'
2537 respectively.
2538 (gen_ui_out_table_header_info): Adjust `probes' argument to be
2539 `VEC (probe_p) *'.
2540 (print_ui_out_info): Adjust argument to be `struct probe *'.
2541 (info_probes_for_ops): Adjust internal computations to use
2542 `VEC (probe_p) *'.
2543 (probe_safe_evaluate_at_pc): Refactor to not pass `objfile' anymore.
2544 * probe.h (struct probe_ops) <get_probe_argument_count, compile_to_ax,
2545 gen_info_probes_table_values>: Remove `objfile' argument.
2546 (struct probe) <objfile>: New field.
2547 (find_probe_by_pc): Remove `objfile' argument.
2548 * stap-probe.c (stap_parse_probe_arguments): Likewise.
2549 (stap_get_probe_argument_count): Likewise.
2550 (stap_get_arg): Likewise.
2551 (stap_evaluate_probe_argument): Likewise.
2552 (stap_compile_to_ax): Likewise.
2553 (compile_probe_arg): Refactor not to pass `objfile' anymore.
2554 (handle_stap_probe): Fill `objfile' field from `struct probe'.
2555 (stap_gen_info_probes_table_header): Remove `objfile' argument.
2556 * symfile.h (struct sym_probe_fns) <sym_evaluate_probe_argument,
2557 sym_compile_to_ax>: Likewise.
2558
3347eb1a 25592012-07-18 Terry Guo <terry.guo@arm.com>
2560
2561 PR 14329
2562 * defs.h (GDB_MI_MSG_WIDTH): New.
2563 * ser_base (ser_base_read_error_fd): New function.
2564 (do_ser_base_readchar): Poll error file descriptor as well as
2565 standard output.
f782ad9b 2566 (generic_readchar): Refactor error handling.
3347eb1a 2567
80c8d323
JB
25682012-07-18 Joel Brobecker <brobecker@adacore.com>
2569
2570 * NEWS: Create a new section for the next release branch.
2571 Rename the section of the current branch, now that it has
2572 been cut.
2573
b45a0664 25742012-07-18 Joel Brobecker <brobecker@adacore.com>
2575
2576 GDB 7.5 branch created (branch timestamp: 2012-07-18 03:22 UTC)
2577 * version.in: Bump version to 7.5.50.20120718-cvs.
2578
09cf2b22
KS
25792012-07-17 Keith Seitz <keiths@redhat.com>
2580
2581 * linespec.c (linespec_parse_line_offset): Make parameter
2582 const.
2583
8f043999
JK
25842012-07-16 Jan Kratochvil <jan.kratochvil@redhat.com>
2585
2586 PR 11914
2587 * f-valprint.c (info_common_command): New variable frame_id.
2588 Reinitialize FI form FRAME_ID after each print_variable_and_value.
2589 * printcmd.c (print_variable_and_value): Extend function comment.
2590 Add comment for invalidated FRAME.
2591 * stack.c (backtrace_command_1): New variable frame_id. Reinitialize
2592 FI form FRAME_ID after each print_frame_local_vars.
2593 (struct print_variable_and_value_data): Change frame to frame_id.
2594 (do_print_variable_and_value): New variable frame, initialize it from
2595 p->frame_id. Add comment for invalidated FRAME.
2596 (print_frame_local_vars, print_frame_arg_vars): New function comment.
2597 Update CB_DATA.FRAME to CB_DATA.FRAME_ID initialization. Add comment
2598 for invalidated FRAME.
2599
ae5e0686
MK
26002012-07-16 Marc Khouzam <marc.khouzam@ericsson.com>
2601 Pedro Alves <palves@redhat.com>
2602
2603 * linux-nat.c (linux_nat_detach): Don't unregister from the event
2604 loop.
2605
5049c5be
TT
26062012-07-16 Tom Tromey <tromey@redhat.com>
2607
2608 * jv-typeprint.c (c_type_print_varspec_suffix): Don't declare.
2609
2908cac6
DE
26102012-07-15 Doug Evans <dje@google.com>
2611
094b34ac
DE
2612 * dwarf2read.c (stmt_list_hash): New struct.
2613 (type_unit_group): Embed "per_cu" member, remove pointer.
2614 New union member "t", move member "tus" into it, all uses updated.
2615 New member "hash", replaces member "line_offset, all uses updated.
2616 (quick_file_names): Replace member "offset" with "hash", all uses
2617 updated.
2618 (hash_stmt_list_entry, eq_stmt_list_entry): New functions.
2619 (hash_file_name_entry, eq_file_name_entry): Call them.
2620 (hash_type_unit_group, eq_type_unit_group): Ditto.
2621 (dw2_get_cu, dw2_get_primary_cu): Replace assert with a better one.
2622 (dw2_get_file_names_reader): Fix file name table calculation for TUs.
2623 (dw2_get_file_names): Update.
2624 (create_type_unit_group): Replace "per_cu" arg with "cu".
2625 All callers updated. Fix "quick" (.gdb_index) handling.
2626 (get_type_unit_group): Replace "per_cu" arg with "cu".
2627 All callers updated.
2628 (build_type_unit_groups): Don't reset tu_stats.
2629
2908cac6
DE
2630 * symtab.c (filename_seen_cache): Delete members "tab_alloc_size",
2631 "tab_cur_size". Change member "tab" to be a htab_t.
2632 (create_filename_seen_cache): Update.
2633 (clear_filename_seen_cache, delete_filename_seen_cache): Update.
2634 (filename_seen): Update.
2635
a2b6eff5
DE
26362012-07-13 Doug Evans <dje@google.com>
2637
2638 * symtab.c (filename_seen): Update comment.
2639
4359dff1
JK
26402012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2641 Doug Evans <dje@google.com>
2642
2643 * buildsym.c (end_symtab_1): Split it to ...
2644 (end_symtab_get_static_block): ... this ...
2645 (end_symtab_from_static_block): ... and this function.
2646 (end_symtab, end_expandable_symtab): Call them.
2647 * buildsym.h (end_symtab_get_static_block)
2648 (end_symtab_from_static_block): New declarations.
2649 * dwarf2read.c (process_full_comp_unit): New variable static_block.
2650 Set its valid CU ranges.
2651
a24f71ab
JK
26522012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2653
2654 * dwarf2loc.c (disassemble_dwarf_expression): Handle
2655 DW_OP_GNU_parameter_ref.
2656
d76b7dbc
JK
26572012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2658
2659 * dwarf2read.c (read_call_site_scope): Do not gdb_assert for invalid
2660 read-in CALL_SITE_PARAMETER_PARAM_OFFSET.
2661
9fdc877b
DE
26622012-07-13 Doug Evans <dje@google.com>
2663
2664 * symtab.c (output_source_filename): Delete unnecessary forward decl.
2665 (filename_seen_cache): New struct.
2666 (INITIAL_FILENAME_SEEN_CACHE_SIZE): New macro.
2667 (create_filename_seen_cache): New function.
2668 (clear_filename_seen_cache, delete_filename_seen_cache): New functions.
2669 (filename_seen): Delete arg "first". New arg "cache". All callers
2670 updated.
2671 (output_source_filename_data): New struct.
2672 (output_source_filename): Delete arg "first". New arg "data".
2673 All callers updated.
2674 (sources_info): Delete local "first". New locals "data", "cleanups".
2675 Rewrite to use filename_seen_cache.
2676 (add_partial_filename_data): Delete member "first". New member
2677 "filename_seen_cache". All uses updated.
2678 (make_source_files_completion_list): Rewrite to use
2679 filename_seen_cache.
2680
f80c6f3f
DE
26812012-07-12 Doug Evans <dje@google.com>
2682
2683 * psymtab.c (map_symbol_filenames_psymtab): Skip shared psymtabs.
2684
0bfa869d
DE
26852012-07-10 Doug Evans <dje@google.com>
2686
f4dc4d17
DE
2687 PR gdb/13498
2688 * dwarf2read.c (dwarf2_per_objfile): New members n_type_unit_groups,
2689 all_type_unit_groups, type_unit_groups, tu_stats.
2690 (dwarf2_per_cu_data): Move "imported_symtabs" into new union "s".
2691 All uses updated. Add type_unit_group to union "s".
2692 (type_unit_group): New struct.
2693 (IS_TYPE_UNIT_GROUP): New macro.
2694 (abbrev_table): Delete unused member "section".
2695 (dw2_do_instantiate_symtab): Early exit if type_unit_group.
2696 (dw2_get_cu): Assert not used with type_unit_group.
2697 (dw2_get_primary_cu): New function.
2698 (dw2_build_type_unit_groups_reader): New function.
2699 (dw2_build_type_unit_groups): New function.
2700 (dw2_get_file_names): Assert not called on type units.
2701 (dw2_map_symtabs_matching_filename): Call dw2_build_type_unit_groups.
2702 Redo loop to iterate over type unit groups instead of type units.
2703 (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Ditto.
2704 (read_abbrev_offset): New function.
2705 (init_cutu_and_read_dies): New arg "abbrev_table". All callers
2706 updated.
2707 (create_partial_symtab): New function.
2708 (process_psymtab_comp_unit_reader): Assert not used with type units.
2709 Call create_partial_symtab.
2710 (process_psymtab_type_unit): Delete.
2711 (hash_type_unit_group, eq_type_unit_group): New functions.
2712 (allocate_type_unit_groups_table): New function.
2713 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB): New macro.
2714 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB_SIZE): New macro.
2715 (create_type_unit_group, get_type_unit_group): New functions.
2716 (tu_abbrev_offset): New struct.
2717 (sort_tu_by_abbrev_offset): New function.
2718 (add_type_unit_group_to_table): New function.
2719 (build_type_unit_groups): New function.
2720 (build_type_psymtabs_reader): New function.
2721 (build_type_psymtab_dependencies): New function.
2722 (build_type_psymtabs): Rewrite.
2723 (scan_partial_symbols): Flag an error if a DW_TAG_imported_unit
2724 is seen in a type unit.
2725 (process_queue): Move symtab expansion debugging printfs here.
2726 Call process_full_type_unit for type units.
2727 (compute_symtab_includes): Assert not called for type units.
2728 (process_cu_includes): Don't call compute_symtab_includes for
2729 type units.
2730 (process_full_type_unit): New function.
2731 (process_imported_unit_die): Flag an error if called for type units.
2732 (handle_DW_AT_stmt_list): Delete arg "want_line_info". All callers
2733 updated. Assert not called for type units.
2734 (read_file_scope): Call dwarf2_start_symtab.
2735 (setup_type_unit_groups): New function.
2736 (read_type_unit_scope): Rewrite.
2737 (abbrev_table_read_table): Initialize abbrev_table->offset.
2738 (abbrev_table_free_cleanup): New function.
2739 (dwarf2_start_symtab): New function.
2740 (load_full_type_unit): Assert not called for type unit groups.
6d30eef8
DE
2741 * buildsym.c (finish_block_internal): New arg "expandable".
2742 All callers updated.
2743 (start_symtab): Move most contents to ...
2744 (restart_symtab): ... here. New function.
2745 (reset_symtab_globals): New function.
2746 (end_symtab_1): Renamed from end_symtab. New arg "expandable".
2747 Call reset_symtab_globals.
2748 (end_symtab, end_expandable_symtab): New functions.
2749 (set_missing_symtab, augment_type_symtab): New functions.
2750 * buildsym.h (end_expandable_symtab): Declare.
2751 (augment_type_symtab, restart_symtab): Declare.
b4c41fc7
DE
2752 * psympriv.h (struct partial_symtab): New member "anonymous".
2753 * psymtab.c (partial_map_symtabs_matching_filename): Ignore
2754 anonymous psymtabs.
2755 (read_psymtabs_with_filename): Ditto.
2756 (map_symbol_filenames_psymtab, psymtab_to_fullname): Ditto.
2757 (expand_symtabs_matching_via_partial): Ditto.
2758 (dump_psymtab): Update.
0bfa869d
DE
2759 * dictionary.c (dict_add_pending): New function.
2760 * dictionary.h (dict_add_pending): Declare.
2761
45e58e77
DE
27622012-07-09 Doug Evans <dje@google.com>
2763
b74db436
DE
2764 * buildsym.c (start_subfile): Remove unnecessary check for
2765 name == NULL.
2766
fd55216c
DE
2767 * psymtab.c (allocate_psymtab): Use host_address_to_string.
2768
6721b2ec
DE
2769 * dwarf2read.c (load_full_type_unit): Simplify.
2770
b4dd5633
DE
2771 * dwarf2read.c (dwarf2_per_objfile): Change type of all_type_units
2772 to struct signatured_type **. All uses updated.
2773
45e58e77
DE
2774 * dwarf2read.c (dwarf2_attr_no_follow): Delete unused arg "cu".
2775 All callers updated.
2776
e314d629
TT
27772012-07-09 Tom Tromey <tromey@redhat.com>
2778
2779 * c-exp.y (check_parameter_typelist): New function.
2780 (parameter_typelist): Call it.
2781 * eval.c (make_params): Handle '(void)' case.
2782 * gdbtypes.c (lookup_function_type_with_arguments): Handle
2783 '(void)' case.
2784
aa7c7447
JK
27852012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2786
2787 * common/linux-ptrace.c: Include gdb_assert.h.
2788 <__i386__> (linux_ptrace_test_ret_to_nx_instr): New declaration.
2789 <__i386__>: Include sys/reg.h, sys/mman.h, signal.h, sys/wait.h and
2790 stdint.h.
2791 (linux_ptrace_test_ret_to_nx, linux_ptrace_init_warnings): New
2792 functions.
2793 * common/linux-ptrace.h (linux_ptrace_init_warnings): New declarations.
2794 * linux-nat.c (linux_child_post_attach)
2795 (linux_child_post_startup_inferior): Call linux_ptrace_init_warnings.
2796
889003ed
JK
27972012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2798
2799 * linux-thread-db.c (thread_db_find_new_threads_silently): Do not apply
2800 nptl <2.7 bug workaround for core files.
2801
da559b09
JK
28022012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2803
2804 * linux-nat.c (resume_lwp, linux_nat_resume): Remove LP->SIGINFO
2805 clearing.
2806 (save_siginfo): Remove.
2807 (stop_wait_callback, linux_nat_filter_event): Remove the save_siginfo
2808 call.
2809 (resume_stopped_resumed_lwps): Remove LP->SIGINFO clearing.
2810 (linux_nat_get_siginfo): Use PTRACE_GETSIGINFO.
2811 * linux-nat.h (struct lwp_info): Remove field siginfo.
2812
f865ee35
JK
28132012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2814
2815 Code cleanup for the next patch.
2816 * arm-linux-nat.c (arm_linux_stopped_data_address): Change variable
2817 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
2818 call for it.
2819 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
2820 (ia64_linux_stopped_data_address):
2821 * linux-nat.c (linux_nat_get_siginfo): Add parameter siginfo, change
2822 the return value.
2823 * linux-nat.h (linux_nat_get_siginfo): Likewise.
2824 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Change variable
2825 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
2826 call for it.
2827
76b83c51
JK
28282012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2829
2830 PR 14321
2831 * findcmd.c (parse_find_args): New variable pattern_buf_size_need.
2832 Increase buffer sizes to 2x we need, not just 2x of the previous size.
2833
a6fb9c08
TT
28342012-07-06 Tom Tromey <tromey@redhat.com>
2835
2836 * c-exp.y (DOTDOTDOT): New token.
2837 (func_mod, exp): Use parameter_typelist.
2838 (parameter_typelist): New production.
2839 (tokentab3): Add "..." token.
2840 * eval.c (make_params): Handle varargs.
2841 * gdbtypes.c (lookup_function_type_with_arguments): Handle
2842 varargs.
2843
71918a86
TT
28442012-07-06 Tom Tromey <tromey@redhat.com>
2845
2846 PR exp/9608:
2847 * c-exp.y (%union) <tvec>: Change type.
2848 (func_mod): Now uses <tvec> type.
2849 (exp): Update for tvec change.
2850 (direct_abs_decl): Push the typelist.
2851 (func_mod): Return a typelist.
2852 (nonempty_typelist): Update for tvec change.
2853 * gdbtypes.c (lookup_function_type_with_arguments): New function.
2854 * gdbtypes.h (lookup_function_type_with_arguments): Declare.
2855 * parse.c (pop_type_list): New function.
2856 (push_typelist): New function.
2857 (follow_types): Handle tp_function_with_arguments.
2858 * parser-defs.h (type_ptr): New typedef. Define a VEC.
2859 (enum type_pieces) <tp_function_with_arguments>: New constant.
2860 (union type_stack_elt) <typelist_val>: New field.
2861 (push_typelist): Declare.
2862
fcde5961
TT
28632012-07-06 Tom Tromey <tromey@redhat.com>
2864
2865 * c-exp.y (%union) <type_stack>: New field.
2866 (abs_decl, direct_abs_decl): Use <type_stack> type. Update.
2867 (ptr_operator_ts): New production.
2868 (ptype): Update.
2869 * parse.c (type_stack_reserve): New function.
2870 (check_type_stack_depth): Use it.
2871 (pop_type_stack, append_type_stack, push_type_stack)
2872 (get_type_stack, type_stack_cleanup): New functions.
2873 (follow_types): Handle tp_type_stack.
2874 (_initialize_parse): Simplify initialization.
2875 * parser-defs.h (enum type_pieces) <tp_type_stack>: New
2876 constant.
2877 (union type_stack_elt) <stack_val>: New field.
2878 (get_type_stack, append_type_stack, push_type_stack)
2879 (type_stack_cleanup): Declare.
2880
1a7d0ce4
TT
28812012-07-06 Tom Tromey <tromey@redhat.com>
2882
2883 * parser-defs.h (type_stack, type_stack_size, type_stack_depth):
2884 Remove.
2885 (struct type_stack): New.
2886 * parse.c (type_stack, type_stack_size, type_stack_depth):
2887 Remove.
2888 (type_stack): New global.
2889 (parse_exp_in_context, check_type_stack_depth)
2890 (insert_into_type_stack, insert_type, push_type, push_type_int)
2891 (insert_type_address_space, pop_type, pop_type_int)
2892 (_initialize_parse): Update.
2893
16d01384
TT
28942012-07-06 Tom Tromey <tromey@redhat.com>
2895
2896 * c-exp.y (func_mod, direct_abs_decl, abs_decl, ptr_operator):
2897 Remove %type.
2898
9bfc60bf
SP
28992012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
2900
2901 * c-lang.c (c_printstr): Remove ununsed variable WIDTH.
2902
d5161074
SP
29032012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
2904 Jan Kratochvil <jan.kratochvil@redhat.com>
2905
2906 * cp-valprint.c (cp_print_value): Replace potentially unsafe
2907 alloca with xmalloc/xfree.
2908
a74bc576
SP
29092012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
2910
2911 * MAINTAINERS (Write After Approval): Add myself to the list.
2912
667e0a4b
DE
29132012-07-05 Doug Evans <dje@google.com>
2914
2915 * dwarf2read.c (dw2_expand_symtabs_matching): Fix typo.
2916
34b536a8
HZ
29172012-07-05 Hui Zhu <hui_zhu@mentor.com>
2918
2919 * ax-gdb.c (cli/cli-utils.h): New include.
2920 (linespec.h): Ditto.
2921 (agent_eval_command_one): New function.
2922 (agent_command_1): Ditto.
2923 (agent_command): Call function agent_command_1.
2924 (agent_eval_command): Ditto.
2925 (_initialize_ax_gdb): Change help for "maint agent"
2926 and "maint agent-eval".
2927
e6f0bce7
HZ
29282012-07-05 Hui Zhu <hui_zhu@mentor.com>
2929
2930 * breakpoint.c (check_for_argument): Move to file cli/cli-utils.c.
2931 * cli/cli-utils.c (check_for_argument): New function.
2932 * cli/cli-utils.h (check_for_argument): Ditto.
2933
1b3371b1
L
29342012-07-04 H.J. Lu <hongjiu.lu@intel.com>
2935
2936 * NEWS: Mention x32 ABI support.
2937
23e2d720
L
29382012-07-04 H.J. Lu <hongjiu.lu@intel.com>
2939
2940 * amd64-tdep.c (amd64_x32_init_abi): Set sp_regnum_from_eax to
2941 AMD64_RSP_REGNUM and pc_regnum_from_eax to AMD64_RIP_REGNUM.
2942
2943 * i386-tdep.c (i386_gdbarch_init): Initialize sp_regnum_from_eax
2944 and pc_regnum_from_eax to -1. Update SP regnum from
2945 sp_regnum_from_eax and PC regnum from pc_regnum_from_eax if
2946 needed.
2947
2948 * i386-tdep.h (gdbarch_tdep): Add sp_regnum_from_eax and
2949 pc_regnum_from_eax.
2950
836bf454
JK
29512012-07-03 Jan Kratochvil <jan.kratochvil@redhat.com>
2952
2953 Fix 'warning: parameter has incomplete type' with gcc-3.4.6.
2954 * dwarf2expr.h: Include gdbtypes.h.
2955 (enum call_site_parameter_kind, union call_site_parameter_u): Remove
2956 these forward declarations.
2957 (cu_offset, sect_offset): Move these ...
2958 * gdbtypes.h: Remove include dwarf2expr.h.
2959 (cu_offset, sect_offset): ... here.
2960
1e55e04f
L
29612012-07-03 H.J. Lu <hongjiu.lu@intel.com>
2962
2963 * amd64-linux-tdep.c (linux_sigtramp_code): Renamed to ...
2964 (amd64_linux_sigtramp_code): This.
2965 (amd64_x32_linux_sigtramp_code): New.
2966 (LINUX_SIGTRAMP_LEN): Updated.
2967 (amd64_linux_sigtramp_start): Check x32 sigtramp.
2968
7d0e21ad
JK
29692012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2970
2971 * linux-thread-db.c (thread_db_new_objfile): Fix comment typos.
2972
8775fd2d
JK
29732012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2974
2975 * config.in: Regenerate.
2976 * configure: Regenerate.
2977 * configure.ac: Remove check for gnu/libc-version.h.
2978 * linux-thread-db.c <HAVE_GNU_LIBC_VERSION_H>: Remove include of
2979 gnu/libc-version.h.
2980 (enable_thread_event_reporting) <HAVE_GNU_LIBC_VERSION_H>: Remove
2981 variables libc_version, libc_major and libc_minor. Replace sscanf by
2982 inferior_has_bug. Extend the comment.
2983
fcb44371
JK
29842012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2985
2986 * linux-thread-db.c (inferior_has_bug): New function.
2987 (thread_db_find_new_threads_silently): Return boolean as checked by
2988 inferior_has_bug, describe it in the comments.
2989 (try_thread_db_load_1): Move call to thread_db_find_new_threads_silently
2990 earlier. Abort the initialization if it returned non-zero.
7d0e21ad 2991 (thread_db_new_objfile): Exclude debug files.
fcb44371
JK
2992 (thread_db_find_new_threads_2): Preinitialize ERR. Check errors also
2993 if UNTIL_NO_NEW,
2994
09406207
DE
29952012-07-02 Doug Evans <dje@google.com>
2996
0907af0c
DE
2997 * dwarf2read.c (maybe_queue_comp_unit): Move definition next to others
2998 related to queue management.
2999
09406207
DE
3000 * dwarf2read.c (create_debug_types_hash_table): Use "debug dwarf2-read"
3001 instead of "debug dwarf2-die" in debugging printfs.
3002 (create_debug_info_hash_table_reader): Ditto.
3003 (create_debug_info_hash_table): Ditto.
3004 (init_dwo_file): Ditto.
3005 (init_cutu_and_read_dies): Add debugging printf.
3006 (init_cutu_and_read_dies_no_follow): Ditto.
3007 (process_psymtab_comp_unit_reader): Ditto.
3008
d3ce09f5
SS
30092012-07-02 Stan Shebs <stan@codesourcery.com>
3010
3011 Add target-side support for dynamic printf.
3012 * NEWS: Mention the additional style.
3013 * breakpoint.h (struct bp_target_info): New fields tcommands, persist.
3014 (struct bp_location): New field cmd_bytecode.
3015 * breakpoint.c: Include format.h.
3016 (disconnected_dprintf): New global.
3017 (parse_cmd_to_aexpr): New function.
3018 (build_target_command_list): New function.
3019 (insert_bp_location): Call it.
3020 (remove_breakpoints_pid): Skip dprintf breakpoints.
3021 (print_one_breakpoint_location): Ditto.
3022 (dprintf_style_agent): New global.
3023 (dprintf_style_enums): Add dprintf_style_agent.
3024 (update_dprintf_command_list): Add agent case.
3025 (agent_printf_command): New function.
3026 (_initialize_breakpoint): Add new commands.
3027 * common/ax.def (printf): New bytecode.
3028 * ax.h (ax_string): Declare.
3029 * ax-gdb.h (gen_printf): Declare.
3030 * ax-gdb.c: Include cli-utils.h, format.h.
3031 (gen_printf): New function.
3032 (maint_agent_print_command): New function.
3033 (_initialize_ax_gdb): Add maint agent-printf command.
3034 * ax-general.c (ax_string): New function.
3035 (ax_print): Add printf disassembly.
3036 * Makefile.in (SFILES): Add format.c
3037 (COMMON_OBS): Add format.o.
3038 * common/format.h: New file.
3039 * common/format.c: New file.
3040 * printcmd.c: Include format.h.
3041 (ui_printf): Call parse_format_string.
3042 * remote.c (remote_state): New field breakpoint_commands.
3043 (PACKET_BreakpointCommands): New enum.
3044 (remote_breakpoint_commands_feature): New function.
3045 (remote_protocol_features): Add new BreakpointCommands entry.
3046 (remote_can_run_breakpoint_commands): New function.
3047 (remote_add_target_side_commands): New function.
3048 (remote_insert_breakpoint): Call it.
3049 (remote_insert_hw_breakpoint): Ditto.
3050 (_initialize_remote): Add new packet configuration for
3051 target-side breakpoint commands.
3052 * target.h (struct target_ops): New field
3053 to_can_run_breakpoint_commands.
3054 (target_can_run_breakpoint_commands): New macro.
3055 * target.c (update_current_target): Handle
3056 to_can_run_breakpoint_commands.
3057
2d7b58e8
JK
30582012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3059
3060 Execute -ix and -iex only after system and user gdbinit files.
3061 * main.c (captured_main): Move CMDARG_INIT_FILE and CMDARG_INIT_COMMAND
3062 processing down after gdbinit files.
3063
8690e634
JK
30642012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3065
3066 Add fnmatch-gnu module.
3067 * gnulib/Makefile.in (aclocal_m4_deps): Add new files and remove one.
3068 * gnulib/configure.ac (AC_INIT): Use now import/memmem.c.
3069 * gnulib/aclocal.m4: Regenerate.
3070 * gnulib/config.in: Regenerate.
3071 * gnulib/configure: Regenerate.
3072 * gnulib/import/dummy.c: Remove.
3073 * gnulib/import/Makefile.am: Regenerate.
3074 * gnulib/import/Makefile.in: Likewise.
3075 * gnulib/import/m4/gnulib-cache.m4: Likewise.
3076 * gnulib/import/m4/gnulib-comp.m4: Likewise.
3077 * gnulib/import/alloca.c: New file.
3078 * gnulib/import/alloca.in.h: Likewise.
3079 * gnulib/import/config.charset: Likewise.
3080 * gnulib/import/fnmatch.c: Likewise.
3081 * gnulib/import/fnmatch.in.h: Likewise.
3082 * gnulib/import/fnmatch_loop.c: Likewise.
3083 * gnulib/import/localcharset.c: Likewise.
3084 * gnulib/import/localcharset.h: Likewise.
3085 * gnulib/import/m4/alloca.m4: Likewise.
3086 * gnulib/import/m4/codeset.m4: Likewise.
3087 * gnulib/import/m4/configmake.m4: Likewise.
3088 * gnulib/import/m4/fcntl-o.m4: Likewise.
3089 * gnulib/import/m4/fnmatch.m4: Likewise.
3090 * gnulib/import/m4/glibc21.m4: Likewise.
3091 * gnulib/import/m4/localcharset.m4: Likewise.
3092 * gnulib/import/m4/locale-fr.m4: Likewise.
3093 * gnulib/import/m4/locale-ja.m4: Likewise.
3094 * gnulib/import/m4/locale-zh.m4: Likewise.
3095 * gnulib/import/m4/mbrtowc.m4: Likewise.
3096 * gnulib/import/m4/mbsinit.m4: Likewise.
3097 * gnulib/import/m4/mbsrtowcs.m4: Likewise.
3098 * gnulib/import/m4/mbstate_t.m4: Likewise.
3099 * gnulib/import/m4/stdbool.m4: Likewise.
3100 * gnulib/import/m4/wchar_h.m4: Likewise.
3101 * gnulib/import/m4/wctype_h.m4: Likewise.
3102 * gnulib/import/m4/wint_t.m4: Likewise.
3103 * gnulib/import/mbrtowc.c: Likewise.
3104 * gnulib/import/mbsinit.c: Likewise.
3105 * gnulib/import/mbsrtowcs-impl.h: Likewise.
3106 * gnulib/import/mbsrtowcs-state.c: Likewise.
3107 * gnulib/import/mbsrtowcs.c: Likewise.
3108 * gnulib/import/ref-add.sin: Likewise.
3109 * gnulib/import/ref-del.sin: Likewise.
3110 * gnulib/import/stdbool.in.h: Likewise.
3111 * gnulib/import/streq.h: Likewise.
3112 * gnulib/import/strnlen1.c: Likewise.
3113 * gnulib/import/strnlen1.h: Likewise.
3114 * gnulib/import/verify.h: Likewise.
3115 * gnulib/import/wchar.in.h: Likewise.
3116 * gnulib/import/wctype.in.h: Likewise.
3117
202cbf1c
JK
31182012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3119
3120 Support shell wildcards for 'set auto-load safe-path'.
3121 * auto-load.c: Include fnmatch.h.
3122 (filename_is_in_dir): Rename to ...
3123 (filename_is_in_pattern_1, filename_is_in_pattern): ... here and split
3124 it. Update function comment. Rename dir_len to pattern_len. New
3125 variables filename_len, pattern and filename. Add more DEBUG_AUTO_LOAD
3126 messages. Use gdb_filename_fnmatch.
3127 (filename_is_in_auto_load_safe_path_vec): Rename variable dir to
3128 pattern.
3129 (_initialize_auto_load): Extend the "set auto-load safe-path" help text.
3130 * defs.h (gdb_filename_fnmatch): New declaration.
3131 * utils.c: Include fnmatch.h.
3132 (gdb_filename_fnmatch): New function.
3133
fb7b5af4
SDJ
31342012-07-02 Sergio Durigan Junior <sergiodj@redhat.com>
3135
3136 * breakpoint.c (BREAK_ARGS_HELP): Include help message for the new
3137 `-probe' and `-probe-stap' options.
3138
72d0e2c5
YQ
31392012-07-01 Yao Qi <yao@codesourcery.com>
3140
3141 * breakpoint.c: Removed always_inserted_auto, always_inserted_on,
3142 always_inserted_off, and always_inserted_enums.
3143 Change always_inserted_mode's type to 'enum auto_boolean'.
3144 (show_always_inserted_mode, breakpoint_always_inserted_mode): Update
3145 callers.
3146 (_initialize_breakpoint): Call add_setshow_auto_boolean_cmd instead
3147 of add_setshow_enum_cmd.
3148 * infrun.c: Remove can_use_displaced_stepping_auto,
3149 can_use_displaced_stepping_on, can_use_displaced_stepping_off, and
3150 can_use_displaced_stepping_enum.
3151 Change can_use_displaced_stepping's type to 'enum auto_boolean'.
3152 (show_can_use_displaced_stepping, use_displaced_stepping): Update callers.
3153 (_initialize_infrun): Call add_setshow_auto_boolean_cmd instead of
3154 add_setshow_enum_cmd.
3155
42e7ad6c
DE
31562012-06-30 Doug Evans <dje@google.com>
3157
3158 * dwarf2read.c (signatured_type): Make "per_cu" member first.
3159 (init_cutu_and_read_dies): Handle rereading a DWO CU while it's
3160 currently being read. Propagate DW_AT_comp_dir to DWO DIE.
3161
39cf75f7
DE
31622012-06-29 Doug Evans <dje@google.com>
3163
3164 * linespec.c: #include "stack.h".
3165 (decode_line_with_current_source): Moved here from symtab.c and
3166 renamed from decode_line_spec. All callers updated.
3167 (decode_line_with_last_displayed): Moved here from breakpoint.c and
3168 renamed from decode_line_spec_1. All callers updated.
3169 * linespec.h (decode_line_with_current_source): Move declaration here
3170 from symtab.h and renamed from decode_line_spec.
3171 (decode_line_with_last_displayed): Move declaration here from symtab.h
3172 and renamed from decode_line_spec_1.
3173 * macrocmd.c: #include "linespec.h".
3174 * symtab.c: Remove #include "linespec.h".
3175
433df2d4
DE
31762012-06-28 Doug Evans <dje@google.com>
3177
1ce1cefd
DE
3178 * dwarf2read.c (get_cu_length): New function.
3179 (offset_in_cu_p, error_check_comp_unit_head): Call it.
3180 (create_debug_types_hash_table): Ditto.
3181 (init_cutu_and_read_dies): Ditto.
3182 (init_cutu_and_read_dies_no_follow): Ditto.
3183
3b80fe9b
DE
3184 * dwarf2read.c (dwarf2_find_base_address): Move definition.
3185
433df2d4
DE
3186 * dwarf2read.c (ABBREV_HASH_SIZE): Remove enclosing #ifndef/#endif.
3187 (struct abbrev_table): Define.
3188 (dwarf2_cu): Replace members dwarf2_abbrevs, abbrev_obstack with
3189 abbrev_table.
3190 (init_cutu_and_read_dies): Update.
3191 (abbrev_table_alloc_abbrev): New function. Replaces
3192 dwarf_alloc_abbrev. All callers updated.
3193 (abbrev_table_add_abbrev): New function.
3194 (abbrev_table_lookup_abbrev): New function. Replaces
3195 dwarf2_lookup_abbrev. All callers updated.
3196 (abbrev_table_read_table): New function. Contents moved here from
3197 dwarf2_read_abbrevs.
3198 (dwarf2_read_abbrevs): Call it.
3199 (abbrev_table_free): New function.
3200 (dwarf2_free_abbrev_table): Call it.
3201
71caed83
SS
32022012-06-28 Stan Shebs <stan@codesourcery.com>
3203
3204 * osdata.c (info_osdata_command): Filter out "Title" columns
3205 from non-MI uses.
3206 * common/linux-osdata.c (struct osdata_type): Add title field.
3207 (osdata_table): Add titles to each entry.
3208 (linux_command_xfer_osdata): Add a column for title data.
3209
37ce89eb
SS
32102012-06-28 Stan Shebs <stan@codesourcery.com>
3211
3212 Make logging work for MI.
3213 * NEWS: Mention it.
3214 * interps.h (interp_set_logging_ftype): New typedef.
3215 (struct interp_procs): New field set_logging_proc.
3216 (current_interp_set_logging): Declare.
3217 * interps.c (current_interp_set_logging): New function.
3218 * cli/cli-logging.c: Include interps.h.
3219 (set_logging_redirect): Call current_interp_set_logging.
3220 (pop_output_files): Ditto.
3221 (handle_redirections): Ditto, plus skip ui-out redirect if MI.
3222 * mi/mi-console.h (mi_console_set_raw): Declare.
3223 * mi/mi-console.c (mi_console_set_raw): New function.
3224 * mi/mi-interp.c (saved_raw_stdout): New global.
3225 (mi_set_logging): New function.
3226 (_initialize_mi_interp): Add it to interp procs.
3227
659c9f3a
DE
32282012-06-28 Doug Evans <dje@google.com>
3229
a743abeb
DE
3230 * symtab.c (lookup_symbol_aux_objfile): Use
3231 ALL_OBJFILE_PRIMARY_SYMTABS.
3232
659c9f3a
DE
3233 * gdbtypes.c (lookup_typename): Rename local variable "tmp" to "type".
3234
da2d6d3d
JK
32352012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3236
3237 * common/buffer.c: Include inttypes.h and stdint.h.
3238 (buffer_xml_printf): Use PRId64, PRIu64, PRIx64 and PRIo64.
3239
e5ef252a
PA
32402012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3241 Pedro Alves <palves@redhat.com>
3242
3243 * gdbthread.h (ALL_THREADS): New macro.
3244 (thread_list): Declare.
3245 * infrun.c (handle_inferior_event) <spurious signal>: Don't keep
3246 going, but instead fall through to the stepping handling.
3247 * linux-nat.c (resume_lwp): New parameter 'signo'. Resume with
3248 the passed in signal. Adjust debug output.
3249 (resume_callback): Rename to ...
3250 (linux_nat_resume_callback): ... this. Pass the thread's last
3251 stop signal, if in "pass" state.
3252 (linux_nat_resume): Adjust to rename.
3253 (stop_wait_callback): New assertion. Don't respawn signals;
3254 instead let the LWP remain with SIGNALLED set.
3255 (linux_nat_wait_1): Remove flushing of pending SIGSTOPs.
3256 * remote.c (append_pending_thread_resumptions): New.
3257 (remote_vcont_resume): Call it.
3258 * target.h (target_resume): Extend comment.
3259
1d7975eb
IS
32602012-06-28 Iain Sandoe <iain@codesourcery.com>
3261
3262 * auxv.c (fprint_target_auxv): Handle extended cache data tags.
3263
2e3cf129
DE
32642012-06-27 Doug Evans <dje@google.com>
3265
3266 * dwarf2read.c (dwarf2_cu): Add ranges_base.
3267 Delete have_addr_base, unused. All uses updated.
3268 (init_cutu_and_read_dies): Process DW_AT_GNU_ranges_base.
3269 (dwarf2_get_pc_bounds): Add ranges_base.
3270 (dwarf2_record_block_ranges): Ditto.
3271
1bb9788d
TT
32722012-06-27 Tom Tromey <tromey@redhat.com>
3273
3274 PR macros/7961:
3275 * varobj.c (varobj_create): Update.
3276 (varobj_set_value): Update.
3277 * tracepoint.c (validate_actionline): Update.
3278 (encode_actions_1): Update.
3279 * parse.c (parse_exp_1): Add 'pc' argument.
3280 (parse_exp_in_context): Add 'pc' argument. Change how
3281 expression_context_pc is set.
3282 (parse_expression): Update.
3283 (parse_field_expression): Update.
3284 * expression.h (parse_exp_1): Update.
3285 * eval.c (parse_to_comma_and_eval): Update.
3286 * breakpoint.c (set_breakpoint_condition): Update.
3287 (update_watchpoint): Update.
3288 (init_breakpoint_sal): Update
3289 (find_condition_and_thread): Update.
3290 (watch_command_1): Update.
3291 (update_breakpoint_locations): Update.
3292 * ada-lang.c (ada_read_renaming_var_value): Update.
3293 (create_excep_cond_exprs): Update.
3294
0bc3a05c
DE
32952012-06-27 Doug Evans <dje@google.com>
3296
3297 * dwarf2read.c (per_cu_header_read_in): Simplify, and handle
3298 type units.
3299
4bdcc0c1
DE
33002012-06-26 Doug Evans <dje@google.com>
3301
3302 * dwarf2read.c (read_and_check_comp_unit_head): Delete unnecessary
3303 prototype.
3304 (error_check_comp_unit_head): New arg abbrev_section. All callers
3305 updated.
3306 (read_and_check_comp_unit_head): Ditto.
3307 (read_and_check_type_unit_head): Ditto.
3308
ee0bf529
SCR
33092012-06-26 Siva Chandra Reddy <sivachandra@google.com>
3310
3311 New attribute 'last' for gdb.Symtab_and_line.
3312 * NEWS (Python Scripting): Add entry about the new attribute.
3313 * python/py-symtab.c (salpy_get_last): New function which
3314 implements the get method for the 'last' attribute of
3315 gdb.Symtab_and_line.
3316 (sal_object_getset): Add entry for the 'last' attribute.
3317
1c658ad5
DE
33182012-06-26 Doug Evans <dje@google.com>
3319
09262596
DE
3320 * dwarf2read.c (dwo_section_names): Add macinfo_dwo, macro_dwo.
3321 (dwo_sections): Add macinfo, macro.
3322 (dwarf2_locate_dwo_sections): Watch for macro sections.
3323 (dwarf_decode_macros): Remove args lh, abfd, section, section_name.
3324 All callers updated. Handle DWO files.
3325
45cfd468
DE
3326 * NEWS: Mention new options "set debug dwarf2-read" and
3327 "set debug symtab-create".
3328 * dwarf2read.c (dwarf2_read_debug): New static global.
3329 (dwarf2_build_psymtabs_hard): Add debugging printfs.
3330 (process_queue): Ditto.
3331 (process_full_comp_unit): Ditto.
3332 (_initialize_dwarf2_read): Add new option "set debug dwarf2-read".
3333 * elfread.c (elf_symfile_read): Add debugging printf.
3334 * minsyms.c (install_minimal_symbols): Ditto.
3335 * psymtab.c (allocate_psymtab): Ditto.
3336 * symfile.c (allocate_symtab): Ditto.
3337 * symtab.c (symtab_create_debug): New global.
3338 (_initialize_symtab): Add new option "set debug symtab-create".
3339 * symtab.h (symtab_create_debug): Declare.
3340
1c658ad5
DE
3341 * dwarf2read.c (lookup_dwo_comp_unit): Enhance comment.
3342 (lookup_dwo_type_unit): Ditto.
3343
6fea9e18
L
33442012-06-26 Roland McGrath <roland@hack.frob.com>
3345 H.J. Lu <hongjiu.lu@intel.com>
3346
3347 * amd64-linux-nat.c: Include <sys/user.h>.
3348 (ps_get_thread_area): Use PTRACE_PEEKUSER to get fs_base/gs_base
3349 if HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE or
3350 HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE is defined.
3351
3352 * configure.ac: Check if the fs_base and gs_base members of
3353 `struct user_regs_struct' exist.
3354 * config.in: Regenerated.
3355 * configure: Likewise.
3356
adb4fe3b
ME
33572012-06-25 Michael Eager <eager@eagercon.com>
3358
3359 PR python/14291
f782ad9b 3360 * python/python.c (gdbpy_write): Check for interrupted output.
adb4fe3b 3361
fc51cce1
MGD
33622012-06-25 Greta Yorsh <greta.yorsh@arm.com>
3363
3364 * arm-tdep.c (arm_in_function_epilogue_p): Recognize POP with a single
3365 register as a stack alignment in ARM mode.
3366
40a73391
JK
33672012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3368
3369 Update gnulib to GIT commit a39f53ccb70a613e647e1019fb4c63645220267e.
3370 * gnulib/config.in: Regenerate.
3371 * gnulib/configure: Likewise.
3372 * gnulib/import/m4/extensions.m4: Update it.
3373 * gnulib/import/m4/gnulib-common.m4: Likewise.
3374 * gnulib/import/m4/memmem.m4: Likewise.
3375 * gnulib/import/m4/mmap-anon.m4: Likewise.
3376 * gnulib/import/m4/multiarch.m4: Likewise.
3377 * gnulib/import/stdint.in.h: Likewise.
3378
972daa01
YQ
33792012-06-24 Yao Qi <yao@codesourcery.com>
3380
3381 * corefile.c (write_memory_with_notification): New.
3382 * gdbcore.h: Declare write_memory_with_notification.
3383 * ada-lang.c (ada_value_assign): Replace 'write_memory' and
3384 'observer_notify_memory_changed' with 'write_memory_with_notification'.
3385 * valops.c (value_assign): Likewise.
3386 * python/py-inferior.c (infpy_write_memory): Call
3387 'write_memory_with_notification'.
3388
8d6e0714
JK
33892012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3390
3391 * cc-with-index.sh: Use also -ex "set auto-load no".
3392
156942c7
DE
33932012-06-23 Doug Evans <dje@google.com>
3394
3395 PR 14125
3396 * NEWS: Document additions to .gdb_index.
3397 * dwarf2read.c: #include "gdb/gdb-index.h".
3398 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): New macro.
3399 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): New macro.
3400 (DW2_GDB_INDEX_CU_SET_VALUE): New macro.
3401 (dwarf2_read_index): Recognize version 7.
3402 (dw2_do_expand_symtabs_matching): New args want_specific_block,
3403 block_kind, domain): All callers updated.
3404 (dw2_find_symbol_file): Handle new index CU values.
3405 (dw2_expand_symtabs_matching): Match symbol kind if requested.
3406 (add_index_entry): New args is_static, kind. All callers updated.
3407 (offset_type_compare, uniquify_cu_indices): New functions
3408 (symbol_kind): New function.
3409 (write_psymtabs_to_index): Remove duplicate CU values.
3410 (write_psymtabs_to_index): Write .gdb_index version 7.
3411
352b3eda
JB
34122012-06-22 Joel Brobecker <brobecker@adacore.com>
3413
3414 * configure.ac (build_warnings): Add -Wdeclaration-after-statement.
3415 * configure: Regenerate.
3416
2678e2af
YQ
34172012-06-20 Yao Qi <yao@codesourcery.com>
3418
3419 * python/py-inferior.c: Update comments of infpy_read_memory
3420 and infpy_write_memory.
3421
95c391b6
TT
34222012-06-19 Tom Tromey <tromey@redhat.com>
3423
3424 PR exp/9514:
3425 * parser-defs.h (insert_type, insert_type_address_space): Declare.
3426 (push_type_address_space): Remove.
3427 * parse.c (insert_into_type_stack): New function.
3428 (insert_type): Likewise.
3429 (insert_type_address_space): Rename from push_type_address_space.
3430 Insert tp_space_identifier.
3431 * c-exp.y (ptr_operator): New production.
3432 (abs_decl): Use ptr_operator.
3433 (space_identifier): Call insert_type_address_space.
3434 (ptype): Don't use const_or_volatile_or_space_identifier.
3435 (const_or_volatile_noopt): Call insert_type.
3436 (conversion_type_id, conversion_declarator): New productions.
3437 (operator): Use conversion_type_id.
3438
6ac9ef80
DE
34392012-06-18 Doug Evans <dje@google.com>
3440
422d65e7
DE
3441 * symtab.h (minimal_symbol): New member created_by_gdb.
3442 * elfread.c (elf_symtab_read): Set created_by_gdb for @plt minsym
3443 created by gdb.
3444 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): New function.
3445 (search_symbols): Call it instead of lookup_symbol.
3446 Skip symbols created by gdb. Only scan minsyms if nfiles == 0.
3447
49f6c839
DE
3448 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_const_index.
3449 Adjust address for DW_OP_GNU_addr_index.
3450 * dwarf2expr.h (dwarf_expr_context): Update comment.
3451 * dwarf2loc.c (locexpr_describe_location_piece): New arg per_cu,
3452 all callers updated. Handle TLS vars described with
3453 DW_OP_GNU_const_index.
3454 (disassemble_dwarf_expression): Handle DW_OP_GNU_addr_index
3455 and DW_OP_GNU_const_index.
3456 * dwarf2read.c (decode_locdesc): Handle DW_OP_GNU_addr_index.
3457
6ac9ef80
DE
3458 * block.c (find_block_in_blockvector): Make explicit the fact that we
3459 ignore GLOBAL_BLOCK.
3460
4cd18215
TT
34612012-06-18 Tom Tromey <tromey@redhat.com>
3462
3463 * c-exp.y (operator): Remove trailing space after "delete" and
3464 "delete[]".
3465
a9b8d892
JK
34662012-06-18 Mark Kettenis <kettenis@gnu.org>
3467 Jan Kratochvil <jan.kratochvil@redhat.com>
3468
3469 Switch i386 and derived targets to ON_STACK.
3470 * amd64-dicos-tdep.c (amd64_dicos_push_dummy_code): Remove.
3471 (amd64_dicos_init_abi): Remove its installment.
3472 * dicos-tdep.c (dicos_init_abi): Remove the
3473 set_gdbarch_call_dummy_location call. Update the comment here.
3474 * i386-dicos-tdep.c (i386_dicos_push_dummy_code): Remove.
3475 (i386_dicos_init_abi): Remove its installment.
3476 * i386-tdep.c (i386_push_dummy_code): New function.
3477 (i386_gdbarch_init): Call set_gdbarch_call_dummy_location, install
3478 i386_push_dummy_code.
3479
e2e4d78b
JK
34802012-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
3481
3482 Remove stale dummy frames.
3483 * breakpoint.c: Include dummy-frame.h.
3484 (longjmp_breakpoint_ops): New variable.
3485 (update_breakpoints_after_exec, breakpoint_init_inferior): Delete also
3486 bp_longjmp_call_dummy.
3487 (bpstat_what, bptype_string, print_one_breakpoint_location)
3488 (init_bp_location): Support bp_longjmp_call_dummy.
3489 (set_longjmp_breakpoint): Use longjmp_breakpoint_ops. Comment why.
3490 (set_longjmp_breakpoint_for_call_dummy)
3491 (check_longjmp_breakpoint_for_call_dummy, longjmp_bkpt_dtor): New
3492 functions.
3493 (initialize_breakpoint_ops): Initialize longjmp_breakpoint_ops.
3494 * breakpoint.h (enum bptype): New item bp_longjmp_call_dummy. Delete
3495 FIXME comment and extend the other comment for bp_call_dummy.
3496 (set_longjmp_breakpoint_for_call_dummy)
3497 (check_longjmp_breakpoint_for_call_dummy): New declarations.
3498 * dummy-frame.c: Include gdbthread.h.
3499 (pop_dummy_frame_bpt): New function.
3500 (pop_dummy_frame): Call pop_dummy_frame_bpt.
3501 (dummy_frame_discard): New function.
3502 (cleanup_dummy_frames): Update the comment about longjmps.
3503 * dummy-frame.h (dummy_frame_discard): New declaration.
3504 * gdbthread.h (struct thread_info): Extend initiating_frame comment.
3505 * infcall.c (call_function_by_hand): New variable longjmp_b. Call
3506 set_longjmp_breakpoint_for_call_dummy. Chain its breakpoints with BPT.
3507 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>:
3508 Add case 4 comment. Call check_longjmp_breakpoint_for_call_dummy and
3509 keep_going if IS_LONGJMP and there is no other reason to stop.
3510
09d5912c
TT
35112012-06-18 Greta Yorsh <Greta.Yorsh@arm.com>
3512
3513 * remote-sim.c (sim_command_completer): Initialize
3514 variable 'result'.
3515
1788b2d3
JK
35162012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3517
3518 * dwarf2expr.c (execute_stack_op): Support DW_OP_GNU_parameter_ref.
3519 * dwarf2loc.c (call_site_parameter_matches): Support
3520 CALL_SITE_PARAMETER_PARAM_OFFSET.
3521 (needs_dwarf_reg_entry_value): Push stub value.
3522 * dwarf2read.c (read_call_site_scope): New variable origin. Support
3523 CALL_SITE_PARAMETER_PARAM_OFFSET and its DW_AT_abstract_origin.
3524 * gdbtypes.h (enum call_site_parameter_kind): New item
3525 CALL_SITE_PARAMETER_PARAM_OFFSET.
3526 (struct call_site.parameter.u): New field param_offset.
3527
24c5c679
JK
35282012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3529
3530 Code cleanup: Generalize call_site.parameter key.
3531 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_entry_value>: Remove
3532 variable dwarf_reg. New variable kind_u. Update parameters to
3533 push_dwarf_reg_entry_value.
3534 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
3535 * dwarf2expr.h (enum call_site_parameter_kind)
3536 (union call_site_parameter_u): Forward declarations.
3537 (struct dwarf_expr_context_funcs): Update parameters and their
3538 description for push_dwarf_reg_entry_value.
3539 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
3540 * dwarf2loc.c (call_site_parameter_matches): New function.
3541 (dwarf_expr_reg_to_entry_parameter): Update parameters and their
3542 description. Use call_site_parameter_matches.
3543 (dwarf_expr_push_dwarf_reg_entry_value, value_of_dwarf_reg_entry):
3544 Update parameters and their description.
3545 (value_of_dwarf_block_entry): Remove variables dwarf_reg and fb_offset.
3546 New variable kind_u. Adjust the caller for updated parameters.
3547 (needs_dwarf_reg_entry_value): Update parameters.
3548 * dwarf2read.c (read_call_site_scope): New variable loc. Use it
3549 instead of attr. Update for the changed fields of struct
3550 call_site_parameter.
3551 * gdbtypes.h: Include dwarf2expr.h.
3552 (enum call_site_parameter_kind): New.
3553 (struct call_site.parameter): New field kind. Wrap dwarf_reg and
3554 fb_offset into new union u.
3555
ac142d96
L
35562012-06-16 H.J. Lu <hongjiu.lu@intel.com>
3557
3558 * amd64-tdep.c (amd64_x32_analyze_stack_align): New function.
3559 (amd64_analyze_prologue): Call amd64_x32_analyze_stack_align
3560 for x32.
3561
ba224c70
L
35622012-06-16 H.J. Lu <hongjiu.lu@intel.com>
3563
3564 * amd64-linux-nat.c (compat_x32_clock_t): New.
3565 (compat_x32_siginfo_t): Likewise.
3566 (compat_x32_siginfo_from_siginfo): Likewise.
3567 (siginfo_from_compat_x32_siginfo): Likewise.
3568 (amd64_linux_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
3569 and siginfo_from_compat_x32_siginfo for x32.
3570
7ecbc825
HZ
35712012-06-15 Hui Zhu <hui_zhu@mentor.com>
3572
3573 * tracepoint.c (tfile_xfer_partial): Add a lseek.
3574
233dfcf0
L
35752012-06-15 H.J. Lu <hongjiu.lu@intel.com>
3576
3577 * amd64-linux-nat.c (ps_get_thread_area): Check bits_per_word
3578 instead of gdbarch_ptr_bit.
3579 * amd64-nat.c (amd64_native_gregset_reg_offset): Likewise.
3580 (amd64_supply_native_gregset): Likewise.
3581 (amd64_collect_native_gregset): Likewise.
3582 * amd64-tdep.c (amd64_supply_fxsave): Likewise.
3583 (amd64_supply_xsave): Likewise.
3584 (amd64_collect_fxsave): Likewise.
3585 (amd64_collect_xsave): Likewise.
3586
6da38f42
L
35872012-06-15 H.J. Lu <hongjiu.lu@intel.com>
3588
3589 * amd64-linux-nat.c (AMD64_LINUX_X32_DS): New.
3590 (amd64_linux_read_description): Check DS segment register for
3591 x32 process.
3592
663b969e
TT
35932012-06-15 Tom Tromey <tromey@redhat.com>
3594
3595 * dwarf2read.c (dw2_find_symbol_file): Unconditionally use
3596 init_cutu_and_read_dies.
3597
d6f05027
IS
35982012-06-15 Iain Sandoe <iain@codesourcery.com>
3599
3600 * MAINTAINERS (Write After Approval): Add myself to the list.
3601
6598ed07
TT
36022012-06-15 Tom Tromey <tromey@redhat.com>
3603
3604 * valops.c (value_find_oload_method_list): Now static.
3605 * value.h (value_find_oload_method_list): Don't declare.
3606
2b214ea6
TT
36072012-06-15 Tom Tromey <tromey@redhat.com>
3608
3609 * valops.c (find_overload_match): Use value_ind.
3610
a210c238
MR
36112012-06-15 Maciej W. Rozycki <macro@codesourcery.com>
3612
3613 * infrun.c (handle_inferior_event): Correct indentation.
3614
3771a44c
DE
36152012-06-14 Doug Evans <dje@google.com>
3616
3617 * dwarf2loc.c (debug_loc_kind): Add DEBUG_LOC_START_LENGTH.
3618 (DEBUG_LOC_START_END): Renamed from DEBUG_LOC_NORMAL.
3619 All uses updated.
3620 (decode_debug_loc_dwo_addresses): New arg "byte_order". All callers
3621 updated. Handle DEBUG_LOC_START_LENGTH.
3622 (dwarf2_find_location_expression): Handle DEBUG_LOC_START_LENGTH.
3623 (loclist_describe_location): Ditto.
3624
1c5a993e
MR
36252012-06-14 Maciej W. Rozycki <macro@codesourcery.com>
3626
3627 PR backtrace/13866
3628 * infrun.c (handle_inferior_event): Re-fetch frame and gdbarch
3629 after hiding inline functions.
3630
0b155465
JB
36312012-06-13 Joel Brobecker <brobecker@adacore.com>
3632
3633 * inf-ttrace.c (_initialize_hppa_hpux_nat): Rename into
3634 _initialize_inf_ttrace.
3635
45717bac
JB
36362012-06-13 Joel Brobecker <brobecker@adacore.com>
3637
3638 * ia64-hpux-nat.c (_initialize_ia64_hpux_nat): Renames
3639 _initialize_hppa_hpux_nat.
3640
34370865
JB
36412012-06-13 Joel Brobecker <brobecker@adacore.com>
3642
3643 * remote-sim.c (sim_command_completer): Change type of return
3644 value to "VEC (char_ptr) *". Adjust implementation accordingly.
3645
284c5a60
MK
36462012-06-13 Mark Kettenis <kettenis@gnu.org>
3647 Jan Kratochvil <jan.kratochvil@redhat.com>
3648
3649 PR tdep/14222
3650 * i386-tdep.c (i386_push_dummy_call): Unconditionally align the
3651 stack on a 16-byte boundary.
3652
2535757a
TT
36532012-06-13 Kaushik Srenevasan <kaushik@twitter.com>
3654
3655 * jit.c (finalize_symtab): Set function's return type to 'void' by
3656 default.
3657
fff4548b
MK
36582012-06-13 Mark Kettenis <kettenis@gnu.org>
3659 H.J. Lu <hongjiu.lu@intel.com>
3660
5a83521a
MK
3661 * amd64-linux-tdep.c (amd64_linux_init_abi_common): New function.
3662 Move bits common to both the classic LP64 and the new x32 ILP32
3663 ABI here.
3664 (amd64_linux_init_abi): Call amd64_linux_init_abi_common.
3665 (amd64_x32_linux_init_abi): New function.
3666 (_initialize_amd64_linux_tdep): Register osabi for bfd_mach_x64_32
3667 subtype.
3668
fff4548b
MK
3669 * i386-tdep.h (i386_pseudo_register_name): New prototype.
3670 * i386-tdep.c (i386_pseudo_register_name): Make public.
3671 * amd64-tdep.h (amd64_x32_init_abi): New prototype.
3672 * amd64-tdep.c (amd64_dword_names): Add "eip".
3673 (amd64_x32_pseudo_register_type): New function
3674 (amd64_x32_init_abi): New function.
3675
dd80ea3c
JK
36762012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3677
3678 PR build/14003
3679 * inferior.h (struct inferior_suspend_state): Comment out.
3680 (struct inferior): Comment out the field suspend.
3681 * infrun.c (struct infcall_suspend_state): Comment out the field
3682 inferior_suspend.
3683 (save_infcall_suspend_state, restore_infcall_suspend_state): Comment
3684 out its assignment.
3685
50af5481
JK
36862012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3687
3688 PR c++/14177 - Fix parsing TYPENAME:: in parentheses.
3689 * c-exp.y (classify_inner_name): Remove caller assumptions in the
3690 function comment. Return ERROR for unresolved cases. Implement
3691 returning proper NAME.
3692 (yylex): Accept also NAME from classify_inner_name.
3693 * cp-namespace.c (cp_lookup_nested_type): Rename to ...
3694 (cp_lookup_nested_symbol): ... here. Return any found symbol, not just
3695 LOC_TYPEDEF type.
3696 * cp-support.h (cp_lookup_nested_type): Update its declaration.
3697
d55637df
TT
36982012-06-13 Tom Tromey <tromey@redhat.com>
3699
3700 * breakpoint.c (condition_completer): New function.
3701 (_initialize_breakpoint): Use it.
3702 * value.c (complete_internalvar): New function.
3703 * value.h (complete_internalvar): Declare.
3704
49c4e619
TT
37052012-06-13 Tom Tromey <tromey@redhat.com>
3706
3707 * ada-lang.c (ada_make_symbol_completion_list): Return a VEC.
3708 * breakpoint.c (catch_syscall_completer): Return a VEC.
3709 * cli/cli-cmds.c (complete_command): Update.
3710 * cli/cli-decode.c (complete_on_cmdlist): Return a VEC.
3711 (complete_on_enum): Likewise.
3712 * command.h: Include gdb_vecs.h.
3713 (completer_ftype): Change return type.
3714 (complete_on_cmdlist, complete_on_enum): Likewise.
3715 * completer.c (noop_completer, filename_completer)
3716 (location_completer): Return a VEC.
3717 (add_struct_fields): Remove 'nextp' argument. Change 'output'
3718 to a VEC.
3719 (expression_completer, complete_line_internal, complete_line)
3720 (command_completer): Return a VEC.
3721 (gdb_completion_word_break_characters, line_completion_function):
3722 Update.
3723 * completer.h: Include gdb_vecs.h.
3724 (complete_line, noop_completer, filename_completer)
3725 (expression_completer, location_completer, command_completer):
3726 Update.
3727 * f-lang.c (f_word_break_characters): Return a VEC.
3728 * interps.c (interpreter_completer): Return a VEC.
3729 * language.h (struct language_defn)
3730 <la_make_symbol_completion_list>: Return a VEC.
3731 * python/py-cmd.c (cmdpy_completer): Return a VEC.
3732 * symtab.c (free_completion_list): Take a VEC.
3733 (return_val_size, return_val_index): Remove.
3734 (return_val): Now a VEC.
3735 (completion_list_add_name): Update.
3736 (default_make_symbol_completion_list_break_on)
3737 (default_make_symbol_completion_list, make_symbol_completion_list)
3738 (make_symbol_completion_list_fn, make_file_symbol_completion_list):
3739 Return a VEC.
3740 (add_filename_to_list): Update.
3741 (struct add_partial_filename_data) <list_used, list_alloced>: Remove.
3742 <list>: Now a VEC.
3743 (maybe_add_partial_symtab_filename): Update.
3744 (make_source_files_completion_list): Return a VEC.
3745 * symtab.h (default_make_symbol_completion_list_break_on)
3746 (default_make_symbol_completion_list, make_symbol_completion_list)
3747 (make_symbol_completion_list_fn, make_file_symbol_completion_list)
3748 (make_source_files_completion_list): Update.
3749
625e8578
TT
37502012-06-13 Tom Tromey <tromey@redhat.com>
3751
3752 * breakpoint.c (add_catch_command): Use completer_ftype.
3753 * breakpoint.h: Include command.h.
3754 (add_catch_command): Use completer_ftype.
3755 * cli/cli-decode.c (set_cmd_completer): Use completer_ftype.
3756 * cli/cli-decode.h (struct cmd_list_element) <completer>:
3757 Use completer_ftype.
3758 * command.h (completer_ftype): New typedef.
3759 (set_cmd_completer): Use it.
3760 * python/py-cmd.c (struct cmdpy_completer) <completer>: Use
3761 completer_ftype.
3762
5eb3b062
PA
37632012-06-13 Pedro Alves <palves@redhat.com>
3764
3765 Partial revert of previous change.
3766
3767 * serial.c (scb_base): New global.
3768 (serial_for_fd): New.
3769 (serial_open, serial_fdopen_ops): Link new serial in open serials
3770 chain.
3771 (do_serial_close): Unlink serial from the open serials chain.
3772
8b3ee56d
PA
37732012-06-12 Pedro Alves <palves@redhat.com>
3774
3775 * infrun.c (infrun_thread_stop_requested_callback): Don't switch
3776 threads here.
3777 (prepare_for_detach): No longer context switch here in non-stop
3778 mode.
3779 (fetch_inferior_event): Ditto.
3780 (handle_inferior_event) <STOP_QUIETLY || NO_STOP_QUIETLY>: Switch
3781 to the event thread before removing breakpoints. Switch to the
3782 event thread before inserting breakpoints and resuming.
3783 (handle_inferior_event) <TARGET_WAITKIND_SPURIOUS>: Switch to the
3784 event thread before resuming.
3785 (handle_inferior_event) <stepping_past_singlestep_breakpoint>:
3786 Switch to the event thread before removing breakpoints.
3787
5d60742e
EZ
37882012-06-12 Eli Zaretskii <eliz@gnu.org>
3789
3790 * infcmd.c (construct_inferior_arguments) [__MINGW32__]: Quote
3791 special characters correctly for the Windows shells. See
3792 http://sourceware.org/ml/gdb/2012-06/msg00047.html for the bug
3793 report.
3794 [!__MINGW32__]: Remove extra double quote character from special
3795 characters.
3796
a6feecf7
SS
37972012-06-11 Stan Shebs <stan@codesourcery.com>
3798
3799 * ui-out.h: Remove #if 0 declarations.
3800 * ui-out.c: Remove #if 0 functions.
3801
ddefb60f
PA
38022012-06-11 Pedro Alves <palves@redhat.com>
3803
3804 * ser-base.c (run_async_handler_and_reschedule): New.
3805 (fd_event, push_event): Use it.
3806 * serial.c (serial_open, serial_fdopen_ops): Set the initial
3807 reference count to 1.
3808 (do_serial_close): Set the bufp field to NULL. Use serial_unref
3809 instead of xfree.
3810 (serial_is_open, serial_ref, serial_unref): New.
3811 * serial.h (serial_open): Adjust comment.
3812 (serial_is_open): Declare.
3813 (serial_close): Adjust comment.
3814 (serial_ref, serial_unref) Declare.
3815 (struct serial): New field 'refcnt'.
3816
d5ad6aa5
PA
38172012-06-11 Pedro Alves <palves@redhat.com>
3818
3819 Remove #if 0'd "connect" command, and unnecessary associated
3820 refcounting and serial reuse bits.
3821
3822 * serial.h (struct serial): Remove fields 'next' and 'refcnt'.
3823 * serial.c (last_serial_opened): Delete.
3824 (scb_base): Delete.
3825 (serial_open): Adjust.
3826 (serial_for_fd): Delete.
3827 (serial_fdopen_ops, do_serial_close): Adjust.
3828 (serial_fdopen_ops): Adjust.
3829
318aa544
PA
38302012-06-11 Pedro Alves <palves@redhat.com>
3831
3832 * serial.c (do_serial_close): Remove early return when SCB is
3833 null.
3834
07261596
TT
38352012-06-11 Tom Tromey <tromey@redhat.com>
3836
3837 * dwarf2read.c (dw2_get_file_names_reader): Ignore partial units.
3838
cc80f267
JK
38392012-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3840
3841 Fix regression by the "ambiguous linespec" series.
3842 * breakpoint.c (parse_breakpoint_sals): New variable cursal. Use
3843 get_last_displayed_symtab and get_last_displayed_line and depending
3844 on CURSAL.
3845
356d9f9d
TT
38462012-06-11 Tom Tromey <tromey@redhat.com>
3847
3848 * dwarf2read.c (dw2_get_primary_filename_reader): New function.
3849 (dw2_find_symbol_file): Use it.
3850
232b8704
ME
38512012-06-11 Michael Eager <eager@eagercon.com>
3852
3853 * mips-linux-tdep.c (mips_gdb_signal_from_target): New
3854 * mips-linux-tdep.h (mips_signals): New
3855
e81a37f7
TT
38562012-06-11 Tom Tromey <tromey@redhat.com>
3857
3858 * infrun.c (handle_inferior_event)
3859 <BPSTAT_WHAT_SET_LONGJMP_RESUME>: Don't delete the step-resume
3860 breakpoint.
3861 <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>: Remove longjmp logic; use
3862 exception logic in all cases. Update comments.
3863 (insert_longjmp_resume_breakpoint): Set the exception resume
3864 breakpoint.
3865
2e81047f
MR
38662012-06-11 Maciej W. Rozycki <macro@codesourcery.com>
3867
3868 * mips-tdep.c (mips_push_dummy_code): Handle microMIPS code.
3869
4e32eda7
SCR
38702012-06-09 Siva Chandra Reddy <sivachandra@google.com>
3871
3872 * valarith.c (binop_types_user_defined_p): Fix a typo.
3873
18648a37 38742012-06-08 Yao Qi <yao@codesourcery.com>
f782ad9b 3875 Chung-Lin Tang <cltang@codesourcery.com>
18648a37
YQ
3876
3877 * arch-utils.c (default_return_in_first_hidden_param_p): New.
3878 * arch-utils.h: Declare.
3879 * gdbarch.sh: Add return_in_first_hidden_param_p.
3880 * gdbarch.c, gdbarch.h: Regenerated.
3881 * infcall.c (call_function_by_hand): Call
3882 gdbarch_return_in_first_hidden_param_p instead of
3883 language_pass_by_reference.
3884
3885 * m68k-tdep.c (m68k_return_in_first_hidden_param_p): New.
3886 (m68k_gdbarch_init): Install m68k_return_in_first_hidden_param_p.
3887 * sh-tdep.c (sh_return_in_first_hidden_param_p): New.
3888 (sh_gdbarch_init): Install sh_return_in_first_hidden_param_p.
3889 * tic6x-tdep.c (tic6x_push_dummy_call): Remove local variable
3890 `cplus_return_struct_by_reference'.
3891 (tic6x_return_value): Handle language cplusplus.
3892 (tic6x_return_in_first_hidden_param_p): New.
3893 (tic6x_gdbarch_init): Install tic6x_return_in_first_hidden_param_p.
3894
034e5797
DE
38952012-06-07 Doug Evans <dje@google.com>
3896
3897 * dwarf2read.c (dwarf2_cu): Add comment.
3898
6a00aa1e
MR
38992012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
3900
3901 * mips-tdep.c (mips_pseudo_register_type): Remove tdep local
3902 variable.
3903 (mips_eabi_push_dummy_call): Likewise.
3904 (mips_n32n64_push_dummy_call): Likewise.
3905 (mips_o32_push_dummy_call): Likewise.
3906 (mips_o64_push_dummy_call): Likewise.
3907
eaa05d59
MR
39082012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
3909
3910 * mips-tdep.c (mips_convert_register_p): Correct coding style.
3911
de13fcf2
MR
39122012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
3913
3914 * mips-tdep.c (mips_pseudo_register_type): Use
3915 mips_float_register_p.
3916
c3a01a22
PA
39172012-06-06 Pedro Alves <palves@redhat.com>
3918
3919 * infrun.c (handle_inferior_event): Remove calls to
3920 reinit_frame_cache that follow a context_switch call.
3921
d25f45d9
PA
39222012-06-06 Pedro Alves <palves@redhat.com>
3923
3924 * infrun.c (handle_inferior_event) <deferred_step_ptid>: Use
3925 context_switch and remove stale comment.
3926
359f5fe6
PA
39272012-06-06 Pedro Alves <palves@redhat.com>
3928
3929 * infrun.c (struct execution_control_state): Remove
3930 `new_thread_event' field.
3931 (handle_inferior_event): Simplify new threads handling; don't
3932 resume the inferior if we find a new thread.
3933
2d4c29c5
TS
39342012-06-06 Thomas Schwinge <thomas@codesourcery.com>
3935
3936 * NEWS: Document the deprecation of SH's 'regs' command.
3937 * inferior.h (all_registers_info): Add function declaration.
3938 * sh-tdep.c (sh_show_regs): Remove variable.
3939 (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs, sh2a_show_regs)
3940 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
3941 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs)
3942 (sh_show_regs_command): Remove functions.
3943 (sh_gdbarch_init): Don't set sh_show_regs.
3944 (_initialize_sh_tdep): Make the 'regs' command an deprecated alias to
3945 'info all-registers'.
3946 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs)
3947 (sh64_show_regs): Remove functions.
3948 * sh64-tdep.h (sh64_show_regs): Remove function declaration.
3949
f5f1cdb6
JK
39502012-06-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3951
3952 * configure.ac: Move development=true below AC_INIT.
3953 * configure: Regenerate.
3954
bf6309af
SS
39552012-06-05 Stan Shebs <stan@codesourcery.com>
3956
3957 * mi/mi-interp.c (mi_interpreter_init): Set raw_stdout from
3958 gdb_stdout.
3959
45aa4659
JK
39602012-06-05 Siddhesh Poyarekar <siddhesh@redhat.com>
3961
3962 * corefile.c (read_memory, read_stack, write_memory): Accept LEN
3963 argument as ssize_t.
3964 * gdbcore.h (read_memory, read_stack, write_memory): Likewise.
3965 * remote.c (remote_write_bytes_aux, remote_write_bytes): Likewise.
3966 * target.c (target_read_stack, target_write_memory)
3967 (target_write_raw_memory): Likewise.
3968 * target.h (target_read_stack, target_write_memory)
3969 (target_write_raw_memory): Likewise.
3970
1b162304
JK
39712012-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3972
3973 * symfile-mem.c: Change gdb_static_assert to ssize_t.
3974 (target_read_memory_bfd): Cast gdb_assert LEN to ssize_t.
3975 * target.c (target_read_memory): Change LEN to ssize_t.
3976 * target.h (target_read_memory): Change LEN to ssize_t.
3977
8556afb4
PA
39782012-06-05 Pedro Alves <palves@redhat.com>
3979
3980 PR backtrace/13866
3981
3982 * breakpoint.c (until_break_command): Only fetch the selected
3983 frame after decode_line_1.
3984
fb139f32
PA
39852012-06-05 Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
3986
3987 * solib-svr4.c (enable_break): Don't fallback to setting the solib
3988 event breakpoint at _start, __start or main if a program
3989 interpreter is not found.
3990
a8e1bb34
JB
39912012-06-05 Joel Brobecker <brobecker@adacore.com>
3992
3993 * windows-tdep.h (windows_iterate_over_objfiles_in_search_order):
3994 Add declaration.
3995 * windows-tdep.c: #include "objfiles.h".
3996 (windows_iterate_over_objfiles_in_search_order): New function.
3997 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
3998 iterate_over_objfiles_in_search_order gdbarch method to
3999 windows_iterate_over_objfiles_in_search_order.
4000 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
4001
19630284
JB
40022012-06-05 Joel Brobecker <brobecker@adacore.com>
4003
4004 * gdbarch.sh: Add generation of
4005 "iterate_over_objfiles_in_search_order_cb_ftype" typedef in
4006 gdbarch.h. Add include of "objfiles.h" in gdbarch.c.
4007 (iterate_over_objfiles_in_search_order): New gdbarch method.
4008 * gdbarch.h, gdbarch.c: Regenerate.
4009 * objfiles.h (default_iterate_over_objfiles_in_search_order):
4010 Add declaration.
4011 * objfiles.c (default_iterate_over_objfiles_in_search_order):
4012 New function.
4013 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
4014 out of lookup_symbol_aux_symtabs.
4015 (lookup_symbol_aux_symtabs): Replace extracted-out code by
4016 call to lookup_symbol_aux_objfile.
4017 (struct global_sym_lookup_data): New type.
4018 (lookup_symbol_global_iterator_cb): New function.
4019 (lookup_symbol_global): Search for symbol using
4020 gdbarch_iterate_over_objfiles_in_search_order and
4021 lookup_symbol_global_iterator_cb.
4022 * findvar.c (struct minsym_lookup_data): New type.
4023 (minsym_lookup_iterator_cb): New function.
4024 (default_read_var_value) [case LOC_UNRESOLVED]: Resolve the
4025 symbol's address via gdbarch_iterate_over_objfiles_in_search_order
4026 and minsym_lookup_iterator_cb.
4027
67ff19f7
JB
40282012-06-05 Joel Brobecker <brobecker@adacore.com>
4029
4030 Revert the following patch:
4031 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
4032 try locating the symbol in the symbol's own objfile first, before
4033 extending the search to all objfiles.
4034 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
4035 out of lookup_symbol_aux_symtabs.
4036 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
4037 Replace extracted-out code by call to lookup_symbol_aux_objfile.
4038 Do not search EXCLUDE_OBJFILE.
4039 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
4040 (lookup_symbol_global): Search for matches in the block's objfile
4041 first, before searching all other objfiles.
4042
ccab2054
JB
40432012-06-05 Joel Brobecker <brobecker@adacore.com>
4044
4045 * breakpoint.c (find_condition_and_thread): Stop parsing
4046 as soon as the first invalid keyword is found.
4047
e23d4a9c
JB
40482012-06-05 Joel Brobecker <brobecker@adacore.com>
4049
4050 * copyright.py (EXCLUDE_LIST): Add 'gdb/CONTRIBUTE' to list.
4051
70160166
JB
40522012-06-05 Joel Brobecker <brobecker@adacore.com>
4053
4054 * config/djgpp/djcheck.sh: Add copyright header.
4055
399501a5
JB
40562012-06-05 Joel Brobecker <brobecker@adacore.com>
4057
4058 * copyright.py (update_files, main): Fix path to update-copyright
4059 script.
4060
3770a159
JB
40612012-06-05 Joel Brobecker <brobecker@adacore.com>
4062
4063 * copyright.py (MULTIPLE_COPYRIGHT_HEADERS): New constant.
4064 (main): Add MULTIPLE_COPYRIGHT_HEADERS to the list of files
4065 for which a reminder to update by hand is printed.
4066
4aad0dfc
DE
40672012-06-04 Doug Evans <dje@google.com>
4068
4069 * buildsym.c (make_blockvector): Add comment.
4070
1f8cf220
PA
40712012-06-04 Pedro Alves <palves@redhat.com>
4072
4073 * arch-utils.c (default_gdb_signal_from_target): Delete.
4074 * arch-utils.h (default_gdb_signal_from_target): Delete.
4075 * corelow.c (core_open) <signal mapping>: Extended comment. Check
4076 gdbarch_gdb_signal_from_target_p.
4077 * gdbarch.sh (gdb_signal_from_target): Make it an M method (with
4078 predicate).
4079 * gdbarch.h: Regenerate.
4080 * gdbarch.c: Regenerate.
4081
86b49880
PA
40822012-06-04 Pedro Alves <palves@redhat.com>
4083
4084 * gdbarch.sh (gdb_signal_from_target): Mention that the
4085 implementation of the method must be host independent.
4086 * gdbarch.h: Regenerate.
4087
fe78531d
JK
40882012-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4089
4090 * symfile-mem.c: 3 new gdb_static_assert for target_read_memory_bfd
4091 parameters.
4092 (target_read_memory_bfd): New function.
4093 (symbol_file_add_from_memory): Use it.
4094
d790cf0a
DE
40952012-06-03 Doug Evans <dje@google.com>
4096
78e5175a
DE
4097 * symtab.c (lookup_global_symbol_from_objfile): Only scan blockvector
4098 of primary symtab.
4099 (basic_lookup_transparent_type): Ditto.
4100
d790cf0a
DE
4101 * objfiles.h (ALL_OBJFILE_PRIMARY_SYMTABS): New macro.
4102 (ALL_PRIMARY_SYMTABS): Use it.
4103 (ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
4104 * dwarf2read.c (dw2_find_symbol_file): Ditto.
4105 * linespec.c (iterate_over_all_matching_symtabs): Ditto.
4106 * symtab.c (lookup_symbol_aux_objfile): Ditto.
4107 (basic_lookup_transparent_type): Ditto.
4108
c6e5ee5e
SDJ
41092012-06-02 Sergio Durigan Junior <sergiodj@redhat.com>
4110
4111 * symtab.c (symbol_demangled_name): New variable `dem_name'. Use
4112 it to optimize resolution of demangled name.
4113
a68ffae9
JK
41142012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4115
4116 * configure.ac (development): Define new variable.
4117 Call AC_CHECK_LIB for mcheck if $development.
4118 (ERROR_ON_WARNING): Enable it by default only if $development.
4119 * config.in: Regenerate.
4120 * configure: Regenerate.
4121
5299c1c4
JK
41222012-06-01 Siddhesh Poyarekar <siddhesh@redhat.com>
4123
4124 * target.c (target_read_memory): Make LEN argument as size_t.
4125 * target.h (target_read_memory): Likewise.
4126
41272012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
7c71816c
JK
4128
4129 * tilegx-linux-tdep.c (tilegx_l): Use ULL for 64-bit values.
4130
0c56f59b
EBM
41312012-05-31 Edjunior Machado <emachado@linux.vnet.ibm.com>
4132
4133 * ppc-linux-nat.c (have_ptrace_booke_interface): Disable ptrace
4134 BookE interface for PowerPC server processors if not available
4135 in the Linux Kernel.
4136
71bdabee
KS
41372012-05-31 Keith Seitz <keiths@redhat.com>
4138
4139 * linespec.c (decode_objc): Add cleanup to free
4140 INFO.FILE_SYMTABS.
4141 (find_linespec_symbols): Add cleanup to free CLASSES.
4142 * symfile.c (find_separate_debug_file_by_debuglink): Add
4143 cleanup to free DEBUGLINK.
4144 * ui-out.c (clear_header_list): No need to check if
4145 HEADER_NEXT.COLHDR is NULL.
4146 Free HEADER_NEXT.COL_NAME.
4147
acbd605d
MGD
41482012-05-31 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
4149
4150 * ada-lang.c (standard_lookup): Prevent uninitialized variable
4151 warning.
4152
65662cde
PA
41532012-05-30 Jeff Kenton <jkenton@tilera.com>
4154
4155 * configure.host (gdb_host_cpu): Handle tilegx*.
4156 (gdb_host): Handle tilegx-*-linux*.
4157 * tilegx-linux-nat.c: New file.
4158 * config/tilegx/linux.mh: New file.
4159
ade64f0e
PA
41602012-05-30 Jeff Kenton <jkenton@tilera.com>
4161
4162 * Makefile.in (ALL_TARGET_OBJS): Add tilegx-tdep.o and
4163 tilegx-linux-tdep.o.
4164 (ALLDEPFILES): Add tilegx-linux-nat.c, tilegx-tdep.c and
4165 tilegx-linux-tdep.c.
4166 * configure.tgt: Handle tilegx-*-linux*.
4167 * tilegx-tdep.h: New file.
4168 * tilegx-tdep.c: New file.
4169 * tilegx-linux-tdep.c: New file.
4170 * regformats/reg-tilegx.dat: New file.
4171
bb08bdbd
EBM
41722012-05-30 Edjunior Machado <emachado@linux.vnet.ibm.com>
4173
4174 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): fix
4175 accounting of hw watchpoints on ppc.
4176
ebd86fb5
TJB
41772012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
4178
4179 * source.c (openp): Expand tilde in path entries.
4180
0a0edcd5
DE
41812012-05-29 Doug Evans <dje@google.com>
4182
98cc87bd
DE
4183 * buildsym.c (block_compar): Fix comment.
4184 (end_symtab): Fix and clarify some comments.
4185
0a0edcd5
DE
4186 * stabsread.h (cleanup_undefined_stabs_types): Renamed from
4187 cleanup_undefined_types.
4188 * stabsread.c (cleanup_undefined_stabs_types): Ditto.
4189 All callers updated.
4190
6f0c7050
TT
41912012-05-29 Tom Tromey <tromey@redhat.com>
4192
4193 * symfile.c (symfile_bfd_open): Don't close desc if bfd_fopen
4194 fails.
4195 * solib.c (solib_bfd_fopen): Don't close fd if bfd_fopen fails.
4196 * exec.c (exec_file_attach): Don't close scratch_chan if bfd_fopen
4197 fails.
4198 * dwarf2read.c (try_open_dwo_file): Don't close fd if bfd_fopen
4199 fails.
4200
ec95993c
TG
42012012-05-29 Tristan Gingold <gingold@adacore.com>
4202
4203 * solib-darwin.c (dyld_all_image_addr, dyld_all_image): Move into...
4204 (struct darwin_info): ... New struct.
4205 (solib_darwin_pspace_data): New variable.
4206 (darwin_pspace_data_cleanup): New function.
4207 (get_darwin_info): Likewise.
4208 (darwin_dyld_version_ok, darwin_load_image_infos)
4209 (darwin_solib_get_all_image_info_addr_at_init)
4210 (darwin_solib_read_all_image_info_addr): Add info argument.
4211 Adjust code.
4212 (darwin_current_sos): Use per pspace structure.
4213 (darwin_solib_create_inferior_hook): Likewise.
4214 (darwin_clear_solib): Likewise.
4215 (_initialize_darwin_solib): Initialize solib_darwin_pspace_data.
4216
ae25568b
PA
42172012-05-28 Pedro Alves <palves@redhat.com>
4218
4219 * infrun.c (wait_for_inferior): Move ecss and ecs locals to the
4220 block that uses them. Clear ecss before handling each event.
4221
0c5bf5a9
JK
42222012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4223
4224 * solib-svr4.c (svr4_current_sos): New comment on
4225 svr4_current_sos_via_xfer_libraries fall back.
4226
bfb05775
JK
42272012-05-24 Jan Kratochvil <jan.kratochvil@redhat.com>
4228
4229 * psymtab.c (lookup_symbol_aux_psymtabs): New variable stab_best. Use
4230 it as a fallback for TYPE_IS_OPAQUE.
4231 * symfile.h (struct quick_symbol_functions): Mention TYPE_OPAQUE
4232 symbols for lookup_symbol.
4233
685b1105
JK
42342012-05-24 John Steele Scott <toojays@toojays.net>
4235
4236 PR symtab/13277: Resolving opaque structures in ICC generated binaries.
4237 * dwarf2read.c (struct dwarf2_cu) <producer_is_icc>: New field.
4238 (producer_is_gxx_lt_4_6): Move the checking and caching to...
4239 (check_producer): ... this new function, which also checks for ICC
4240 and caches the result.
4241 (producer_is_icc): New function.
4242 (read_structure_type): Don't set TYPE_STUB_SUPPORTED if the
4243 producer was ICC.
4244
22203bbf
PA
42452012-05-24 Pedro Alves <palves@redhat.com>
4246
4247 PR gdb/7205
4248
4249 * arch-utils.c (default_gdb_signal_to_host): Rename to ...
4250 (default_gdb_signal_to_target): ... this. Add comment.
4251 (default_gdb_signal_from_host): Rename to ...
4252 (default_gdb_signal_from_target): ... this. Add comment.
4253 * arch-utils.h (default_gdb_signal_to_host): Rename to ...
4254 (default_gdb_signal_to_target): ... this.
4255 (default_gdb_signal_from_host): Rename to ...
4256 (default_gdb_signal_from_target): ... this.
4257 * corelow.c (core_open): Adjust to naming change. Replace comment.
4258 * gdbarch.sh (gdb_signal_from_host): Rename to ...
4259 (gdb_signal_from_target): ... this. Adjust to
4260 default_gdb_signal_from_host naming change. Extend comment.
4261 (gdb_signal_to_host): Rename to ...
4262 (gdb_signal_to_target): ... this. Adjust to
4263 default_gdb_signal_to_host naming change.
4264 * gdbarch.h, gdbarch.c: Renegerate.
4265
a493e3e2
PA
42662012-05-24 Pedro Alves <palves@redhat.com>
4267
4268 PR gdb/7205
4269
f782ad9b 4270 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
a493e3e2 4271
2ea28649
PA
42722012-05-24 Pedro Alves <palves@redhat.com>
4273
4274 PR gdb/7205
4275
4276 Replace target_signal with gdb_signal throughout.
4277
b09846a9
PA
42782012-05-24 Pedro Alves <palves@redhat.com>
4279
4280 PR tui/14159
4281
4282 * tui/tui-hooks.c (tui_query_hook): Pre-compute the question
4283 string, instead of reusing the va_list argument.
4284
e77c107e
TT
42852012-05-24 Tom Tromey <tromey@redhat.com>
4286
4287 * cp-support.h (cp_finalize_namespace, cp_initialize_namespace):
4288 Remove.
4289
9fccedf7
DE
42902012-05-23 Doug Evans <dje@google.com>
4291
d50bd42b
DE
4292 * symtab.c (search_symbols): Formatting fixes.
4293 (print_symbol_info): Formatting fixes.
4294
9fccedf7
DE
4295 * dwarf2-frame.c (execute_cfa_program): Update to handle long long ->
4296 int64_t change to leb128 API.
4297 (read_encoded_value, decode_frame_entry_1): Ditto.
4298 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Ditto.
4299 (dwarf_block_to_dwarf_reg, dwarf_block_to_dwarf_reg_deref): Ditto.
4300 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
4301 (execute_stack_op): Ditto.
4302 * dwarf2expr.h (gdb_read_uleb128, gdb_read_sleb128): Ditto.
4303 (safe_read_uleb128, safe_read_sleb128): Ditto.
4304 * dwarf2loc.c (decode_debug_loc_dwo_addresses): Ditto.
4305 (dwarf2_compile_expr_to_ax): Ditto.
4306 (locexpr_describe_location_piece): Ditto.
4307 (disassemble_dwarf_expression): Ditto.
4308 (locexpr_describe_location_1): Ditto.
4309
f3e0e960
SS
43102012-05-23 Stan Shebs <stan@codesourcery.com>
4311 Kwok Cheung Yeung <kcy@codesourcery.com>
4312
4313 * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-info.o.
4314 (SUBDIR_MI_SRCS): Add mi-cmd-info.c.
4315 (mi-cmd-info.o): New rule.
4316 * osdata.h (info_osdata_command): New declaration.
4317 * osdata.c (info_osdata_command): Change to non-static.
4318 * mi/mi-cmds.h (mi_cmd_info_os): New declaration.
4319 * mi/mi-cmds.c (mi_cmds): Add -info-os MI command.
4320 * mi/mi-cmd-info.c: New file.
4321
c51fe631
DE
43222012-05-23 Doug Evans <dje@google.com>
4323
71cddcc1
DE
4324 * symtab.c (search_symbols): Pass NULL for file_matcher to
4325 expand_symtabs_matching if there are no files to match.
4326
c51fe631
DE
4327 * gdbtypes.c (lookup_typename): Simplify.
4328
a79378d4
PA
43292012-05-23 Pedro Alves <palves@redhat.com>
4330
4331 * arch-utils.h (default_target_signal_to_host): Delete.
4332 * arch-utils.c (default_target_signal_to_host): Delete.
4333 * gdbarch.sh (target_signal_to_host): Remove.
4334 * gdbarch.h, gdbarch.c: Regenerate.
4335
f664829e
DE
43362012-05-22 Doug Evans <dje@google.com>
4337
4338 * dwarf2-frame.c (struct dwarf2_cie): Make initial_instructions, end
4339 "const gdb_byte *".
4340 (struct dwarf2_fde): Make instructions, end "const gdb_byte *".
4341 (execute_cfa_program): Update to match API of leb128 functions.
4342 (read_1_byte, read_4_bytes, read_8_bytes): Make buf parameter
4343 "const gdb_byte *".
4344 (read_unsigned_leb128, read_signed_leb128): Delete.
4345 (read_initial_length): Change type of buf argument to
4346 "const gdb_byte *".
4347 (read_encoded_value): Update to match API of leb128 functions.
4348 (decode_frame_entry): Change result to "const gdb_byte *", and
4349 similarly for "start" parameter.
4350 (decode_frame_entry_1): Ditto. Use new leb128 reader functions.
4351 (dwarf2_build_frame_info): Change local frame_ptr to
4352 "const gdb_byte *".
4353 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Replaces
4354 read_uleb128, read_sleb128. All callers updated.
4355 (safe_skip_leb128): New function.
4356 (dwarf_block_to_dwarf_reg): Update to match API of leb128 functions.
4357 Call gdb_read_uleb128, gdb_skip_leb128 instead of read_uleb128.
4358 (dwarf_block_to_dwarf_reg_deref): Update to match API of leb128
4359 functions. Call gdb_read_uleb128, gdb_read_sleb128 instead of
4360 read_uleb128, read_sleb128.
4361 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
4362 (execute_stack_op): Update to match API of leb128 functions.
4363 * dwarf2expr.h: #include "leb128.h".
4364 (read_uleb128, read_sleb128): Delete.
4365 (gdb_read_uleb128, gdb_read_sleb128, gdb_skip_leb128): New functions.
4366 (safe_read_uleb128, safe_read_sleb128, safe_skip_leb128): Declare.
4367 * dwarf2loc.c (debug_loc_kind): New enum.
4368 (decode_debug_loc_addresses): New function.
4369 (decode_debug_loc_dwo_addresses): New function.
4370 (dwarf2_find_location_expression): Rewrite.
4371 (dwarf2_compile_expr_to_ax): Update to match API of leb128 functions.
4372 (locexpr_describe_location_piece): Ditto.
4373 (disassemble_dwarf_expression): Ditto.
4374 (locexpr_describe_location_1): Ditto.
4375 (loclist_describe_location): Rewrite.
4376 * dwarf2loc.h (dwarf2_loclist_baton): New member "from_dwo".
4377 * dwarf2read.c (die_reader_specs): New member "buffer_end".
4378 (dwarf2_section_buffer_overflow_complaint): Renamed from
4379 dwarf2_macros_too_long_complaint. All callers updated.
4380 (skip_leb128): Delete.
4381 (init_cu_die_reader): Initialize reader->buffer_end.
4382 (skip_one_die): Replace call to skip_leb128 with safe_skip_leb128.
4383 (skip_form_bytes): New arg buffer_end. All callers updated.
4384 Replace call to skip_leb128 with gdb_skip_leb128.
4385 (skip_unknown_opcode): New arg mac_end. All callers updated.
4386 (fill_in_loclist_baton): Initialize baton->from_dwo.
4387
837a1b32
MR
43882012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
4389
4390 * mips-linux-nat.c (mips_linux_read_description): Use a more
4391 verbose error message.
4392
d0e64392
MR
43932012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
4394
4395 * NEWS: Add MIPS/Linux DSP support.
4396 * mips-linux-tdep.c: Document post-2.6.12 o32 sigcontext layout.
4397 (SIGCONTEXT_DSPCTL): New macro.
4398 (SIGCONTEXT_HI1, SIGCONTEXT_LO1): Likewise.
4399 (SIGCONTEXT_HI2, SIGCONTEXT_LO2): Likewise.
4400 (SIGCONTEXT_HI3, SIGCONTEXT_LO3): Likewise.
4401 (N64_SIGCONTEXT_HI1, N64_SIGCONTEXT_HI2): Likewise.
4402 (N64_SIGCONTEXT_HI3): Likewise.
4403 (N64_SIGCONTEXT_LO1, N64_SIGCONTEXT_LO2): Likewise.
4404 (N64_SIGCONTEXT_LO3): Likewise.
4405 (N64_SIGCONTEXT_DSPCTL): Likewise.
4406 (N64_SIGCONTEXT_FPCSR): Clarify definition.
4407 (mips_linux_o32_sigframe_init): Handle DSP registers.
4408 (mips_linux_n32n64_sigframe_init): Likewise.
4409
8bea7ed1
PM
44102012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
4411
4412 * common/buffer.c (buffer_grow): ARI fix: Remove unneeded
4413 call to abort.
4414
dab06dbe
PA
44152012-05-22 Pedro Alves <palves@redhat.com>
4416
4417 * target.h (store_waitstatus): Move declaration ...
4418 * inf-child.h (store_waitstatus): ... here.
4419 * target.c: Move inclusion of gdb_wait.h, and ...
4420 (store_waitstatus): ... this ...
4421 * inf-child.c: ... here.
4422 * linux-nat.c: Include inf-child.h.
4423 * rs6000-nat.c: Include inf-child.h.
4424 * spu-linux-nat.c: Include inf-child.h.
4425
43011e52
PM
44262012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
4427
4428 * tracepoint.c (start_tracing): Add missing i18n markup.
4429 (stop_tracing, set_trace_user): Ditto.
4430 (set_trace_notes, set_trace_stop_notes): Ditto.
4431
b1af9e97
TT
44322012-05-21 Tom Tromey <tromey@redhat.com>
4433
4434 PR c++/7173:
4435 * gnu-v3-abi.c (gnuv3_baseclass_offset): Return early for Java
4436 types.
4437 * value.h (value_cast_pointers): Update.
4438 * valops.c (value_cast_pointers): Add 'subclass_check' argument.
4439 (value_cast): Update.
4440 (update_search_result): New function.
4441 (do_search_struct_field): New, from search_struct_field. Check
4442 for ambiguous results.
4443 (search_struct_field): Rewrite.
4444 * infcall.c (value_arg_coerce): Update.
4445 * eval.c (evaluate_subexp_standard) <STRUCTOP_MEMBER>: Use
4446 value_cast_pointers.
4447 * ada-lang.c (ada_convert_actual): Update.
4448
e9e5e6b3
TT
44492012-05-21 Tom Tromey <tromey@redhat.com>
4450
4451 * macroexp.c (macro_stringify): Terminate the string.
4452
1564a261
JK
44532012-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4454
4455 * NEWS (--with-auto-load-dir): Prepend $debugdir to the default path.
4456 Describe it.
4457 * auto-load.c (auto_load_expand_dir_vars): New function.
4458 (auto_load_safe_path_vec_update): Use it, remove the
4459 substitute_path_component call thanks to it.
4460 (auto_load_objfile_script): Remove the debug_file_directory processing.
4461 Use auto_load_expand_dir_vars, remove the substitute_path_component
4462 call thanks to it.
4463 * configure: Regenerate.
4464 * configure.ac (--with-auto-load-dir): Prepend $debugdir to the default
4465 path. Escape $ also for $debugdir.
4466 (--with_auto_load_safe_path): Escape $ also for $debugdir.
4467 * utils.c (substitute_path_component): Accept also DIRNAME_SEPARATOR.
4468
a3ec0bb1
DE
44692012-05-20 Doug Evans <dje@google.com>
4470
4471 * dwarf2read.c (recursively_find_pc_sect_symtab): Initialize "s"
4472 before use. Check for symtab->includes == NULL before scanning it.
4473
d467df4e
MR
44742012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
4475
4476 * mips-tdep.c (mips_reg3_to_reg): Optimize storage.
4477
4cc0665f
MR
44782012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
4479
4480 * NEWS: Add microMIPS support and "set mips compression",
4481 "show mips compression" commands.
4482 * mips-tdep.h (mips_isa): New enum.
4483 (gdbarch_tdep): Add mips_isa.
4484 (mips_pc_is_mips16): Update prototype.
4485 (mips_pc_is_mips, mips_pc_is_micromips): New prototypes.
4486 * mips-tdep.c (mips_compression_mips16): New variable.
4487 (mips_compression_micromips): Likewise.
4488 (mips_compression_strings): Likewise.
4489 (mips_compression_string): Likewise.
4490 (is_mips16_isa, is_micromips_isa): New functions.
4491 (is_mips16_addr): Rename to...
4492 (is_compact_addr): ... this.
4493 (unmake_mips16_addr): Likewise to...
4494 (unmake_compact_addr): ... this.
4495 (make_mips16_addr): Likewise to...
4496 (make_compact_addr): ... this.
4497 (is_mips_addr, is_mips16_addr, is_micromips_addr): New
4498 functions.
4499 (mips_elf_make_msymbol_special): Handle microMIPS code.
4500 (msymbol_is_special): Rename to...
4501 (msymbol_is_mips16): ... this.
4502 (mips_make_symbol_special, mips_pc_is_mips16): Update
4503 accordingly.
4504 (msymbol_is_mips, msymbol_is_micromips): New functions.
4505 (mips16_to_32_reg): Rename to...
4506 (mips_reg3_to_reg): ... this.
4507 (mips_pc_is_mips, mips_pc_is_micromips): New functions.
4508 (mips_pc_isa): Likewise.
4509 (mips_read_pc, mips_unwind_pc, mips_write_pc): Handle microMIPS
4510 code.
4511 (mips_fetch_instruction): Pass return status instead of printing
4512 an error message if requested. Handle microMIPS code. Bail out
4513 on an invalid ISA.
4514 (micromips_op): New macro.
4515 (b0s4_imm, b0s5_imm, b0s5_reg, b0s7_imm, b0s10_imm): Likewise.
4516 (b1s9_imm, b2s3_cc, b4s2_regl, b5s5_op, b5s5_reg): Likewise.
4517 (b6s4_op, b7s3_reg): Likewise.
4518 (b0s6_op, b0s11_op, b0s12_imm, b0s16_imm, b0s26_imm): Likewise.
4519 (b6s10_ext, b11s5_reg, b12s4_op): Likewise.
4520 (mips_insn_size): New function.
4521 (mips32_next_pc): Update mips_fetch_instruction call.
4522 (micromips_relative_offset7): New function.
4523 (micromips_relative_offset10): Likewise.
4524 (micromips_relative_offset16): Likewise.
4525 (micromips_pc_insn_size): Likewise.
4526 (micromips_bc1_pc): Likewise.
4527 (micromips_next_pc): Likewise.
4528 (unpack_mips16): Update mips_fetch_instruction call.
4529 (extended_mips16_next_pc): Update according to change to
4530 mips16_to_32_reg.
4531 (mips_next_pc): Update mips_pc_is_mips16 call. Handle microMIPS
4532 code.
4533 (mips16_scan_prologue): Update mips_fetch_instruction call.
4534 Update according to change to mips16_to_32_reg.
4535 (mips_insn16_frame_sniffer): Update mips_pc_is_mips16 call.
4536 (mips_insn16_frame_base_sniffer): Likewise.
4537 (micromips_decode_imm9): New function.
4538 (micromips_scan_prologue): Likewise.
4539 (mips_micro_frame_cache): Likewise.
4540 (mips_micro_frame_this_id): Likewise.
4541 (mips_micro_frame_prev_register): Likewise.
4542 (mips_micro_frame_sniffer): Likewise.
4543 (mips_micro_frame_unwind): New variable.
4544 (mips_micro_frame_base_address): New function.
4545 (mips_micro_frame_base): New variable.
4546 (mips_micro_frame_base_sniffer): New function.
4547 (mips32_scan_prologue): Update mips_fetch_instruction call.
4548 (mips_insn32_frame_sniffer): Check for the standard MIPS ISA
4549 rather than for MIPS16.
4550 (mips_insn32_frame_base_sniffer): Likewise.
4551 (mips_addr_bits_remove): Handle microMIPS code.
4552 (deal_with_atomic_sequence): Rename to...
4553 (mips_deal_with_atomic_sequence): ... this. Update the type
4554 of the variable used to hold an instruction. Remove the ISA bit
4555 check. Update mips_fetch_instruction call.
4556 (micromips_deal_with_atomic_sequence): New function.
4557 (deal_with_atomic_sequence): Likewise.
4558 (mips_about_to_return): Handle microMIPS code. Update
4559 mips_fetch_instruction call.
4560 (heuristic_proc_start): Check for the standard MIPS ISA rather
4561 than for MIPS16. Update mips_pc_is_mips16 and
4562 mips_fetch_instruction calls. Handle microMIPS code.
4563 (mips_push_dummy_code): Handle microMIPS code.
4564 (mips_eabi_push_dummy_call): Likewise.
4565 (mips_o32_return_value): Update mips_pc_is_mips16 call.
4566 (mips_o64_push_dummy_call): Handle microMIPS code.
4567 (mips_o64_return_value): Update mips_pc_is_mips16 call.
4568 (is_delayed): Remove function.
4569 (mips_single_step_through_delay): Replace the call to is_delayed
4570 with mips32_instruction_has_delay_slot. Correct MIPS16 handling.
4571 Handle microMIPS code.
4572 (mips_skip_prologue): Update mips_pc_is_mips16 call. Handle
4573 microMIPS code.
4574 (mips32_in_function_epilogue_p): Update mips_fetch_instruction
4575 call.
4576 (micromips_in_function_epilogue_p): New function.
4577 (mips16_in_function_epilogue_p): Update mips_fetch_instruction
4578 call.
4579 (mips_in_function_epilogue_p): Update mips_pc_is_mips16 call.
4580 Handle microMIPS.
4581 (gdb_print_insn_mips): Likewise.
4582 (mips_breakpoint_from_pc): Likewise.
4583 (mips_remote_breakpoint_from_pc): New function.
4584 (mips32_instruction_has_delay_slot): Simplify making use of the
4585 updated mips_fetch_instruction interface.
4586 (micromips_instruction_has_delay_slot): New function.
4587 (mips16_instruction_has_delay_slot): Simplify making use of the
4588 updated mips_fetch_instruction interface.
4589 (mips_adjust_breakpoint_address): Check for the standard MIPS
f782ad9b 4590 ISA rather than for MIPS16 ISA. Update for unmake_compact_addr
4cc0665f
MR
4591 calls. Handle microMIPS code.
4592 (mips_get_mips16_fn_stub_pc): Update mips_fetch_instruction call.
4593 (mips_skip_trampoline_code): Handle microMIPS code.
4594 (global_mips_compression): New function.
4595 (mips_gdbarch_init): Handle the compressed ISA setting from ELF
4596 file flags. Register the microMIPS remote breakpoint handler
4597 and heuristic frame unwinder.
4598 (show_mips_compression): New function.
4599 (_initialize_mips_tdep): Add the "set mips compression" and
4600 "show mips compression" commands.
4601
22e048c9
SDJ
46022012-05-18 Sergio Durigan Junior <sergiodj@redhat.com>
4603
4604 * ada-lang.c:
4605 * ada-tasks.c:
4606 * ada-varobj.c:
4607 * amd64-darwin-tdep.c:
4608 * arm-symbian-tdep.c:
4609 * arm-tdep.c:
4610 * avr-tdep.c:
4611 * ax-gdb.c:
4612 * bfin-linux-tdep.c:
4613 * breakpoint.c:
4614 * c-valprint.c:
4615 * cli/cli-cmds.c:
4616 * coffread.c:
4617 * cp-support.c:
4618 * cris-tdep.c:
4619 * dwarf2-frame-tailcall.c:
4620 * dwarf2-frame.c:
4621 * dwarf2expr.c:
4622 * dwarf2loc.c:
4623 * dwarf2read.c:
4624 * elfread.c:
4625 * eval.c:
4626 * expprint.c:
4627 * f-valprint.c:
4628 * frv-tdep.c:
4629 * h8300-tdep.c:
4630 * hppa-hpux-tdep.c:
4631 * hppa-tdep.c:
4632 * hppanbsd-tdep.c:
4633 * i386-nto-tdep.c:
4634 * i386-tdep.c:
4635 * i387-tdep.c:
4636 * ia64-tdep.c:
4637 * jit.c:
4638 * linespec.c:
4639 * linux-tdep.c:
4640 * lm32-tdep.c:
4641 * m2-valprint.c:
4642 * m32c-tdep.c:
4643 * m32r-rom.c:
4644 * m32r-tdep.c:
4645 * m68k-tdep.c:
4646 * m68klinux-tdep.c:
4647 * mi/mi-main.c:
4648 * microblaze-tdep.c:
4649 * mips-linux-tdep.c:
4650 * mips-tdep.c:
4651 * mn10300-tdep.c:
4652 * p-valprint.c:
4653 * parse.c:
4654 * ppc-linux-tdep.c:
4655 * ppc-sysv-tdep.c:
4656 * printcmd.c:
4657 * python/py-finishbreakpoint.c:
4658 * python/py-inferior.c:
4659 * python/py-infthread.c:
4660 * python/py-type.c:
4661 * python/python.c:
4662 * remote-fileio.c:
4663 * remote-m32r-sdi.c:
4664 * remote-mips.c:
4665 * reverse.c:
4666 * rl78-tdep.c:
4667 * rs6000-aix-tdep.c:
4668 * rs6000-tdep.c:
4669 * s390-tdep.c:
4670 * score-tdep.c:
4671 * sh64-tdep.c:
4672 * skip.c:
4673 * solib-darwin.c:
4674 * solib-dsbt.c:
4675 * solib-frv.c:
4676 * sparc-tdep.c:
4677 * spu-multiarch.c:
4678 * spu-tdep.c:
4679 * stack.c:
4680 * symfile.c:
4681 * symtab.c:
4682 * tic6x-tdep.c:
4683 * tracepoint.c:
4684 * v850-tdep.c:
4685 * valarith.c:
4686 * valprint.c:
4687 * value.c:
4688 * xcoffread.c:
4689 * xtensa-tdep.c:
4690 * ada-lang.c:
4691 * ada-tasks.c:
4692 * ada-varobj.c:
4693 * amd64-darwin-tdep.c:
4694 * arm-symbian-tdep.c:
4695 * arm-tdep.c: Delete unused variables.
4696
aff139ff
JK
46972012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4698
4699 Rename $ddir to $datadir.
4700 * NEWS (--with-auto-load-dir): Rename $ddir to $datadir.
4701 * auto-load.c (auto_load_safe_path_vec_update)
4702 (auto_load_gdb_datadir_changed, auto_load_objfile_script): Likewise.
4703 * configure: Regenerate.
4704 * configure.ac (--with-auto-load-dir, --with-auto-load-safe-path):
4705 Likewise. Remove the 'use $ddir' help string.
4706
f7bfa992
JK
47072012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4708
4709 * auto-load.c (show_auto_load_safe_path): Accept any combination of
4710 DIRNAME_SEPARATOR and IS_DIR_SEPARATOR for wild-match.
4711
9cb709b6
TT
47122012-05-18 Tom Tromey <tromey@redhat.com>
4713
4714 PR exp/13907:
4715 * valprint.h (struct value_print_options) <symbol_print>: New
4716 field.
4717 * valprint.c (user_print_options): Add default for symbol_print.
4718 (show_symbol_print): New function.
4719 (generic_val_print): Respect symbol_print.
4720 (_initialize_valprint): Add "print symbol" setting.
4721 * f-valprint.c (f_val_print): Respect symbol_print.
4722 * c-valprint.c (c_val_print): Respect symbol_print.
4723 * NEWS: Update.
4724 * printcmd.c (print_address_symbolic): Return int. Ignore some
4725 zero-size symbols.
4726 (print_address_demangle): Return int.
4727 * defs.h: (print_address_symbolic): Return int.
4728 * value.h (print_address_demangle): Return int.
4729
b012acdd
TT
47302012-05-18 Tom Tromey <tromey@redhat.com>
4731
4732 * valprint.c (val_print_string): Don't print leading space.
4733 * p-valprint.c (pascal_val_print) <TYPE_CODE_PTR>: Optionally
4734 print space before string or vtbl.
4735 * m2-valprint.c (print_unpacked_pointer): Optionally print space
4736 before string.
4737 * jv-valprint.c (java_value_print): Print space before string.
4738 * go-valprint.c (print_go_string): Print space before string.
4739 * f-valprint.c (f_val_print) <TYPE_CODE_PTR>: Optionally print
4740 space before string.
4741 * c-valprint.c (c_val_print) <TYPE_CODE_PTR>: Optionally print
4742 space before string or vtbl.
4743 * auxv.c (fprint_target_auxv): Print space after address.
4744
1d51a733
TT
47452012-05-18 Tom Tromey <tromey@redhat.com>
4746
4747 * printcmd.c (print_address_demangle): Remove special case for 0.
4748
edf0c1b7
TT
47492012-05-18 Tom Tromey <tromey@redhat.com>
4750
4751 * printcmd.c (print_address_demangle): Add 'opts' argument.
4752 * p-valprint.c (pascal_val_print): Update.
4753 * jv-valprint.c (java_val_print): Update.
4754 * value.h: Update.
4755 * valprint.c (generic_val_print): Update.
4756 (print_function_pointer_address): Add 'options' argument. Remove
4757 'addressprint' argument. Update.
4758 * m2-valprint.c (print_unpacked_pointer): Update.
4759 * gnu-v3-abi.c (print_one_vtable): Update.
4760 (gnuv3_print_method_ptr): Update.
4761 * f-valprint.c (f_val_print): Update.
4762 * cp-valprint.c (cp_print_value_fields): Update.
4763 * valprint.h (print_function_pointer_address): Update.
4764 * c-valprint.c (c_val_print): Update.
4765
9703b513
TT
47662012-05-18 Tom Tromey <tromey@redhat.com>
4767
4768 * psymtab.c (find_pc_sect_symtab_from_partial): Return the symtab
4769 directly corresponding to the found psymtab.
4770 * dwarf2read.c (recursively_find_pc_sect_symtab): New function.
4771 (dw2_find_pc_sect_symtab): Use it.
4772 * block.h (blockvector_contains_pc): Declare.
4773 * block.c (find_block_in_blockvector): New function.
4774 (blockvector_for_pc_sect): Use it.
4775 (blockvector_contains_pc): New function.
4776
5a439849
MR
47772012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
4778
4779 * mips-tdep.h (mips_write_pc): New prototype.
4780 * mips-tdep.c (mips_write_pc): Make external, add description.
4781 * mips-linux-tdep.c (mips_linux_write_pc): Use mips_write_pc,
4782 add description.
4783
8376de04
MR
47842012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
4785
4786 * mips-tdep.c (mips_read_pc): Use gdbarch_pc_regnum instead of
4787 mips_regnum->pc.
4788 (mips_unwind_pc, mips_write_pc): Likewise.
4789 (mips_gdbarch_init): Remove a comment on gdbarch_pc_regnum and
4790 gdbarch_read_pc.
4791
d3581e61
JB
47922012-05-17 Joel Brobecker <brobecker@adacore.com>
4793
4794 * procfs.c (procfs_find_new_threads, procfs_pid_to_str,
4795 proc_warn, proc_error, proc_get_status, proc_flags,
4796 proc_why, proc_what, proc_nsysarg, proc_sysargs,
4797 proc_set_run_on_last_close, proc_unset_run_on_last_close,
4798 proc_unset_inherit_on_fork, proc_set_async, proc_unset_async,
4799 proc_stop_process, proc_wait_for_stop, proc_run_process,
4800 proc_set_traced_signals, proc_set_traced_faults,
4801 proc_set_traced_sysentry, proc_set_traced_sysexit,
4802 proc_set_held_signals, proc_get_held_signals,
4803 proc_get_traced_signals, proc_get_traced_faults,
4804 proc_get_traced_sysentry, proc_get_traced_sysexit,
4805 proc_clear_current_fault, proc_set_current_signal,
4806 proc_clear_current_signal, proc_get_gregs, proc_get_fpregs,
4807 proc_set_gregs, proc_set_fpregs, proc_kill, proc_parent_pid,
4808 proc_get_nthreads, proc_get_nthreads, proc_get_nthreads,
4809 proc_get_current_thread, proc_get_current_thread,
4810 proc_get_current_thread, proc_update_threads,
4811 proc_update_threads, proc_update_threads, proc_update_threads,
4812 proc_iterate_over_threads, procfs_find_new_threads,
4813 procfs_pid_to_str): Make static. Remove advance declaration.
4814 (proc_cursig): Make static. Conditionalized defintion on
4815 PROCFS_DONT_PIOCSSIG_CURSIG being defined.
4816 (proc_syscall, proc_set_kill_on_last_close,
4817 proc_unset_kill_on_last_close, proc_set_inherit_on_fork,
4818 proc_get_pending_signals, proc_get_signal_actions,
4819 proc_trace_signal, proc_ignore_signal): Delete.
4820
81b9b86e
SDJ
48212012-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
4822
4823 * coffread.c (cs_section_address): Passing proper argument for
4824 `bfd_get_section_vma'.
4825 * dwarf2read.c (dwarf2_locate_sections): Likewise, for
4826 `bfd_get_section_flags'.
4827 * remote.c (remote_trace_set_readonly_regions): Likewise, for
4828 `bfd_get_section_vma'.
4829
abc9d0dc
TT
48302012-05-16 Tom Tromey <tromey@redhat.com>
4831
4832 PR macros/13205:
4833 * macrotab.h: (macro_define_special): Declare.
4834 (enum macro_special_kind): New.
4835 (struct macro_definition) <argc, replacement>: Update comments.
4836 * macrotab.c (new_macro_definition): Unconditionally set 'argc'.
4837 (macro_define_object_internal): New function.
4838 (macro_define_object): Use it.
4839 (macro_define_special): New function.
4840 (fixup_definition): New function.
4841 (macro_lookup_definition, foreach_macro_in_scope)
4842 (foreach_macro): Use fixup_definition.
4843 * macroexp.h (macro_stringify): Declare.
4844 * macroexp.c (free_buffer_return_text): New function.
4845 (stringify): Constify "arg".
4846 (macro_stringify): New function.
4847 * dwarf2read.c (macro_start_file): Call macro_define_special.
4848
6a3a010b 48492012-05-16 Maciej W. Rozycki <macro@codesourcery.com>
f782ad9b 4850 Maciej W. Rozycki <macro@mips.com>
6a3a010b
MR
4851
4852 * breakpoint.h (bp_location): Add related_address member.
4853 * inferior.h (get_return_value): Take a pointer to struct value
4854 instead of struct type for the function requested.
4855 * value.h (using_struct_return): Likewise.
4856 * gdbarch.sh (return_value): Take a pointer to struct value
4857 instead of struct type for the function requested.
4858 * breakpoint.c (set_breakpoint_location_function): Initialize
4859 related_address for bp_gnu_ifunc_resolver breakpoints.
4860 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the
4861 requested function's address to gdbarch_return_value.
4862 * eval.c (evaluate_subexp_standard): Pass the requested
4863 function's address to using_struct_return.
4864 * infcall.c (call_function_by_hand): Pass the requested
4865 function's address to using_struct_return and
4866 gdbarch_return_value.
4867 * infcmd.c (get_return_value): Take a pointer to struct value
4868 instead of struct type for the function requested.
4869 (print_return_value): Update accordingly.
4870 (finish_command_continuation): Likewise.
4871 * stack.c (return_command): Pass the requested function's
4872 address to using_struct_return and gdbarch_return_value.
4873 * value.c (using_struct_return): Take a pointer to struct value
4874 instead of struct type for the function requested. Pass the
4875 requested function's address to gdbarch_return_value.
4876 * python/py-finishbreakpoint.c (finish_breakpoint_object):
4877 New function_value member, replacing function_type.
4878 (bpfinishpy_dealloc): Update accordingly.
4879 (bpfinishpy_pre_stop_hook): Likewise.
4880 (bpfinishpy_init): Likewise. Record the requested function's
4881 address.
4882 * mips-tdep.c (mips_fval_reg): New enum.
4883 (mips_o32_push_dummy_call): For MIPS16 FP doubles do not swap
4884 words put in GP registers.
4885 (mips_o64_push_dummy_call): Update a comment.
4886 (mips_o32_return_value): Take a pointer to struct value instead
4887 of struct type for the function requested and use it to check if
4888 using the MIPS16 calling convention. Return the designated
4889 general purpose registers for floating-point values returned in
4890 MIPS16 mode.
4891 (mips_o64_return_value): Likewise.
4892 * ppc-tdep.h (ppc_sysv_abi_return_value): Update prototype.
4893 (ppc_sysv_abi_broken_return_value): Likewise.
4894 (ppc64_sysv_abi_return_value): Likewise.
4895 * alpha-tdep.c (alpha_return_value): Take a pointer to struct
4896 value instead of struct type for the function requested.
4897 * amd64-tdep.c (amd64_return_value): Likewise.
4898 * amd64-windows-tdep.c (amd64_windows_return_value): Likewise.
4899 * arm-tdep.c (arm_return_value): Likewise.
4900 * avr-tdep.c (avr_return_value): Likewise.
4901 * bfin-tdep.c (bfin_return_value): Likewise.
4902 * cris-tdep.c (cris_return_value): Likewise.
4903 * frv-tdep.c (frv_return_value): Likewise.
4904 * h8300-tdep.c (h8300_return_value): Likewise.
4905 (h8300h_return_value): Likewise.
4906 * hppa-tdep.c (hppa32_return_value): Likewise.
4907 (hppa64_return_value): Likewise.
4908 * i386-tdep.c (i386_return_value): Likewise.
4909 * ia64-tdep.c (ia64_return_value): Likewise.
4910 * iq2000-tdep.c (iq2000_return_value): Likewise.
4911 * lm32-tdep.c (lm32_return_value): Likewise.
4912 * m32c-tdep.c (m32c_return_value): Likewise.
4913 * m32r-tdep.c (m32r_return_value): Likewise.
4914 * m68hc11-tdep.c (m68hc11_return_value): Likewise.
4915 * m68k-tdep.c (m68k_return_value): Likewise.
4916 (m68k_svr4_return_value): Likewise.
4917 * m88k-tdep.c (m88k_return_value): Likewise.
4918 * mep-tdep.c (mep_return_value): Likewise.
4919 * microblaze-tdep.c (microblaze_return_value): Likewise.
4920 * mn10300-tdep.c (mn10300_return_value): Likewise.
4921 * moxie-tdep.c (moxie_return_value): Likewise.
4922 * mt-tdep.c (mt_return_value): Likewise.
4923 * ppc-linux-tdep.c (ppc_linux_return_value): Likewise.
4924 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Likewise.
4925 (ppc_sysv_abi_broken_return_value): Likewise.
4926 (ppc64_sysv_abi_return_value): Likewise.
4927 * ppcnbsd-tdep.c (ppcnbsd_return_value): Likewise.
4928 * rl78-tdep.c (rl78_return_value): Likewise.
4929 * rs6000-aix-tdep.c (rs6000_return_value): Likewise.
4930 * rx-tdep.c (rx_return_value): Likewise.
4931 * s390-tdep.c (s390_return_value): Likewise.
4932 * score-tdep.c (score_return_value): Likewise.
4933 * sh-tdep.c (sh_return_value_nofpu): Likewise.
4934 (sh_return_value_fpu): Likewise.
4935 * sh64-tdep.c (sh64_return_value): Likewise.
4936 * sparc-tdep.c (sparc32_return_value): Likewise.
4937 * sparc64-tdep.c (sparc64_return_value): Likewise.
4938 * spu-tdep.c (spu_return_value): Likewise.
4939 * tic6x-tdep.c (tic6x_return_value): Likewise.
4940 * v850-tdep.c (v850_return_value): Likewise.
4941 * vax-tdep.c (vax_return_value): Likewise.
4942 * xstormy16-tdep.c (xstormy16_return_value): Likewise.
4943 * xtensa-tdep.c (xtensa_return_value): Likewise.
4944 * gdbarch.c: Regenerate.
4945 * gdbarch.h: Regenerate.
4946
29ca12b3
TT
49472012-05-15 Tom Tromey <tromey@redhat.com>
4948
4949 * python/python.c (gdbpy_find_pc_line): Use gdb_py_ulongest.
4950
588ae58c
JB
49512012-05-15 Joel Brobecker <brobecker@adacore.com>
4952
4953 * breakpoint.c (init_breakpoint_sal): Add quotes around part
4954 of command in two error message.
4955
855a6e68
JB
49562012-05-15 Joel Brobecker <brobecker@adacore.com>
4957
4958 * breakpoint.c (init_breakpoint_sal): Remove trailing spaces.
4959
d634f2de
JB
49602012-05-15 Joel Brobecker <brobecker@adacore.com>
4961
4962 * breakpoint.c (find_condition_and_thread): Minor reformatting.
4963
9cc815f5
JK
49642012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
4965
4966 * NEWS (show auto-load scripts-directory): Add forgotten command.
4967
6a609e58
JK
49682012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
4969
4970 * spu-tdep.c (spu_catch_start): Update create_breakpoint caller
4971 parameters.
4972
ac1438b5
L
49732012-05-14 H.J. Lu <hongjiu.lu@intel.com>
4974
4975 * amd64-tdep.c: Include features/i386/x32.c and
4976 features/i386/x32-avx.c.
4977 (_initialize_amd64_tdep): Call initialize_tdesc_x32 and
4978 initialize_tdesc_x32_avx.
4979
e7e0cddf
SS
49802012-05-14 Stan Shebs <stan@codesourcery.com>
4981
4982 Add dynamic printf.
4983 * breakpoint.h (enum bptype): New type bp_dprintf.
4984 (struct breakpoint): New field extra_string.
4985 (struct breakpoint_ops): Add arg to create_breakpoints_sal.
4986 (create_breakpoint): Add extra_string arg.
4987 * breakpoint.c (dprintf_breakpoint_ops): New.
4988 (is_breakpoint): Add bp_dprintf.
4989 (bpstat_what): Add dprintf case.
4990 (bptype_string): Ditto.
4991 (print_one_breakpoint_location): Ditto.
4992 (init_bp_location): Ditto.
4993 (bkpt_print_mention): Ditto.
4994 (dprintf_style_enums): New array.
4995 (dprintf_style): New global.
4996 (dprintf_function): New global.
4997 (dprintf_channel): New global.
4998 (update_dprintf_command_list): New function.
4999 (update_dprintf_commands): New function.
5000 (init_breakpoint_sal): Add extra_string argument, handle it.
5001 (create_breakpoint_sal): Add extra_string argument.
5002 (create_breakpoints_sal): Add extra_string argument, update callers.
5003 (find_condition_and_thread): Add extra argument.
5004 (create_breakpoint): Add extra_string argument, record it.
5005 (dprintf_command): New function.
5006 (break_command_1): Add arg to create_breakpoint call.
5007 (handle_gnu_v3_exceptions): Ditto.
5008 (trace_command): Ditto.
5009 (ftrace_command): Ditto.
5010 (strace_command): Ditto.
5011 (bkpt_print_mention): Add dprintf case.
5012 (create_breakpoint_sal_default): Add extra_string argument.
5013 (_initialize_breakpoint): Add new commands.
5014 * mi/mi-cmd-break.c (mi_cmd_break_insert): Add arg to call.
5015 * python/py-breakpoint.c (bppy_init): Ditto.
5016 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
5017
8ae38c14
MR
50182012-05-14 Maciej W. Rozycki <macro@codesourcery.com>
5019
5020 * mips-tdep.c (mips_push_dummy_code): Correct description typo.
5021
9f676e66
SCR
50222012-05-14 Siva Chandra Reddy <sivachandra@google.com>
5023
5024 * python/python.c (gdbpy_find_pc_line): Use ULONGEST instead of
5025 unsigned long long.
5026
7efc75aa
SCR
50272012-05-13 Siva Chandra Reddy <sivachandra@google.com>
5028
5029 Add a new function gdb.find_pc_line to the Python API.
5030 * NEWS (Python Scripting): Add entry about the new function.
5031 * python/python.c (gdbpy_find_pc_line): New function which
5032 implements gdb.find_pc_line.
5033 (GdbMethods): Add entry for the new function.
5034
70af3797
PA
50352012-05-12 Pedro Alves <palves@redhat.com>
5036
5037 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Call
5038 initialize_tdesc_x32_linux and initialize_tdesc_x32_avx_linux.
5039
06da564e
EZ
50402012-05-12 Eli Zaretskii <eliz@gnu.org>
5041
5042 * inferior.c: Include completer.h
5043 (initialize_inferiors): Set completer of add-inferior to
5044 filename_completer.
5045
0288cee2
L
50462012-05-11 H.J. Lu <hongjiu.lu@intel.com>
5047
5048 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
5049 gdbarch_ptr_bit for x32 core dump.
5050
f6537a2c
L
50512012-05-11 H.J. Lu <hongjiu.lu@intel.com>
5052
5053 * amd64-linux-tdep.c: Include features/i386/x32-linux.c
5054 and features/i386/x32-avx-linux.c.
5055
85d4a676
SS
50562012-05-11 Stan Shebs <stan@codesourcery.com>
5057 Kwok Cheung Yeung <kcy@codesourcery.com>
5058
5059 * NEWS: Describe new info os commands.
5060 * common/linux-osdata.c (PID_T, TIME_T): Define.
5061 (MAX_PID_T_STRLEN): New.
5062 (linux_common_core_of_thread): Add comment. Change to use PID_T and
5063 MAX_PID_T_STRLEN.
5064 (command_from_pid): Add comment. Change to use PID_T.
5065 (commandline_from_pid): Change to use PID_T.
5066 (user_from_pid): Add comment.
5067 (get_process_owner): Add comment. Change to use PID_T and
5068 MAX_PID_T_STRLEN.
5069 (get_number_of_cpu_cores): Add comment.
5070 (get_cores_used_by_process): Add comment. Change to use PID_T and
5071 MAX_PID_T_STRLEN.
5072 (linux_xfer_osdata_processes): Change to use PID_T and
5073 MAX_PID_T_STRLEN.
5074 (compare_processes): New function.
5075 (linux_xfer_osdata_processgroups): New function.
5076 (linux_xfer_osdata_threads): Change to use PID_T.
5077 (linux_xfer_osdata_fds): New function.
5078 (format_socket_state, print_sockets): New functions.
5079 (union socket_addr): New union.
5080 (linux_xfer_osdata_isockets): New function.
5081 (time_from_time_t, group_from_gid): New functions.
5082 (linux_xfer_osdata_shm): New function.
5083 (linux_xfer_osdata_sem): New function.
5084 (linux_xfer_osdata_msg): New function.
5085 (linux_xfer_osdata_modules): New function.
5086 (osdata_table): Add new entries.
5087 * common/buffer.c (buffer_xml_printf): Add support for long and
5088 long long format specifiers.
5089
f24afd6d
L
50902012-05-11 H.J. Lu <hongjiu.lu@intel.com>
5091
5092 * amd64-linux-tdep.h (tdesc_x32_linux): New.
5093 (tdesc_x32_avx_linux): Likewise.
5094
7349ff92
JK
50952012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5096
5097 Implement multi-component --with-auto-load-dir.
5098 * NEWS (set auto-load scripts-directory, --with-auto-load-dir): New
5099 entries.
5100 (--with-auto-load-safe-path): Update the default value description.
5101 * auto-load.c (auto_load_dir, set_auto_load_dir, show_auto_load_dir):
5102 New.
5103 (auto_load_objfile_script): Add DEBUG_AUTO_LOAD output. Remove
5104 GDB_DATADIR NULL check. Replace GDB_DATADIR/auto-load by
5105 AUTO_LOAD_DIR. Support $ddir and multiple components in it.
5106 (_initialize_auto_load): Initialize also auto_load_dir. Install new
5107 "set auto-load scripts-directory".
5108 * config.in: Regenerate.
5109 * configure: Regenerate.
5110 * configure.ac (--with-auto-load-dir): New configure option.
5111 (--auto-load-safe-path): Change the default to --with-auto-load-dir.
5112
6dea1fbd
JK
51132012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5114
5115 Provide $ddir substitution for --with-auto-load-safe-path.
5116 * NEWS (--with-auto-load-safe-path, --without-auto-load-safe-path): New
5117 entries.
5118 * auto-load.c: Include observer.h.
5119 (auto_load_safe_path_vec_update): Call substitute_path_component for
5120 each component. New variable ddir_subst.
5121 (auto_load_gdb_datadir_changed): New function.
5122 (set_auto_load_safe_path): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
5123 AUTO_LOAD_SAFE_PATH. New comment.
5124 (_initialize_auto_load): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
5125 AUTO_LOAD_SAFE_PATH. Install auto_load_gdb_datadir_changed.
5126 * config.in: Regenerate.
5127 * configure: Regenerate.
5128 * configure.ac (--auto-load-safe-path): Rename
5129 DEFAULT_AUTO_LOAD_SAFE_PATH to AUTO_LOAD_SAFE_PATH. Default to
5130 GDB_DATADIR/auto-load.
5131 * defs.h (substitute_path_component): New declaration.
5132 * top.c: Include observer.h.
5133 (set_gdb_datadir): New function.
5134 (init_main): Install it for "set data-directory".
5135 * utils.c (substitute_path_component): New function.
5136
b09aca3a
JK
51372012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5138
5139 Make auto-load handle multiple components of DEBUG_FILE_DIRECTORY.
5140 * auto-load.c (auto_load_objfile_script): Remove check for NULL
5141 DEBUG_FILE_DIRECTORY. Handle multiple components of
5142 DEBUG_FILE_DIRECTORY.
5143
95554aad
TT
51442012-05-10 Tom Tromey <tromey@redhat.com>
5145
5146 * dwarf2read.c (recursively_write_psymbols): New function.
5147 (write_psymtabs_to_index): Use it.
5148
5149 * dwarf2read.c (struct dwarf2_queue_item) <pretend_language>: New
5150 field.
5151 (load_cu, dw2_do_instantiate_symtab, process_psymtab_comp_unit)
5152 (load_partial_comp_unit): Update.
5153 (queue_comp_unit): Add argument 'pretend_language'.
5154 (process_queue): Update.
5155 (psymtab_to_symtab_1): Skip dependencies that have a user.
5156 (load_partial_comp_unit_reader): Give meaning to the 'data'
5157 argument.
5158 (load_full_comp_unit): Add 'pretend_language' argument.
5159 (process_full_comp_unit): Add 'pretend_language' argument. Set
5160 language on CU.
5161 (process_imported_unit_die, read_file_scope, read_type_unit_scope):
5162 Update.
5163 (maybe_queue_comp_unit): Add 'pretend_language' argument.
5164 (follow_die_offset, follow_die_sig, read_signatured_type_reader):
5165 Update.
5166 (prepare_one_comp_unit): Add 'pretend_language' argument.
5167
5168 * dwarf2read.c: (dwarf2_per_cu_ptr): New typedef.
5169 (struct dwarf2_per_objfile) <just_read_cus>: New field.
5170 (struct dwarf2_per_cu_data) <imported_symtabs>: New field.
5171 (dw2_do_instantiate_symtab): Check whether symtab was read in
5172 before queueing.
5173 (dw2_instantiate_symtab): Add assertion. Call
5174 process_cu_includes.
5175 (process_psymtab_comp_unit): Compute 'dependencies' for psymtab.
5176 (partial_symtab_p): New typedef.
5177 (set_partial_user): New function.
5178 (dwarf2_build_psymtabs_hard): Use set_partial_user.
5179 (scan_partial_symbols): Add imported CU to imported_symtabs.
5180 (dwarf2_psymtab_to_symtab): Call process_cu_includes.
5181 (psymtab_to_symtab_1): Do nothing if psymtab is readin.
5182 (get_symtab, recursively_compute_inclusions)
5183 (compute_symtab_includes, process_cu_includes)
5184 (process_imported_unit_die): New functions.
5185 (process_die) <DW_TAG_imported_unit>: New case.
5186 (dwarf2_per_objfile_free): Free 'imported_symtabs'.
5187
5188 * dwarf2read.c (struct dwarf2_per_cu_data) <psymtab>: Update
5189 comment.
5190 (struct partial_die_info) <locdesc>: Remove.
5191 <d>: New field.
5192 (process_psymtab_comp_unit): Add 'read_partial' argument.
5193 Update.
5194 (process_type_comp_unit, dwarf2_build_psymtabs_hard): Update.
5195 (scan_partial_symbols): Handle DW_TAG_imported_unit.
5196 (add_partial_symbol): Update.
5197 (process_die): Handle DW_TAG_partial_unit.
5198 (read_file_scope): Update comment.
5199 (load_partial_dies): Handle DW_TAG_imported_unit.
5200 (read_partial_die): Handle DW_TAG_partial_unit, DW_AT_import.
5201 (determine_prefix, dwarf2_name): Handle DW_TAG_partial_unit.
5202
e871fbb9
TT
52032012-05-10 Tom Tromey <tromey@redhat.com>
5204
5205 * cc-with-dwz.sh: New file.
5206
b5b04b5b
TT
52072012-05-10 Tom Tromey <tromey@redhat.com>
5208
5209 * symtab.h (struct symtab) <includes, user>: New fields.
5210 * block.h (struct block_iterator) <d, idx, which>: New fields.
5211 * block.c (initialize_block_iterator, find_iterator_symtab)
5212 (block_iterator_step, block_iter_name_step)
5213 (block_iter_match_step): New functions.
5214 (block_iterator_first, block_iterator_next)
5215 (block_iter_name_first, block_iter_name_next)
5216 (block_iter_match_first, block_iter_match_next): Rewrite.
5217 (get_block_symtab): New function.
5218
84a146c9
TT
52192012-05-10 Tom Tromey <tromey@redhat.com>
5220
5221 * jv-lang.c (get_java_class_symtab): Use allocate_global_block,
5222 set_block_symtab.
5223 * jit.c (finalize_symtab): Use allocate_global_block,
5224 set_block_symtab.
5225 * buildsym.c (finish_block_internal): New function, from old
5226 finish_block.
5227 (finish_block): Rewrite.
5228 (end_symtab): Use finish_block_internal, set_block_symtab.
5229 * block.h (struct global_block): New.
5230 (allocate_global_block, set_block_symtab): Declare.
5231 * block.c (allocate_global_block, set_block_symtab): New
5232 functions.
5233
9439a077
TT
52342012-05-10 Tom Tromey <tromey@redhat.com>
5235
5236 * psymtab.c (partial_map_expand_apply): Add assertion.
5237 (partial_map_symtabs_matching_filename): Skip included psymtabs.
5238 (psymtab_to_symtab): Find unshared psymtab.
5239 (dump_psymtab): Print including psymtabs.
5240 (recursively_search_psymtabs): New function.
5241 (expand_symtabs_matching_via_partial): Use it.
5242 * psympriv.h (struct partial_symtab) <user, searched_flag>: New
5243 fields.
5244 (enum psymtab_search_status): New.
5245
8157b174
TT
52462012-05-10 Tom Tromey <tromey@redhat.com>
5247
5248 * tracepoint.c (scope_info): Update.
5249 * symtab.c (lookup_block_symbol, iterate_over_symbols)
5250 (find_pc_sect_symtab, search_symbols)
5251 (default_make_symbol_completion_list_break_on)
5252 (make_file_symbol_completion_list): Update.
5253 * symmisc.c (dump_symtab_1): Update.
5254 * stack.c (print_frame_args, iterate_over_block_locals)
5255 (print_frame_labels, iterate_over_block_arg_vars): Update.
5256 * python/py-block.c (block_object) <dict>: Remove.
5257 <block>: New field.
5258 <iter>: Change type.
5259 (blpy_iter): Update.
5260 (blpy_block_syms_iternext): Update.
5261 * psymtab.c (map_block): Use block iterators.
5262 * objfiles.c (objfile_relocate1): Use ALL_DICT_SYMBOLS.
5263 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
5264 * mdebugread.c (parse_symbol, mylookup_symbol): Update.
5265 * infrun.c (check_exception_resume): Update.
5266 * cp-support.c (make_symbol_overload_list_block): Update.
5267 * coffread.c (patch_opaque_types): Update.
5268 * buildsym.c (finish_block, end_symtab): Use ALL_DICT_SYMBOLS.
5269 * block.h (struct block_iterator): New.
5270 (block_iterator_first, block_iterator_next, block_iter_name_first)
5271 (block_iter_name_next, block_iter_match_first)
5272 (block_iter_match_next): Declare.
5273 (ALL_BLOCK_SYMBOLS): Redefine.
5274 * block.c (block_iterator_first, block_iterator_next)
5275 (block_iter_name_first, block_iter_name_next)
5276 (block_iter_match_first, block_iter_match_next): New functions.
5277 * ada-lang.c (ada_add_block_symbols)
5278 (ada_make_symbol_completion_list): Use block iterator.
5279
a2ca7a52
TT
52802012-05-10 Tom Tromey <tromey@redhat.com>
5281
5282 * psymtab.c (PSYMTAB_TO_SYMTAB): Remove.
5283 (find_pc_sect_symtab_from_partial, lookup_symbol_aux_psymtabs)
5284 (lookup_partial_symbol, find_last_source_symtab_from_partial)
5285 (read_psymtabs_with_filename, map_matching_symbols_psymtab)
5286 (expand_symtabs_matching_via_partial, maintenance_check_symtabs):
5287 Update.
5288
64ea88dc
JB
52892012-05-10 Joel Brobecker <brobecker@adacore.com>
5290
5291 * config/djgpp/fnchange.lst: Add entries for print-file-var-lib1.c,
5292 print-file-var-lib2.c, print-file-var-main.c and
5293 print-file-var.exp (located in gdb/testsuite/gdb.base).
5294
99a547d6
JB
52952012-05-10 Joel Brobecker <brobecker@adacore.com>
5296
5297 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
5298 try locating the symbol in the symbol's own objfile first, before
5299 extending the search to all objfiles.
5300 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
5301 out of lookup_symbol_aux_symtabs.
5302 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
5303 Replace extracted-out code by call to lookup_symbol_aux_objfile.
5304 Do not search EXCLUDE_OBJFILE.
5305 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
5306 (lookup_symbol_global): Search for matches in the block's objfile
5307 first, before searching all other objfiles.
5308
0ece64fd
TG
53092012-05-10 Tristan Gingold <gingold@adacore.com>
5310
5311 * printcmd.c (set_command): Add pre/post inc/dec.
5312
3d16a105
FCE
53132012-05-09 Frank Ch. Eigler <fche@redhat.com>
5314
5315 * gdb.1: Document -ex option.
5316
2efbc0f7
JB
53172012-05-09 Joel Brobecker <brobecker@adacore.com>
5318
5319 * infcall.c (call_function_by_hand): Remove AT_SYMBOL handling.
5320 * inferior.h (AT_SYMBOL): Delete.
5321
2c76a0c7
JB
53222012-05-09 Joel Brobecker <brobecker@adacore.com>
5323
5324 * mips-tdep.c (mips_push_dummy_code): New function.
5325 (mips_gdbarch_init): Set the gdbarch call_dummy_location to
5326 ON_STACK and install mips_push_dummy_code as our gdbarch
5327 push_dummy_code routine.
5328
9401a810
PA
53292012-05-09 Pedro Alves <palves@redhat.com>
5330
5331 * target.c (set_maintenance_target_async_permitted): Rename to ...
5332 (set_target_async_command): ... this.
5333 (show_maintenance_target_async_permitted): Rename to ...
5334 (show_target_async_command): ... this.
5335 (initialize_targets): Adjust.
5336
3929b321
DE
53372012-05-08 Doug Evans <dje@google.com>
5338
5339 * go-exp.y (classify_name): Add missing assignment of fields of
5340 yylval.ssym.
5341
c41535fd
EZ
53422012-05-08 Eli Zaretskii <eliz@gnu.org>
5343
5344 Display the ">" prompt in interactive mode while reading canned
5345 commands, even when the current interpreter is MI.
5346
5347 * interps.c (interp_set_temp): New function.
5348
5349 * interps.h (interp_set_temp): Add prototype.
5350
5351 * cli/cli-script.c (restore_interp): New cleanup function.
5352 (read_command_lines): Temporarily override the current interpreter
5353 with CLI and arrange for restoring the original one.
5354
c0749c4d
JS
53552012-05-12 Joel Sherrill <joel.sherrill@oarcorp.com>
5356
5357 * microblaze-rom.c (_initialize_picobug_rom): Add prototype.
5358
d7333987
SDJ
53592012-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
5360
5361 * probe.c (parse_probes): Move conditional to check for
5362 debuginfo files from here...
5363 * stap-probe.c (stap_get_probes): ... to here.
5364
649e6d92
MK
53652012-05-07 Mark Kettenis <kettenis@gnu.org>
5366 H.J. Lu <hongjiu.lu@intel.com>
5367
5368 * amd64-tdep.c (amd64_analyze_prologue): Additionally check for
5369 `movl %esp, %ebp' for the X32 ABI.
5370
f39c6ffd
TT
53712012-05-07 Tom Tromey <tromey@redhat.com>
5372
5373 * dwarf2read.c (dwarf_tag_name): Return const char *. Use
5374 get_DW_TAG_name.
5375 (dwarf_attr_name): Return const char *. Use get_DW_AT_name.
5376 (dwarf_form_name): Return const char *. Use get_DW_FORM_name.
5377 (dwarf_stack_op_name): Remove.
5378 (dwarf_cfi_name): Return const char *. Use get_DW_ATE_name.
5379 (decode_locdesc): Use get_DW_OP_name.
5380 * dwarf2loc.c (unimplemented): Use get_DW_OP_name.
5381 (dwarf2_compile_expr_to_ax): Likewise.
5382 (disassemble_dwarf_expression): Likewise.
5383 * dwarf2expr.h: (dwarf_stack_op_name): Remove.
5384
1e1f6591
CLT
53852012-05-07 Chung-Lin Tang <cltang@codesourcery.com>
5386
5387 * sh-linux-tdep.c: Include trad-frame.h and tramp-frame.h.
5388 (sh_linux_sigtramp_cache): New function.
5389 (sh_linux_sigreturn_init): New function.
5390 (sh_linux_rt_sigreturn_init): New function.
5391 (SH_MOVW,SH_TRAP,SH_OR_R0_R0): New symbols for instruction
5392 patterns.
5393 (SH_NR_SIGRETURN,SH_NR_RT_SIGRETURN): New symbols for sigreturn
5394 syscall codes.
5395 (sh_linux_sigreturn_tramp_frame): New tramp_frame definition.
5396 (sh_linux_rt_sigreturn_tramp_frame): Likewise.
5397 (sh_linux_init_abi): Add init calls to register new tramp_frame
5398 definitions under 32-bit SH, update comments.
5399
545c08b4
PA
54002012-05-07 Pedro Alves <palves@redhat.com>
5401
daac165e
PA
5402 PR gdb/10952
5403
545c08b4
PA
5404 * amd64-linux-tdep.c: Include glibc-tdep.h.
5405 (amd64_linux_init_abi): Install glibc_skip_solib_resolver as
5406 gdbarch_skip_solib_resolver callback.
5407
af2c1515
JK
54082012-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5409
5410 * auto-load.c (set_auto_load_safe_path): Reset AUTO_LOAD_SAFE_PATH
5411 back to DEFAULT_AUTO_LOAD_SAFE_PATH if it is being set to "".
5412 (show_auto_load_safe_path): Check any-directory by comparison with "/".
5413 (add_auto_load_safe_path): Change the error message.
5414 (_initialize_auto_load): Change the "safe-path" help text.
5415 * configure: Regenerate
5416 * configure.ac (--without-auto-load-safe-path): Set
5417 WITH_AUTO_LOAD_SAFE_PATH to /.
5418
1067f998
SDJ
54192012-05-05 Sergio Durigan Junior <sergiodj@redhat.com>
5420
5421 * stap-probe.h: Do not include unecessary `probe.h'.
5422
45dfa85a
AM
54232012-05-05 Alan Modra <amodra@gmail.com>
5424
5425 * elfread.c (elf_symtab_read): Use bfd_abs_section_ptr and
5426 bfd_und_section_ptr.
5427 * machoread.c (macho_symtab_add_minsym): Use bfd_abs_section_ptr
5428 and bfd_com_section_ptr.
5429
cf093994
JB
54302012-05-04 Joel Brobecker <brobecker@adacore.com>
5431
762ebb75 5432 * MAINTAINERS (Past Maintainers): Add Chris Faylor.
cf093994 5433
d40dc7a8
JB
54342012-05-04 Joel Brobecker <brobecker@adacore.com>
5435
5436 * windows-nat.h (segment_register_p_ftype): New typedef.
5437 (windows_set_segment_register_p): Add declaration.
5438 * windows-nat.c (segment_register_p): New static global.
5439 (windows_set_segment_register_p): New function.
5440 (do_windows_fetch_inferior_registers): Add special handling
5441 for segment registers.
5442 * amd64-windows-nat.c: #include "amd64-tdep.h".
5443 (amd64_windows_segment_register_p): New function.
5444 (_initialize_amd64_windows_nat): Call windows_set_segment_register_p.
5445 * i386-windows-nat.c: #include "i386-tdep.h".
5446 (i386_windows_segment_register_p): New function.
5447 (_initialize_i386_windows_nat): Call windows_set_segment_register_p.
5448
52b3699b
TG
54492012-05-04 Tristan Gingold <gingold@adacore.com>
5450
5451 * printcmd.c (set_command): Emit a warning if the expression is not
5452 an assignment.
5453
94c74239
JB
54542012-05-03 Joel Brobecker <brobecker@adacore.com>
5455
5456 * nto-procfs.c (procfs_find_new_threads, procfs_pid_to_str):
5457 Make static.
5458
fcf57f19
SDJ
54592012-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
5460
5461 * stap-probe.c (stap_is_operator): Change declaration.
5462 (stap_get_opcode): Change return value.
5463 (stap_parse_argument_1): Update calls to `stap_get_opcode' and
5464 `stap_parse_argument_1'.
5465
27d2932e
PA
54662012-05-03 Pedro Alves <pedro@codesourcery.com>
5467
5468 * infrun.c (displaced_step_fixup): Add "displaced:" prefix to
5469 debug log.
5470
a20ee7a4
SCR
54712012-05-03 Siva Chandra Reddy <sivachandra@google.com>
5472
5473 Add two new methods global_block and static_block to gdb.Symtab
5474 objects.
5475 * NEWS (Python scripting): Add entry about the new methods.
5476 * python/py-symtab.c (stpy_global_block): New function which
5477 implements the gdb.Symtab.global_block() method.
5478 (stpy_static_block): New function which implements the
5479 gdb.Symtab.static_block() method.
5480 (symtab_object_methods): Add entries for the two new methods.
5481
943cb756
DE
54822012-05-03 Doug Evans <dje@google.com>
5483
5484 * dwarf2read.c (dw2_find_symbol_file): Don't crash if there are no
5485 files.
5486
f4644a3f
YQ
54872012-05-03 Yao Qi <yao@codesourcery.com>
5488
5489 * i386-tdep.c (i386_fetch_pointer_argument): Remove extra
5490 space.
5491 (i386_process_record): Ditto.
5492
ef61f180
JB
54932012-05-02 Joel Brobecker <brobecker@adacore.com>
5494
5495 * infcall.c (unwind_on_signal_p): Make static.
5496
02f1df11
JB
54972012-05-02 Joel Brobecker <brobecker@adacore.com>
5498
5499 * sol-thread.c (solaris_pid_to_str): Make static.
5500 (_initialize_sol_thread): Add prototype.
5501
39023530
JB
55022012-05-02 Joel Brobecker <brobecker@adacore.com>
5503
5504 * sol-thread.c (procfs_pid_to_str): Delete extern declaration.
5505
c6b0c501
CF
55062012-05-02 Christopher Faylor <me.cygwin2012@cgf.cx>
5507
5508 * MAINTAINERS: Remove myself.
5509
1ef71717
JK
55102012-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5511
5512 Fix --without-auto-load-safe-path for MS-Windows host platform.
5513 * auto-load.c (filename_is_in_dir): Return 1 for DIR_LEN 0.
5514
b31b86a7
EZ
55152012-05-02 Eli Zaretskii <eliz@gnu.org>
5516
5517 * gdb_curses.h: Undefine KEY_EVENT before including curses
5518 headers. Move "#undef MOUSE_MOVED" before any curses header
5519 inclusion.
5520
777532fc
SDJ
55212012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
5522
5523 * features/i386/i386-mmx-linux.c: Regenerate.
5524 * features/rs6000/powerpc-32.c: Likewise.
5525 * features/rs6000/powerpc-32l.c: Likewise.
5526 * features/rs6000/powerpc-403.c: Likewise.
5527 * features/rs6000/powerpc-403gc.c: Likewise.
5528 * features/rs6000/powerpc-405.c: Likewise.
5529 * features/rs6000/powerpc-505.c: Likewise.
5530 * features/rs6000/powerpc-601.c: Likewise.
5531 * features/rs6000/powerpc-602.c: Likewise.
5532 * features/rs6000/powerpc-603.c: Likewise.
5533 * features/rs6000/powerpc-604.c: Likewise.
5534 * features/rs6000/powerpc-64.c: Likewise.
5535 * features/rs6000/powerpc-64l.c: Likewise.
5536 * features/rs6000/powerpc-750.c: Likewise.
5537 * features/rs6000/powerpc-860.c: Likewise.
5538 * features/rs6000/powerpc-e500.c: Likewise.
5539 * features/rs6000/powerpc-e500l.c: Likewise.
5540 * features/rs6000/powerpc-isa205-32l.c: Likewise.
5541 * features/rs6000/powerpc-isa205-64l.c: Likewise.
5542 * features/rs6000/rs6000.c: Likewise.
5543
d71871bc
SDJ
55442012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
5545
5546 * i386-tdep.c (i386_stap_parse_special_token) <s>: Remove unused
5547 variable.
5548 * stap-probe.c (stap_parse_single_operand) <reg_suffix,
5549 reg_ind_suffix, reg_suffix_len, reg_ind_suffix_len>: Likewise.
5550 (stap_parse_argument) <e>: Likewise.
5551 (handle_stap_probe) <byte_order>: Likewise.
5552
fd820528
DE
55532012-04-30 Doug Evans <dje@google.com>
5554
5555 * dwarf2read.c (init_cutu_and_read_dies): Renamed from
5556 init_and_read_dies_worker. All callers updated.
5557 (init_cu_and_read_dies, init_tu_and_read_dies): Delete. All calls
5558 replaced with init_cutu_and_read_dies.
5559 (load_partial_comp_unit): Pass 1 for use_existing_cu.
5560 (find_partial_die): Remove FIXME. Don't free current CU.
5561
ec3f619d 55622012-04-30 Sterling Augustine <saugustine@google.com>
be36f02d
SA
5563
5564 * contrib: New directory.
5565 * contrib/test_pubnames_and_indexes.py: New file.
5566
fceca515
DE
55672012-04-30 Doug Evans <dje@google.com>
5568
5569 * dwarf2read.c (dwarf_decode_macros): New arg section_name.
5570 All callers updated.
5571 (init_cu_die_reader): Verify the section is non-empty.
5572 (dwarf_decode_line_header): Don't dereference section->asection
5573 until we know the section is present.
5574
311fe7e1
SDJ
55752012-04-29 Sergio Durigan Junior <sergiodj@redhat.com>
5576
5577 * tracepoint.c (start_tracing, stop_tracing): Checking for NULL
5578 probes.
5579
5977971a
YQ
55802012-04-29 Yao Qi <yao@codesourcery.com>
5581
5582 * gdb-code-style.el: New hook gdb-markup-hook
5583 and gdb-comment-hook.
5584
dee91e82
DE
55852012-04-28 Doug Evans <dje@google.com>
5586
3019eac3
DE
5587 Initial support for Fission. http://gcc.gnu.org/wiki/DebugFission
5588 * symfile.c (default_symfile_relocate): Use sectp->owner instead of
5589 objfile->obfd.
5590 * symfile.h (dwarf2_debug_sections): New member addr.
5591 * dwarf2expr.c (execute_stack_op): New case DW_OP_GNU_addr_index.
5592 (ctx_no_get_addr_index): New function.
5593 * dwarf2expr.h (dwarf_expr_context_funcs): New member get_addr_index.
5594 (ctx_no_get_addr_index): Declare.
5595 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Update.
5596 * dwarf2loc.c (dwarf_expr_get_addr_index): New function.
5597 (dwarf_expr_ctx_funcs): Update.
5598 (needs_get_addr_index): New function.
5599 (needs_frame_ctx_funcs): Update.
5600 * dwarf2loc.h (dwarf2_read_addr_index): Declare.
5601 * dwarf2read.c: #include "gdbcore.h".
5602 (dwarf2_per_objfile): New members addr, dwo_files.
5603 (dwarf2_elf_names): Add entry for addr.
5604 (struct dwo_section_names): New type.
5605 (dwo_section_names): New static global.
5606 (dwarf2_cu): New members dwo_unit, addr_base, have_addr_base.
5607 (dwarf2_per_cu_data): New member is_debug_types, all boolean uses of
5608 old debug_types_section member updated to use this.
5609 Rename member debug_types_section to info_or_types_section,
5610 all uses updated.
5611 (signatured_type): Rename member type_offset to type_offset_in_tu,
5612 all uses updated. New member type_offset_in_section.
5613 (struct dwo_sections): New type.
5614 (struct dwo_unit): New type.
5615 (struct dwo_file): New type.
5616 (die_reader_specs): New member dwo_file.
5617 (dwarf2_locate_sections): Watch for .debug_addr.
5618 (zlib_decompress_section): Use sectp->owner instead of objfile->obfd.
5619 (dwarf2_read_section): Get bfd of section from bfd's asection,
5620 instead of objfile.
5621 (create_cus_from_index): Initialize the_cu->info_or_types_section.
5622 (create_signatured_type_table_from_index): Initialize
5623 sig_type->info_or_types_section.
5624 (dw2_get_file_names): Statement lists for type units with DWO files
5625 live in the DWO file.
5626 (create_debug_types_hash_table): New function.
5627 (create_all_type_units): Rewrite.
5628 (init_cu_die_reader): New arg dwo_file, all callers updated.
5629 (init_and_read_dies_worker): Get section from
5630 this_cu->info_or_types_section. Set sig_type->type_offset_in_section.
5631 Watch for DW_AT_GNU_dwo_name and if present lookup the file and
5632 continue reading the CU/TU from there.
5633 (init_cutu_and_read_dies_no_follow): New arg dwo_file, all callers
5634 updated. Get section from this_cu->info_or_types_section.
5635 (create_all_comp_units): Initialize this_cu->info_or_types_section.
5636 (skip_one_die): New cases DW_FORM_GNU_addr_index,
5637 DW_FORM_GNU_str_index.
5638 (hash_dwo_file, eq_dwo_file): New functions.
5639 (allocate_dwo_file_hash_table): New function.
5640 (hash_dwo_unit, eq_dwo_unit): New functions.
5641 (allocate_dwo_unit_table): New function.
5642 (dwarf2_locate_dwo_sections): New function.
5643 (struct create_dwo_info_table_data): New type.
5644 (create_debug_info_hash_table_reader): New function.
5645 (create_debug_info_hash_table): New function.
5646 (try_open_dwo_file, open_dwo_file, init_dwo_file): New function.
5647 (lookup_dwo_file): New function.
5648 (lookup_dwo_comp_unit, lookup_dwo_type_unit): New functions.
5649 (free_dwo_file, free_dwo_file_cleanup): New functions.
5650 (free_dwo_file_from_slot, free_dwo_files): New functions.
5651 (dwarf2_get_pc_bounds): Handle DW_FORM_GNU_addr_index.
5652 (dwarf2_record_block_ranges): Ditto.
5653 (read_partial_die): Ditto.
5654 (process_enumeration_scope): Update to use type_offset_in_section.
5655 (read_full_die_1): New function.
5656 (read_full_die): Rewrite.
5657 (read_attribute_value): New cases DW_FORM_GNU_addr_index,
5658 DW_FORM_GNU_str_index.
5659 (read_addr_index_1, read_addr_index): New functions.
5660 (read_addr_index_from_leb128): New function.
5661 (struct dwarf2_read_addr_index_data): New type.
5662 (dwarf2_read_addr_index_reader): New function.
5663 (dwarf2_read_addr_index): New function.
5664 (read_str_index): New function.
5665 (leb128_size): New function.
5666 (dwarf_decode_line_header): Delete arg abfd, all callers updated.
5667 If processing a type unit from a DWO file, get the line section
5668 from the DWO file.
5669 (var_decode_location): Watch for DW_OP_GNU_addr_index.
5670 (dwarf2_const_value_attr): New cases DW_FORM_GNU_addr_index,
5671 DW_FORM_GNU_str_index.
5672 (lookup_die_type): Check whether section offset of type's die is
5673 known before looking it up. Remove assert. Condition can
5674 legimately happen for inter-cu type references.
5675 (dwarf_attr_name): Handle Fission attributes.
5676 (dwarf_form_name): Handle Fission forms.
5677 (dump_die_shallow): New cases DW_FORM_GNU_addr_index,
5678 DW_FORM_GNU_str_index.
5679 (follow_die_sig): Update to use type_offset_in_section.
5680 (decode_locdesc): New case DW_OP_GNU_addr_index.
5681 (skip_form_bytes): New cases DW_FORM_GNU_addr_index,
5682 DW_FORM_GNU_str_index.
5683 (cu_debug_loc_section): New function.
5684 (fill_in_loclist_baton, dwarf2_symbol_mark_computed): Call it.
5685 (dwarf2_per_objfile_free): Unmap .debug_addr section.
5686 Free DWO files if present.
5687 * xcoffread.c (dwarf2_xcoff_names): Add .debug_addr.
5688
dee91e82
DE
5689 Refactor DIE reading.
5690 * dwarf2read.c (dwarf2_per_objfile): Replace members
5691 debug_info_type_hash and debug_types_type_hash with die_type_hash.
5692 (die_reader_specs): New member "die_section". Temporarily make
5693 member "buffer" non-const, pending constifying all info_ptr uses.
5694 (die_reader_func_ftype): New typedef.
5695 (dw2_get_file_names_reader): New function.
5696 (dw2_get_file_names): Rewrite.
5697 (read_and_check_type_unit_head): Rename arg type_offset to
5698 type_offset_in_tu.
5699 (create_all_type_units): Improve debugging message.
5700 Improve dummy type unit check.
5701 (init_cu_die_reader): New arg "section". All callers updated.
5702 (init_and_read_dies_worker): New function.
5703 (init_cu_and_read_dies, init_tu_and_read_dies): New functions.
5704 (init_cutu_and_read_dies_no_follow): New function.
5705 (init_cutu_and_read_dies_simple): New function.
5706 (process_psymtab_comp_unit_reader): New function.
5707 (process_psymtab_comp_unit): Delete args section,
5708 is_debug_types_section. Rewrite. All callers updated.
5709 (process_psymtab_type_unit): Renamed from process_type_comp_unit.
5710 All callers updated. Rewrite.
5711 (load_partial_comp_unit_reader): New function.
5712 (load_partial_comp_unit): Rewrite.
5713 (skip_children): New arg reader. Delete args buffer, cu.
5714 All callers updated.
5715 (skip_one_die): New arg reader. Delete args buffer, cu.
5716 All callers updated.
5717 (locate_pdi_sibling): New arg reader. Delete args buffer, abfd, cu.
5718 All callers updated.
5719 (load_full_comp_unit_reader): New function.
5720 (load_full_comp_unit): Rewrite.
5721 (read_comp_unit): Delete.
5722 (read_die_and_children_1): Delete, contents moved ...
5723 (read_die_and_children): ... here.
5724 (dwarf2_read_abbrevs): New arg abbrev_section. All callers updated.
5725 (load_partial_dies): New arg reader. Delete args abfd, buffer, cu.
5726 All callers updated.
5727 (read_partial_die): New arg reader. Delete args abfd, buffer, cu.
5728 All callers updated.
5729 (find_partial_die): Rewrite load_all_dies support.
5730 (read_attribute_value): New arg reader. Delete args abfd, cu.
5731 All callers updated.
5732 (read_attribute): New arg reader. Delete args abfd, cu.
5733 All callers updated.
5734 (load_full_type_unit): Add assert.
5735 (read_signatured_type_reader): New function.
5736 (read_signatured_type): Rewrite.
5737 (free_stack_comp_unit): Remove call to age_cached_comp_units.
5738 (free_one_cached_comp_unit): Change target_cu arg to target_per_cu.
5739 All callers updated. Set per_cu->cu = NULL after freeing it.
5740 (dwarf2_per_cu_offset_and_type): Renamed from dwarf2_offset_and_type.
5741 (per_cu_offset_and_type_hash): Renamed from offset_and_type_hash.
5742 (per_cu_offset_and_type_eq): Renamed from offset_and_type_eq.
5743 (set_die_type): Update.
5744 (get_die_type_at_offset): Update.
5745 (read_file_scope): Call prepare_one_comp_unit.
5746 (read_type_unit_scope): Ditto.
5747 (prepare_one_comp_unit): Set producer if present.
5748
72d59e0d
SDJ
57492012-04-28 Sergio Durigan Junior <sergiodj@redhat.com>
5750
5751 * probe.c (compile_rx_or_error): Silence ARI warning about missing
5752 gettext function on `error'.
5753
0fefef59
DE
57542012-04-27 Doug Evans <dje@google.com>
5755
5756 * dwarf2read.c (dwarf2_read_index): Don't use index if symbol table
5757 is empty.
5758
28106bc2
SDJ
57592012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
5760 Tom Tromey <tromey@redhat.com>
5761
5762 * breakpoint.c (struct breakpoint_objfile_data)
5763 <longjmp_searched>,<longjmp_probes>,<exception_searched>,
5764 <exception_probes>: New fields.
5765 (free_breakpoint_probes): New function.
5766 (create_longjmp_master_breakpoint): Prefer SystemTap probe over
5767 `_Unwind_DebugHook'.
5768 (create_exception_master_breakpoint): Likewise.
5769 (_initialize_breakpoint): Registering cleanup for SystemTap probes.
5770 * infrun.c: Including necessary header files for handling SystemTap
5771 probes.
5772 (handle_inferior_event): Handling longjmp breakpoint and exceptions
5773 via SystemTap probes.
5774 (check_exception_resume): Remove `func' argument. Handle exception
5775 unwinding breakpoint set via a SystemTap probe.
5776 (insert_exception_resume_from_probe): New function.
5777
55aa24fb
SDJ
57782012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
5779 Tom Tromey <tromey@redhat.com>
5780 Jan Kratochvil <jan.kratochvil@redhat.com>
5781
5782 * Makefile.in (SFILES): Add `probe' and `stap-probe'.
5783 (COMMON_OBS): Likewise.
5784 (HFILES_NO_SRCDIR): Add `probe'.
5785 * NEWS: Mention support for static and SystemTap probes.
5786 * amd64-tdep.c (amd64_init_abi): Initializing proper fields used by
5787 SystemTap probes' arguments parser.
5788 * arm-linux-tdep.c: Including headers needed to perform the parsing
5789 of SystemTap probes' arguments.
5790 (arm_stap_is_single_operand): New function.
5791 (arm_stap_parse_special_token): Likewise.
5792 (arm_linux_init_abi): Initializing proper fields used by SystemTap
5793 probes' arguments parser.
5794 * ax-gdb.c (require_rvalue): Removing static declaration.
5795 (gen_expr): Likewise.
5796 * ax-gdb.h (gen_expr): Declaring function.
5797 (require_rvalue): Likewise.
5798 * breakpoint.c: Include `gdb_regex.h' and `probe.h'.
5799 (bkpt_probe_breakpoint_ops): New variable.
5800 (momentary_breakpoint_from_master): Set the `probe' value.
5801 (add_location_to_breakpoint): Likewise.
5802 (break_command_1): Using proper breakpoint_ops according to the
5803 argument passed by the user in the command line.
5804 (bkpt_probe_insert_location): New function.
5805 (bkpt_probe_remove_location): Likewise.
5806 (bkpt_probe_create_sals_from_address): Likewise.
5807 (bkpt_probe_decode_linespec): Likewise.
5808 (tracepoint_probe_create_sals_from_address): Likewise.
5809 (tracepoint_probe_decode_linespec): Likewise.
5810 (tracepoint_probe_breakpoint_ops): New variable.
5811 (trace_command): Using proper breakpoint_ops according to the
5812 argument passed by the user in the command line.
5813 (initialize_breakpoint_ops): Initializing breakpoint_ops for
5814 static probes on breakpoints and tracepoints.
5815 * breakpoint.h (struct bp_location) <probe>: New field.
5816 * cli-utils.c (skip_spaces_const): New function.
5817 (extract_arg): Likewise.
5818 * cli-utils.h (skip_spaces_const): Likewise.
5819 (extract_arg): Likewise.
5820 * coffread.c (coff_sym_fns): Add `sym_probe_fns' value.
5821 * configure.ac: Append `stap-probe.o' to be generated when ELF
5822 support is present.
5823 * configure: Regenerate.
5824 * dbxread.c (aout_sym_fns): Add `sym_probe_fns' value.
5825 * elfread.c: Include `probe.h' and `arch-utils.h'.
5826 (probe_key): New variable.
5827 (elf_get_probes): New function.
5828 (elf_get_probe_argument_count): Likewise.
5829 (elf_evaluate_probe_argument): Likewise.
5830 (elf_compile_to_ax): Likewise.
5831 (elf_symfile_relocate_probe): Likewise.
5832 (stap_probe_key_free): Likewise.
5833 (elf_probe_fns): New variable.
5834 (elf_sym_fns): Add `sym_probe_fns' value.
5835 (elf_sym_fns_lazy_psyms): Likewise.
5836 (elf_sym_fns_gdb_index): Likewise.
5837 (_initialize_elfread): Initialize objfile cache for static
5838 probes.
5839 * gdb_vecs.h (struct probe): New forward declaration.
5840 (probe_p): New VEC declaration.
5841 * gdbarch.c: Regenerate.
5842 * gdbarch.h: Regenerate.
5843 * gdbarch.sh (stap_integer_prefix): New variable.
5844 (stap_integer_suffix): Likewise.
5845 (stap_register_prefix): Likewise.
5846 (stap_register_suffix): Likewise.
5847 (stap_register_indirection_prefix): Likewise.
5848 (stap_register_indirection_suffix): Likewise.
5849 (stap_gdb_register_prefix): Likewise.
5850 (stap_gdb_register_suffix): Likewise.
5851 (stap_is_single_operand): New function.
5852 (stap_parse_special_token): Likewise.
5853 (struct stap_parse_info): Forward declaration.
5854 * i386-tdep.c: Including headers needed to perform the parsing
5855 of SystemTap probes' arguments.
5856 (i386_stap_is_single_operand): New function.
5857 (i386_stap_parse_special_token): Likewise.
5858 (i386_elf_init_abi): Initializing proper fields used by SystemTap
5859 probes' arguments parser.
5860 * i386-tdep.h (i386_stap_is_single_operand): New function.
5861 (i386_stap_parse_special_token): Likewise.
5862 * machoread.c (macho_sym_fns): Add `sym_probe_fns' value.
5863 * mipsread.c (ecoff_sym_fns): Likewise.
5864 * objfiles.c (objfile_relocate1): Support relocation for static
5865 probes.
5866 * parse.c (prefixify_expression): Remove static declaration.
5867 (initialize_expout): Likewise.
5868 (reallocate_expout): Likewise.
5869 * parser-defs.h (initialize_expout): Declare function.
5870 (reallocate_expout): Likewise.
5871 (prefixify_expression): Likewise.
5872 * ppc-linux-tdep.c: Including headers needed to perform the parsing
5873 of SystemTap probes' arguments.
5874 (ppc_stap_is_single_operand): New function.
5875 (ppc_stap_parse_special_token): Likewise.
5876 (ppc_linux_init_abi): Initializing proper fields used by SystemTap
5877 probes' arguments parser.
5878 * probe.c: New file, for generic statically defined probe support.
5879 * probe.h: Likewise.
5880 * s390-tdep.c: Including headers needed to perform the parsing of
5881 SystemTap probes' arguments.
5882 (s390_stap_is_single_operand): New function.
5883 (s390_gdbarch_init): Initializing proper fields used by SystemTap
5884 probes' arguments parser.
5885 * somread.c (som_sym_fns): Add `sym_probe_fns' value.
5886 * stap-probe.c: New file, for SystemTap probe support.
5887 * stap-probe.h: Likewise.
5888 * symfile.h: Include `gdb_vecs.h'.
5889 (struct sym_probe_fns): New struct.
5890 (struct sym_fns) <sym_probe_fns>: New field.
5891 * symtab.c (init_sal): Initialize `probe' field.
5892 * symtab.h (struct probe): Forward declaration.
5893 (struct symtab_and_line) <probe>: New field.
5894 * tracepoint.c (start_tracing): Adjust semaphore on breakpoints
5895 locations.
5896 (stop_tracing): Likewise.
5897 * xcoffread.c (xcoff_sym_fns): Add `sym_probe_fns' value.
5898
22d2b532
SDJ
58992012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
5900 Tom Tromey <tromey@redhat.com>
5901
5902 * ax-gdb.c (gen_expr): Clean up code to handle internal variables
5903 and to compile agent expressions.
5904 * infrun.c (siginfo_make_value): New argument `ignore'.
5905 (siginfo_funcs): New struct.
5906 (_initialize_infrun): New argument when calling
5907 `create_internalvar_type_lazy'.
5908 * thread.c (thread_id_make_value): New argument `ignore'.
5909 (thread_funcs): New struct.
5910 (_initialize_thread): New argument when calling
5911 `create_internalvar_type_lazy'.
5912 * tracepoint.c (sdata_make_value): New argument `ignore'.
5913 (sdata_funcs): New struct.
5914 (_initialize_tracepoint): New argument when calling
5915 `create_internalvar_type_lazy'.
5916 * value.c (make_value): New struct.
5917 (create_internalvar_type_lazy): New argument `data'.
5918 (compile_internalvar_to_ax): New function.
5919 (value_of_internalvar): Properly handling `make_value' case.
5920 (clear_internalvar): Likewise.
5921 (show_convenience): Adding `TRY_CATCH' block.
5922 * value.h (internalvar_make_value): Delete, replace by...
5923 (struct internalvar_funcs): ... this.
5924 (create_internalvar_type_lazy) <fun>: Delete argument.
5925 (create_internalvar_type_lazy) <funcs>, <data>: New arguments.
5926 (compile_internalvar_to_ax): New function.
5927 * windows-tdep.c (tlb_make_value): New argument `ignore'.
5928 (tlb_funcs): New struct.
5929 (_initialize_windows_tdep): New argument when calling
5930 `create_internalvar_type_lazy'.
5931
91da1414
MW
59322012-04-27 Mark Wielaard <mjw@redhat.com>
5933
5934 * dwarf2read.c (dwarf2_get_pc_bounds): Check DW_AT_high_pc form to
5935 see whether it is an address or a constant offset from DW_AT_low_pc.
5936 (dwarf2_record_block_ranges): Likewise.
5937 (read_partial_die): Likewise.
5938
4ab9d8ec
MW
59392012-04-26 Mark Wielaard <mjw@redhat.com>
5940
5941 * MAINTAINERS (Write After Approval): Add myself to the list.
5942
a0911fd0
MR
59432012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
5944
5945 * proc-utils.h (proc_prettyprint_signalset): New prototype.
5946 (proc_prettyprint_signal): Likewise.
5947 (proc_prettyprint_faultset): Likewise.
5948 (proc_prettyprint_fault): Likewise.
5949 (proc_prettyprint_actionset): Likewise.
5950 (proc_prettyprint_flags): Move to new proc-flags.c section.
5951 (proc_prettyfprint_flags): New prototype.
5952 * procfs.c (proc_nsysarg, proc_sysargs): Add prototypes.
5953 (proc_syscall, proc_cursig): Likewise.
5954 (proc_set_kill_on_last_close): Likewise.
5955 (proc_unset_kill_on_last_close): Likewise.
5956 (proc_set_watchpoint): Make static.
5957 (proc_delete_dead_threads): Likewise.
5958 (procfs_set_watchpoint): Likewise.
5959 (_initialize_procfs): Add prototype.
5960 * proc-events.c: Include proc-utils.h.
5961 (init_syscall_table): Make static.
5962 * proc-api.c (_initialize_proc_api): Add prototype.
5963 * proc-flags.c: Include proc-utils.h.
5964
9009e1ae
MR
59652012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
5966
5967 * configure.ac: Add AC_ARG_PROGRAM.
5968 * configure: Regenerate.
5969
4fae6e18
JK
59702012-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
5971
5972 Fix DW_AT_lower_bound defaults for DWARF-4+.
5973 * dwarf2read.c (read_subrange_type): Remove initialization of low and
5974 high. New variable low_default_is_valid. Implement DWARF-4+
5975 DW_AT_lower_bound defaults. Print complaint for DW_AT_lower_bound with
5976 no default by the DWARF standard.
5977
14132e89 59782012-04-26 Maciej W. Rozycki <macro@mips.com>
f782ad9b 5979 Maciej W. Rozycki <macro@codesourcery.com>
14132e89
MR
5980
5981 * infrun.c (handle_inferior_event): Move the check for return
5982 trampolines ahead of the check for function trampolines.
5983 * mips-tdep.h (MIPS_S2_REGNUM, MIPS_GP_REGNUM): New macros.
5984 * mips-tdep.c (mips_str_mips16_call_stub): New variable.
5985 (mips_str_mips16_ret_stub): Likewise.
5986 (mips_str_call_fp_stub): Likewise.
5987 (mips_str_call_stub): Likewise.
5988 (mips_str_fn_stub): Likewise.
5989 (mips_str_pic): Likewise.
5990 (mips_in_frame_stub): New function.
5991 (mips_unwind_pc): Return the return address rather than the PC
5992 if the PC of an intermediate frame is inside a call thunk.
5993 (mips_is_stub_suffix): New function.
5994 (mips_is_stub_mode): Likewise.
5995 (mips_get_mips16_fn_stub_pc): Likewise.
5996 (mips_skip_mips16_trampoline_code): Update to handle all the
5997 currently generated stub types. Don't recurse into __fn_stub
5998 thunks. Remove heuristics to handle stubs beyond etext/_etext.
5999 Use cooked register accesses.
6000 (mips_in_return_stub): Reintroduce function.
6001 (mips_skip_trampoline_code): Traverse trampolines recursively.
6002 (mips_gdbarch_init): Handle MIPS16 return trampolines.
6003
518f0db5 60042012-04-26 Joel Brobecker <brobecker@adacore.com>
6005
6006 GDB 7.4.1 released.
6007
3184d3f9
JL
60082012-04-26 Jonathan Larmour <jifl@eCosCentric.com>
6009
6010 * arm-tdep.h (VFP_REGISTER_SIZE): Define.
6011 * features/arm-with-m-vfp-d16.xml: New file. Describes
6012 Cortex-M with VFPv4-sp-d16 FPU register layout.
6013 * features/Makefile (WHICH): Add arm-with-m-vfp-d16.
6014 * features/arm-with-m-vfp-d16.c: New. Generated from above.
6015 * arm-tdep.c: Include arm-with-m-vfp-d16.c.
6016 (arm-register_g_packet_guesses): Add vfp-d16 guess.
6017 (_initialise_arm_tdep): Initialize arm-with-m-vfp-d16 tdesc.
6018
b6201d44
DE
60192012-04-25 Doug Evans <dje@google.com>
6020
6021 * cli/cli-decode.c (print_doc_line): Use stream instead of
6022 current_uiout.
6023
4e2f8df6
SDJ
60242012-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
6025
6026 * features/arm-with-iwmmxt.c: Regenerate.
6027 * features/arm-with-m-fpa-layout.c: Likewise.
6028 * features/arm-with-m.c: Likewise.
6029 * features/arm-with-neon.c: Likewise.
6030 * features/arm-with-vfpv2.c: Likewise.
6031 * features/arm-with-vfpv3.c: Likewise.
6032 * features/mips-dsp-linux.c: Likewise.
6033 * features/mips-linux.c: Likewise.
6034 * features/mips64-dsp-linux.c: Likewise.
6035 * features/mips64-linux.c: Likewise.
6036 * features/s390-linux32.c: Likewise.
6037 * features/s390-linux32v1.c: Likewise.
6038 * features/s390-linux32v2.c: Likewise.
6039 * features/s390-linux64.c: Likewise.
6040 * features/s390-linux64v1.c: Likewise.
6041 * features/s390-linux64v2.c: Likewise.
6042 * features/s390x-linux64.c: Likewise.
6043 * features/s390x-linux64v1.c: Likewise.
6044 * features/s390x-linux64v2.c: Likewise.
6045 * features/tic6x-c62x-linux.c: Likewise.
6046 * features/tic6x-c62x.c: Likewise.
6047 * features/tic6x-c64x-linux.c: Likewise.
6048 * features/tic6x-c64x.c: Likewise.
6049 * features/tic6x-c64xp-linux.c: Likewise.
6050 * features/tic6x-c64xp.c: Likewise.
6051 * target-descriptions.c: Only generate `field_type' and `type'
6052 variables when needed.
6053
2def3e66
JB
60542012-04-25 Fredrik Hederstierna <fredrikh.hederstierna@securitas-direct.com>
6055
6056 * cli/cli-cmds.c (cd_command): Use memmove instead of strcpy.
6057
a766d390
DE
60582012-04-25 Doug Evans <dje@google.com>
6059
6060 Initial pass at Go language support.
6061 * NEWS: Mention Go.
6062 * Makefile.in (SFILES): Add go-exp.y, go-lang.c, go-typeprint.c,
6063 go-valprint.c.
6064 (COMMON_OBS): Add go-lang.o, go-val.print.o, go-typeprint.o.
6065 (YYFILES): Add go-exp.c.
6066 (YYOBJ): Add go-exp.o.
6067 (local-maintainer-clean): Delete go-exp.c.
6068 * defs.h (enum language): Add language_go.
6069 * dwarf2read.c: #include "go-lang.h".
6070 (fixup_go_packaging): New function.
6071 (process_full_comp_unit): Call it when processing Go CUs.
6072 (dwarf2_physname): Add Go support.
6073 (read_file_scope): Handle missing language spec for GNU Go.
6074 (set_cu_language): Handle DW_LANG_Go.
6075 * go-exp.y: New file.
6076 * go-lang.h: New file.
6077 * go-lang.c: New file.
6078 * go-typeprint.c: New file.
6079 * go-valprint.c: New file.
6080 * symtab.c: #include "go-lang.h".
6081 (symbol_set_language): Handle language_go.
6082 (symbol_find_demangled_name, symbol_set_names): Ditto.
6083 (symbol_natural_name, demangle_for_lookup, find_main_name): Ditto.
6084
4e2af517
JM
60852012-04-24 Jim Meyering <meyering@redhat.com>
6086
6087 avoid a few strncpy-induced buffer overruns
6088 * procfs.c (procfs_make_note_section): Be sure to NUL-terminate
6089 fname and psargs before trying to concatenate.
6090 * tui/tui-stack.c (tui_get_function_from_frame): NUL-terminate
6091 "name" before applying strchr.
6092
b77b7f52
SCR
60932012-04-25 Siva Chandra Reddy <sivachandra@google.com>
6094
6095 * CONTRIBUTE: Use unified diff instead of context diff when
6096 generating patches.
6097
6321c22a
MR
60982012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
6099
6100 * mips-tdep.c (mips_about_to_return): Remove dead MIPS16 support
6101 code. Handle JR.HB correctly.
6102
742c84f6
MR
61032012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
6104
6105 * mips-tdep.c
6106 (is_mips16_addr, unmake_mips16_addr, make_mips16_addr): Group
6107 with the other MIPS16 helpers.
6108
7fc7e0c3
SDJ
61092012-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
6110
6111 * observer.sh: Conditionally declare `args', thus cleaning up
6112 unused instances of this variable.
6113
20388dd6
YQ
61142012-04-24 Yao Qi <yao@codesourcery.com>
6115
6116 Revert this patch to allow breakpoint always-inserted
6117 in record target.
6118 2011-12-05 Pedro Alves <pedro@codesourcery.com>
f782ad9b
AS
6119 * breakpoint.c: Include record.h.
6120 (breakpoints_always_inserted_mode): Return false when the record
6121 target is in use.
20388dd6
YQ
6122
6123 * breakpoint.c (iterate_over_bp_locations): New.
6124 * breakpoint.h: Declare.
6125 New typedef walk_bp_location_callback.
6126 * record.c (record_open): Call record_init_record_breakpoints.
6127 (record_sync_record_breakpoints): New.
6128 (record_init_record_breakpoints): New.
6129 * NEWS: Mention supporting breakpoint always-inserted mode in
6130 record target.
6131
4734f50e
MK
61322012-04-24 Marc Khouzam <marc.khouzam@ericsson.com>
6133
6134 * mi/mi-main.c (mi_cmd_execute): Choose a live thread not just
6135 any thread.
6136
c326b90e
YQ
61372012-04-24 Yao Qi <yao@codesourcery.com>
6138
6139 * breakpoint.c (ep_is_catchpoint): Renamed to ...
6140 (is_catchpoint): ... it.
6141 (print_one_breakpoint_location): Caller update.
6142 * breakpoint.h: Update declaration.
6143
d8fb5a1e
DM
61442012-04-23 David S. Miller <davem@davemloft.net>
6145
6146 * configure.tgt (sparc-*-linux*): Set build_gdbserver to yes.
6147
34431a2a
TT
61482012-04-23 Tom Tromey <tromey@redhat.com>
6149
6150 * buildsym.c (add_free_pendings): Remove.
6151 * buildsym.h (add_free_pendings): Remove.
6152
4568ecf9
DE
61532012-04-23 Doug Evans <dje@google.com>
6154
6155 * dwarf2read.c (partial_die_full_name): Record DW_FORM_ref_addr in
6156 attr.u.unsnd instead of attr.u.addr.
6157 (read_attribute_value) Ditto for cases DW_FORM_ref_addr,
6158 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4, DW_FORM_reg8,
6159 DW_FORM_ref_udata.
6160 (dump_die_shallow): Update cases DW_FORM_ref_addr,
6161 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4. Add cases DW_FORM_ref8,
6162 DW_FORM_ref_udata.
6163 (dwarf2_get_ref_die_offset): Use DW_UNSND for reference attributes.
6164
dca9aa3a
MR
61652012-04-23 Maciej W. Rozycki <macro@codesourcery.com>
6166
6167 * mips-tdep.c (mips_n32n64_return_value): Fix coding style.
6168 (mips_o32_return_value): Likewise.
6169 (mips_o64_return_value): Likewise.
6170
c8ea1972
PH
61712012-04-21 Paul Hilfinger <hilfinger@adacore.com>
6172
6173 * ada-lang.c (ada_evaluate_subexp): Add cases for
f782ad9b
AS
6174 TYPE_CODE_INTERNAL_FUNCTION and for TYPE_GNU_IFUNC, following
6175 their treatment in eval.c.
c8ea1972 6176
8d1b3521
DM
61772012-04-21 David S. Miller <davem@davemloft.net>
6178
6179 * sparc-tdep.c (X_DISP10): Define.
6180 (sparc_analyze_control_transfer): Handle compare-and-branch.
6181
03145bf4
JL
61822012-04-21 Jonathan Larmour <jifl@eCosCentric.com>
6183
6184 * features/Makefile (WHICH): Add arm-with-m and arm-with-m-fpa-layout.
6185 * arm-tdep.c (arm_register_g_packet_guesses): Fix comment.
6186
004159a2 61872012-04-20 Nigel Stephens <nigel@mips.com>
f782ad9b 6188 Maciej W. Rozycki <macro@codesourcery.com>
004159a2
MR
6189
6190 * mips-tdep.c (mips_float_register_p): New function.
6191 (mips_convert_register_float_case_p): Use mips_float_register_p.
6192 (mips_register_type): Likewise.
6193 (mips_print_register): Likewise.
6194 (print_gp_register_row): Likewise.
6195 (mips_print_registers_info): Likewise.
6196
7f0e6aae
MR
61972012-04-20 Shun-Yen Lu <dark.asparagus@gmail.com>
6198
6199 * mips-tdep.c (mips_elf_make_msymbol_special): Fix identification
6200 of mips16 symbols.
6201
bc17beea
AP
62022012-04-20 Andrew Pinski <apinski@cavium.com>
6203
6204 * MAINTAINERS (Write After Approval): Add myself to the list.
6205
1730a5a5
SDJ
62062012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
6207
6208 * MAINTAINERS: Update my e-mail address.
6209
38ea300a
PA
62102012-04-20 Pedro Alves <palves@redhat.com>
6211
6212 * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Handle absolute
6213 $srcdir.
6214 * configure: Regenerate.
6215
111dfaae
SDJ
62162012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
6217
6218 * cp-support.h: Include `gdb_vecs.h'. Delete `const_char_ptr' VEC
6219 declaration.
6220 * gdb_vecs.h: Declare `const_char_ptr' VEC.
6221
4fb2c64a
JK
62222012-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6223
6224 Fix compilation compatibility with python-2.4
6225 * python/py-type.c (convert_field): Cast ADDRSTRING for
6226 PyObject_SetAttrString as non-const. New comment.
6227
6328eb38
TT
62282012-04-19 Tom Tromey <tromey@redhat.com>
6229
6230 * top.c (quit_target): Use all_cleanups.
6231 * main.c (captured_command_loop): Use all_cleanups.
6232 * exceptions.c (throw_exception): Use all_cleanups.
6233
c971b7fa
PA
62342012-04-19 Pedro Alves <palves@redhat.com>
6235
6236 * Makefile.in (GNULIB_BUILDDIR): New.
6237 (LIBGNU, INCGNU, GNULIB_H): Adjust.
6238 (SUBDIRS): Add $(GNULIB_BUILDDIR).
6239 (CLEANDIRS). Remove gnulib/import.
6240 (REQUIRED_SUBDIRS): Replace gnulib/import with $(GNULIB_BUILDDIR).
6241 (all-lib): Ditto.
6242 (distclean): Remove the $(GNULIB_BUILDDIR) directory.
6243 (gnulib/import/Makefile): Replace gnulib/import with
6244 $(GNULIB_BUILDDIR). Set CONFIG_FILES to just Makefile.
6245 (ACLOCAL_AMFLAGS): Remove '-I gnulib/import/m4'.
6246 (aclocal_m4_deps): Remove the gnulib dependencies. Add
6247 acx_configure_dir.m4.
6248 * acinclude.m4: Include acx_configure_dir.m4.
6249 * acx_configure_dir.m4: New file.
6250 * aclocal.m4: Regenerate.
a09130f9
PA
6251 * configure.ac: Remove gl_EARLY, gl_INIT and AM_INIT_AUTOMAKE
6252 calls. Configure gnulib using ACX_CONFIGURE_DIR.
6253 (GNULIB): New variable.
6254 (GNULIB_STDINT_H): Adjust.
6255 (AC_OUTPUT): Don't output gnulib/Makefile.
6256 * gdb/defs.h: Include build-gnulib/config.h.
6257 * aclocal.m4: Regenerate.
6258 * config.in: Regenerate.
6259 * configure: Regenerate.
6260
6261 * gnulib/Makefile.in: New file.
6262 * gnulib/configure.ac: New file.
6263 * gnulib/aclocal.m4: New file.
6264 * gnulib/config.in: New file.
6265 * gnulib/configure: New file.
c971b7fa
PA
6266 * gnulib/: Re-run gnulib-tool to adjust.
6267
b10faa68
DE
62682012-04-19 Doug Evans <dje@google.com>
6269
6270 * cleanups.h (struct cleanup): Move to cleanups.c.
6271 (make_cleanup_dtor_ftype): New typedef.
6272 (make_cleanup_dtor): Use it.
6273 (ALL_CLEANUPS): Replace with ...
6274 (all_cleanups): ... this. Declare. All uses updated.
6275 * cleanups.c: #include "gdb_assert.h".
6276 (sentinel_cleanup): New static global.
6277 (SENTINEL_CLEANUP): Define.
6278 (cleanup_chain, final_cleanup_chain): Initialize to SENTINEL_CLEANUP.
6279 (make_my_cleanup2): Assert result is non-NULL.
6280 (all_cleanups): New function.
6281 (save_my_cleanups): Initialize new chain to SENTINEL_CLEANUP instead
6282 of NULL.
6283
d8c267cc
PA
62842012-04-19 Pedro Alves <palves@redhat.com>
6285
6286 * Makefile.in (HFILES_NO_SRCDIR): Remove gnulib/wchar.in.h.
6287 Adjust paths to gnulib imported files.
6288
809277f8
PA
62892012-04-19 Pedro Alves <palves@redhat.com>
6290
6291 * gnulib/: Move whole directory ...
6292 * gnulib/import/: ... here, and re-rerun gnulib-tool to adjust.
6293 * Makefile.in (LIBGNU, INCGNU, GNULIB_H, CLEANDIRS)
6294 (REQUIRED_SUBDIRS, all-lib, gnulib/Makefile, ACLOCAL_AMFLAGS)
6295 (aclocal_m4_deps): Adjust.
6296 * aclocal.m4: Regenerate.
6297 * configure: Regenerate.
6298 * configure.ac: Adjust AC_OUTPUT output.
6299
aad9eab9
YQ
63002012-04-19 Yao Qi <yao@codesourcery.com>
6301
6302 * Makefile.in (SFILES): Add common/vec.c and remove vec.c.
6303 (vec.o): New rule.
6304 * vec.c: Move it ...
6305 * common/vec.c: ... here.
6306 * vec.h: Move it ...
6307 * common/vec.h: ... here.
6308
48fe4669
YQ
63092012-04-19 Yao Qi <yao@codesourcery.com>
6310
6311 * gdb-code-style.el: New.
6312
770d76d7
PA
63132012-04-18 Pedro Alves <palves@redhat.com>
6314
6315 Update gnulib from latest git.
6316 (639ea5ae15e39fe48d43e04864b2997301e4b969)
6317
6318 * gnulib/Makefile.am: Update.
6319 * gnulib/dummy.c: Update.
6320 * gnulib/extra/arg-nonnull.h: Update.
6321 * gnulib/extra/c++defs.h: Update.
6322 * gnulib/extra/update-copyright: Update.
6323 * gnulib/extra/warn-on-use.h: Update.
6324 * gnulib/inttypes.in.h: Update.
6325 * gnulib/m4/00gnulib.m4: Update.
6326 * gnulib/m4/extensions.m4: Update.
6327 * gnulib/m4/gnulib-cache.m4: Update.
6328 * gnulib/m4/gnulib-common.m4: Update.
6329 * gnulib/m4/gnulib-comp.m4: Update.
6330 * gnulib/m4/gnulib-tool.m4: Update.
6331 * gnulib/m4/include_next.m4: Update.
6332 * gnulib/m4/inttypes-pri.m4: Update.
6333 * gnulib/m4/inttypes.m4: Update.
6334 * gnulib/m4/longlong.m4: Update.
6335 * gnulib/m4/memchr.m4: Update.
6336 * gnulib/m4/memmem.m4: Update.
6337 * gnulib/m4/mmap-anon.m4: Update.
6338 * gnulib/m4/multiarch.m4: Update.
6339 * gnulib/m4/onceonly.m4: Update.
6340 * gnulib/m4/stddef_h.m4: Update.
6341 * gnulib/m4/stdint.m4: Update.
6342 * gnulib/m4/string_h.m4: Update.
6343 * gnulib/m4/warn-on-use.m4: Update.
6344 * gnulib/m4/wchar_h.m4: Update.
6345 * gnulib/m4/wchar_t.m4: Update.
6346 * gnulib/m4/wint_t.m4: Update.
6347 * gnulib/memchr.c: Update.
6348 * gnulib/memmem.c: Update.
6349 * gnulib/stddef.in.h: Update.
6350 * gnulib/stdint.in.h: Update.
6351 * gnulib/str-two-way.h: Update.
6352 * gnulib/string.in.h: Update.
6353 * gnulib/wchar.in.h: Update.
6354
6355 * gnulib/extra/arg-nonnull.h: Delete.
6356 * gnulib/extra/c++defs.h: Delete.
6357 * gnulib/extra/warn-on-use.h: Delete.
6358 * gnulib/m4/wchar_h.m4: Delete.
6359 * gnulib/m4/wint_t.m4: Delete.
6360 * gnulib/wchar.in.h: Delete.
6361
6362 * gnulib/extra/snippets/arg-nonnull.h: New.
6363 * gnulib/extra/snippets/c++defs.h: New.
6364 * gnulib/extra/snippets/warn-on-use.h: New.
6365
6366 * aclocal.m4: Regenerate.
6367 * config.in: Regenerate.
6368 * configure: Regenerate.
6369 * gnulib/Makefile.in: Regenerate.
6370
174e088e
PA
63712012-04-18 Pedro Alves <palves@redhat.com>
6372
6373 Reimport the update-copyright module from gnulib
6374 (250b80067c1e1d8faa0c42fb572f721975b929c5).
6375
6376 * configure: Regenerate.
6377 * gnulib/Makefile.am: Update.
6378 * gnulib/Makefile.in: Regenerate.
6379 * gnulib/extra/update-copyright: Update.
6380 * gnulib/m4/gnulib-cache.m4: Update.
6381 * gnulib/m4/gnulib-comp.m4: Update.
6382
7f533142
JB
63832012-04-18 Tristan Gingold <gingold@adacore.com>
6384
6385 * configure.ac (aix): Put -lpthread into libs.
6386 * configure: Regenerate.
6387
001822aa
TT
63882012-04-18 Tom Tromey <tromey@redhat.com>
6389
6390 * linespec.c (convert_linespec_to_sals): Don't use
6391 SYMBOL_OBJ_SECTION.
6392 (compare_msymbols): Arguments are minsym_and_objfile, not
6393 minimal_symbol*. Don't use SYMBOL_OBJ_SECTION.
6394
db026a31
PA
63952012-04-18 Pedro Alves <palves@redhat.com>
6396
6397 Revert gnulib/ part of:
6398 2011-01-01 Joel Brobecker <brobecker@adacore.com>
6399 Copyright year update in most files (performed by copyright.sh).
6400
12df843f
JK
64012012-04-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6402
6403 Fix 64-bit constants on 32-bit hosts.
6404 * dwarf2read.c (read_unsigned_leb128): Change declaration return type
6405 from unsigned long to ULONGEST.
6406 (read_signed_leb128): Change declaration return type from long to
6407 LONGEST.
6408 (dwarf2_const_value_attr): Change declaration parameter value from long
6409 to LONGEST.
6410 (dwarf2_compute_name): Change variable value from long to LONGEST.
6411 (read_unsigned_leb128): Change return type, variable result and some
6412 casts from unsigned long to ULONGEST.
6413 (read_signed_leb128): Change return type, variable result and some
6414 casts from long to LONGEST.
6415 (dwarf2_const_value_data, dwarf2_const_value_attr): Change parameter
6416 value from long to LONGEST.
6417 (dwarf2_const_value): Change variable value from long to LONGEST.
6418 * symmisc.c (print_symbol): Change SYMBOL_VALUE format strings to use
6419 plongest and hex_string.
6420 * symtab.h (struct general_symbol_info): Change ivalue from long to
6421 LONGEST, remove the comment.
6422 * tracepoint.c (validate_actionline, collect_symbol, scope_info):
6423 Change SYMBOL_VALUE format strings to use plongest and hex_string.
6424
14e75d8e
JK
64252012-04-18 Siddhesh Poyarekar <siddhesh@redhat.com>
6426
6427 PR symtab/7259:
6428 * ada-exp.y (convert_char_literal): Use TYPE_FIELD_ENUMVAL.
6429 * ada-lang.c (ada_discrete_type_high_bound)
ac4ea3c2
JK
6430 (ada_discrete_type_low_bound): Fix function comment. Use
6431 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
14e75d8e
JK
6432 (ada_identical_enum_types_p): Use TYPE_FIELD_ENUMVAL.
6433 (pos_atr, value_val_atr): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6434 * ada-typeprint.c (print_enum_type): Change variable lastval to LONGEST.
6435 Use TYPE_FIELD_ENUMVAL.
6436 * ada-valprint.c (print_optional_low_bound, ada_print_scalar)
6437 (ada_val_print_1): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6438 * c-typeprint.c (c_type_print_base): Move variable lastval to inner
6439 block, change it to LONGEST. Use TYPE_FIELD_ENUMVAL for
6440 TYPE_CODE_ENUM.
6441 * coffread.c (coff_read_enum_type): Use SET_FIELD_ENUMVAL.
6442 * dwarf2read.c (process_enumeration_scope): Likewise.
6443 * gdb-gdb.py (TypeFlagsPrinter): Use field.enumval instead of
6444 field.bitpos.
6445 (class StructMainTypePrettyPrinter): Support also
6446 FIELD_LOC_KIND_ENUMVAL.
6447 * gdbtypes.c (get_discrete_bounds): Use TYPE_FIELD_ENUMVAL for
6448 TYPE_CODE_ENUM.
6449 (recursive_dump_type): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6450 (copy_type_recursive): Support also FIELD_LOC_KIND_ENUMVAL.
6451 * gdbtypes.h (enum field_loc_kind): New FIELD_LOC_KIND_ENUMVAL.
6452 (struct main_type.flds_bnds.fields.loc): Adjust bitpos comment. New
6453 field enumval.
6454 (struct main_type.flds_bnds.bields): Adjust loc_kind and bitsize to
6455 accommodate enumval.
6456 (struct call_site): Adjust loc_kind to accommodate enumval.
6457 (FIELD_ENUMVAL, FIELD_ENUMVAL_LVAL, SET_FIELD_ENUMVAL)
6458 (TYPE_FIELD_ENUMVAL): New macros.
6459 * m2-typeprint.c (m2_enum): Use TYPE_FIELD_ENUMVAL.
6460 * mdebugread.c (parse_symbol): Use TYPE_FIELD_ENUMVAL for
6461 TYPE_CODE_ENUM.
6462 * p-typeprint.c (pascal_type_print_base): Likewise.
6463 * python/lib/gdb/printing.py (class FlagEnumerationPrinter): Use
6464 enumval.
6465 * python/lib/gdb/types.py (make_enum_dict): Likewise.
6466 * python/py-type.c (convert_field): New variable addrstring. Use
6467 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6468 (check_types_equal): Support also FIELD_LOC_KIND_ENUMVAL.
6469 * stabsread.c (read_enum_type): Use SET_FIELD_ENUMVAL.
6470 * typepint.c (print_type_scalar): Use TYPE_FIELD_ENUMVAL for
6471 TYPE_CODE_ENUM.
6472 * valprint.c (generic_val_print): Likewise.
6473
380bca97
DE
64742012-04-17 Doug Evans <dje@google.com>
6475
dcc07052
DE
6476 * dwarf2read.c (lookup_signatured_type): Return NULL instead of 0.
6477
380bca97
DE
6478 * dwarf2read.c: Whitespace fixes.
6479 (lookup_signatured_type): Tweak comment.
6480 (get_die_type_at_offset): Fix comment.
6481
ec92004f
JB
64822012-04-17 Joel Brobecker <brobecker@adacore.com>
6483
6484 * xcoffread.c (xcoff_secnum_to_sections): New function.
6485 (secnum_to_section, secnum_to_bfd_section): Reimplement
6486 using xcoff_secnum_to_sections. Rename "secnum" parameter
6487 into "n_scnum".
6488 (RECORD_MINIMAL_SYMBOL): Delete.
6489 (record_minimal_symbol): New function.
6490 (scan_xcoff_symtab): Replace uses of RECORD_MINIMAL_SYMBOL
6491 by call to record_minimal_symbol and set misc_func_recorded
6492 to 1. Set last_csect_sec to the XCOFF section index instead
6493 of GDB's section_offset index. Update calls to
6494 prim_record_minimal_symbol_and_info to pass the BFD section
6495 as well.
6496
40301fb7
JB
64972012-04-17 Joel Brobecker <brobecker@adacore.com>
6498
6499 * xcoffread.c (read_xcoff_symtab): Delete variables
6500 last_csect_val and last_csect_sec and associated code.
6501
e0088cfd
DE
65022012-04-17 Doug Evans <dje@google.com>
6503
58d5e2c3
DE
6504 * cleanups.c (make_my_cleanup,make_my_cleanup2): Make static.
6505 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
6506 * cleanups.h (make_my_cleanup,make_my_cleanup2): Delete
6507 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Delete.
6508
c27f5738
DE
6509 * cleanups.h: New file.
6510 * cleanups.c: New file.
6511 * Makefile.in (SFILES): Add cleanups.c.
6512 (HFILES_NO_SRCDIR): Add cleanups.h.
6513 (COMMON_OBS): Add cleanups.o.
6514 * defs.h (struct cleanup): Moved to cleanups.h.
6515 (do_cleanups,do_final_cleanups): Ditto.
6516 (discard_cleanups,discard_final_cleanups): Ditto
6517 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
6518 (save_cleanups,save_final_cleanups): Ditto.
6519 (restore_cleanups,restore_final_cleanups): Ditto.
6520 (null_cleanup): Ditto.
6521 (make_my_cleanup,make_my_cleanup2): Ditto.
6522 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
6523 * utils.c (cleanup_chain,final_cleanup_chain): Moved to cleanups.c.
6524 (do_cleanups,do_final_cleanups): Ditto.
6525 (discard_cleanups,discard_final_cleanups): Ditto
6526 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
6527 (save_cleanups,save_final_cleanups): Ditto.
6528 (restore_cleanups,restore_final_cleanups): Ditto.
6529 (null_cleanup): Ditto.
6530 (make_my_cleanup,make_my_cleanup2): Ditto.
6531 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
6532
e0088cfd
DE
6533 * utils.c (make_cleanup_freeargv): Use make_cleanup instead of
6534 make_my_cleanup.
6535 (make_cleanup_dyn_string_delete): Ditto.
6536 (make_cleanup_ui_file_delete): Ditto.
6537 (make_cleanup_ui_out_redirect_pop): Ditto.
6538 (make_cleanup_free_section_addr_info): Ditto.
6539 (make_cleanup_restore_integer): Ditto.
6540 (make_cleanup_unpush_target): Ditto.
6541 (make_cleanup_value_free_to_mark): Ditto.
6542 (make_cleanup_value_free): Ditto.
6543 (make_cleanup_free_so): Ditto.
6544
4dc84fd1
JK
65452012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6546
6547 New option "set debug auto-load".
6548 * NEWS: New commands "set debug auto-load" and "show debug auto-load".
6549 * auto-load.c (debug_auto_load, show_debug_auto_load: New.
6550 (auto_load_safe_path_vec_update)
6551 (filename_is_in_auto_load_safe_path_vec): Call fprintf_unfiltered
6552 if DEBUG_AUTO_LOAD.
6553 (file_is_auto_load_safe): New parameters debug_fmt and ....
6554 Call fprintf_unfiltered if DEBUG_AUTO_LOAD.
6555 (source_gdb_script_for_objfile): Extend the file_is_auto_load_safe
6556 caller by explanatory string.
6557 (_initialize_auto_load): Register "set debug auto-load".
6558 * auto-load.h (file_is_auto_load_safe): New parameters debug_fmt
6559 and ....
6560 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
6561 (try_thread_db_load_from_dir): Extend the file_is_auto_load_safe caller
6562 by explanatory string.
6563 * main.c (captured_main): Likewise.
6564 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
6565 (source_section_scripts): Likewise.
6566
bccbefd2
JK
65672012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6568
6569 New option "set auto-load safe-path".
6570 * NEWS: New commands "set auto-load safe-path"
6571 and "show auto-load safe-path".
6572 * auto-load.c: Include gdb_vecs.h, readline/tilde.h and completer.h.
6573 (auto_load_safe_path, auto_load_safe_path_vec)
6574 (auto_load_safe_path_vec_update, set_auto_load_safe_path)
6575 (show_auto_load_safe_path, add_auto_load_safe_path, filename_is_in_dir)
6576 (filename_is_in_auto_load_safe_path_vec, file_is_auto_load_safe): New.
6577 (source_gdb_script_for_objfile): New variable is_safe. Call
6578 file_is_auto_load_safe. Return if it is not.
6579 (struct loaded_script): New field loaded.
6580 (maybe_add_script): Add parameter loaded. Initialize SLOT with it.
6581 (print_script): Use LOADED indicator instead of FULL_PATH. Change
6582 output "Missing" to "No".
6583 (_initialize_auto_load): New variable cmd. Initialize
6584 auto_load_safe_path. Register "set auto-load safe-path",
6585 "show auto-load safe-path" and "add-auto-load-safe-path".
6586 * auto-load.h (maybe_add_script): Add parameter loaded.
6587 (file_is_auto_load_safe): New declaration.
6588 * config.in: Regenerate.
6589 * configure: Regenerate.
6590 * configure.ac: New parameters --with-auto-load-safe-path
6591 and --without-auto-load-safe-path.
6592 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
6593 (try_thread_db_load_from_dir): Check file_is_auto_load_safe first.
6594 * main.c (captured_main): Check file_is_auto_load_safe for
6595 LOCAL_GDBINIT.
6596 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile): New
6597 variable is_safe. Call file_is_auto_load_safe. Return if it is not.
6598 (source_section_scripts): Call file_is_auto_load_safe. Return if it is
6599 not.
6600
bf88dd68
JK
66012012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6602
6603 auto-load: Implementation.
6604 * NEWS: New descriptions for "info auto-load",
6605 "info auto-load gdb-scripts", "info auto-load python-scripts",
6606 "info auto-load local-gdbinit" and "info auto-load libthread-db".
6607 Deprecate "info auto-load-scripts", "set auto-load-scripts on|off"
6608 and "show auto-load-scripts". New description for "set auto-load",
6609 "show auto-load", "set auto-load gdb-scripts",
6610 "show auto-load gdb-scripts", "set auto-load python-scripts",
6611 "show auto-load python-scripts", "set auto-load local-gdbinit",
6612 "show auto-load local-gdbinit", "set auto-load libthread-db" and
6613 "show auto-load libthread-db".
6614 * auto-load.c: Remove include python/python-internal.h. Add includes
6615 exceptions.h, cli/cli-script.h, gdbcmd.h, cli/cli-decode.h and
6616 cli/cli-setshow.h.
6617 (GDB_AUTO_FILE_NAME, source_gdb_script_for_objfile)
6618 (auto_load_gdb_scripts, show_auto_load_gdb_scripts): New.
6619 (gdbpy_global_auto_load): Rename to ...
6620 (global_auto_load): ... here.
6621 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
6622 (auto_load_local_gdbinit_loaded, show_auto_load_local_gdbinit)
6623 (script_language_gdb, source_gdb_script_for_objfile): New.
6624 (struct loaded_script): New field language.
6625 (hash_loaded_script_entry, eq_loaded_script_entry): Calculate also
6626 LANGUAGE.
6627 (maybe_add_script): Add parameter language. Drop redundant
6628 entry.full_path initialization. Initialize entry.language and
6629 (*slot)->language.
6630 (auto_load_objfile_script): Change parameter suffix to language.
6631 Remove the call of maybe_add_script.
6632 Call language->source_script_for_objfile.
6633 (load_auto_scripts_for_objfile, struct collect_matching_scripts_data):
6634 New.
6635 (collect_matching_scripts): Adjust it for
6636 struct collect_matching_scripts_data.
6637 (auto_load_info_scripts_pattern_nl): New variable.
6638 (info_auto_load_scripts): Rename to ...
6639 (auto_load_info_scripts): ... here, add parameter language. Adjust it
6640 for struct collect_matching_scripts_data.
6641 (info_auto_load_gdb_scripts, info_auto_load_local_gdbinit)
6642 (set_auto_load_cmd, auto_load_set_cmdlist_get, show_auto_load_cmd)
6643 (auto_load_show_cmdlist_get, info_auto_load_cmd)
6644 (auto_load_info_cmdlist_get): New.
6645 (_initialize_auto_load): Move add_info of "auto-load-scripts" to
6646 python/py-auto-load.c. New installment for "set auto-load gdb-scripts",
6647 "info auto-load gdb-scripts", "set auto-load local-gdbinit" and
6648 "info auto-load local-gdbinit".
6649 * auto-load.h (struct script_language): New.
6650 (gdbpy_global_auto_load): Rename to ...
6651 (global_auto_load): ... here.
6652 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
6653 (auto_load_local_gdbinit_loaded): New declarations.
6654 (maybe_add_script): New parameter language.
6655 (auto_load_objfile_script): Change parameter suffix to language.
6656 (load_auto_scripts_for_objfile, auto_load_info_scripts_pattern_nl)
6657 (auto_load_info_scripts, auto_load_set_cmdlist_get)
6658 (auto_load_show_cmdlist_get, auto_load_info_cmdlist_get): New
6659 declarations.
6660 * linux-thread-db.c: Include auto-load.h and ctype.h.
6661 (auto_load_thread_db, show_auto_load_thread_db): New.
6662 (struct thread_db_info): New field filename.
6663 (delete_thread_db_info): Call xfree for FILENAME.
6664 (try_thread_db_load): Initialize FILENAME.
6665 (try_thread_db_load_from_pdir, try_thread_db_load_from_dir): Return
6666 if !AUTO_LOAD_THREAD_DB.
6667 (info_auto_load_libthread_db_compare, info_auto_load_libthread_db): New.
6668 (_initialize_thread_db): Install auto_load_thread_db
6669 as "set auto-load libthread-db" and install info_auto_load_libthread_db
6670 as "info auto-load libthread-db".
6671 * main.c (captured_main): Rename gdbpy_global_auto_load to
6672 global_auto_load. Initialize AUTO_LOAD_LOCAL_GDBINIT_PATHNAME and
6673 AUTO_LOAD_LOCAL_GDBINIT_LOADED.
6674 (print_gdb_help): Extend the help for 'local init file'.
6675 * python/py-auto-load.c: Remove a comment about gdb scripts extension.
6676 (GDBPY_AUTO_SECTION_NAME): Extend the comment it is Python specific.
6677 (auto_load_scripts): Rename to ...
6678 (auto_load_python_scripts): ... here, update the comment.
6679 (gdbpy_load_auto_script_for_objfile): New declaration.
6680 (show_auto_load_python_scripts, script_language_python)
6681 (gdbpy_load_auto_script_for_objfile): New.
6682 (source_section_scripts): Refactor the code.
6683 (load_auto_scripts_for_objfile): Rename to ...
6684 (gdbpy_load_auto_scripts_for_objfile): ... here, update the
6685 auto_load_objfile_script caller, drop GDBPY_GLOBAL_AUTO_LOAD checking.
6686 (info_auto_load_python_scripts): New.
6687 (gdbpy_initialize_auto_load): New variables cmd and cmd_name.
6688 Rename "set auto-load-scripts" to "set auto-load python-scripts".
6689 Register "set auto-load-scripts" as its deprecated alias. Register
6690 "info auto-load python-scripts". Register "info auto-load-scripts" as
6691 its deprecated alias.
6692 (load_auto_scripts_for_objfile): Rename to ...
6693 (gdbpy_load_auto_scripts_for_objfile): ... here.
6694 * python/python.h (load_auto_scripts_for_objfile): Rename to ...
6695 (gdbpy_load_auto_scripts_for_objfile): ... here.
6696
e2207b9a
JK
66972012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6698
6699 auto-load: Move files.
6700 * Makefile.in (SFILES): Add auto-load.c.
6701 (HFILES_NO_SRCDIR): Add auto-load.h.
6702 (COMMON_OBS): Add auto-load.o.
6703 (distclean): Change .gdbinit for gdb-gdb.gdb.
6704 * auto-load.c: New file, with parts from python/py-auto-load.c.
6705 * auto-load.h: New file, with parts from python/python.h.
6706 * configure: Regenerate.
6707 * configure.ac (AC_OUTPUT): Change .gdbinit for gdb-gdb.gdb.
6708 * gdb-gdb.gdb.in: New file, renamed from gdbinit.in.
6709 * gdbinit.in: Remove file, rename it to gdb-gdb.gdb.in.
6710 * main.c: Include auto-load.h.
6711 * python/py-auto-load.c: Move include filenames.h, gdb_regex.h,
6712 command.h, observer.h and progspace.h to auto-load.c. Add include
6713 auto-load.h.
6714 (gdbpy_global_auto_load, struct auto_load_pspace_info)
6715 (struct loaded_script, auto_load_pspace_data)
6716 (auto_load_pspace_data_cleanup, get_auto_load_pspace_data)
6717 (hash_loaded_script_entry, eq_loaded_script_entry)
6718 (init_loaded_scripts_info, get_auto_load_pspace_data_for_loading)
6719 (maybe_add_script): Move to auto-load.c.
6720 (source_section_scripts): Change maybe_add_script parameters passing,
6721 use script_not_found_warning_print.
6722 (clear_section_scripts, auto_load_objfile_script)
6723 (auto_load_new_objfile, loaded_script_ptr)
6724 (DEF_VEC_P (loaded_script_ptr), collect_matching_scripts, print_script)
6725 (sort_scripts_by_name, info_auto_load_scripts): Move to auto-load.c.
6726 (gdbpy_initialize_auto_load): Move auto_load_pspace_data,
6727 auto_load_new_objfile and info_auto_load_scripts initizations to
6728 auto-load.c.
6729 * python/python.h (gdbpy_global_auto_load): Move to auto-load.h.
6730
e4ab2fad
JK
67312012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6732
6733 Code cleanup.
6734 * charset.c (find_charset_names): Remove variables ix and elt.
6735 Use free_char_ptr_vec.
6736 * elfread.c (build_id_to_debug_filename): New variables debugdir_vec,
6737 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
6738 debugdir_end. New variable debugdir_len.
6739 * gdb_vecs.h (free_char_ptr_vec, make_cleanup_free_char_ptr_vec)
6740 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): New
6741 declarations.
6742 * progspace.c (clear_program_space_solib_cache): Remove variables ix
6743 and elt. Use free_char_ptr_vec.
6744 * source.c (add_path): Remove variables argv, arg and argv_index.
6745 New variables dir_vec, back_to, ix and name.
6746 Use dirnames_to_char_ptr_vec_append. Use freeargv instead of
6747 make_cleanup_freeargv. Remove variable separator. Simplify the code
6748 no longer expecting DIRNAME_SEPARATOR.
6749 (openp): Remove variable p, p1 and len. New variables dir_vec,
6750 back_to, ix and dir. Use dirnames_to_char_ptr_vec. Simplify the code
6751 no longer expecting DIRNAME_SEPARATOR.
6752 * symfile.c (find_separate_debug_file): New variables debugdir_vec,
6753 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
6754 debugdir_end.
6755 * utils.c (free_char_ptr_vec, do_free_char_ptr_vec)
6756 (make_cleanup_free_char_ptr_vec, dirnames_to_char_ptr_vec_append)
6757 (dirnames_to_char_ptr_vec): New functions.
6758
5ee4ed9f
JK
67592012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6760
6761 Code cleanup.
6762 * source.c (add_path): Remove always true conditional 'p == 0' and
6763 unindent its code block.
6764
f41f5e61
PA
67652012-04-17 Pedro Alves <palves@redhat.com>
6766
6767 * gdbtypes.h (FIELD_BITPOS): Rename to ...
6768 (FIELD_BITPOS_LVAL): ... this.
6769 (FIELD_BITPOS): New.
6770 (SET_FIELD_BITPOS): Adjust to use FIELD_BITPOS_LVAL.
6771 * dwarf2read.c (dwarf2_add_field): Use SET_FIELD_BITPOS.
6772 * gdbtypes.c (append_composite_type_field_aligned): Adjust to use
6773 SET_FIELD_BITPOS.
6774 * gnu-v3-abi.c (build_gdb_vtable_type): Adjust to use
6775 SET_FIELD_BITPOS.
6776 * stabsread.c (read_cpp_abbrev, read_one_struct_field)
6777 (read_baseclasses): Adjust to use SET_FIELD_BITPOS.
6778 * target-descriptions.c (tdesc_gdb_type): Adjust to use
6779 SET_FIELD_BITPOS.
6780
945b3a32
JK
67812012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6782
6783 Do not rely on FIELD_LOC_KIND_BITPOS being zero.
6784 * ada-lang.c (ada_template_to_fixed_record_type_1): Replace
6785 TYPE_FIELD_BITPOS used as lvalue by SET_FIELD_BITPOS.
6786 * gdbtypes.c (append_flags_type_flag): Likewise, twice.
6787 * jv-lang.c (java_link_class_type): Likewise, once.
6788 * stabsread.c (read_enum_type): Likewise.
6789
42476b70
YQ
67902012-04-16 Yao Qi <yao@codesourcery.com>
6791
6792 * common/agent.c (agent_run_command): Add one more parameter `len'.
6793 Update callers.
6794 * common/agent.h: Update declaration.
6795 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
6796 Update.
6797 (linux_child_static_tracepoint_markers_by_strid): Ditto.
6798
8264ba82
AG
67992012-04-14 Anton Gorenkov <xgsa@yandex.ru>
6800
6801 PR mi/13393
6802 * value.c (value_actual_type): New function.
6803 * value.h (value_actual_type): New declaration.
6804 * varobj.c (update_type_if_necessary): New function.
6805 (varobj_create): Call value_actual_type instead of
6806 value_type.
6807 (install_dynamic_child): distinct changed and type changed MI variable
6808 objects.
6809 (update_dynamic_varobj_children): Updated for install_dynamic_child
6810 change. All callers updated.
a09130f9 6811 (varobj_update): Support for MI variable object type change if
8264ba82
AG
6812 the value changed and RTTI is used to determine the type.
6813 (create_child_with_value): Call value_actual_type instead of
6814 value_type.
a09130f9 6815 (adjust_value_for_child_access): Extended with a new parameter which
8264ba82
AG
6816 specify whether the given value should be casted to enclosing type.
6817 All callers updated.
6818
55a8c076
YQ
68192012-04-14 Yao Qi <yao@codesourcery.com>
6820
6821 Import gnulib module inttypes from git
6822 (250b80067c1e1d8faa0c42fb572f721975b929c5)
6823 * Makefile.in (HFILES_NO_SRCDIR): Add gnulib/inttypes.in.h.
a09130f9
PA
6824 (aclocal_m4_deps): Add gnulib/m4/inttypes.m4 and
6825 gnulib/m4/inttypes-pri.m4
55a8c076
YQ
6826 * aclocal.m4, config.in, configure: Regenerated.
6827 * gnulib/Makefile.am: Update.
6828 * gnulib/Makefile.in: Update.
6829 * gnulib/m4/gnulib-cache.m4: Update.
6830 * gnulib/m4/gnulib-comp.m4: Update.
6831 * gnulib/inttypes.in.h: New.
6832 * gnulib/m4/inttypes-pri.m4: New.
a09130f9 6833 * gnulib/m4/inttypes.m4: New.
55a8c076 6834
ca7781d2
LM
68352012-04-13 Luis Machado <lgustavo@codesourcery.com>
6836
6837 * infrun.c (resume): Update PC address to the real PC after
6838 preparing to do displaced stepping.
6839
e319fa28
DE
68402012-04-12 Doug Evans <dje@google.com>
6841
6842 * dwarf2read.c (lookup_signatured_type): Remove arg "objfile", unused.
6843 All callers updated.
6844
15add3f5
MK
68452012-04-12 Mark Kettenis <kettenis@gnu.org>
6846
6847 * i386bsd-nat.c (_initialize_i386bsd_nat): Add missing prototype.
6848
52dc124a
DE
68492012-04-12 Doug Evans <dje@google.com>
6850
0e50663e
DE
6851 * dwarf2read.c (create_all_type_units): Renamed from
6852 create_debug_types_hash_table. All callers updated.
6853
52dc124a
DE
6854 * dwarf2read.c (create_signatured_type_table_from_index): Rename
6855 local type_sig to sig_type, type_offset to type_offset_in_tu.
6856 (hash_signatured_type): Renamed from hash_type_signature,
6857 all callers updated.
6858 (eq_signatured_type): Renamed from eq_type_signature,
6859 all callers updated.
6860 (create_debug_types_hash_table): Rename local type_sig to sig_type.
6861 (process_enumeration_scope): Ditto.
6862 (lookup_signatured_type_at_offset): Ditto.
6863 (load_full_type_unit, read_signatured_type): Ditto.
6864
248fd3bf
YQ
68652012-04-12 Yao Qi <yao@codesourcery.com>
6866
6867 * remote.c (async_remote_interrupt): Correct function name in
6868 debug message.
6869 (async_remote_interrupt_twice): Ditto.
6870
bc3aa6c3
DE
68712012-04-11 Yuanhui Zhang <asmwarrior@gmail.com>
6872
6873 * source.c (find_and_open_source): Consistently pass resulting
6874 full path through xfullpath.
6875
9e529e1d
JK
68762012-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6877
6878 Provide more specific displaced-stepping memory error message.
6879 * infrun.c (displaced_step_prepare): New variable status. Call
6880 target_read_memory instead of read_memory, provide more specific
6881 error message.
6882
82e0cec1
TG
68832012-04-11 Tristan Gingold <gingold@adacore.com>
6884
6885 PR gdb/13901
6886 * darwin-nat.c (darwin_execvp): Revert previous patch.
6887
d987a266
TG
68882012-04-11 Tristan Gingold <gingold@adacore.com>
6889
6890 PR gdb/13901
6891 * darwin-nat.c (darwin_resume_thread): Call darwin_set_sstep only
6892 in case of change.
6893
016b7430
TG
68942012-04-11 Tristan Gingold <gingold@adacore.com>
6895
6896 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
6897 warning.
6898
06fc020f
SCR
68992012-04-11 Siva Chandra Reddy <sivachandra@google.com>
6900
6901 New command 'explore' which helps explore values and types in
6902 scope.
6903 * NEWS: Add an entry about the new 'explore' command.
6904 * data-directory/Makefile.in: Add gdb/command/explore.py
6905 * python/lib/gdb/command/explore.py: Implemention of the 'explore'
a09130f9 6906 command using the GDB Python API.
06fc020f 6907
de0919f8 69082012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
34b192ce
MR
6909
6910 * mips-tdep.c (mips_skip_pic_trampoline_code): Correct sign
6911 extension in jump target calculation.
6912
de0919f8 69132012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
9e8da49c
MR
6914
6915 * mips-tdep.c (mips32_next_pc): Handle JALX.
6916
2f26ef89
YQ
69172012-04-10 Yao Qi <yao@codesourcery.com>
6918
6919 * Makefile.in (gnulib/Makefile): Remove duplicated dependency.
6920
2e505b66
YQ
69212012-04-10 Yao Qi <yao@codesourcery.com>
6922
6923 * Makefile.in (aclocal_m4_deps): Add gnulib/m4/gnulib-cache.m4
6924 and gnulib/m4/gnulib-tool.m4.
6925
0d99eb77
DE
69262012-04-10 Doug Evans <dje@google.com>
6927
6928 * dwarf2read.c (dwarf2_per_cu_data). Clarify comment.
6929 (load_partial_dies): Clarify comment.
6930 (find_partial_die): Support rereading type units.
6931 Clarify CU handling, if we know offset is in CU, don't search for the
6932 containing CU. Add comment regarding memory waste.
6933
9a82b8ff
L
69342012-04-10 H.J. Lu <hongjiu.lu@intel.com>
6935
6936 * features/Makefile (WHICH): Add i386/x32, i386/x32-linux,
6937 i386/x32-avx and i386/x32-avx-linux.
6938 (i386/x32-expedite): New.
6939 (i386/x32-linux-expedite): Likewise.
6940 (i386/x32-avx-expedite): Likewise.
6941 (i386/x32-avx-linux-expedite): Likewise.
6942 ($(outdir)/i386/x32.dat): Likewise.
6943 ($(outdir)/i386/x32-linux.dat): Likewise.
6944 ($(outdir)/i386/x32-avx.dat): Likewise.
6945 ($(outdir)/i386/x32-avx-linux.dat): Likewise.
6946
6947 * features/i386/x32-avx-linux.xml: New file.
6948 * features/i386/x32-avx.xml: Likewise.
6949 * features/i386/x32-core.xml: Likewise.
6950 * features/i386/x32-linux.xml: Likewise.
6951 * features/i386/x32.xml: Likewise.
6952
6953 * features/i386/x32-avx-linux.c: New. Generated.
6954 * features/i386/x32-avx.c: Likewise.
6955 * features/i386/x32-linux.c: Likewise.
6956 * features/i386/x32.c: Likewise.
6957 * regformats/i386/x32-avx-linux.dat: Likewise.
6958 * regformats/i386/x32-avx.dat: Likewise.
6959 * regformats/i386/x32-linux.dat: Likewise.
6960 * regformats/i386/x32.dat: Likewise.
6961
ee41036f
TG
69622012-04-10 Tristan Gingold <gingold@adacore.com>
6963
6964 * darwin-nat.c (darwin_kill_inferior): Always use the no ptrace
6965 code to kill the inferior.
6966
a7aa5b8a
MK
69672012-04-09 Mark Kettenis <kettenis@gnu.org>
6968
6969 * ada-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
6970 defines.
6971 * c-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
6972 defines.
a09130f9 6973 * cp-name-parser.y (yyss, yysslim, yyssp, yystacksize, yyvs)
a7aa5b8a
MK
6974 (yyvsp): New defines.
6975 * f-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
6976 defines.
6977 * jv-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
6978 defines.
6979 * m2-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
6980 defines.
6981 * objc-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
6982 defines.
6983 * p-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
6984 defines.
6985
fb57d452
MK
69862012-04-09 Mark Kettenis <kettenis@gnu.org>
6987
a09130f9 6988 * sparc64-tdep.c (sparc64_store_arguments)
fb57d452
MK
6989 (sparc64_store_arguments): Fix coding style.
6990
cdc7b32f
MK
69912012-04-07 Mark Kettenis <kettenis@gnu.org>
6992
6993 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
6994 complex floats, adjust some related comments and tighten a related
6995 assertion.
6996 (sparc64_extract_return_value): Handle complex floats.
6997
7adf1e79
DE
69982012-04-07 Doug Evans <dje@google.com>
6999
7000 * dwarf2read.c (load_partial_dies): Change condition to assert.
7001
50f1ae7b
DE
70022012-04-06 Doug Evans <dje@google.com>
7003
7004 * amd64-tdep.c (amd64_analyze_prologue): Recognize both variations of
7005 "mov %rsp,%rbp".
7006
55fa75c3
KB
70072012-04-05 Kevin Buettner <kevinb@redhat.com>
7008
7009 * v850-tdep.c (E_NUM_OF_V850_REGS, E_NUM_OF_V850E_REGS): Fix
7010 fencepost error.
7011 (v850_frame_cache): Use gdbarch_num_regs() instead of E_NUM_REGS.
7012 (v850_gdbarch_init): Set `num_regs' as appropriate for the
7013 architecture.
7014
40e084e1
KS
70152012-04-05 Keith Seitz <keiths@redhat.com>
7016
7017 * linespec.c (decode_compound): Remove.
7018 (enum offset_relative_sign): New enum.
7019 (struct line_offset): New struct.
7020 (struct linespec): New struct.
7021 (struct linespec_state): Move file_symtabs,
7022 user_filename, and user_function into struct linespec.
7023 Make result an anonymous struct holding vectors of
7024 symbolp and minsym_and_objfile_d.
7025 Add language member.
7026 (enum ls_token_type): New enum.
7027 (linespec_keywords): New array.
7028 (struct ls_token): New struct.
7029 (struct ls_parser): New struct.
7030 (linespec_lexer_lex_number): New function.
7031 (linespec_lexer_lex_keyword): New function.
7032 (is_ada_operator): New function.
7033 (skip_quote_char): New function.
7034 (copy_token_string): New function.
7035 (is_closing_quote_enclosed): New function.
7036 (find_parameter_list_end): New function.
7037 (linespec_lexer_lex_string): New function.
7038 (linespec_lexer_lex_one): New function.
7039 (linespec_lexer_consume_token): New function.
7040 (linespec_lexer_peek_token): New function.
7041 (cplusplus_error): Remove unused function.
7042 (find_methods): Update comment.
7043 (find_toplevel_char): Return const.
7044 (is_objc_method_format): Remove unused function.
7045 (find_toplevel_string): New function.
7046 (is_linespec_boundary): Remove.
7047 (symbol_not_found_error): New function.
7048 (find_method_overload_end): Remove function.
7049 (unexpected_linespec_error): New function.
7050 (keep_name_info): Remove.
7051 (linespec_parse_line_offset): New function.
7052 (linespec_parse_basic): New function.
7053 (canonicalize_linespec): New function.
7054 (decode_line_internal): Remove.
7055 (create_sals_line_offset): New function adapted from
7056 decode_all_digits.
7057 (convert_linespec_to_sals): New function.
7058 (parse_linespec): New function.
7059 (linespec_parser_new): New function.
7060 (linespec_state_destructor): Change parameter type to
7061 struct linespec_state *.
7062 Add language parameter.
7063 Remove freeing of moved members.
7064 (linespec_parser_delete): New function.
7065 (decode_line_full): Use parse_linespec and linespec_parser_new.
7066 (decode_line_1): Likewise.
7067 (decode_indirect): Rename to ...
7068 (linespec_expression_to_pc): ... this and rewrite
7069 to simply find CORE_ADDR, storing this result for later
7070 conversion to SALs.
7071 (locate_first_half): Remove.
7072 (deocde_objc): Add parameter LS.
7073 Initialize new struct collect_info members.
7074 Handle minimal symbols, too.
7075 (decode_compound): Delete.
7076 (lookup_prefix_sym): Rewrite.
7077 (compare_msymbols): New function.
7078 (find_method): Rewrite.
7079 Do not call cplusplus_error.
7080 (symtabs_from_filename): Rewrite.
7081 (collect_function_symbols): Delete.
7082 (find_function_symbols): Rewrite without ARGPTR-style
7083 processing.
7084 (decode_all_digits): Delete. (Rewritten as create_sals_line_offset.)
7085 (decode_dollar): Adapted and renamed to ...
7086 (linespec_parse_variable): ... this.
7087 (find_linespec_symbols): New function.
7088 (decode_label): Adapted and renamed to ...
7089 (find_label_symbols): ... this.
7090 (decode_digits_list_mode): Add and use LS argument.
7091 (decode_digits_ordinary): Likewise.
7092 (collect_symbols): Do not collect SALs, just symbols and msymbols.
7093 If in list mode, allow any symbol class. Otherwise, only
7094 permit LOC_BLOCK symbols.
7095 (minsym_found): Update comments.
7096 (search_minsyms_for_name): Do not convert the matching symbol
7097 into a SAL. Simply push the symbol and objfile into the
7098 result vector.
7099 (decode_variable): Delete. Contents adapted into
7100 find_linespec_symbols.
7101
7102 * cp-support.c (SKIP_SPACE): Remove.
7103 (operator_tokens): Remove unused global.
7104 (cp_validate_operator): Remove.
7105 * cp-support.h (cp_validate_operator): Remove declaration.
7106
a72c8f6a
JK
71072012-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7108
7109 * cp-valprint.c (cp_print_value_fields): Check valprint_check_validity
7110 for TYPE_VPTR_FIELDNO.
7111 * valprint.c (valprint_check_validity): Make it global, move the
7112 function comment ...
7113 * value.h (valprint_check_validity): ... to this new declaration.
7114
cf9bb588
TG
71152012-04-02 Tristan Gingold <gingold@adacore.com>
7116
7117 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Use
7118 the STATE32 api for i386 state.
7119 (i386_darwin_store_inferior_registers): Likewise.
7120
17092398
TG
71212012-04-02 Tristan Gingold <gingold@adacore.com>
7122
7123 * i386-darwin-tdep.c (i386_darwin_thread_state_reg_offset): Fix
7124 SS offset.
7125 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
7126 format_string.
7127
ece0061f
TG
71282012-04-02 Tristan Gingold <gingold@adacore.com>
7129
7130 PR gdb/13901
d987a266 7131 * darwin-nat.c (darwin_execvp): Set binary preference.
ece0061f 7132
cf65ecd3
JK
71332012-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7134
7135 * NEWS (set breakpoint condition-evaluation): Use imperative mood.
7136
9bc3523d
TT
71372012-03-30 Tom Tromey <tromey@redhat.com>
7138
7139 * python/python.c (gdbpy_decode_line): Move cleanup creation out
7140 of TRY_CATCH. Fix error handling.
7141 * python/py-value.c (convert_value_from_python): Move 'old'
7142 declaration to innermost scope.
7143
b1ed564a
JB
71442012-03-29 Joel Brobecker <brobecker@adacore.com>
7145 Andrey Smirnov <andrew.smirnov@gmail.com>
7146
7147 -Wshadow warning fix.
7148 * ada-lang.c (ada_make_symbol_completion_list): Rename parameters
7149 "wild_match" and "encoded" into "wild_match_p" and "encoded_p".
7150 Adjust code accordingly.
7151
cb8e9b97
JB
71522012-03-29 Joel Brobecker <brobecker@adacore.com>
7153
7154 * ada-lang.c (symbol_completion_add): Rename parameter
7155 "encoded" into "encoded_p". Ajust code and documentation
7156 accordingly.
7157
c0af1706
JB
71582012-03-29 Joel Brobecker <brobecker@adacore.com>
7159 Andrey Smirnov <andrew.smirnov@gmail.com>
7160
7161 -Wshadow warning fix.
7162 * ada-lang.c (symbol_completion_add): Rename parameter
7163 "wild_match" into wild_match_p. Update code and documentation
7164 accordingly.
7165
6ea35997
JB
71662012-03-29 Joel Brobecker <brobecker@adacore.com>
7167
7168 * ada-lang.c (symbol_completion_match): Rename parameter
7169 "encoded" into "encoded_p". Ajust code and documentation
7170 accordingly.
7171
e701b3c0
JB
71722012-03-29 Joel Brobecker <brobecker@adacore.com>
7173 Andrey Smirnov <andrew.smirnov@gmail.com>
7174
7175 -Wshadow warning fix.
7176 * ada-lang.c (symbol_completion_match): Rename parameter
7177 "wild_match" into "wild_match_p". Adjust code and function
7178 documentation accordingly.
7179
5e2336be
JB
71802012-03-29 Joel Brobecker <brobecker@adacore.com>
7181 Andrey Smirnov <andrew.smirnov@gmail.com>
7182
7183 -Wshadow warning fix.
7184 * ada-lang.c (ada_lookup_encoded_symbol): Rename parameter
7185 "symbol_info" into "info". Adjust code accordingly.
7186 (ada_lookup_symbol): Likewise.
7187
9f88c959
JB
71882012-03-29 Joel Brobecker <brobecker@adacore.com>
7189
7190 * ada-lang.c (ada_lookup_symbol_list): Minor reformatting
7191 of this function's documentation.
7192
82ccd55e
JB
71932012-03-29 Joel Brobecker <brobecker@adacore.com>
7194 Andrey Smirnov <andrew.smirnov@gmail.com>
7195
7196 -Wshadow warning fix.
7197 * ada-lang.c (ada_lookup_symbol_list): Rename "wild_match"
7198 variable into "wild_match_p". Adjust code accordingly.
7199
d0a8ab18
JB
72002012-03-29 Joel Brobecker <brobecker@adacore.com>
7201 Andrey Smirnov <andrew.smirnov@gmail.com>
7202
7203 -Wshadow warning fix.
7204 * ada-lang.c (ada_add_local_symbols): Rename "wild_match"
7205 parameter into "wild_match_p". Adjust code accordingly.
7206 Document this parameter in the function description.
7207
48b78332
JB
72082012-03-29 Joel Brobecker <brobecker@adacore.com>
7209 Andrey Smirnov <andrew.smirnov@gmail.com>
7210
7211 -Wshadow warning fix.
7212 * ada-lang.c (add_symbols_from_enclosing_procs): Rename
7213 "wild_match" parameter to "wild_match_p" (-Wshadow).
7214
2e6e0353
JB
72152012-03-29 Joel Brobecker <brobecker@adacore.com>
7216
7217 * ada-lang.c (ada_lookup_simple_minsym): Remove trailing spaces
7218 in function documentation.
7219
dc4024cd
JB
72202012-03-29 Joel Brobecker <brobecker@adacore.com>
7221 Andrey Smirnov <andrew.smirnov@gmail.com>
7222
7223 -Wshadow warning fix.
7224 * ada-lang.c (ada_lookup_simple_minsym): Rename wild_match local
7225 variable into wild_match_p. Adjust code accordingly.
7226
6c88661c
JB
72272012-03-29 Joel Brobecker <brobecker@adacore.com>
7228 Andrey Smirnov <andrew.smirnov@gmail.com>
7229
7230 * ada-valprint.c (ada_val_print_1): Move the code handling
7231 TYPE_CODE_ENUM inside its own lexical block. Declare
7232 variables len and val there, instead of in the function's
7233 top level block. Avoid declaring deref_val again in a way
7234 that shadows another variable of the same name declared
7235 in one of the up-level blocks. Just re-use the up-level
7236 variable instead.
7237
4e5c77fe
JB
72382012-03-29 Joel Brobecker <brobecker@adacore.com>
7239
7240 * ada-lang.c (ada_lookup_encoded_symbol): Now returns void.
7241 Replace block_found argument by symbol_info. Adjust
7242 implementation accordingly. Add function documentation.
7243 (ada_lookup_symbol): Adjust to new ada_lookup_encoded_symbol.
7244 Fix documentation.
7245 * ada-lang.h (ada_lookup_encoded_symbol): Update declaration.
7246 * ada-exp.y (write_object_renaming): Adjust to new
7247 ada_lookup_encoded_symbol API.
7248
1c0ac8c7
JB
72492012-03-29 Joel Brobecker <brobecker@adacore.com>
7250
7251 * ada-lang.h (struct ada_symbol_info): Reformat. Improve
7252 documentation.
7253
2aaed979
KB
72542012-03-28 Rathish C <rathish.c@kpitcummins.com>
7255
7256 * v850-tdep.c: Add the enum values for mpu and fpu registers.
7257 (v850_register_name): Add the mpu and fpu register names.
7258 (v850e_register_name): Add the mpu and fpu register names.
7259 (v850e2_register_name): New function.
a09130f9 7260 (v850_gdbarch_init): Add case for bfd_mach_v850e2 and
2aaed979
KB
7261 bfd_mach_v850e2v3.
7262
927fbba6
JB
72632012-03-28 Joel Brobecker <brobecker@adacore.com>
7264
7265 * NEWS: Add entry for Ada varobj support.
7266
d32cafc7
JB
72672012-03-28 Joel Brobecker <brobecker@adacore.com>
7268
7269 * varobj.c (default_value_is_changeable_p): New function,
7270 extracted from varobj_value_is_changeable_p. Add declaration.
7271 (ada_value_is_changeable_p): New function, extracted from
7272 varobj_value_is_changeable_p. Add declaration.
7273 (struct language_specific): New field "value_is_changeable_p".
7274 (languages): Add entries for new field.
7275 (varobj_create): Set language before calling install_new_value.
7276 (varobj_value_is_changeable_p): Reimplement to call the varobj's
7277 "value_is_changeable_p" language callback.
7278
181875a4
JB
72792012-03-28 Joel Brobecker <brobecker@adacore.com>
7280
7281 * ada-varobj.h, ada-varobj.c: New files.
7282 * Makefile.in (SFILES): Add ada-varobj.c.
7283 (HFILES_NO_SRCDIR): Add ada-varobj.h.
7284 (COMMON_OBS): Add ada-varobj.o.
7285
7a290c40
JB
72862012-03-28 Joel Brobecker <brobecker@adacore.com>
7287
7288 * varobj.c (ada_value_has_mutated): Add declaration. New function.
7289 (struct language_specific): New field "value_has_mutated".
7290 (languages): Set field "value_has_mutated" in each entry of array.
7291 (varobj_value_has_mutated): New function.
7292 (varobj_udpdate): Add handling of type mutation.
7293 (value_of_root): Add handling of type mutation.
7294 (ada_value_has_mutated): New function.
7295
ca9b8b9c
PA
72962012-03-28 Pedro Alves <palves@redhat.com>
7297
7298 * ia64-linux-nat.c (supply_fpregset, ia64_linux_fetch_register):
7299 Always supply $fr0 as 0.0 and $fr1 as 1.0.
7300
cc0265cd
TT
73012012-03-28 Tom Tromey <tromey@redhat.com>
7302
7303 * python/py-inferior.c (infpy_read_memory): Remove cleanups and
7304 explicitly free 'buffer' on exit paths. Decref 'membuf_object'
7305 before returning.
7306
3ad2ec6f
TT
73072012-03-28 Tom Tromey <tromey@redhat.com>
7308
7309 * .dir-locals.el: New file.
7310
4a6510ba
PA
73112012-03-28 Pedro Alves <palves@redhat.com>
7312
7313 * ia64-linux-nat.c (u_offsets): Map IA64_EC_REGNUM to PT_AR_EC.
7314
5a75128f
JB
73152012-03-28 Joel Brobecker <brobecker@adacore.com>
7316
7317 * ia64-linux-nat.c (ia64_linux_fetch_register): Add special
7318 handling for r0.
7319
f99d8bf4
PA
73202012-03-27 Pedro Alves <palves@redhat.com>
7321
7322 Eliminate struct ui_stream.
7323
7324 * ui-out.h (struct ui_stream): Delete.
7325 (ui_out_field_stream): Adjust prototype.
7326 (ui_out_stream_new, ui_out_stream_delete)
7327 (make_cleanup_ui_out_stream_delete): Delete declarations.
7328 * ui-out.c (ui_out_field_stream): Change prototype to take a
7329 ui_file instead of a ui_stream. Adjust.
7330 (ui_out_stream_new, ui_out_stream_delete, do_stream_delete)
7331 (make_cleanup_ui_out_stream_delete): Delete.
7332 * breakpoint.c (print_breakpoint_location)
7333 (print_one_detail_ranged_breakpoint, print_it_watchpoint): Use
7334 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
7335 * disasm.c (dump_insns): Ditto.
7336 (do_mixed_source_and_assembly, do_assembly_only): Adjust
7337 prototype.
7338 (gdb_disassembly): Use ui_file/mem_fileopen instead of
7339 ui_stream/ui_out_stream_new.
7340 * infcmd.c (print_return_value): Ditto.
7341 * osdata.c (info_osdata_command): Don't allocate a local
7342 ui_stream.
7343 * stack.c (print_frame_arg, print_frame_args, print_frame): Use
7344 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
7345 * tracepoint.c (print_one_static_tracepoint_marker): Don't
7346 allocate a local ui_stream.
7347 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_file/mem_fileopen
7348 instead of ui_stream/ui_out_stream_new.
7349 (list_args_or_locals): Don't allocate a local ui_stream.
7350 * mi/mi-main.c (get_register, mi_cmd_data_evaluate_expression)
7351 (mi_cmd_data_read_memory): Use ui_file/mem_fileopen instead of
7352 ui_stream/ui_out_stream_new.
7353 * cli/cli-setshow.c (do_setshow_command): Ditto.
7354
6350a066 73552012-03-27 Oza Pawandeep <oza.pawandeep@gmail.com>
72508ac0 7356
6350a066
PA
7357 * arm-linux-tdep.c (arm_linux_init_abi): Call
7358 set_gdbarch_process_record. Initialize `arm_swi_record' field.
7359 * arm-tdep.c (arm_process_record): New function.
7360 (deallocate_reg_mem): New function.
7361 (decode_insn): New function.
7362 (thumb_record_branch): New function.
7363 (thumb_record_ldm_stm_swi(): New function.
7364 (thumb_record_misc): New function.
7365 (thumb_record_ld_st_stack): New function.
7366 (thumb_record_ld_st_imm_offset): New function.
7367 (thumb_record_ld_st_reg_offset(): New function.
7368 (thumb_record_add_sub_cmp_mov): New function.
7369 (thumb_record_shift_add_sub): New function.
7370 (arm_record_coproc_data_proc): New function.
7371 (arm_record_coproc): New function.
7372 (arm_record_b_bl): New function.
7373 (arm_record_ld_st_multiple): New function.
7374 (arm_record_ld_st_reg_offset): New function.
7375 (arm_record_ld_st_imm_offset): New function.
7376 (arm_record_data_proc_imm): New function.
7377 (arm_record_data_proc_misc_ld_str): New function.
7378 (arm_record_extension_space): New function.
7379 (arm_record_strx): New function.
7380 (sbo_sbz): New function.
7381 (struct insn_decode_record): New structure for arm insn record.
7382 (REG_ALLOC): New macro for reg allocations.
7383 (MEM_ALLOC): New macro for memory allocations.
7384 * arm-tdep.h (struct gdbarch_tdep): New field 'arm_swi_record'.
72508ac0 7385
89e028e2
AS
73862012-03-27 Andreas Schwab <schwab@linux-m68k.org>
7387
7388 * m68klinux-nat.c (fetch_register): Fix strict-aliasing violation.
7389 (store_register): Likewise.
7390
6350a066 73912012-03-26 Oza Pawandeep <oza.pawandeep@gmail.com>
3d9a9eb0 7392
6350a066 7393 * MAINTAINERS (Write After Approval): Add myself to the list.
3d9a9eb0 7394
5b43fab2
JK
73952012-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7396
7397 * NEWS (set breakpoint condition-evaluation): Change "gdb" to "host".
7398 Describe also the option "auto".
7399
b5453b95
RH
74002012-03-22 Richard Henderson <rth@redhat.com>
7401
7402 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Fix prototype.
7403 * sparc-nat.c (sparc_xfer_wcookie): Make static.
7404
227ee7fc
RH
74052012-03-22 Richard Henderson <rth@redhat.com>
7406
7407 * jit.c (jit_read_code_entry): Compute alignment and offset of
7408 int64_t member before computing entry_size.
7409
7b282c5a
SCR
74102012-03-22 Siva Chandra Reddy <sivachandra@google.com>
7411
7412 Python scripting: Add new method Value.referenced_value to
7413 gdb.Value which can dereference pointer as well as reference
7414 values.
7415 * NEWS: Add entry under 'Python scripting' about the new method
7416 Value.referenced_value on gdb.Value objects.
7417 * python/py-value.c (valpy_referenced_value): New function
7418 defining a new method on gdb.Value objects which can dereference
7419 pointer and reference values.
7420
0c83539f
SCR
74212012-03-22 Siva Chandra Reddy <sivachandra@google.com>
7422
7423 * MAINTAINERS (Write After Approval): Add myself to the list.
7424
7ccffd7c
KB
74252012-03-21 Kevin Buettner <kevinb@redhat.com>
7426
7427 * symtab.c (skip_prologue_sal): Change test to check for "main()"
7428 in addition to "main".
7429
bd0b9f9e
JB
74302012-03-21 Joel Brobecker <brobecker@adacore.com>
7431
7432 * expression.h (op_name): Add declaration.
7433 * expprint.c (op_name): Remove declaration. Make non-static.
7434 * ax-gdb.c (gen_expr): Use op_name instead of op_string.
7435
a5362b9a
TS
74362012-03-21 Thomas Schwinge <thomas@codesourcery.com>
7437
7438 * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Use siginfo_t instead
7439 of struct siginfo.
7440 * arm-linux-nat.c (arm_linux_stopped_data_address): Likewise.
7441 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
7442 * linux-nat.c (linux_nat_siginfo_fixup, siginfo_fixup)
7443 (linux_xfer_siginfo, linux_nat_set_siginfo_fixup)
7444 (linux_nat_get_siginfo): Likewise.
7445 * linux-nat.h (struct lwp_info, linux_nat_set_siginfo_fixup)
7446 (linux_nat_get_siginfo): Likewise.
7447 * linux-tdep.c (linux_get_siginfo_type): Likewise.
7448 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Likewise.
7449 * procfs.c (gdb_siginfo_t): Likewise.
7450
adcadaab
MF
74512012-03-21 Mike Frysinger <vapier@gentoo.org>
7452
7453 * .gitignore: Ignore more files.
7454
e278ad5b
PA
74552012-03-20 Pedro Alves <palves@redhat.com>
7456
7457 * remote.c (remote_start_remote): Clear `rs->starting_up' on early
7458 returns.
7459
741e63d7
YQ
74602012-03-20 Yao Qi <yao@codesourcery.com>
7461
7462 * amd64-tdep.c (amd64_displaced_step_copy_insn): Complete missing "}" in
7463 comment.
7464
b64f50a1
JK
74652012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7466
7467 Code cleanupp: Use cu_offset and sect_offset compile time type checking.
7468 * dwarf2expr.c (add_piece, dwarf_get_base_type, execute_stack_op)
7469 (ctx_no_dwarf_call, ctx_no_get_base_type): Use cu_offset and
7470 sect_offset.
7471 * dwarf2expr.h (cu_offset, sect_offset): New types.
7472 (struct dwarf_expr_context_funcs) <dwarf_call>
7473 (struct dwarf_expr_context_funcs) <get_base_type>: Use cu_offset and
7474 sect_offset.
7475 (struct dwarf_expr_context) <len>: Improve the comment.
7476 (struct dwarf_expr_piece, ctx_no_dwarf_call, ctx_no_get_base_type): Use
7477 cu_offset and sect_offset.
7478 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call)
7479 (dwarf_expr_get_base_type, needs_frame_dwarf_call)
7480 (dwarf2_compile_expr_to_ax, disassemble_dwarf_expression): Likewise.
7481 * dwarf2loc.h: Include dwarf2expr.h.
7482 (dwarf2_fetch_die_location_block, dwarf2_get_die_type): Use cu_offset
7483 and sect_offset.
7484 * dwarf2read.c (struct dwarf2_per_objfile) <debug_types_type_hash>:
7485 Improve the comment.
7486 (struct comp_unit_head, struct dwarf2_cu, struct dwarf2_per_cu_data)
7487 (struct signatured_type, struct line_header, struct partial_die_info)
7488 (struct die_info, find_partial_die, dwarf2_get_ref_die_offset)
7489 (lookup_signatured_type_at_offset, dwarf2_find_containing_comp_unit)
7490 (get_die_type_at_offset, create_cus_from_index)
7491 (create_signatured_type_table_from_index, dw2_get_file_names)
7492 (offset_in_cu_p, read_comp_unit_head, error_check_comp_unit_head)
7493 (read_and_check_comp_unit_head, read_and_check_type_unit_head)
7494 (create_debug_types_hash_table, process_psymtab_comp_unit)
7495 (load_partial_comp_unit, create_all_comp_units)
7496 (partial_die_parent_scope, partial_die_full_name, skip_one_die)
7497 (load_full_comp_unit, dwarf2_physname, read_import_statement)
7498 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
7499 (dwarf2_add_member_fn, process_enumeration_scope, read_module_type)
7500 (read_typedef, die_hash, die_eq, read_full_die, dwarf2_read_abbrevs)
7501 (load_partial_dies, read_partial_die, find_partial_die_in_comp_unit)
7502 (find_partial_die, read_attribute_value, lookup_die_type)
7503 (dump_die_shallow, store_in_ref_table): Use cu_offset and sect_offset.
7504 (is_ref_attr): New function comment.
7505 (dwarf2_get_ref_die_offset): New function comment, new variable retval.
7506 Use cu_offset and sect_offset.
7507 (follow_die_offset, follow_die_ref, dwarf2_fetch_die_location_block)
7508 (dwarf2_get_die_type, follow_die_sig, lookup_signatured_type_at_offset)
7509 (load_full_type_unit, read_signatured_type, per_cu_header_read_in)
7510 (dwarf2_find_containing_comp_unit, struct dwarf2_offset_and_type)
7511 (offset_and_type_hash, offset_and_type_eq, set_die_type)
7512 (get_die_type_at_offset, partial_die_hash, partial_die_eq)
7513 (write_one_signatured_type, write_psymtabs_to_index): Use cu_offset and
7514 sect_offset.
7515
e97a38f7
JK
75162012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7517
7518 Code cleanup.
7519 * python/py-auto-load.c (source_section_scripts): New variable back_to.
7520 Turn fclose and xfree calls into make_cleanup_fclose and make_cleanup
7521 with xfree.
7522 (auto_load_objfile_script): Turn fclose into make_cleanup_fclose.
7523
8320cc4f
JK
75242012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7525
7526 * NEWS: Describe new options --init-command=FILE, -ix and
7527 --init-eval-command=COMMAND, -iex.
7528 * main.c (struct cmdarg): New enum items CMDARG_INIT_FILE and
7529 CMDARG_INIT_COMMAND.
7530 (captured_main): New enum items OPT_IX and OPT_IEX. Add
7531 "init-command", "init-eval-command", "ix" and "iex" to the variable
7532 long_options. Handle OPT_IX and OPT_IEX. Process them from CMDARG_VEC.
7533 New comment for CMDARG_FILE and CMDARG_COMMAND processing.
7534 (print_gdb_help): Describe --init-command=FILE, -ix and
7535 --init-eval-command=COMMAND, -iex.
7536
26743505
JK
75372012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7538
7539 Code cleanup.
7540 * main.c (struct cmdarg): Move it here from main. Add more comments.
7541 (cmdarg_s, VEC (cmdarg_s)): New.
7542 (main): Move struct cmdarg from here. New variables cmdarg_vec and
7543 cmdarg_p. Remove variables cmdsize and ncmd and their initialization.
7544 Install cleanup for cmdarg_vec. Update filling for options 'x' and
7545 'X'. Replace cmdarg processing by cmdarg_vec processing. Remove xfree
7546 of CMDARG.
7547
5ff5c7b4
TT
75482012-03-19 Tom Tromey <tromey@redhat.com>
7549
7550 * gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'.
7551
ab260dad
JK
75522012-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7553
7554 PR symtab/13777
7555 * dwarf2read.c (process_full_comp_unit): Set LOCATIONS_VALID only for
7556 GCC >=4.5.
7557
c366c1f0
TT
75582012-03-16 Chris January <chris.january@allinea.com>
7559
7560 * tui-tui.win.c (tui_resize_all): Use erase and clearok instead
7561 of clear.
7562
e16edb45
TT
75632012-03-16 Chris January <chris.january@allinea.com>
7564
7565 * source.c (add_path): Use memmove instead of strcpy because the
7566 strings overlap.
7567
53ba8333
JB
75682012-03-16 Joel Brobecker <brobecker@adacore.com>
7569
7570 * value.h (set_value_parent): Add declaration.
7571 * value.c (set_value_parent): New function.
7572 (value_address): If VALUE->PARENT is not NULL, then use it as
7573 the base address instead of VALUE->LOCATION.address.
7574 * ada-lang.c (ada_value_primitive_packed_val): Keep V's address
7575 the same as OBJ's address. Adjust V's offset accordingly.
7576 Set V's parent.
7577
481860b3
GB
75782012-03-16 Gary Benson <gbenson@redhat.com>
7579
7580 PR breakpoints/10738
7581 * dwarf2read.c (use_deprecated_index_sections): New global.
7582 (struct partial_die_info): New member may_be_inlined.
7583 (read_partial_die): Set may_be_inlined where appropriate.
7584 (add_partial_subprogram): Add partial symbols for partial
7585 DIEs that may be inlined.
7586 (new_symbol_full): Add inlined subroutines to the current
7587 scope.
7588 (write_psymtabs_to_index): Bump version number.
7589 (dwarf2_read_index): Read only version 6 indices unless
7590 use_deprecated_index_sections is set.
7591 * linespec.c (symbol_and_data_callback): New structure.
7592 (iterate_inline_only): New function.
7593 (iterate_over_all_matching_symtabs): New argument
7594 "include_inline". If nonzero, also call the callback for
7595 symbols representing inlined subroutines.
7596 (lookup_prefix_sym): Pass extra argument to the above.
7597 (find_function_symbols): Likewise.
7598 (add_matching_symbols_to_info): Likewise.
7599 * NEWS: Mention that GDB can now set breakpoints on inlined
7600 functions.
7601
d0e7e15a
PM
76022012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
7603
7604 * p-typeprint.c (pascal_type_print_method_args):
7605 Fix display of parameter of methods.
7606
3d354654
PM
76072012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
7608
7609 * amd64-windows-nat.c (_initialize_amd64_windows_nat):
7610 Add missing prototype.
7611
cafe75b0
JK
76122012-03-16 Yao Qi <yao@codesourcery.com>
7613 Jan Kratochvil <jan.kratochvil@redhat.com>
7614
7615 Fix false compilation warning.
7616 * gnu-v3-abi.c (print_one_vtable): Initialize ADDR.
7617
25f8c692
JL
76182012-03-15 Jonathan Larmour <jifl@eCosCentric.com>
7619 Pedro Alves <pedro@codesourcery.com>
7620
7621 * arm-tdep.c: Include "remote.h" and "features/arm-with-m-fpa-layout.c".
7622 (arm_register_g_packet_guesses): New function.
7623 (arm_gdbarch_init): Don't force a target description with
7624 registers when the executable is detected as M-profile. Instead
7625 set gdbarch->tdep->is_m. Register `g' packet guesses.
7626 (_initialize_arm_tdep): Initialize the new target description.
7627 * features/arm-with-m-fpa-layout.xml: New description.
7628 * features/arm-with-m-fpa-layout.c: New, generated.
7629
35c63cd8
JB
76302012-03-15 Joel Brobecker <brobecker@adacore.com>
7631
7632 * breakpoint.c (breakpoint_xfer_memory): Add assertion.
7633 Update function description.
7634 (insert_bp_location): Do not wipe bl->target_info out.
7635 * mem-break.c: #include "gdb_string.h".
7636 (default_memory_insert_breakpoint): Do not call target_read_memory
7637 with a pointer to the breakpoint's shadow_contents buffer. Use
7638 a local buffer instead.
7639 * m32r-tdep.c (m32r_memory_insert_breakpoint): Ditto.
7640
57651221
TT
76412012-03-15 Tom Tromey <tromey@redhat.com>
7642
7643 * NEWS: Mention "info vtbl", not "info vtable".
7644 * cp-support.c (info_vtbl_command): Fix comment.
7645 (_initialize_cp_support): Fix text.
7646
410528f0
TT
76472012-03-15 Tom Tromey <tromey@redhat.com>
7648
7649 * cp-valprint.c (cp_print_value_fields): Use
7650 print_function_pointer_address for vtable slot.
7651
c4aeac85
TT
76522012-03-15 Tom Tromey <tromey@redhat.com>
7653
7654 * gnu-v3-abi.c (struct value_and_voffset): New.
7655 (hash_value_and_voffset, eq_value_and_voffset)
7656 (compare_value_and_voffset, compute_vtable_size)
7657 (print_one_vtable, gnuv3_print_vtable): New functions.
7658 (init_gnuv3_ops): Initialize 'print_vtable' field.
7659 * cp-support.c (info_vtbl_command): New function.
7660 (_initialize_cp_support): Add "info vtbl".
7661 * cp-abi.h (cplus_print_vtable): Declare.
7662 (struct cp_abi_ops) <print_vtable>: New field.
7663 * cp-abi.c (cplus_print_vtable): New function.
7664 * NEWS: Update.
7665
95cbceff
TT
76662012-03-15 Tom Tromey <tromey@redhat.com>
7667
7668 * d-lang.c (d_language_defn) <la_iterate_over_symbols>: Set to
7669 iterate_over_symbols.
7670
589b4a32
DE
76712012-03-14 Doug Evans <dje@google.com>
7672
7673 * dwarf2read.c (dwarf_stack_op_name): Add DW_OP_GNU_encoded_addr,
7674 DW_OP_GNU_parameter_ref.
7675
e837f12a
JK
76762012-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7677
7678 Fix double prompt of 'interpreter-exec mi'.
7679 * mi/mi-interp.c (mi_execute_command_input_handler): New prototype.
7680 (mi_interpreter_resume): use it.
7681 (mi_execute_command_input_handler): New function.
7682 * mi/mi-main.c (mi_execute_command): Move prompt printing to
7683 mi_execute_command_input_handler.
7684
ff1e4526 76852012-03-13 Josh Matthews <josh@joshmatthews.net> (tiny change)
c381a3f6
JB
7686
7687 * darwin-nat-info.c (_initialize_darwin_info_commands): Add
7688 prototype.
7689 (darwin_debug_port_info): Make static.
7690 * darwin-nat.c (_initialize_darwin_inferior): Add prototype.
7691 * machoread.c (_initialize_machoread): Add prototype.
7692 * i386-darwin-nat.c (i386_darwin_dr_set, i386_darwin_dr_get)
7693 (i386_darwin_set_control, i386_darwin_get_control)
7694 i386_darwin_dr_set_addr, i386_darwin_get_addr)
7695 i386_darwin_get_status, i386_darwin_get_control):
7696 Comment out with HW_WATCHPOINT_NOT_YET_ENABLED macro.
7697
d8a5d6ee
JB
76982012-03-13 Joel Brobecker <brobecker@adacore.com>
7699
7700 * ax-gdb.c (gen_usual_unary): Remove special handling of
7701 enum and bool types.
7702
af381b8c
JB
77032012-03-13 Joel Brobecker <brobecker@adacore.com>
7704
7705 * ax-gdb.c (gen_fetch): Add handling for TYPE_CODE_RANGE types.
7706
786c562f
JB
77072012-03-13 Joel Brobecker <brobecker@adacore.com>
7708
7709 * aix-thread.c (supply_fprs): Make more consistent with fill_fprs.
7710
e3ebf1bb
JB
77112012-03-13 Chris January <chris.january@allinea.com>
7712
7713 * aix-thread.c (fill_sprs): Store the floating point registers
7714 at the correct offsets into vals.
7715
c5b7e1cb
DE
77162012-03-13 Doug Evans <dje@google.com>
7717
16899756
DE
7718 * NEWS: Mention symbol-reloading has been deleted.
7719 * symfile.c (symbol_reloading): Delete.
7720 (show_symbol_reloading): Delete.
7721 (_initialize_symfile): Delete set/show symbol-reloading.
7722
c5b7e1cb
DE
7723 * dwarf2read.c (load_partial_comp_unit): Defer adding cu to
7724 read_in_chain until we have successfully read it in.
7725 (load_full_comp_unit): Ditto.
7726 (read_signatured_type): Add comment.
7727
46cb6474
JB
77282012-03-13 Chris January <chris.january@allinea.com>
7729
7730 * stabsread.c (fix_common_block): Change type of valu argument
7731 to CORE_ADDR.
7732
76219d77
JB
77332012-03-13 Chris January <chris.january@allinea.com>
7734
7735 * rs6000-tdep.c (skip_prologue): Support the oril r29, r1, 0x0
7736 instruction.
7737
87b0bb13
JK
77382012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7739
7740 * common/linux-procfs.c (linux_proc_get_int): New, from
7741 linux_proc_get_tgid, change its LWPID type to pid_t, add parameter
7742 field.
7743 (linux_proc_get_tgid): Only call linux_proc_get_int.
7744 (linux_proc_get_tracerpid): New.
7745 (linux_proc_pid_has_state): New, from linux_proc_pid_is_zombie.
7746 (linux_proc_pid_is_stopped, linux_proc_pid_is_zombie): Only call
7747 linux_proc_pid_has_state.
7748 * common/linux-procfs.h (linux_proc_get_tracerpid): New declaration.
7749 * common/linux-ptrace.c: Include linux-procfs.h and buffer.h.
7750 (linux_ptrace_attach_warnings): New.
7751 * common/linux-ptrace.h (struct buffer, linux_ptrace_attach_warnings):
7752 New declaration.
7753 * linux-nat.c: Include exceptions.h, linux-ptrace.h and buffer.h.
7754 (linux_nat_attach): New variables ex, buffer, message and message_s.
7755 Wrap to_attach by TRY_CATCH and call linux_ptrace_attach_warnings.
7756
5f572dec
JK
77572012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7758
7759 * Makefile.in (linux-ptrace.o): New.
7760 * common/linux-procfs.c (linux_proc_pid_is_zombie): New,
7761 from linux-nat.c.
7762 * common/linux-procfs.h (linux_proc_pid_is_zombie): New declaration.
7763 * common/linux-ptrace.c: New file.
7764 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-ptrace.o.
7765 * config/arm/linux.mh: Likewise.
7766 * config/i386/linux.mh: Likewise.
7767 * config/i386/linux64.mh: Likewise.
7768 * config/ia64/linux.mh: Likewise.
7769 * config/m32r/linux.mh: Likewise.
7770 * config/m68k/linux.mh: Likewise.
7771 * config/mips/linux.mh: Likewise.
7772 * config/pa/linux.mh: Likewise.
7773 * config/powerpc/linux.mh: Likewise.
7774 * config/powerpc/ppc64-linux.mh: Likewise.
7775 * config/powerpc/spu-linux.mh: Likewise.
7776 * config/s390/s390.mh: Likewise.
7777 * config/sparc/linux.mh: Likewise.
7778 * config/sparc/linux64.mh: Likewise.
7779 * config/xtensa/linux.mh: Likewise.
7780 * linux-nat.c (linux_lwp_is_zombie): Remove, move it to
7781 common/linux-procfs.c.
7782 (wait_lwp): Rename linux_lwp_is_zombie to linux_proc_pid_is_zombie.
7783
44f238bb
PA
77842012-03-13 Hui Zhu <teawater@gmail.com>
7785 Pedro Alves <palves@redhat.com>
7786
7787 * breakpoint.c (init_breakpoint_sal): New flags parameter. Handle
7788 CREATE_BREAKPOINT_FLAGS_INSERTED.
7789 (create_breakpoint_sal, create_breakpoints_sal)
7790 (base_breakpoint_create_breakpoints_sal)
7791 (tracepoint_create_breakpoints_sal)
7792 (strace_marker_create_breakpoints_sal): New flags parameter. Pass
7793 down.
7794 (break_command_1, handle_gnu_v3_exceptions, trace_command)
7795 (ftrace_command, strace_command): Adjust.
7796 (create_tracepoint_from_upload): Pass
7797 CREATE_BREAKPOINT_FLAGS_INSERTED.
7798 * breakpoint.h (enum breakpoint_create_flags): New.
7799 (create_breakpoint): New flags parameter.
7800 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
7801 * python/py-breakpoint.c (bppy_init): Adjust.
7802 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust.
7803 * spu-tdep.c (spu_catch_start): Adjust.
7804
1e51243a
PA
78052012-03-13 Pedro Alves <palves@redhat.com>
7806 Hui Zhu <teawater@gmail.com>
7807 Yao Qi <yao@codesourcery.com>
7808
7809 * remote.c (struct remote_state): New field `starting_up'.
7810 (remote_start_remote): Set and clear it.
7811 (remote_can_download_tracepoint): If starting up, return false.
7812
fa3064dd
YQ
78132012-03-13 Yao Qi <yao@codesourcery.com>
7814
7815 * inferior.h (struct inferior): Remove fields any_syscall_count,
7816 syscalls_counts and total_syscalls_count. Move them to new
7817 struct catch_syscall_inferior_data in breakpoint.c.
7818 * breakpoint.c: Call DEF_VEC_I(int).
7819 (struct catch_syscall_inferior_data): New.
7820 (get_catch_syscall_inferior_data): New.
7821 (catch_syscall_inferior_data_cleanup): New.
7822 (insert_catch_syscall): Update to access data in
7823 struct catch_syscall_inferior_data.
7824 (insert_catch_syscall): Likewise.
7825 (remove_catch_syscall): Likewise.
7826 (remove_catch_syscall): Likewise.
7827 (is_syscall_catchpoint_enabled): Likewise.
7828 (add_catch_command): Likewise.
7829 (_initialize_breakpoint): Register cleanup.
7830 * breakpoint.h: Removed DEF_VEC_I(int).
7831 * dwarf2loc.c: Call DEF_VEC_I(int).
7832 * mi/mi-main.c: Likewise.
7833
460fac3c
MK
78342012-03-12 Mark Kettenis <kettenis@gnu.org>
7835
7836 * inf-ptrace.c (inf_ptrace_post_attach): Make static.
7837
e1aca11e
JB
78382012-03-12 Chris January <chris.january@allinea.com>
7839
7840 * aix-thread.c (_initialize_aix_thread): Add prototype.
7841 * rs6000-nat.c (_initialize_rs6000_nat): Ditto.
7842 * xcoffsolib.c (_initialize_xcoffsolib): Ditto.
7843
649c7061
JB
78442012-03-12 Joel Brobecker <brobecker@adacore.com>
7845
7846 * amd64bsd-nat.c: Move #include of "amd64bsd-nat.h" after
7847 include of "amd64-nat.h".
7848
0b49e518
TT
78492012-03-12 Tom Tromey <tromey@redhat.com>
7850
7851 * buildsym.c (record_pending_block): Now static.
7852 * buildsym.h: (record_pending_block): Remove.
7853
fd24fa94
AT
78542012-03-12 Andreas Tobler <andreast@fgznet.ch>
7855
7856 * amd64bsd-nat.c: Include amd64bsd-nat.h.
7857
ba919b58
TT
78582012-03-09 Tom Tromey <tromey@redhat.com>
7859
7860 * dwarf2read.c (struct dwarf2_cu) <checked_producer,
7861 producer_is_gxx_lt_4_6>: New fields.
7862 (producer_is_gxx_lt_4_6): Use and update producer cache fields.
7863
a48e046c
TT
78642012-03-09 Tom Tromey <tromey@redhat.com>
7865
7866 * dwarf2read.c (dwarf2_attr): Avoid tail-recursive call.
7867
6f5e9362
JB
78682012-03-08 Joel Brobecker <brobecker@adacore.com>
7869
7870 * ravenscar-sparc-thread.c (_initialize_ravenscar_sparc): Add
7871 prototype.
7872
8d037db9
JB
78732012-03-08 Joel Brobecker <brobecker@adacore.com>
7874
7875 * ravenscar-thread.c (_initialize_ravenscar): Add prototype.
7876
4e841acf
JK
78772012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7878
7879 Fix -Wmissing-prototypes build.
7880 * arm-linux-nat.c (get_thread_id): Make it static.
7881 * xtensa-linux-nat.c (get_thread_id): Likewise.
7882
c6030312
JB
78832012-03-08 Joel Brobecker <brobecker@adacore.com>
7884
7885 * server.c (process_point_options): If a conditional expression
7886 is found, only print a message if remote_debug is nonzero.
7887
52323be9
LM
78882012-03-08 Luis Machado <lgustavo@codesourcery.com>
7889
7890 * ax-gdb.c (gen_fetch): Fail gracefully and use error instead
7891 of internal error for unknown/unsupported types.
7892
7fe25d9b
JK
78932012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7894
7895 Fix CU relative vs. absolute DIE offsets.
7896 * dwarf2loc.h (dwarf2_fetch_die_location_block): Rename parameter
7897 offset to offset_in_cu.
7898 * dwarf2read.c (process_enumeration_scope): Add CU offset to
7899 TYPE_OFFSET.
7900 (dwarf2_fetch_die_location_block): Rename parameter offset to
7901 offset_in_cu. New variable offset, add CU offset to OFFSET_IN_CU.
7902
05e7c244
JK
79032012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7904
7905 * libunwind-frame.c: Rename to ...
7906 * ia64-libunwind-tdep.c: ... here.
7907 * libunwind-frame.h: Rename to ...
7908 * ia64-libunwind-tdep.h: ... here.
7909 * Makefile.in (HFILES_NO_SRCDIR): Rename libunwind-frame.h to
7910 ia64-libunwind-tdep.h.
7911 (ALLDEPFILES): Rename libunwind-frame.c to ia64-libunwind-tdep.c.
7912 * README (--with-libunwind): Rename to ...
7913 (--with-libunwind-ia64): ... here, note it is ia64 specific now.
7914 * config.in: Regenerate.
7915 * configure: Regenerate.
7916 * configure.ac: New option --with-libunwind-ia64, make the
7917 AS_HELP_STRING ia64 specific. Deprecate option --with-libunwind.
7918 Remove AC_DEFINE for HAVE_LIBUNWIND.
7919 * ia64-libunwind-tdep.c: Make the file top comment ia64 specific.
7920 Rename libunwind-frame.h #include to ia64-libunwind-tdep.h.
7921 Rename libunwind-frame in the general comment.
7922 * ia64-libunwind-tdep.h: Make the file top comment ia64 specific.
7923 Rename symbol LIBUNWIND_FRAME_H to IA64_TDEP_LIBUNWIND_FRAME_H.
7924 Move forward declarations inside #ifndef. Rename libunwind-frame in
7925 the general comment.
7926 * ia64-tdep.c: Rename libunwind-frame.h #include to
7927 ia64-libunwind-tdep.h.
7928 (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum, ia64_is_fpreg)
7929 (ia64_libunwind_descr): Rename libunwind-frame to
7930 ia64-libunwind-tdep in these function comments.
7931 * ia64-tdep.h: Rename libunwind-frame.h #include to
7932 ia64-libunwind-tdep.h.
7933 * ia64-vms-tdep.c (ia64_vms_libunwind_descr): Rename libunwind-frame to
7934 ia64-libunwind-tdep in that data comment.
7935
3755cbfd
JK
79362012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7937
7938 * libunwind-frame.h (struct frame_unwind): New declaration.
7939
d1cda5d9
JB
79402012-03-08 Joel Brobecker <brobecker@adacore.com>
7941
7942 * breakpoint.c (_initialize_breakpoint): Fix error in help of
7943 "set breakpoint condition-evaluation" command.
7944
a0ba0aa2
TG
79452012-03-08 Tristan Gingold <gingold@adacore.com>
7946
7947 * sparc-stub.c: Move to stubs/
7948 * sh-stub.c: Likewise.
7949 * m68k-stub.c: Likewise.
7950 * m32r-stub.c: Likewise.
7951 * i386-stub.c: Likewise.
7952
7b8b6d6d
AS
79532012-03-08 Andreas Schwab <schwab@linux-m68k.org>
7954
007cafee
AS
7955 * m68klinux-tdep.c (m68k_linux_init_abi): Register
7956 linux_get_siginfo_type.
7957
7b8b6d6d
AS
7958 * m68klinux-nat.c: Include "gdb_proc_service.h".
7959 (PTRACE_GET_THREAD_AREA): Define.
7960 (ps_get_thread_area): New function.
7961
bba74b36
YQ
79622012-03-08 Yao Qi <yao@codesourcery.com>
7963
7964 * remote.c (remote_get_noisy_reply): Replace `sprintf' with
7965 `xsnprintf'.
7966 (remote_query_attached): Likewise.
7967 (remote_static_tracepoint_marker_at): Likewise.
7968 (remote_set_permissions): Likewise.
7969 (remote_detach_1, extended_remote_attach_1): Likewise.
7970 (send_g_packet, remote_vkill): Likewise.
7971 (extended_remote_disable_randomization): Likewise.
7972 (remote_add_target_side_condition): Likewise.
7973 (remote_insert_breakpoint): Likewise.
7974 (remote_remove_breakpoint): Likewise.
7975 (remote_insert_watchpoint): Likewise.
7976 (remote_remove_watchpoint): Likewise.
7977 (remote_insert_hw_breakpoint): Likewise.
7978 (remote_insert_hw_breakpoint): Likewise.
7979 (remote_remove_hw_breakpoint): Likewise.
7980 (remote_download_command_source): Likewise.
7981 (remote_download_tracepoint): Likewise.
7982 (remote_download_trace_state_variable): Likewise.
7983 (remote_disable_tracepoint): Likewise.
7984 (remote_trace_set_readonly_regions): Likewise.
7985 (remote_get_tracepoint_status): Likewise.
7986 (remote_trace_find): Likewise.
7987 (remote_get_trace_state_variable_value): Likewise.
7988 (remote_set_disconnected_tracing): Likewise.
7989 (remote_set_circular_trace_buffer): Likewise.
7990 (remote_get_min_fast_tracepoint_insn_len): Likewise.
7991 (remote_use_agent): Likewise.
7992 (remote_add_target_side_condition): Add one parameter BUF_SIZE.
7993 Update callers.
7994
9b224c5e
PA
79952012-03-07 Pedro Alves <palves@redhat.com>
7996
7997 * NEWS: Mention QProgramSignals.
7998 * inferior.h (update_signals_program_target): Declare.
7999 * infrun.c: (update_signals_program_target): New.
8000 (handle_command): Update the target of the new program signals
8001 array changes.
8002 * remote.c (PACKET_QProgramSignals): New enum.
8003 (last_program_signals_packet): New global.
8004 (remote_program_signals): New.
8005 (remote_start_remote): Update the target with the program signals
8006 list.
8007 (remote_protocol_features): Add entry for QPassSignals.
8008 (remote_open_1): Free anc clear last_program_signals_packet.
8009 (init_remote_ops): Install remote_program_signals.
8010 * target.c (update_current_target): Adjust.
8011 (target_program_signals): New.
8012 * target.h (struct target_ops) <to_program_signals>: New field.
8013 (target_program_signals): Declare.
8014
74c48cbb
PA
80152012-03-07 Pedro Alves <palves@redhat.com>
8016
8017 * NEWS: Add subtitle for new z0/z1 conditional breakpoint
8018 extensions.
8019
0c13fc49
AS
80202012-03-07 Andreas Schwab <schwab@linux-m68k.org>
8021
8022 * m68klinux-nat.c (getregs_supplies): Make static.
8023 (getfpregs_supplies): Likewise.
8024 (have_ptrace_getregs): Likewise.
8025
1281d2a3
JB
80262012-03-06 Joel Brobecker <brobecker@adacore.com>
8027
8028 * dwarf2read.c (dwarf2_get_die_type): Pass absolute offset
8029 in call to get_die_type_at_offset.
8030
2b03b41d
SS
80312012-03-06 Stan Shebs <stan@codesourcery.com>
8032
8033 * mi/mi-cmd-break.c: Enforce coding standards, fix comments.
8034 * mi/mi-cmd-disas.c: Ditto.
8035 * mi/mi-cmd-env.c: Ditto.
8036 * mi/mi-cmd-file.c: Ditto.
8037 * mi/mi-cmd-stack.c: Ditto.
8038 * mi/mi-cmd-target.c: Ditto.
8039 * mi/mi-cmd-var.c: Ditto.
8040 * mi/mi-cmds.c: Ditto.
8041 * mi/mi-cmds.h: Ditto.
8042 * mi/mi-console.c: Ditto.
8043 * mi/mi-getopt.c: Ditto.
8044 * mi/mi-getopt.h: Ditto.
8045 * mi/mi-interp.c: Ditto.
8046 * mi/mi-main.c: Ditto.
8047 * mi/mi-out.c: Ditto.
8048 * mi/mi-parse.c: Ditto.
8049 * mi/mi-parse.h: Ditto.
8050 * mi/mi-symbol-cmds.c: Ditto.
8051
8052 * mi/mi-getopt.h: Move mi_opt struct up.
8053 * mi/mi-main.c (captured_mi_execute_command): Remove redundant
8054 return.
8055 * mi/mi-out.c (_initialize_mi_out): Remove empty initialize.
8056
c988ad87
TT
80572012-03-06 Tom Tromey <tromey@redhat.com>
8058
8059 * proc-service.c (ps_pglobal_lookup): Set the current program
8060 space.
8061
1b7c1b10
PA
80622012-03-06 Pedro Alves <palves@redhat.com>
8063
8064 * gregset.h [HAVE_SYS_PROCFS_H]: Include <sys/procfs.h>.
8065
3c182069
JB
80662012-03-05 Joel Brobecker <brobecker@adacore.com>
8067
8068 * MAINTAINERS: List Maciej W. Rozycki as the mips maintainer.
8069
2e794194
JK
80702012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8071
8072 Code cleanup.
8073 * common/linux-osdata.c (linux_common_core_of_thread): New function
8074 comment.
8075 * linux-nat.c (linux_nat_wait_1): Replace linux_nat_core_of_thread_1
8076 call by linux_common_core_of_thread.
8077 (linux_nat_core_of_thread_1): Remove.
8078 * linux-nat.h (linux_nat_core_of_thread_1): Remove declaration.
8079 * linux-thread-db.c: Include linux-osdata.h.
8080 (update_thread_core): Replace linux_nat_core_of_thread_1 call by
8081 linux_common_core_of_thread.
8082
9f9f1f31
TT
80832012-03-05 Tom Tromey <tromey@redhat.com>
8084
8085 * value.c (value_primitive_field): Don't fetch contents for
8086 non-virtual bases.
8087
b7b189f3
TT
80882012-03-05 Tom Tromey <tromey@redhat.com>
8089
8090 * jv-valprint.c (java_value_print): Correctly compute 'obj_addr'.
8091
05b8a789 80922012-03-05 Andreas Arnez <arnez@linux.vnet.ibm.com>
5538f557 8093
5538f557
JB
8094 * s390-nat.c: Include "gregset.h".
8095
75528772
JK
80962012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8097
8098 * libunwind-frame.c (LIBUNWIND_SO): Change .7 to .8.
8099 [!LIBUNWIND_SO] (LIBUNWIND_SO_7): New #define.
8100 (libunwind_load): New variable so_error, use it for dlerror. Try to
8101 load also LIBUNWIND_SO_7.
8102
275418ae
PA
81032012-03-05 Pedro Alves <palves@redhat.com>
8104
8105 * i387-tdep.c (i387_supply_xsave): Assert the xsave section buffer
8106 is not NULL, and remove resulting dead code.
8107
5cbb9812
TS
81082012-03-05 Thomas Schwinge <thomas@codesourcery.com>
8109
8110 * sh-tdep.c (sh_skip_prologue): Provide an upper limit on the function
8111 prologue to sh_analyze_prologue.
8112 (sh_analyze_prologue): Make better use of such an upper limit, and
8113 generally be more cautious about accessing memory.
8114
541515ad
TT
81152012-03-05 Tom Tromey <tromey@redhat.com>
8116
8117 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from
8118 _initialize_ia64_hpux_tdep.
8119
b4d36fb8
PA
81202012-03-05 Pedro Alves <palves@redhat.com>
8121
24490249
PA
8122 PR gdb/13766
8123
b4d36fb8
PA
8124 * i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and
8125 the register state is clear, supply explicit zero, instead of
8126 marking the register unavailable.
8127
60c9a3c0
TG
81282012-03-05 Tristan Gingold <gingold@adacore.com>
8129
8130 * NEWS: Mention OpenVMS ia64 new target.
8131
696759ad
TG
81322012-03-05 Tristan Gingold <gingold@adacore.com>
8133
8134 * ia64-tdep.h: Include libunwind-frame.h and libunwind-ia64.h.
8135 (ia64_unw_accessors, ia64_unw_rse_accessors)
8136 (ia64_libunwind_descr): Declare.
8137 * ia64-vms-tdep.c: New file.
8138 * ia64-tdep.c (ia64_unw_accessors, ia64_unw_rse_accessors)
8139 (ia64_libunwind_descr): Make them public.
8140 * configure.tgt: Add ia64-*-*vms*.
8141 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-vms-tdep.o
8142 (ALLDEPFILES): Add ia64-vms-tdep.c
8143
34864976
TG
81442012-03-05 Tristan Gingold <gingold@adacore.com>
8145
169081d0
TG
8146 * target.h (target_object): Add TARGET_OBJECT_OPENVMS_UIB.
8147 * remote.c (PACKET_qXfer_uib): New enum value.
8148 (remote_protocol_features): Add entry for PACKET_qXfer_uib.
8149 (remote_xfer_partial): Handle TARGET_OBJECT_OPENVMS_UIB.
8150 (_initialize_remote): Call add_packet_config_cmd for
8151 xfer:uib packet.
8152
81532012-03-05 Tristan Gingold <gingold@adacore.com>
8154
8155 * osabi.c (gdb_osabi_names): Add OpenVMS.
8156 (generic_elf_osabi_sniffer): Likewise.
8157 * defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS.
34864976 8158
6597b100
JK
81592012-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
8160
8161 Removed unused code.
8162 * libunwind-frame.c (libunwind_frame_unwind)
8163 (libunwind_frame_base_address): Remove.
8164 * libunwind-frame.h (libunwind_frame_base_address): Remove declaration.
8165
87399aa1
YQ
81662012-03-04 Yao Qi <yao@codesourcery.com>
8167
8168 * common/agent.c (gdb_connect_sync_socket): Add _ markup and
8169 remove trailing new line.
8170 (agent_run_command, agent_run_command): Add _ markup.
8171 (agent_capability_check): Likewise.
8172
abf1152a
JK
81732012-03-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8174
8175 * breakpoint.c (set_condition_evaluation_mode): Set
8176 CONDITION_EVALUATION_MODE unconditionally.
8177
5808517f
YQ
81782012-03-03 Yao Qi <yao@codesourcery.com>
8179
8180 * common/agent.c (agent_look_up_symbols): Add one parameter 'arg'.
8181 * common/agent.h: Update declaration.
8182 * inf-child.c (inf_child_use_agent): New.
8183 (inf_child_can_use_agent): New.
8184 (inf_child_target): Initialize fields `to_use_agent'
8185 and `to_can_use_agent'.
8186 * agent.c (agent_new_objfile): New.
89b7509a 8187 (_initialize_agent): Add agent_new_objfile to new_objfile
5808517f
YQ
8188 observer.
8189
8190 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
8191 New.
89b7509a 8192 (linux_target_install_ops): Initialize field
5808517f
YQ
8193 `to_static_tracepoint_markers_by_strid'.
8194 * remote.c (free_current_marker): Move it to ...
8195 * tracepoint.c (free_current_marker): ... here. New.
8196 (cleanup_target_stop): New.
8197 * tracepoint.h: Declare free_current_marker.
8198 * NEWS: Add one entry about `info static-tracepoint-marker'.
8199
58b4daa5
YQ
82002012-03-03 Yao Qi <yao@codesourcery.com>
8201
8202 * common/agent.c (agent_loaded_p): New.
89b7509a 8203 (agent_look_up_symbols): New global.
58b4daa5
YQ
8204 * common/agent.h: Declare agent_loaded_p.
8205
8ffcbaaf
YQ
82062012-03-03 Yao Qi <yao@codesourcery.com>
8207
8208 * common/agent.c (struct ipa_sym_addresses) <addr_capability>: New.
8209 (agent_capability_check, agent_capability_invalidate): New.
8210 (symbol_list): New array element.
8211 * common/agent.h (enum agent_capa): New.
8212 * target.c (target_pre_inferior): Call agent_capability_invalidate.
8213
d1feda86
YQ
82142012-03-03 Yao Qi <yao@codesourcery.com>
8215
8216 * target.h (struct target_ops) <to_use_agent>: New field.
8217 (struct target_ops) <to_can_use_agent>: New field.
8218 (target_use_agent, target_can_use_agent): New macro.
8219 * target.c (update_current_target): Update.
8220 * remote.c: New enum `PACKET_QAgent'.
8221 (remote_protocol_features): Add a new element.
8222 (remote_use_agent, remote_can_use_agent): New.
8223 (init_remote_ops): Initialize field `can_use_agent' with
8224 remote_can_use_agent. Intiailize field `use_agent' with
8225 remote_use_agent.
8226 * common/agent.c (use_agent): New global.
8227 * common/agent.h: Declare it.
8228 * tracepoint.c (info_static_tracepoint_markers_command): Add
8229 comment.
8230 * Makefile.in (SFILES): Add common/agent.c and agent.c.
8231 (COMMON_OBS): Add common/agent.o and agent.o
8232 (common-agent.o): New rule.
8233 * agent.c: New.
8234
2fa291ac
YQ
82352012-03-03 Yao Qi <yao@codesourcery.com>
8236
8237 * common/agent.c: New.
8238 * common/agent.h: New.
8239 * configure.ac: Add `sys/socket.h' and `sys/un.h' to
8240 AC_CHECK_HEADERS.
8241 * configure, configh.in: Regenerated.
8242
9fc05685
KB
82432012-03-02 Kevin Buettner <kevinb@redhat.com>
8244
8245 * sh-tdep.c (sh_frame_cache): Don't fetch the FPSCR register
8246 unless it exists for this architecture.
8247
a5ee536b
JB
82482012-03-02 Joel Brobecker <brobecker@adacore.com>
8249
8250 * language.h (struct language_defn): New "method" la_read_var_value.
8251 * findvar.c: #include "language.h".
8252 (default_read_var_value): Renames read_var_value. Rewrite
8253 function description.
8254 (read_var_value): New function.
8255 * value.h (default_read_var_value): Add prototype.
8256 * ada-lang.c (ada_read_renaming_var_value, ada_read_var_value):
8257 New functions.
8258 (ada_language_defn): Add entry for la_read_var_value.
8259 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, language.c,
8260 * m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Update
8261 language_defn structures to add entry for new la_read_var_value
8262 field.
8263
f59f708a
PA
82642012-03-02 Tom Tromey <tromey@redhat.com>
8265 Pedro Alves <palves@redhat.com>
8266
8267 PR breakpoints/13776:
8268 * breakpoint.c (breakpoint_init_inferior): Delete step-resume
8269 breakpoints.
8270 (delete_longjmp_breakpoint_at_next_stop): New.
8271 * breakpoint.h (delete_longjmp_breakpoint_at_next_stop): Declare.
8272 * target.c (generic_mourn_inferior): Call mark_breakpoints_out
8273 before deleting the inferior. Add comments.
8274 * thread.c (clear_thread_inferior_resources): Don't delete lonjmp
8275 breakpoints immediately, but only on next stop. Move that code
8276 next to where we mark other breakpoints for deletion.
8277
44099a67
JB
82782012-03-02 Joel Brobecker <brobecker@adacore.com>
8279
8280 * mips-linux-nat.c (mips_linux_read_description): Add missing i18n
8281 marker.
8282 * mips-tdep.c (mips_linux_reg_names): Improve comment to avoid ARI
8283 violation.
8284
2a2ef594
PA
82852012-03-02 Pedro Alves <palves@redhat.com>
8286
8287 * linux-thread-db.c (attach_thread): Avoid in_thread_list call.
8288
b261e0c5
UW
82892012-03-02 Ulrich Weigand <uweigand@de.ibm.com>
8290
8291 Fix -Wmissing-prototypes build.
8292 * ppc-linux-nat.c (ppc_linux_get_hwcap): Make static.
8293 * remote-sim.c (gdbsim_has_all_memory): Likewise.
8294 (gdbsim_has_memory): Likewise.
8295
a95babbf
YQ
82962012-03-02 Yao Qi <yao@codesourcery.com>
8297
8298 Fix -Wmissing-prototypes build.
8299 * charset.c (phony_iconv_open): Make static.
8300 (phony_iconv_close, phony_iconv): Likewise.
8301 * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype.
8302 * i386-windows-nat.c (_initialize_i386_windows_nat): New
8303 prototype.
8304 * mingw-hdep.c (_initialize_mingw_hdep): New prototype.
8305 * ser-mingw.c (create_select_thread): Make static.
8306 * windows-termcap.c (tgetent): New prototype.
8307 (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
8308
d603d4b3
JK
83092012-03-02 Zhang Yuanhui <asmwarrior@gmail.com>
8310
8311 Fix -Wmissing-prototypes build.
8312 * windows-nat.c (dll_symbol_command, ctrl_c_handler): Make them static.
8313 (_initialize_windows_nat, _initialize_check_for_gdb_ini)
8314 (_initialize_loadable): New prototypes.
8315
7fb3ad1f
DE
83162012-03-02 Doug Evans <dje@google.com>
8317
8318 * dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
8319 abbrev table, read_comp_unit will do it.
8320
693be288
JK
83212012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8322
8323 Fix -Wmissing-prototypes build.
8324 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Make it static.
8325 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): New prototype.
8326 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Likewise.
8327 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code): Make it static.
8328 (_initialize_arm_symbian_tdep): New prototype.
8329 * arm-wince-tdep.c (arm_wince_skip_main_prologue): Make it static.
8330 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): New prototype.
8331 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Make it
8332 static.
8333 * lm32-tdep.c (_initialize_lm32_tdep): New prototype.
8334 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): New
8335 prototype.
8336 * microblaze-tdep.c (microblaze_debug, microblaze_fetch_instruction)
8337 (microblaze_skip_prologue, microblaze_frame_cache): Make them static.
8338 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Make it
8339 static.
8340 * moxie-tdep.c (moxie_process_record): Likewise.
8341 * remote-mips.c (mips_can_use_watchpoint, mips_insert_watchpoint)
8342 (mips_remove_watchpoint, mips_stopped_by_watchpoint): Make them static.
8343 * rl78-tdep.c (rl78_breakpoint_from_pc): Make it static.
8344 (_initialize_rl78_tdep): New prototype.
8345 * rx-tdep.c (rx_breakpoint_from_pc): Make it static.
8346 (_initialize_rx_tdep): New prototype.
8347 * solib-darwin.c (darwin_in_dynsym_resolve_code): Make it static.
8348 (_initialize_darwin_solib): New prototype.
8349 * solib-spu.c: Include solib-spu.h.
8350 (_initialize_spu_solib): New prototype.
8351 * spu-multiarch.c (_initialize_spu_multiarch): New prototype.
8352 * tic6x-tdep.c (tic6x_analyze_prologue, tic6x_skip_prologue)
8353 (tic6x_breakpoint_from_pc, tic6x_frame_unwind_cache)
8354 (tic6x_software_single_step): Make it static.
8355 (_initialize_tic6x_tdep): New prototype.
8356
638234e5
JK
83572012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8358
8359 Fix -Wmissing-prototypes build.
8360 * cris-tdep.c (cris_can_use_hardware_watchpoint)
8361 (cris_region_ok_for_watchpoint, cris_stopped_data_address): Remove.
8362
f4a6f16d
JK
83632012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
8364
8365 Fix -Wmissing-prototypes build.
8366 * frv-tdep.c (frv_check_watch_resources, frv_stopped_data_address)
8367 (frv_have_stopped_data_address): Remove.
8368
04dcf5fa
JK
83692012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
8370
8371 Fix -Wmissing-prototypes build.
8372 * Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h.
8373 * sh-tdep.c: Include sh64-tdep.h.
8374 * sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations.
8375 * sh64-tdep.c: Include sh64-tdep.h.
8376 * sh64-tdep.h: New file.
8377
19080931
MR
83782012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
8379
8380 * mips-tdep.c (mips32_scan_prologue): Correct indentation.
8381
9aac7884
MR
83822012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
8383
8384 * mips-tdep.c (mips_gdbarch_init): Only set pc_regnum and
8385 sp_regnum once the gdbarch_init_osabi hook has been called.
8386
a385295e
MR
83872012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
8388
8389 * mips-tdep.c (mips32_bc1_pc): New function.
8390 (mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T,
8391 BPOSGE32 and BPOSGE64 instructions.
8392 (deal_with_atomic_sequence): Likewise.
8393 (mips32_instruction_has_delay_slot): Likewise.
8394
1faeff08 83952012-03-01 Maciej W. Rozycki <macro@mips.com>
a09130f9
PA
8396 Chris Dearman <chris@mips.com>
8397 Maciej W. Rozycki <macro@codesourcery.com>
8398 Joseph Myers <joseph@codesourcery.com>
1faeff08
MR
8399
8400 * features/mips-dsp.xml: New file.
8401 * features/mips64-dsp.xml: New file.
8402 * features/mips-dsp-linux.xml: New file.
8403 * features/mips64-dsp-linux.xml: New file.
8404 * features/Makefile (WHICH): Add mips-dsp-linux and
8405 mips64-dsp-linux.
8406 (mips-dsp-expedite, mips64-dsp-expedite): New variables.
8407 * features/mips-dsp-linux.c: New file.
8408 * features/mips64-dsp-linux.c: New file.
8409 * regformats/mips-dsp-linux.dat: New file.
8410 * regformats/mips64-dsp-linux.dat: New file.
8411 * mips-linux-nat.c (mips_linux_register_addr): Handle DSP
8412 registers.
8413 (mips64_linux_register_addr): Likewise.
8414 (mips64_linux_regsets_fetch_registers): Likewise.
8415 (mips64_linux_regsets_store_registers): Likewise.
8416 (mips64_linux_fetch_registers): Update call to
8417 mips64_linux_regsets_fetch_registers.
8418 (mips64_linux_store_registers): Update call to
8419 mips64_linux_regsets_store_registers.
8420 (mips_linux_read_description): Probe for DSP registers.
8421 (_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux
8422 and initialize_tdesc_mips64_dsp_linux.
8423 * mips-linux-tdep.c (supply_gregset, mips64_supply_gregset):
8424 Remove padding of no longer used embedded register slots.
8425 * mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros.
8426 (MIPS_RESTART_REGNUM): Redefine enum value.
8427 * mips-tdep.c (mips_generic_reg_names): Remove trailing null
8428 strings.
8429 (mips_tx39_reg_names): Likewise.
8430 (mips_linux_reg_names): New array of register names for Linux
8431 targets.
8432 (mips_register_name): Check for a null pointer in
8433 mips_processor_reg_names and return an empty string.
8434 (mips_register_type): Exclude embedded registers for the IRIX
8435 and Linux ABIs.
8436 (mips_pseudo_register_type): Likewise. Use dynamic numbers to
8437 refer to FP registers, LO, HI, BadVAddr, Cause and PC. Handle
8438 DSP registers.
8439 (mips_stab_reg_to_regnum): Handle DSP accumulators.
8440 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
8441 (mips_gdbarch_init): Likewise. Initialize internal register
8442 indices for the Linux ABI. Use dynamic numbers to refer to
8443 registers, as applicable, while parsing the target description.
8444 * mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets.
8445
263689d8
JB
84462012-03-01 Joel Brobecker <brobecker@adacore.com>
8447
8448 * frame.h (read_frame_register_unsigned): Fix typo in function
8449 description.
8450
f3b4f45c
PA
84512012-03-01 Pedro Alves <palves@redhat.com>
8452
8453 * jit-reader.in [!__cplusplus]
8454 (GDB_DECLARE_GPL_COMPATIBLE_READER): Add missing backslash.
8455
b03a2011
PA
84562012-03-01 Pedro Alves <palves@redhat.com>
8457
8458 * configure.ac (build_warnings): Add -Wmissing-prototypes.
8459 * configure: Regenerate.
8460
70221824
PA
84612012-03-01 Pedro Alves <palves@redhat.com>
8462
8463 * amd64-linux-tdep.c (amd64_linux_record_signal): Make static.
8464 * breakpoint.c (create_exception_master_breakpoint, trace_command)
8465 (ftrace_command, strace_command): Make static.
8466 * d-lang.c (_initialize_d_language): Declare.
8467 * dwarf2expr.c (_initialize_dwarf2expr): Declare.
8468 * dwarf2loc.c (_initialize_dwarf2loc):
8469 * dwarf2read.c (process_psymtab_comp_unit): Make static.
8470 * exec.c (exec_get_section_table): Make static.
8471 * i386-linux-tdep.c (i386_linux_record_signal): Make static.
8472 * infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static.
8473 * inferior.c (remove_inferior_command, add_inferior_command)
8474 (clone_inferior_command): Make static.
8475 * linux-nat.c (linux_nat_thread_address_space)
8476 (linux_nat_core_of_thread): Make static.
8477 * linux-tdep.c (_initialize_linux_tdep): Declare.
8478 * objc-lang.c (_initialize_objc_lang): Declare.
8479 * opencl-lang.c (builtin_opencl_type, opencl_language_arch_info):
8480 Make static.
8481 (_initialize_opencl_language): Declare.
8482 * record.c (_initialize_record): Declare.
8483 * remote.c (demand_private_info, remote_get_tib_address)
8484 (remote_supports_cond_tracepoints)
8485 (remote_supports_fast_tracepoints, remote_get_tracepoint_status):
8486 Make static.
8487 * skip.c (_initialize_step_skip): Declare.
8488 * symtab.c (skip_prologue_using_lineinfo): Make static.
8489 * tracepoint.c (delete_trace_state_variable)
8490 (trace_variable_command, delete_trace_variable_command)
8491 (get_uploaded_tsv, find_matching_tracepoint_location)
8492 (find_matching_tsv, create_tsv_from_upload, get_traceframe_info):
8493 Make static.
8494 * value.c (pack_unsigned_long): Make static.
8495 * varobj.c (varobj_ensure_python_env): Make static.
8496 * windows-tdep.c (_initialize_windows_tdep): Declare.
8497 * xml-syscall.c (make_cleanup_free_syscalls_info): Make static.
8498
33fbcbee
PA
84992012-03-01 Pedro Alves <palves@redhat.com>
8500
8501 * linux-tdep.c (linux_has_shared_address_space): Make static. Add
8502 gdbarch parameter.
8503 (linux_init_abi): Install it as has_shared_address_space gdbarch
8504 callback.
8505
44d0cd3b
PA
85062012-03-01 Pedro Alves <palves@redhat.com>
8507
8508 * observer.c (observer_test_first_notification_function)
8509 (observer_test_second_notification_function)
8510 (observer_test_third_notification_function): Add declarations.
8511
ed01b82c
PA
85122012-03-01 Pedro Alves <palves@redhat.com>
8513
8514 * common/signals.c (default_target_signal_to_host)
8515 (default_target_signal_from_host): Move ...
8516 * arch-utils.c: ... here.
8517 * arch-utils.h (default_target_signal_to_host)
8518 (default_target_signal_from_host): Declare.
8519
8520 * common/signals.c (target_signal_from_command): Move ...
8521 * infrun.c: ... here.
8522 * inferior.h (target_signal_from_command): Declare.
8523 * target.h (target_signal_from_command)
8524 (default_target_signal_from_host, default_target_signal_to_host):
8525 Delete declarations.
8526
8527 * common/signals.c (_initialize_signals): Delete.
8528
c9b87335
PA
85292012-03-01 Pedro Alves <palves@redhat.com>
8530
8531 * jit-reader.in (plugin_is_GPL_compatible): Add declarations for
8532 both __cplusplus and !__cplusplus.
8533
9340a6c0
PA
85342012-03-01 Pedro Alves <palves@redhat.com>
8535
8536 * psymtab.c (find_and_open_source): Delete declaration.
8537 * source.c (find_and_open_source): Move comment ...
8538 * source.h (find_and_open_source): ... to this new declaration.
8539
e451c4a1
PA
85402012-03-01 Pedro Alves <palves@redhat.com>
8541
8542 * inline-frame.c: Include inline-frame.h.
8543
983fb104
PA
85442012-03-01 Pedro Alves <palves@redhat.com>
8545
8546 * tui/tui-data.c (set_gen_win_origin): Delete.
8547 * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration.
8548 * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete.
8549
5fbce5df
PA
85502012-03-01 Pedro Alves <palves@redhat.com>
8551
8552 * remote.c (encode_actions): Delete declaration.
8553 * tracepoint.c (encode_actions): Make extern.
8554 * tracepoint.h (encode_actions): Declare.
8555
49a8461d
PA
85562012-03-01 Pedro Alves <palves@redhat.com>
8557
8558 * python/py-breakpoint.c: Include python.h.
8559 * python/py-continueevent.c (create_continue_event_object): Make
8560 static.
8561 * python/py-lazy-string.c (stpy_get_type): Make static.
8562 * python/py-newobjfileevent.c (create_new_objfile_event_object):
8563 Make static.
8564 * python/py-utils.c (unicode_to_target_python_string): Make
8565 static.
8566 * python/py-value.c: Include python.h.
8567
9079102f
PA
85682012-03-01 Pedro Alves <palves@redhat.com>
8569
8570 * inferior.c (delete_threads_of_inferior): Delete.
8571
a298c5e8
PA
85722012-03-01 Pedro Alves <palves@redhat.com>
8573
8574 Import fallback definitions from glibc.
8575
8576 * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
8577 ps_prochandle): Forward declare.
8578 (ps_err_e): Use glibc's comments.
8579 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
8580 (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
8581 (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup)
8582 (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize)
8583 (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare.
8584 (struct ps_prochandle): Adjust comment.
8585
e3084549
PA
85862012-03-01 Pedro Alves <palves@redhat.com>
8587
8588 * ada-lang.c (ada_modulus_from_name): Delete.
8589 * ada-lex.l (lexer_init): Make static.
8590
ad5f7d6e
PA
85912012-03-01 Pedro Alves <palves@redhat.com>
8592
8593 PR gdb/13767
8594
8595 * frame.c (read_frame_register_unsigned): New.
8596 * frame.h (read_frame_register_unsigned): Declare.
8597 * i387-tdep.c (print_i387_status_word): New parameter `status_p'.
8598 Handle it.
8599 (print_i387_control_word): New parameter `control_p'. Handle it.
8600 (i387_print_float_info): Handle unavailable float registers.
8601
e0a4d108
KS
86022012-03-01 Keith Seitz <keiths@redhat.com>
8603
8604 * linespec.c (decode_line_2): Sort the list of methods
8605 alphabetically before presenting the user with a selection
8606 menu.
8607
122d1940
DE
86082012-03-01 Doug Evans <dje@google.com>
8609
8610 * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
8611 has_namespace_info.
8612 (dwarf2_read_abbrevs): Remove corresponding initialization.
8613
7d74f244
DE
86142012-03-01 Scott J. Goldman <scottjg@vmware.com>
8615
8616 * NEWS: Mention new python command class gdb.COMMAND_USER.
8617 * cli/cli-cmds.c (show_user): Print error when used on a python
8618 command.
8619 (init_cli_cmds): Update documentation strings for "show user" and
8620 "set/show max-user-call-depth" to clarify that it does not apply to
8621 python commands.
8622 * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in
8623 error check.
8624 (gdbpy_initialize_commands): Add COMMAND_USER as a constant in
8625 gdb python api.
8626 * top.c (execute_command): Only execute a user-defined command as a
8627 legacy macro if c->user_commands is set.
8628
e88acd96
TT
86292012-03-01 Tom Tromey <tromey@redhat.com>
8630
8631 * valprint.h (struct generic_val_print_decorations): New.
8632 (generic_val_print): Declare.
8633 * valprint.c (generic_val_print): New function.
8634 * p-valprint.c (p_decorations): New global.
8635 (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM,
8636 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT,
8637 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF,
8638 TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print.
8639 * m2-valprint.c (m2_decorations): New global.
8640 (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC,
8641 TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR,
8642 TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF,
8643 TYPE_CODE_ERROR>: Call generic_val_print.
8644 * f-valprint.c (f_decorations): New global.
8645 (f_val_print): Use print_function_pointer_address.
8646 <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS,
8647 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE,
8648 TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call
8649 generic_val_print.
8650 * c-valprint.c (c_decorations): New global.
8651 (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM,
8652 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL,
8653 TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT,
8654 TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR,
8655 TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print.
8656 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove
8657 case.
8658
d3eab38a
TT
86592012-03-01 Tom Tromey <tromey@redhat.com>
8660
8661 * valprint.c (val_print): Update.
8662 * p-valprint (pascal_val_print): Return void.
8663 * p-lang.h (pascal_val_print): Return void.
8664 * m2-valprint.c (m2_val_print): Return void.
8665 * m2-lang.h (m2_val_print): Return void.
8666 * language.h (struct language_defn) <la_val_print>: Return void.
8667 * language.c (unk_lang_val_print): Return void.
8668 * jv-valprint.c (java_val_print): Return void.
8669 * jv-lang.h (java_val_print): Return void.
8670 * f-valprint.c (f_val_print): Return void.
8671 * f-lang.h (f_val_print): Return void.
8672 * d-valprint.c (d_val_print): Return void.
8673 (dynamic_array_type): Update.
8674 * d-lang.h (d_val_print): Return void.
8675 * c-valprint.c (c_val_print): Return void.
8676 * c-lang.h (c_val_print): Return void.
8677 * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
8678 void.
8679 * ada-lang.h (ada_val_print): Return void.
8680
35c0084b
TT
86812012-03-01 Tom Tromey <tromey@redhat.com>
8682
8683 * value.h (val_print): Return void.
8684 * valprint.c (val_print): Return void.
8685
a1f5dd1b
TT
86862012-03-01 Tom Tromey <tromey@redhat.com>
8687
8688 * value.h (common_val_print): Return void.
8689 * valprint.c (common_val_print): Return void.
8690
8e069a98
TT
86912012-03-01 Tom Tromey <tromey@redhat.com>
8692
8693 * value.h (value_print): Return void.
8694 * valprint.c (value_print): Return void.
8695 * p-valprint.c (pascal_value_print): Return void.
8696 * p-lang.h (pascal_value_print): Return void.
8697 * language.h (struct language_defn) <la_value_print>: Return
8698 void.
8699 * language.c (unk_lang_value_print): Return void.
8700 * jv-valprint.c (java_value_print): Return void.
8701 * jv-lang.h (java_value_print): Return void.
8702 * f-valprint.c (c_value_print): Don't declare.
8703 Include c-lang.h.
8704 * c-valprint.c (c_value_print): Return void.
8705 * c-lang.h (c_value_print): Return void.
8706 * ada-valprint.c (ada_value_print): Return void.
8707 * ada-lang.h (ada_value_print): Return void.
8708
be335936
TT
87092012-03-01 Tom Tromey <tromey@redhat.com>
8710
8711 * value.c (value_primitive_field): Handle virtual base classes.
8712
b0db66a7
TT
87132012-03-01 Tom Tromey <tromey@redhat.com>
8714
8715 * gdbtypes.h (struct vbase): Remove.
8716
132c57b4
TT
87172012-03-01 Tom Tromey <tromey@redhat.com>
8718
8719 * c-valprint.c (print_function_pointer_address): Move...
8720 * valprint.c: ... here. Make non-static.
8721 * m2-valprint.c (print_function_pointer_address): Remove.
8722 * valprint.h (print_function_pointer_address): Declare.
8723
e41eec66
JB
87242012-03-01 Joel Brobecker <brobecker@adacore.com>
8725
8726 * NEWS: Document the fact that one can provide a condition when
8727 creating an Ada exception catchpoint.
8728
19c37f24
TT
87292012-03-01 Tom Tromey <tromey@redhat.com>
8730
8731 * valprint.c (val_print_type_code_flags): Fix placement of
8732 trailing brace.
8733
f0fed3a3
JB
87342012-03-01 Joel Brobecker <brobecker@adacore.com>
8735
8736 * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
8737 (update_files): Do not set MULTILINE_COMMENT_PREFIXES
8738 environment variable before calling update-copyright.
8739
8ba85d85
JB
87402012-03-01 Joel Brobecker <brobecker@adacore.com>
8741
8742 * gnulib/extra/update-copyright: Update to the latest from
8743 gnulib's git repository.
8744 * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
8745 variable to 2 instead of 1.
8746
8219b1e8
JB
87472012-02-29 Joel Brobecker <brobecker@adacore.com>
8748
8749 * varobj.c (c_value_of_variable): Remove dead code.
8750
718cb7da
JB
87512012-02-29 Joel Brobecker <brobecker@adacore.com>
8752
8753 * ada-lex.p (processId): Do not modify already encoded IDs.
8754 Update function documentation.
8755
739593e0
JB
87562012-02-29 Joel Brobecker <brobecker@adacore.com>
8757
8758 * ada-lang.h (ada_find_renaming_symbol): Replace parameter
8759 "name" with "struct symbol *name_sym".
8760 * ada-exp.y (write_var_or_type): Update call to
8761 ada_find_renaming_symbol.
8762 "name" with "struct symbol *name_sym". Adjust Implementation
8763 accordingly. Adjust the function documentation.
8764
852dff6c
JB
87652012-02-29 Joel Brobecker <brobecker@adacore.com>
8766
8767 * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
8768 * ada-lang.c (ada_find_any_type): Add advance declaration.
8769 Make static. Replace ada_find_any_symbol by
8770 ada_find_any_type_symbol.
8771 (ada_find_any_type_symbol): Renames ada_find_any_symbol.
8772 Improve function description. Make static.
8773 (ada_find_renaming_symbol, find_old_style_renaming_symbol):
8774 Replace ada_find_any_symbol by ada_find_any_type_symbol.
8775
1b611343
JB
87762012-02-29 Joel Brobecker <brobecker@adacore.com>
8777
8778 * ada-lang.c (struct tag_args): Delete.
8779 (ada_get_tsd_type): Function body moved up in source file.
8780 (ada_tag_name_1, ada_tag_name_2): Delete.
8781 (ada_get_tsd_from_tag): New function.
8782 (ada_tag_name_from_tsd): New function.
8783 (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
8784 to determine the tag name.
8785
41246937
JB
87862012-02-29 Joel Brobecker <brobecker@adacore.com>
8787
8788 * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
8789 declaration.
8790 * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
8791 function.
8792
ffde82bf
JB
87932012-02-29 Joel Brobecker <brobecker@adacore.com>
8794
8795 * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
8796
2ad01556
JB
87972012-02-29 Joel Brobecker <brobecker@adacore.com>
8798
8799 * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
8800 full searches.
8801
99b1c762
JB
88022012-02-29 Joel Brobecker <brobecker@adacore.com>
8803
8804 * ada-lang.c (constrained_packed_array_type): If there is a
8805 parallel XA type, use it to determine the array index type.
8806
2d4a02ee
JB
88072012-02-29 Joel Brobecker <brobecker@adacore.com>
8808
8809 * ada-valprint.c (ada_val_print_1): If our value is a reference
8810 to an array descriptor, dereference it before converting it
8811 to a simple array.
8812
c48db5ca
JB
88132012-02-29 Joel Brobecker <brobecker@adacore.com>
8814
8815 * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
8816 creating fixed value.
8817 (ada_value_ind, ada_coerce_ref, assign_component)
8818 (ada_evaluate_subexp): Remove call to unwrap_value before
8819 call to ada_to_fixed_value.
8820
2e6fda7d
JB
88212012-02-29 Joel Brobecker <brobecker@adacore.com>
8822
8823 * ada-lang.c (to_fixed_array_type): Set result's type name.
8824
5845583d
JB
88252012-02-29 Joel Brobecker <brobecker@adacore.com>
8826
8827 * ada-lang.c (catch_ada_exception_command_split): Add new
8828 argument cond_string. Add support for condition at end of
8829 "catch exception" commands.
8830 (ada_decode_exception_location): Add new argument cond_string.
8831 Update call to catch_ada_exception_command_split.
8832 (create_ada_exception_catchpoint): Add new argument cond_string.
8833 Set the breakpoint condition if needed.
8834 (catch_ada_exception_command): Update call to
8835 ada_decode_exception_location.
8836 (ada_decode_assert_location): Add function documentation.
8837 Add support for condition at end of "catch assert" command.
8838 (catch_assert_command): Update calls to ada_decode_assert_location
8839 and create_ada_exception_catchpoint.
8840
9a7f938f
JK
88412012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
8842
8843 Fix disp-step-syscall.exp: fork: single step over fork.
8844 * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
8845 (i386_linux_get_syscall_number_from_regcache): ... here, new function
8846 comment, change parameters gdbarch and ptid to regcache. Remove
8847 parameter regcache, initialize gdbarch from regcache here.
8848 (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
8849 New functions.
8850 (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
8851 instead.
8852 * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
8853 'syscall'. Make the 'int' check more strict.
8854
ffdf6de5
JK
88552012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
8856
8857 Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
8858 * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
8859 (i386_linux_intx80_sysenter_syscall_record): ... here.
8860 (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
8861 Use the renamed function name.
8862
c70a6932
JK
88632012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
8864
8865 * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
8866 * breakpoint.c (until_break_command): Likewise.
8867 * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
8868 * infcall.c (call_function_by_hand): Likewise.
8869 * infcmd.c (finish_forward): Likewise.
8870 * infrun.c (insert_exception_resume_breakpoint): Likewise.
8871
05b8a789 88722012-02-28 Tristan Gingold <gingold@adacore.com>
d4cd3da9 8873
d4cd3da9
JB
8874 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
8875 avoid variable assignments inside condition.
8876
6425366c
JK
88772012-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
8878
8879 Fix static analysis issue found by cppcheck.
8880 * microblaze-tdep.c (microblaze_extract_return_value): Fix
8881 uninitialized BUF for size 2.
8882
c8cef75f 88832012-02-27 Chris Dearman <chris@mips.com>
a09130f9
PA
8884 Nathan Froyd <froydnj@codesourcery.com>
8885 Maciej W. Rozycki <macro@codesourcery.com>
c8cef75f
MR
8886
8887 * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
8888 (mips16_instruction_has_delay_slot): Likewise.
8889 (mips_segment_boundary): Likewise.
8890 (mips_adjust_breakpoint_address): Likewise.
8891 (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
8892
473347ad 88932012-02-27 Maciej W. Rozycki <macro@mips.com>
a09130f9 8894 Maciej W. Rozycki <macro@codesourcery.com>
473347ad
MR
8895
8896 * infrun.c (handle_inferior_event): Don't proceed through
8897 shared library trampolines if stepping at the machine
8898 instruction level.
8899
cf233303
MR
89002012-02-27 Maciej W. Rozycki <macro@codesourcery.com>
8901
8902 * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
8903 too.
8904
cb2cf4ce
TS
89052012-02-27 Thomas Schwinge <thomas@codesourcery.com>
8906
8907 * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
8908 (sh_stub_unwind_sniffer): New functions.
8909 (sh_stub_unwind): New variable.
8910 (sh_gdbarch_init): Wire everything.
8911
644cebc9
PA
89122012-02-27 Pedro Alves <palves@redhat.com>
8913
8914 * linux-nat.c (pid_is_stopped): Delete, moved to common/.
8915 (linux_nat_post_attach_wait): Adjust to use
8916 linux_proc_pid_is_stopped.
8917 * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
8918 * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
8919 based on pid_is_stopped from both linux-nat.c and
8920 gdbserver/linux-low.c, and renamed.
8921
283002cf
MR
89222012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
8923
8924 * remote.c (remote_watchpoint_addr_within_range): New function.
8925 (init_remote_ops): Use it.
8926
9b3e86b1
MR
89272012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
8928
8929 * target.h (target_watchpoint_addr_within_range): Document macro.
8930
e36930bb
PA
89312012-02-24 Pedro Alves <palves@redhat.com>
8932
8933 * stack.c (set_last_displayed_sal): Issue internal_error instead
8934 of warning, and issue it after clearing the last displayed sal.
8935
883bc8d1
PA
89362012-02-24 Jan Kratochvil <jan.kratochvil@redhat.com>
8937 Pedro Alves <palves@redhat.com>
8938
8939 * breakpoint.c (until_break_command): Install breakpoints after
8940 all frame manipulations.
8941
b775012e
LM
89422012-02-24 Luis Machado <lgustavo@codesourcery.com>
8943
8944 * remote.c (remote_supports_cond_breakpoints): New forward
8945 declaration.
8946 (remote_add_target_side_condition): New function.
8947 (remote_insert_breakpoint): Add target-side breakpoint
8948 conditional if supported.
8949 (remote_insert_hw_breakpoint): Likewise.
8950 (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
8951 hook.
8952
8953 * target.c (update_current_target): Inherit
8954 to_supports_evaluation_of_breakpoint_conditions.
8955 Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
8956
8957 * target.h (struct target_ops)
8958 <to_supports_evaluation_of_breakpoint_conditions>: New field.
8959 (target_supports_evaluation_of_breakpoint_conditions): New #define.
8960
8961 * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
8962 (condition_evaluation_both, condition_evaluation_auto,
8963 condition_evaluation_host, condition_evaluation_target,
8964 condition_evaluation_enums, condition_evaluation_mode_1,
8965 condition_evaluation_mode): New static globals.
8966 (translate_condition_evaluation_mode): New function.
8967 (breakpoint_condition_evaluation_mode): New function.
8968 (gdb_evaluates_breakpoint_condition_p): New function.
8969 (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
8970 (mark_breakpoint_modified): New function.
8971 (mark_breakpoint_location_modified): New function.
8972 (set_condition_evaluation_mode): New function.
8973 (show_condition_evaluation_mode): New function.
8974 (bp_location_compare_addrs): New function.
8975 (get_first_location_gte_addr): New helper function.
8976 (set_breakpoint_condition): Free condition bytecode if locations
8977 has become unconditional. Call mark_breakpoint_modified (...).
8978 (condition_command): Call update_global_location_list (1) for
8979 breakpoints.
8980 (breakpoint_xfer_memory): Use is_breakpoint (...).
8981 (is_breakpoint): New function.
8982 (parse_cond_to_aexpr): New function.
8983 (build_target_condition_list): New function.
8984 (insert_bp_location): Handle target-side conditional
8985 breakpoints and call build_target_condition_list (...).
8986 (update_inserted_breakpoint_locations): New function.
8987 (insert_breakpoint_locations): Handle target-side conditional
8988 breakpoints.
8989 (bpstat_check_breakpoint_conditions): Add comment.
8990 (bp_condition_evaluator): New function.
8991 (bp_location_condition_evaluator): New function.
8992 (print_breakpoint_location): Print information on where the condition
8993 will be evaluated.
8994 (print_one_breakpoint_location): Likewise.
8995 (init_bp_location): Call mark_breakpoint_location_modified (...) for
8996 breakpoint location.
8997 (force_breakpoint_reinsertion): New functions.
8998 (update_global_location_list): Handle target-side breakpoint
8999 conditions.
9000 Reinsert locations that are already inserted if conditions have
9001 changed.
9002 (bp_location_dtor): Free agent expression bytecode.
9003 (disable_breakpoint): Call mark_breakpoint_modified (...).
9004 Call update_global_location_list (...) with parameter 1 for breakpoints.
9005 (disable_command): Call mark_breakpoint_location_modified (...).
9006 Call update_global_location_list (...) with parameter 1 for breakpoints.
9007 (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
9008 (enable_command): mark_breakpoint_location_modified (...).
9009 (_initialize_breakpoint): Update documentation and add
9010 condition-evaluation breakpoint subcommand.
9011
9012 * breakpoint.h: Include ax.h.
9013 (condition_list): New data structure.
9014 (condition_status): New enum.
9015 (bp_target_info) <cond_list>: New field.
9016 (bp_location) <condition_changed, cond_bytecode>: New fields.
9017 (is_breakpoint): New prototype.
9018
3788aec7
LM
90192012-02-24 Luis Machado <lgustavo@codesourcery.com>
9020
9021 * remote.c (remote_state) <cond_breakpoints>: New field.
9022 (PACKET_ConditionalBreakpoints): New enum.
9023 (remote_cond_breakpoint_feature): New function.
9024 (remote_protocol_features): Add new ConditionalBreakpoints entry.
9025 (remote_supports_cond_breakpoints): New function.
9026 (_initialize_remote): Add new packet configuration for
9027 target-side conditional breakpoints.
9028
72895ff6
LM
90292012-02-24 Luis Machado <lgustavo@codesourcery.com>
9030
9031 * NEWS: Mention target-side conditional breakpoint support,
9032 new condition-evaluation breakpoint subcommand and remote
9033 packet extensions.
9034
dea2aa5f
LM
90352012-02-24 Luis Machado <lgustavo@codesourcery.com>
9036
9037 * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
9038 number.
9039
8a8bc27f
TS
90402012-02-24 Thomas Schwinge <thomas@codesourcery.com>
9041
9042 * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
9043 (after_prologue): Remove.
9044
6b446fdf
TT
90452012-02-23 Tom Tromey <tromey@redhat.com>
9046
9047 * jv-valprint.c (java_val_print): Remove dead code.
9048
ef59abfb
TG
90492012-02-23 Tristan Gingold <gingold@adacore.com>
9050
a09130f9
PA
9051 * ada-tasks.c (struct ada_tasks_inferior_data): Add
9052 known_tasks_element and known_tasks_length fields.
9053 (read_known_tasks_array): Change argument type. Use pointer type
9054 and number of elements from DATA. Adjust.
9055 (read_known_tasks_list): Likewise.
9056 (get_known_tasks_addr): Remove.
9057 (ada_set_current_inferior_known_tasks_addr): Renamed to ...
9058 (ada_tasks_inferior_data_sniffer): ... this. Use symtab for element
9059 type and array length. Merge former get_known_tasks_addr code.
ef59abfb 9060
def166f6
JK
90612012-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
9062
9063 PR backtrace/13716
9064 * infcmd.c (finish_forward): New variable frame_id, initialize it, use
9065 it after set_momentary_breakpoint.
9066
aeaa2474
SA
90672012-02-22 Sterling Augustine <saugustine@google.com>
9068
9069 PR 13689:
9070 * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
9071
feea76c2
GB
90722012-02-22 Gary Benson <gbenson@redhat.com>
9073
9074 * dwarf2read.c (dwarf2_read_index): Correct misspelling.
9075 (find_slot_in_mapped_hash): Likewise.
9076
f06e05e0
JK
90772012-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9078
9079 PR build/13638
9080 * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
9081 (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
9082 * configure: Regenerate.
9083
b54a8fd7
PA
90842012-02-21 Tristan Gingold <gingold@adacore.com>
9085 Pedro Alves <palves@redhat.com>
9086
9087 * ia64-tdep.c: Do not include libunwind-ia64.h.
9088 * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
9089 Include libunwind-ia64.h instead of libunwind.h.
9090 * configure.ac (--with-libunwind, $enable_libunwind): Don't check
9091 for libunwind.h existence.
9092 * configure, config.in: Regenerate.
9093
dfcee124
AG
90942012-02-21 Anton Gorenkov <xgsa@yandex.ru>
9095
9096 * c-valprint.c (c_value_print): Use value_rtti_indirect_type
9097 instead of value_rtti_target_type.
9098 * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
9099 instead of value_rtti_target_type.
9100 * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
9101 value_rtti_target_type.
9102 * valops.c (value_ind): Extract function readjust_indirect_value_type.
9103 (value_rtti_target_type): Rename to ...
9104 (value_rtti_indirect_type): ... here and make it indirect. Update
9105 function comment.
9106 * value.c (readjust_indirect_value_type): New function.
9107 (coerce_ref): Support for enclosing type setting for references
9108 with readjust_indirect_value_type.
9109 * value.h (readjust_value_type): New declaration.
9110 (value_rtti_target_type): Rename to ...
9111 (value_rtti_indirect_type): ... here.
9112
02568277
AG
91132012-02-21 Anton Gorenkov <xgsa@yandex.ru>
9114
9115 * MAINTAINERS (Write After Approval): Add myself to the list.
9116
10c07b7e 91172012-02-20 Doug Evans <dje@google.com>
28ee876a 9118
d82ea6a8
DE
9119 * objfiles.c (add_to_objfile_sections): Remove outdated comments.
9120 Rename objfile_p_char parameter to objfilep.
9121 (build_objfile_section_table): Result is now void. All callers
9122 updated.
9123 * objfiles.h (struct objfile): Tweak comments, whitespace.
9124 (build_objfile_section_table): Update.
9125
28ee876a
DE
9126 * elfread.c (elf_symfile_segments): Fix warning text.
9127
24c79950
TT
91282012-02-20 Tom Tromey <tromey@redhat.com>
9129
9130 PR gdb/13498:
9131 * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
9132 particular set of file names once.
9133 (dw2_map_symbol_filenames): Likewise.
9134
3a9b40b6
JK
91352012-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9136
9137 Code cleanup.
9138 * main.c (write_files): Remove the declaration.
9139 (external_editor_command): Move the declaration ...
9140 [GDBTK] (external_editor_command): ... here. Fix the comment.
9141
4d0795ca
TT
91422012-02-20 Tom Tromey <tromey@redhat.com>
9143
9144 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
9145 extraneous block.
9146
637fd620
TG
91472012-02-20 Tristan Gingold <gingold@adacore.com>
9148
9149 * darwin-nat.h (enum darwin_msg_state): Add comments.
9150
6f124894
TG
91512012-02-20 Tristan Gingold <gingold@adacore.com>
9152
9153 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
9154 value.
9155
2e6e3d9c
JB
91562012-20-18 Joel Brobecker <brobecker@adacore.com>
9157
9158 * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
9159 between function description and implementation.
9160
2e8265fd
TT
91612012-02-17 Tom Tromey <tromey@redhat.com>
9162
9163 PR python/12070:
9164 * python/py-event.c (event_object_getset): New global.
9165 (event_object_type): Reference it.
9166 * python/py-type.c (field_object_getset): New global.
9167 (field_object_type): Reference it.
9168 * python/python-internal.h (gdb_py_generic_dict): Declare.
9169 * python/py-utils.c (gdb_py_generic_dict): New function.
9170
8544a150 91712012-02-17 Tristan Gingold <gingold@adacore.com>
6f124894 9172
8544a150 9173 * solib-darwin.c (darwin_current_sos): Check magic and filetype
6f124894 9174
ca193e27
TS
91752012-02-17 Thomas Schwinge <thomas@codesourcery.com>
9176
9177 * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
9178 TYPE_CALLING_CONVENTION annotation.
9179
e5586183
KB
91802012-02-16 Kevin Buettner <kevinb@redhat.com>
9181
9182 * MAINTAINERS: Add rx to target ISA section.
9183 * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
9184 (ALLDEPFILES): Add rx-tdep.c.
9185
7dcd53a0
TT
91862012-02-16 Tom Tromey <tromey@redhat.com>
9187
9188 * symfile.c (symbol_file_add_main_1): Use inferior's
9189 symfile_flags.
9190 * solib.c (solib_read_symbols): Use inferior's symfile_flags.
9191 * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
9192 inferior.
9193 * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
9194 inferior.
9195 (follow_exec): Use inferior's symfile_flags.
9196 * inferior.h (struct inferior) <symfile_flags>: New field.
9197
ddd60447
MF
91982012-02-16 Mike Frysinger <vapier@gentoo.org>
9199
9200 PR gdb/9734:
9201 * remote-sim.c (gdbsim_create_inferior): Call error() when
9202 sim_create_inferior() fails.
9203
b0d32fb6
TG
92042012-02-16 Josh Matthews <josh@joshmatthews.net>
9205
9206 * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
9207
9addecb9
TT
92082012-02-16 Tom Tromey <tromey@redhat.com>
9209
9210 PR c++/13653:
9211 * thread.c (struct current_thread_cleanup) <was_removable>: New
9212 field.
9213 (restore_current_thread_cleanup_dtor): Restore 'removable' field.
9214 (make_cleanup_restore_current_thread): Initialize new field.
9215
a58b110a
KB
92162012-02-15 Kevin Buettner <kevinb@redhat.com>
9217
9218 * MAINTAINERS: Add rl78 to target ISA section.
9219 * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
9220 (ALLDEPFILES): Add rl78-tdep.c.
9221 * NEWS: Mention rl78 as a new target.
9222
4cb6da1c
AR
92232012-02-15 Aleksandar Ristovski <aristovski@qnx.com>
9224
9225 * frame.c (find_frame_sal): Initialize sal->pspace field from frame
9226 data.
9227 * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
9228
3af2590d
TT
92292012-02-15 Tom Tromey <tromey@redhat.com>
9230
9231 PR gdb/12659:
9232 * infcmd.c (registers_info): Print just the current register's
9233 name.
9234
c6910659
TT
92352012-02-15 Tom Tromey <tromey@redhat.com>
9236
9237 * python/py-symbol.c (sympy_value): Use _().
9238
7cee1e54
PA
92392012-02-15 Pedro Alves <palves@redhat.com>
9240
9241 * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
9242 output to be like native targets'.
9243 (remote_pid_to_str): Special case the null ptid.
9244
816338b5
SS
92452012-02-14 Stan Shebs <stan@codesourcery.com>
9246
9247 * NEWS: Mention enable count command.
9248 * breakpoint.h (struct breakpoint): New field enable_count.
9249 * breakpoint.c (enable_breakpoint_disp): Add count argument.
9250 (enable_breakpoint): Add arg to call.
9251 (struct disp_data): New struct.
9252 (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
9253 (do_map_enable_once_breakpoint): Create a struct and pass it.
9254 (do_map_enable_delete_breakpoint): Ditto.
9255 (do_map_enable_count_breakpoint): New function.
9256 (enable_count_command): New function.
9257 (bpstat_stop_status): Decrement enable_count.
9258 (print_one_breakpoint_location): Report enable count.
9259 (_initialize_breakpoint): Add enable count command.
9260
c47a44f4
KB
92612012-02-14 Kevin Buettner <kevinb@redhat.com>
9262
9263 * rl78-tdep.c (reggroups.h): Include.
9264 (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
9265 (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
9266 (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
9267 (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
9268 (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
9269 (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
9270 (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
9271 (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
9272 (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
9273 (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
9274 (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
9275 (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
9276 (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
9277 (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
9278 (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
9279 (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
9280 beginning of register list.
9281 (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
9282 (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
9283 (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
9284 (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
9285 (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
9286 (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
9287 (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
9288 (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
9289 (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
9290 (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
9291 (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
9292 the pseudo registers. Rearrange other pseudo registers too so
9293 that the bank registers appear at the end.
9294 (rl78_register_type): Account for the fact that the byte sized
9295 bank registers are now pseudo-registers.
9296 (rl78_register_name): Rearrange the register name array. Make
9297 initial set of raw banked registers inaccessible.
9298 (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
9299 (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
9300 case for copying bytes back and forth between raw and pseudo
9301 versions of the banked registers. Update other cases to reflect
9302 the changed names.
9303 (rl78_return_value): Update to account for changed names of
9304 raw registers.
9305 (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
9306 rl78_register_sim_regno().
9307
e4569f1e
KB
93082012-02-14 Kevin Buettner <kevinb@redhat.com>
9309
9310 * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
9311 the name parameter being passed to find_pc_partial_function().
9312
7a05aae7
JK
93132012-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9314
9315 * MAINTAINERS: Step down from being ia64 target maintainer.
9316
11fde611
JK
93172012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
9318
9319 * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
9320 compilation warning.
9321
57008375
JK
93222012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
9323
9324 Fix crash on loaded shlibs without loaded exec_bfd.
9325 * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
9326 (set_section_command): Replace exec_bfd by p->bfd.
9327
ff3c9849
TT
93282012-02-10 Tom Tromey <tromey@redhat.com>
9329
9330 * linespec.c (decode_line_internal): Skip symtabs_from_filename
9331 when we have a C++ qualified name.
9332
db2b9fdd
PA
93332012-02-10 Pedro Alves <palves@redhat.com>
9334
9335 * inferior.c (inferior_pid_to_str): New.
9336 (print_inferior, inferior_command): Use it.
9337
12cd34f3
PA
93382012-02-10 Pedro Alves <palves@redhat.com>
9339
9340 * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
9341 the test CFLAGS.
9342 * configure: Regenerate.
9343
e871429d
JK
93442012-02-10 Jan Kratochvil <jan.kratochvil@redhat.com>
9345
9346 * linespec.c (decode_line_internal): Fix comment correctness.
9347
1916efaf
PA
93482012-02-09 Valery Khromov <valery.khromov@gmail.com>
9349
9350 PR gdb/12953
9351 * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
9352 * amd64bsd-nat.c: Add support for debug registers (adapted from
9353 i386bsd-nat.c).
9354 [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
9355 (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
9356 (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
9357 (amd64bsd_dr_get_control): New functions.
9358 * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
9359 * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
9360 [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
9361 watchpoints initialization.
9362 * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
9363
f4859d94
JK
93642012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9365
9366 * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
9367 flds_bnds.fields.
9368 (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
9369
c56a97f9
JK
93702012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9371
9372 * breakpoint.c (bp_location_compare): Fix comment. Reindent the code.
9373
1a119f36
JB
93742012-02-08 Joel Brobecker <brobecker@adacore.com>
9375
9376 * language.h (symbol_name_cmp_ftype): Renames
9377 symbol_name_match_p_ftype.
9378 (struct language_defn)[la_get_symbol_name_cmp]: Renames
9379 la_get_symbol_name_match_p.
9380 * ada-lang.c (ada_get_symbol_name_cmp): Renames
9381 ada_get_symbol_name_match_p. Update comment.
9382 (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
9383 * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
9384 Renames symbol_name_match_p. Update field type.
9385 (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
9386 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
9387 opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
9388 "la_get_symbol_name_cmp" in comments.
9389 * language.c: Likewise.
9390
c71bb1cf
RO
93912012-02-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9392
9393 * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
9394 %eflags offset.
9395 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
9396 (amd64_sol2_gregset32_reg_offs): Likewise.
9397
4b2d20a5
TG
93982012-02-08 Joel Brobecker <brobecker@adacore.com>
9399
9400 * solib-darwin.c (darwin_bfd_open): Make sure that the filename
9401 of the returned BFD is allocated by GDB.
9402
f0823d2c
TT
94032012-02-07 Tom Tromey <tromey@redhat.com>
9404
9405 PR python/12027:
9406 * python/python-internal.h (frame_object_type): Declare.
9407 * python/py-symbol.c (sympy_needs_frame): New function.
9408 (sympy_value): New function.
9409 (symbol_object_getset): Add "needs_frame".
9410 (symbol_object_methods): Add "value".
9411 * python/py-frame.c (frame_object_type): No longer static.
9412
64e7d9dd
TT
94132012-02-07 Tom Tromey <tromey@redhat.com>
9414
9415 PR python/13599:
9416 * python/py-symbol.c (sympy_line): New function.
9417 (symbol_object_getset): Add "line".
9418
1d6b2d2b
TT
94192012-02-07 Tom Tromey <tromey@redhat.com>
9420
9421 * charset.c (find_charset_names): Check 'in' against NULL.
9422
0d5cff50
DE
94232012-02-06 Doug Evans <dje@google.com>
9424
9425 * gdbtypes.h (struct main_type): Change type of name,tag_name,
9426 and fields.name members from char * to const char *. All uses updated.
9427 (struct cplus_struct_type): Change type of fn_fieldlists.name member
9428 from char * to const char *. All uses updated.
9429 (type_name_no_tag): Update.
9430 (lookup_unsigned_typename, lookup_signed_typename): Update.
9431 * gdbtypes.c (type_name_no_tag): Change result type
9432 from char * to const char *. All callers updated.
9433 (lookup_unsigned_typename, lookup_signed_typename): Change type of
9434 name parameter from char * to const char *.
9435 * symtab.h (struct cplus_specific): Change type of demangled_name
9436 member from char * to const char *. All uses updated.
9437 (struct general_symbol_info): Change type of name and
9438 mangled_lang.demangled_name members from char * to const char *.
9439 All uses updated.
9440 (symbol_get_demangled_name, symbol_natural_name): Update.
9441 (symbol_demangled_name, symbol_search_name): Update.
9442 * symtab.c (symbol_get_demangled_name): Change result type
9443 from char * to const char *. All callers updated.
9444 (symbol_natural_name, symbol_demangled_name): Ditto.
9445 (symbol_search_name): Ditto.
9446 (completion_list_add_name): Change type of symname,sym_text,
9447 text,word parameters from char * to const char *.
9448 (completion_list_objc_symbol): Change type of sym_text,
9449 text,word parameters from char * to const char *.
9450 * ada-lang.c (find_struct_field): Change type of name parameter
9451 from char * to const char *.
9452 (encoded_ordered_before): Similarly for N0,N1 parameters.
9453 (old_renaming_is_invisible): Similarly for function_name parameter.
9454 (ada_type_name): Change result type from char * to const char *.
9455 All callers updated.
9456 * ada-lang.h (ada_type_name): Update.
9457 * buildsym.c (hashname): Change type of name parameter
9458 from char * to const char *.
9459 * buildsym.h (hashname): Update.
9460 * dbxread.c (end_psymtab): Change type of include_list parameter
9461 from char ** to const char **.
9462 * dwarf2read.c (determine_prefix): Change result type
9463 from char * to const char *. All callers updated.
9464 * f-lang.c (find_common_for_function): Change type of name, funcname
9465 parameters from char * to const char *.
9466 * f-lang.c (find_common_for_function): Update.
9467 * f-valprint.c (list_all_visible_commons): Change type of funcname
9468 parameters from char * to const char *.
9469 * gdbarch.sh (static_transform_name): Change type of name parameter
9470 and result from char * to const char *.
9471 * gdbarch.c: Regenerate.
9472 * gdbarch.h: Regenerate.
9473 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
9474 of name parameter from char * to const char *.
9475 * jv-lang.c (java_primitive_type_from_name): Ditto.
9476 (java_demangled_signature_length): Similarly for signature parameter.
9477 (java_demangled_signature_copy): Ditto.
9478 (java_demangle_type_signature): Ditto.
9479 * jv-lang.h (java_primitive_type_from_name): Update.
9480 (java_demangle_type_signature): Update.
9481 * objc-lang.c (specialcmp): Change type of a,b parameters
9482 from char * to const char *.
9483 * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
9484 from char * to const char *. All callers updated.
9485 * p-lang.h (is_pascal_string_type): Update.
9486 * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
9487 of name parameter from char * to const char *.
9488 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
9489 * utils.c (fprintf_symbol_filtered): Ditto.
9490 * defs.h (fprintf_symbol_filtered): Update.
9491 * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
9492 * stabsread.h (end_psymtab): Update.
9493 * stack.c (find_frame_funname): Change type of funname parameter
9494 from char ** to const char **.
9495 * stack.h (find_frame_funname): Update.
9496 * typeprint.c (type_print): Change type of varstring parameter
9497 from char * to const char *.
9498 * value.h (type_print): Update.
9499 * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
9500 from char * to const char *. All callers updated.
9501 (xcoff_end_psymtab): Change type of include_list parameter
9502 from char ** to const char **. All callers updated.
9503 (swap_sym): Similarly for name parameter. All callers updated.
9504 * coffread.c (patch_type): Add (char*) cast to xfree parameter.
9505 Use xstrdup.
9506 (process_coff_symbol): Use xstrdup.
9507 * stabsread.c (stabs_method_name_from_physname): Renamed from
9508 update_method_name_from_physname. Change result type from void
9509 to char *. All callers updated.
9510 (read_member_functions): In has_destructor case, store name in objfile
9511 obstack instead of malloc space. In !has_stub case, fix mem leak.
9512
5579a92e
TT
95132012-02-06 Luca Pizzamiglio <luca.pizzamiglio@gmail.com>
9514
9515 * configure: Rebuild.
9516 * configure.ac: Put -L../bfd and -L../libiberty at the front of
9517 LDFLAGS.
9518
9058f767
KB
95192012-02-03 Kevin Buettner <kevinb@redhat.com>
9520
9521 * configure.tgt (rl78-*-elf): New target.
9522 * rl78-tdep.c: New file.
9523
5b37825d
PW
95242012-02-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9525
9526 * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
9527 and continue the loop. Add QUIT statement.
9528
e009ee71
TT
95292012-02-03 Tom Tromey <tromey@redhat.com>
9530
9531 PR gdb/13596:
9532 * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
9533 bfd_lookup_symbol_from_symtab.
9534 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
9535 gdb_bfd_lookup_symbol_from_symtab.
9536
f7e44f65
JB
95372012-02-03 Joel Brobecker <brobecker@adacore.com>
9538
9539 * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
9540 use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
9541 symbol. Add assertion that sym2 is never NULL.
9542
2c02bd72
DE
95432012-02-02 Doug Evans <dje@google.com>
9544
9545 * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
9546 "name" parameter to const char ** from char **. All callers updated.
9547 (find_pc_partial_function): Ditto.
9548 (cache_pc_function_name): Change type to const char * from char *.
9549 * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
9550 (find_pc_partial_function): Update.
9551 * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
9552 type of "name" parameter to const char * from char *.
9553 All uses updated.
9554 * arch-utils.c (generic_in_solib_return_trampoline): Change
9555 type of "name" parameter to const char * from char *.
9556 * arch-utils.h (generic_in_solib_return_trampoline): Update.
9557 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
9558 type of "name" parameter to const char * from char *.
9559 * gdbarch.sh (in_solib_return_trampoline): Ditto.
9560 * gdbarch.c: Regenerate.
9561 * gdbarch.h: Regenerate.
9562 * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
9563 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
9564 * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
9565 type of "name" parameter to const char * from char *.
9566 * skip.c (skip_function_pc): Ditto.
9567 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
9568 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
9569 * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
9570 * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
9571 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
9572 * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
9573 * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
9574 * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
9575 * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
9576
e886a173
PA
95772012-02-02 Pedro Alves <palves@redhat.com>
9578
9579 * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
9580 the current inferior has no execution. Make sure the current
9581 remote process matches gdb's current inferior.
9582
c709a7c2
TT
95832012-02-02 Tom Tromey <tromey@redhat.com>
9584
9585 PR gdb/13405:
9586 * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
9587 read-only memory.
9588
f149aabd
TT
95892012-02-02 Tom Tromey <tromey@redhat.com>
9590
9591 PR gdb/9307:
9592 * symtab.c (lookup_language_this): Set block_found.
9593
03bef283
TT
95942012-02-01 Tom Tromey <tromey@redhat.com>
9595
9596 PR gdb/13431:
9597 * jit.c (struct jit_inferior_data): Rewrite.
9598 (struct jit_objfile_data): New.
9599 (get_jit_objfile_data): New function.
9600 (add_objfile_entry): Update.
9601 (jit_read_descriptor): Return int. Replace descriptor_addr
9602 argument with inf_data. Update. Don't call error.
9603 (jit_breakpoint_re_set_internal): Reorder logic. Update. Look up
9604 descriptor here.
9605 (jit_inferior_init): Don't look up descriptor. Don't call error.
9606 (jit_reset_inferior_data_and_breakpoints)
9607 (jit_inferior_created_observer): Remove.
9608 (jit_inferior_exit_hook): Update.
9609 (jit_executable_changed_observer): Remove.
9610 (jit_event_handler): Update.
9611 (free_objfile_data): Reset inferior data if needed.
9612 (_initialize_jit): Update.
9613
f0bbc364
TT
96142012-02-01 Tom Tromey <tromey@redhat.com>
9615
9616 * jit.c (bfd_open_from_target_memory): Move higher in file.
9617
47c1316c
TG
96182012-02-01 Tristan Gingold <gingold@adacore.com>
9619
9620 * libunwind-frame.c (libunwind_load): Display message if dlopen
9621 failed.
9622
8e704927
GB
96232012-02-01 Gary Benson <gbenson@redhat.com>
9624
09c7a31f 9625 * symtab.h (symbol_found_callback_ftype): New typedef.
8e704927
GB
9626 (iterate_over_symbols): Use the above.
9627 * symtab.c (iterate_over_symbols): Likewise.
9628 * language.h (language_defn->la_iterate_over_symbols): Likewise.
9629 * ada-lang.c (ada_iterate_over_symbols): Likewise.
9630 * linespec.c (iterate_over_all_matching_symtabs): Likewise.
9631 (iterate_name_matcher): Document return values.
9632 (collect_one_symbol): Likewise.
9633 (collect_function_symbols): Likewise.
9634 (collect_symbols): Likewise.
9635
d9680e73
TT
96362012-02-01 Tom Tromey <tromey@redhat.com>
9637
9638 * ada-lang.c (resolve_subexp): Update.
9639 (ada_lookup_symbol_list): Add 'full_search' argument.
9640 (ada_iterate_over_symbols): Pass 0 as full_search argument to
9641 ada_lookup_symbol_list.
9642 (ada_lookup_encoded_symbol): Update.
9643 (get_var_value): Update.
9644 * ada-exp.y (block_lookup): Update.
9645 (write_var_or_type): Update.
9646 (write_name_assoc): Update.
9647 * ada-lang.h (ada_lookup_symbol_list): Update.
9648
72e1143f
TT
96492012-01-31 Tom Tromey <tromey@redhat.com>
9650
9651 * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
9652 comment.
9653
ab2d2ad3
DE
96542012-01-31 Doug Evans <dje@google.com>
9655
9656 * symtab.h: Remove outdated comment.
e9111bf7 9657 (SYMBOL_MATCHES_NATURAL_NAME): Delete.
ab2d2ad3 9658
bc884eba
JB
96592012-02-01 Josh Matthews <josh@joshmatthews.net> (tiny change)
9660
9661 Fix build error in Darwin port.
9662 * i386-darwin-nat.c: Include i386-nat.h.
9663
8fc3fc34
TT
96642012-01-30 Tom Tromey <tromey@redhat.com>
9665
9666 PR breakpoints/13568:
9667 * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
9668 argument. Check for recursive includes.
9669 (dwarf_decode_macros): Create an include hash.
9670
5d853008
ME
96712012-01-30 Michael Eager <eager@eagercon.com>
9672
9673 * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
9674 * ppc-linux-tdep.c: Include glibc-tdep.h.
ab2d2ad3 9675 (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
5d853008
ME
9676 (powerpc_linux_in_plt_stub): New function.
9677 (powerpc_linux_in_dynsym_resolve_code): New function.
9678 (ppc_skip_trampoline_code): New function.
9679 (ppc_linux_init_abi): Use PPC specific functions rather than generic.
9680 Use glibc_skip_solib_resolver.
9681
40478521
JK
96822012-01-28 Jan Kratochvil <jan.kratochvil@redhat.com>
9683
9684 Code cleanup: Make 1440 bytes of data segment read-only.
9685 * arch-utils.c (endian_enum): Make it const char *const [].
9686 * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
9687 Likewise.
9688 * breakpoint.c (always_inserted_enums): Likewise.
9689 * cli/cli-cmds.c (script_ext_enums): Likewise.
9690 * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
9691 enumlist parameter const char *const *.
9692 * cli/cli-decode.h (struct cmd_list_element): Make the enums field
9693 const char *const *.
9694 * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
9695 parameter const char *const *.
9696 * cris-tdep.c (cris_modes): Make it const char *const [].
9697 * filesystem.c (target_file_system_kinds): Likewise.
9698 * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
9699 * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
9700 (can_use_displaced_stepping_enum, scheduler_enums)
9701 (exec_direction_names): Likewise.
9702 * language.c (_initialize_language): Make the type_or_range_names and
9703 case_sensitive_names variables const char *const [].
9704 * mips-tdep.c (mips_abi_strings): Make it const char *const [].
9705 * python/python.c (python_excp_enums): Likewise.
9706 * remote.c (interrupt_sequence_modes): Likewise.
9707 * rs6000-tdep.c (powerpc_vector_strings): Likewise.
9708 * serial.c (logbase_enums): Likewise.
9709 * sh-tdep.c (sh_cc_enum): Likewise.
9710 * stack.c (print_frame_arguments_choices, print_entry_values_choices):
9711 Likewise.
9712 * symtab.c (multiple_symbols_modes): Likewise.
9713 * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
9714 Likewise.
9715 * utils.c (internal_problem_modes): Likewise.
9716
b3b8b934
JK
97172012-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
9718
9719 Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
9720 * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
9721 result.
9722
8c85a4e2
DE
97232012-01-27 Doug Evans <dje@google.com>
9724
9725 * configure.ac (with_python): Fix absolute path handling for win32.
9726 * configure: Regenerate.
9727
78d8b4d7
DE
97282012-01-26 Doug Evans <dje@google.com>
9729
eca864fe
DE
9730 * symtab.c: Whitespace cleanup, no code changes.
9731
7e082072
DE
9732 * symtab.c (lookup_symbol_in_language): Improve comment.
9733 (lookup_symbol_aux): Fix comment.
9734
7dc25483
DE
9735 * psymtab.c (add_psymbol_to_list): Result is now "void".
9736 * psympriv.h (add_psymbol_to_list): Update.
9737
78d8b4d7
DE
9738 * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
9739
4c63965b
JK
97402012-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
9741
9742 Do not open script filenames twice.
9743 * cli/cli-cmds.c (source_script_from_stream): Pass to
9744 source_python_script also STREAM.
9745 * python/py-auto-load.c (source_section_scripts): Pass to
9746 source_python_script_for_objfile also STREAM.
9747 (auto_load_objfile_script): Pass to source_python_script_for_objfile
9748 also INPUT.
9749 * python/python-internal.h (source_python_script_for_objfile): New
9750 parameter file, rename parameter file to filename.
9751 * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
9752 instead if !_WIN32. Update the function comment.
9753 (source_python_script, source_python_script_for_objfile)
9754 (source_python_script): New parameter file, rename parameter file to
9755 filename. Pass FILENAME to python_run_simple_file.
9756 * python/python.h (source_python_script): New parameter file, rename
9757 parameter file to filename.
9758
88f38a04
PA
97592012-01-26 Pedro Alves <palves@redhat.com>
9760
9761 * corelow.c (core_has_fake_pid): Delete.
9762 (core_close): Delete references to `core_has_fake_pid'.
9763 (add_to_thread_list): Adjust to mark the inferior's pid as fake.
9764 (core_open): Delete references to `core_has_fake_pid'.
9765 (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
9766 the removed global.
9767
e078317b
JB
97682012-01-26 Joel Brobecker <brobecker@adacore.com>
9769
9770 * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
9771 Remove language parameter from name_matcher. Adjust the comment.
9772 * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
9773 Remove language parameter.
9774 * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
9775 * linespec.c (iterate_name_matcher): Likewise.
9776 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
9777 name_matcher. Adjust call accordingly.
9778 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
9779 (maintenance_check_symtabs): Adjust type of parameter "fun".
9780 * psymtab.h (maintenance_check_symtabs): Likewise.
9781
74ccd7f5
JB
97822012-01-26 Joel Brobecker <brobecker@adacore.com>
9783
9784 * language.h (symbol_name_match_p_ftype): New typedef.
9785 (struct language_defn): Replace field la_symbol_name_compare
9786 by la_get_symbol_name_match_p.
9787 * ada-lang.c (ada_get_symbol_name_match_p): New function.
9788 (ada_language_defn): Use it.
9789 * linespec.c (struct symbol_matcher_data): New type.
9790 (iterate_name_matcher): Rewrite.
9791 (iterate_over_all_matching_symtabs): Pass a pointer to
9792 a symbol_matcher_data struct to expand_symtabs_matching
9793 instead of just the lookup name.
9794 * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
9795 opencl-lang.c, p-lang.c, language.c: Delete field
9796 la_symbol_name_compare, and replace by NULL for new field
9797 la_get_symbol_name_match_p.
9798 * symfile.h (struct quick_symbol_functions): Update comment.
9799
5d268276
TT
98002012-01-25 Tom Tromey <tromey@redhat.com>
9801
9802 * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
9803 dereferencing.
9804
edcc5120
TT
98052012-01-24 Tom Tromey <tromey@redhat.com>
9806
9807 PR symtab/12406:
9808 * solib.c (update_solib_list): Update the program space's
9809 added_solibs and deleted_solibs fields.
9810 * progspace.h (struct program_space) <added_solibs,
9811 deleted_solibs>: New fields.
9812 (clear_program_space_solib_cache): Declare.
9813 * progspace.c (release_program_space): Call
9814 clear_program_space_solib_cache.
9815 (clear_program_space_solib_cache): New function.
9816 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
9817 bpstat_stop_status. Use handle_solib_event.
9818 * breakpoint.c: Include gdb_regex.h.
9819 (print_solib_event): New function.
9820 (bpstat_print): Use print_solib_event.
9821 (bpstat_stop_status): Add special case for bp_shlib_event.
9822 (handle_solib_event): New function.
9823 (bpstat_what): Use handle_solib_event.
9824 (struct solib_catchpoint): New.
9825 (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
9826 (breakpoint_hit_catch_solib, check_status_catch_solib)
9827 (print_it_catch_solib, print_one_catch_solib)
9828 (print_mention_catch_solib, print_recreate_catch_solib): New
9829 functions.
9830 (catch_solib_breakpoint_ops): New global.
9831 (catch_load_or_unload, catch_load_command_1)
9832 (catch_unload_command_1): New functions.
9833 (internal_bkpt_check_status): Add special case for
9834 bp_shlib_event.
9835 (internal_bkpt_print_it): Use print_solib_event.
9836 (initialize_breakpoint_ops): Initialize
9837 catch_solib_breakpoint_ops.
9838 (_initialize_breakpoint): Register "catch load" and "catch
9839 unload".
9840 * breakpoint.h (handle_solib_event): Declare.
9841 * NEWS: Add entry for "catch load" and "catch unload".
9842
fa864999
TT
98432012-01-24 Tom Tromey <tromey@redhat.com>
9844
9845 * ada-lang.c: Include gdb_vecs.h.
9846 * charset.c: Include gdb_vecs.h.
9847 * tracepoint.h: Include gdb_vecs.h.
9848 * gdb_vecs.h: New file.
9849
f90263c1
TT
98502012-01-24 Pedro Alves <pedro@codesourcery.com>
9851
9852 * breakpoint.c (breakpoint_hit_catch_fork)
9853 (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
9854 (breakpoint_hit_catch_exec): Make use of the `ws' argument.
9855 * infrun.c (inferior_has_forked, inferior_has_vforked)
9856 (inferior_has_execd, inferior_has_called_syscall): Delete.
9857 (handle_syscall_event): Get syscall_number from the execution
9858 control state's wait status.
9859 (wait_for_inferior): Don't clear syscall_number.
9860
09ac7c10
TT
98612012-01-24 Pedro Alves <palves@redhat.com>
9862
9863 * breakpoint.c (bpstat_check_location, bpstat_stop_status,
9864 pc_at_non_inline_function): Add `ws' parameter, and pass it down.
9865 (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
9866 (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
9867 `ws' parameter.
9868 (breakpoint_hit_ranged_breakpoint): Add `ws' parameter. Return
9869 false for events other than TARGET_SIGNAL_TRAP.
9870 (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
9871 Add `ws' parameter.
9872 (bkpt_breakpoint_hit): Add `ws' parameter. Return false for
9873 events other than TARGET_SIGNAL_TRAP.
9874 (tracepoint_breakpoint_hit): Add `ws' parameter.
9875 * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
9876 parameter.
9877 (bpstat_stop_status): Same.
9878 (pc_at_non_inline_function): Same.
9879 * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
9880 to pass the current event's waitstatus to bpstat_stop_status
9881 and pc_at_non_inline_function.
9882
86eb7e95
JK
98832012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
9884
9885 Code cleanup.
9886 * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
9887 Update the function comment for it.
9888 (source_script_with_search): Call make_cleanup_fclose for STREAM.
9889 * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
9890 for STREAM.
9891
a9b3a50f
PA
98922012-01-24 Pedro Alves <palves@redhat.com>
9893
9894 * breakpoint.c (bpstat_stop_status): Moving clearing print_it
9895 outside `bs->stop' block.
9896 (bpstat_what): Rework bp_shlib_event handling.
9897 (internal_bkpt_check_status): If the breakpoint is a
9898 bp_shlib_event, then set bs->stop and bs->print if
9899 stop_on_solib_events is set.
9900
53fe1783
GB
99012012-01-24 Gary Benson <gbenson@redhat.com>
9902
9903 Delete #if 0'd out code.
9904 * stack.c (print_frame_label_vars): Remove.
9905 (catch_info): Likewise.
9906 (_initialize_stack): Remove "info catch" command.
9907 * NEWS: Mention the above.
9908
49c62f2e
PA
99092012-01-24 Pedro Alves <palves@redhat.com>
9910
9911 * remote.c (remote_add_inferior): New `fake_pid_p' parameter. Use
9912 it.
9913 (remote_notice_new_inferior): If the remote end doesn't support
9914 the multiprocess extensions, then the PID is fake.
9915 (add_current_inferior_and_thread): New.
9916 (remote_start_remote): Use it.
9917 (extended_remote_attach_1): Adjust.
9918 (extended_remote_create_inferior_1): Use
9919 add_current_inferior_and_thread.
9920
d0d8b0c6
JK
99212012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
9922
9923 Fix watchpoints to be specific for each inferior.
9924 * breakpoint.c (watchpoint_in_thread_scope): Verify also
9925 current_program_space.
9926 * i386-nat.c (i386_inferior_data_cleanup): New.
9927 (i386_inferior_data_get): Replace variable inf_data_local by an
9928 inferior_data call.
9929 (i386_use_watchpoints): Initialize i386_inferior_data.
9930 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
9931 specific iterate_over_lwps.
9932
4403d8e9
JK
99332012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
9934
9935 Fix watchpoints across inferior fork.
9936 * amd64-linux-nat.c (update_debug_registers_callback): Update the
9937 comment for linux_nat_iterate_watchpoint_lwps.
9938 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
9939 linux_nat_iterate_watchpoint_lwps.
9940 (amd64_linux_prepare_to_resume): New comment on Linux kernel.
9941 * i386-linux-nat.c (update_debug_registers_callback): Update the
9942 comment for linux_nat_iterate_watchpoint_lwps.
9943 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
9944 linux_nat_iterate_watchpoint_lwps.
9945 (i386_linux_prepare_to_resume): New comment on Linux kernel.
9946 * i386-nat.c: Include inferior.h.
9947 (dr_mirror): Remove.
9948 (i386_inferior_data, struct i386_inferior_data)
9949 (i386_inferior_data_get): New.
9950 (i386_debug_reg_state): Use i386_inferior_data_get.
9951 (i386_cleanup_dregs, i386_update_inferior_debug_regs)
9952 (i386_insert_watchpoint, i386_remove_watchpoint)
9953 (i386_stopped_data_address, i386_insert_hw_breakpoint)
9954 (i386_remove_hw_breakpoint): New variable state, use
9955 i386_debug_reg_state instead of DR_MIRROR.
9956 * linux-nat.c (delete_lwp): New declaration.
9957 (num_lwps): Move here from downwards.
9958 (delete_lwp_cleanup): New.
9959 (linux_child_follow_fork): Create new child_lp, call
9960 linux_nat_new_thread and linux_nat_prepare_to_resume before calling
9961 PTRACE_DETACH.
9962 (num_lwps): Move upwards.
9963 (linux_nat_iterate_watchpoint_lwps): New.
9964 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
9965 (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
9966
2992c9a7 99672012-01-24 Joel Brobecker <brobecker@adacore.com>
9968
9969 GDB 7.4 released.
9970
e360902b
PA
99712012-01-23 Pedro Alves <palves@redhat.com>
9972
9973 * top.c (caution): Rename to ...
9974 (confirm): ... this.
9975 (show_caution): Rename to ...
9976 (show_confirm): ... this.
9977 (quit_cover): Adjust.
9978 (init_main): Adjust.
9979 * top.h (caution): Rename to ...
9980 (confirm): ... this.
9981 * utils.c (internal_vproblem, defaulted_query): Adjust.
9982
050a2e1d
PA
99832012-01-23 Pedro Alves <palves@redhat.com>
9984
9985 * top.c (caution): Update comment.
9986 (execute_command): Don't consider the current value of `caution'.
9987
77a35dd8
JK
99882012-01-23 Jan Kratochvil <jan.kratochvil@redhat.com>
9989
9990 * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
9991
a71b5a38
UW
99922012-01-23 Ulrich Weigand <ulrich.weigand@linaro.org>
9993
9994 * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
9995 * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
9996 * target.c (target_fileio_pwrite): Remove buffer address from
9997 debug output.
9998 (target_fileio_pread): Likewise.
9999
d99bd577
UW
100002012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10001
10002 * NEWS: Document remote "info proc" and "generate-core-file".
10003
35c2fab7
UW
100042012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10005
10006 * gdbarch.sh (find_memory_regions): New callback.
10007 * gdbarch.c, gdbarch.h: Regenerate.
10008
10009 * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
10010 callback before falling back to target method.
10011
10012 * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
10013 (linux_target_install_ops): No longer install it.
10014
10015 * linux-tdep.c (linux_find_memory_regions): New function.
10016 (linux_init_abi): Install it.
10017
6432734d
UW
100182012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10019
10020 * gdbarch.sh (make_corefile_notes): New architecture callback.
10021 * gdbarch.c: Regenerate.
10022 * gdbarch.h: Likewise.
10023
10024 * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
10025 before target_make_corefile_notes. If NULL is returned, the
10026 target does not support core file generation.
10027
10028 * linux-nat.c: Include "linux-tdep.h".
10029 (find_signalled_thread, find_stop_signal): Remove.
10030 (linux_nat_do_thread_registers): Likewise.
10031 (struct linux_nat_corefile_thread_data): Likewise.
10032 (linux_nat_corefile_thread_callback): Likewise.
10033 (iterate_over_spus): Likewise.
10034 (struct linux_spu_corefile_data): Likewise.
10035 (linux_spu_corefile_callback): Likewise.
10036 (linux_spu_make_corefile_notes): Likewise.
10037 (linux_nat_collect_thread_registers): New function.
10038 (linux_nat_make_corefile_notes): Replace contents by call to
10039 linux_make_corefile_notes passing linux_nat_collect_thread_registers
10040 as native-only callback.
10041
10042 * linux-tdep.h: Include "bfd.h".
10043 (struct regcache): Add forward declaration.
10044 (linux_collect_thread_registers_ftype): New typedef.
10045 (linux_make_corefile_notes): Add prototype.
10046 * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
10047 "regset.h", and "elf-bfd.h".
10048 (find_signalled_thread, find_stop_signal): New functions.
10049 (linux_spu_make_corefile_notes): Likewise.
10050 (linux_collect_thread_registers): Likewise.
10051 (struct linux_corefile_thread_data): New data structure.
10052 (linux_corefile_thread_callback): New funcion.
10053 (linux_make_corefile_notes): Likewise.
10054 (linux_make_corefile_notes_1): Likewise.
10055 (linux_init_abi): Install it.
10056
3030c96e
UW
100572012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10058
10059 * gdbarch.sh (info_proc): New callback.
10060 * gdbarch.c, gdbarch.h: Regenerate.
10061
10062 * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
10063 before falling back to the target info_proc callback.
10064
10065 * linux-nat.c: Do not include "cli/cli-utils.h".
10066 (linux_nat_info_proc): Remove.
10067 (linux_target_install_ops): No longer install it.
10068
10069 * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
10070 (read_mapping): New function.
10071 (linux_info_proc): Likewise.
10072 (linux_init_abi): Install it.
10073
145b16a9
UW
100742012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10075
10076 * defs.h (enum info_proc_what): Moved here from linux-nat.c
10077 * infcmd.c: (info_proc_cmd_1): New function.
10078 (info_proc_cmd): New function, moved here from equivalent routine
10079 orignally in linux-nat.c.
10080 (info_proc_cmd_mappings): Likewise.
10081 (info_proc_cmd_stat): Likewise.
10082 (info_proc_cmd_status): Likewise.
10083 (info_proc_cmd_cwd): Likewise.
10084 (info_proc_cmd_cmdline): Likewise.
10085 (info_proc_cmd_exe): Likewise.
10086 (info_proc_cmd_all): Likewise.
10087 (_initialize_infcmd): Install "info proc" command and subcommands.
10088
10089 * target.h (struct target_ops): Add to_info_proc.
10090 (target_info_proc): Add prototype.
10091 * target.c (target_info_proc): New function.
10092
10093 * procfs.c (procfs_info_proc): Add prototype.
10094 (info_proc_cmd): Rename into ...
10095 (procfs_info_proc): ... this. Update argument types as appropriate
10096 for a to_info_proc implementation. Handle "what" argument.
10097 (procfs_target): Install procfs_info_proc.
10098 (_initialize_procfs): No longer install "info proc" command.
10099
10100 * linux-nat.c: (enum info_proc_what): Remove.
10101 (linux_nat_info_proc_cmd_1): Rename into ...
10102 (linux_nat_info_proc): ... this. Update argument types as appropriate
10103 for a to_info_proc implementation.
10104 (linux_nat_info_proc_cmd): Remove.
10105 (linux_nat_info_proc_cmd_mappings): Likewise.
10106 (linux_nat_info_proc_cmd_stat): Likewise.
10107 (linux_nat_info_proc_cmd_status): Likewise.
10108 (linux_nat_info_proc_cmd_cwd): Likewise.
10109 (linux_nat_info_proc_cmd_cmdline): Likewise.
10110 (linux_nat_info_proc_cmd_exe): Likewise.
10111 (linux_nat_info_proc_cmd_all): Likewise.
10112 (linux_target_install_ops): Install linux_nat_info_proc.
10113 (_initialize_linux_nat): No longer install "info proc" command
10114 and subcommands.
10115
b9e7b9c3
UW
101162012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10117
10118 * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
10119 * config.in, configure: Regenerate.
10120
10121 * target.h (struct target_ops): Add to_fileio_readlink.
10122 (target_fileio_readlink): Add prototype.
10123 * target.c (target_fileio_readlink): New function.
10124
10125 * inf-child.c: Conditionally include <sys/param.h>.
10126 (inf_child_fileio_readlink): New function.
10127 (inf_child_target): Install it.
10128
10129 * remote.c (PACKET_vFile_readlink): New enum value.
10130 (remote_hostio_readlink): New function.
10131 (init_remote_ops): Install it.
10132 (_initialize_remote): Handle vFile:readlink packet type.
10133
7313baad
UW
101342012-01-20 Pedro Alves <palves@redhat.com>
10135 Ulrich Weigand <ulrich.weigand@linaro.org>
10136
10137 * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
10138 * config.in, configure: Regenerate.
10139
10140 * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
10141 to_fileio_pread, to_fileio_close, to_fileio_unlink.
10142 (target_fileio_open): Add prototype.
10143 (target_fileio_pwrite): Likewise.
10144 (target_fileio_pread): Likewise.
10145 (target_fileio_close): Likewise.
10146 (target_fileio_unlink): Likewise.
10147 (target_fileio_read_alloc): Likewise.
10148 (target_fileio_read_stralloc): Likewise.
10149
10150 * target.c: Include "gdb/fileio.h".
10151 (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
10152 (default_fileio_target): New function.
10153 (target_fileio_open): Likewise.
10154 (target_fileio_pwrite): Likewise.
10155 (target_fileio_pread): Likewise.
10156 (target_fileio_close): Likewise.
10157 (target_fileio_unlink): Likewise.
10158 (target_fileio_close_cleanup): Likewise.
10159 (target_fileio_read_alloc_1): Likewise.
10160 (target_fileio_read_alloc): Likewise.
10161 (target_fileio_read_stralloc): Likewise.
10162
10163 * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
10164 <fcntl.h>, and <unistd.h>.
10165 (inf_child_fileio_open_flags_to_host): New function.
10166 (inf_child_errno_to_fileio_error): Likewise.
10167 (inf_child_fileio_open): Likewise.
10168 (inf_child_fileio_pwrite): Likewise.
10169 (inf_child_fileio_pread): Likewise.
10170 (inf_child_fileio_close): Likewise.
10171 (inf_child_fileio_unlink): Likewise.
10172 (inf_child_target): Install to_fileio routines.
10173
10174 * remote.c (init_remote_ops): Install to_fileio routines.
10175
901f9912
UW
101762012-01-20 Pedro Alves <palves@redhat.com>
10177 Ulrich Weigand <ulrich.weigand@linaro.org>
10178
10179 * remote.c (remote_multi_process_p): Only check for multi-process
10180 protocol feature, do not check for extended protocol.
10181 (remote_supports_multi_process): Check for extended protocol here.
10182 (set_general_process): Likewise.
10183 (extended_remote_kill): Likewise.
10184 (remote_pid_to_str): Likewise.
10185 (remote_query_supported): Always query multiprocess mode.
10186
e714e1bf
UW
101872012-01-20 Pedro Alves <palves@redhat.com>
10188 Ulrich Weigand <ulrich.weigand@linaro.org>
10189
10190 * inferior.h (struct inferior): Add fake_pid_p.
10191 * inferior.c (exit_inferior_1): Clear fake_pid_p.
10192 * remote.c (remote_start_remote): Set fake_pid_p if we have to use
10193 magic_null_ptid since the remote side doesn't provide a real PID.
10194
50897289
TT
101952012-01-19 Tom Tromey <tromey@redhat.com>
10196
10197 * NEWS: Combine the two Python sections.
10198
1afc2033
JK
101992012-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
10200
10201 * target.h (target_close): Update comment on the target's unpush state.
10202
305436e0
PA
102032012-01-19 Pedro Alves <palves@redhat.com>
10204
10205 * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
10206 linux_nat_async directly instead of going through the target
10207 vector.
10208 * target.c (unpush_target): Close target after unpushing it, not
10209 before.
10210
49323895
GB
102112012-01-19 Gary Benson <gbenson@redhat.com>
10212
10213 * mdebugread.c (sort_blocks): Replace integer constants with ones
10214 derived from FIRST_LOCAL_BLOCK.
10215
1db33378
PP
102162012-01-18 Paul Pluzhnikov <ppluzhnikov@google.com>
10217 Jan Kratochvil <jan.kratochvil@redhat.com>
10218
10219 PR gdb/9538
10220 * symfile.c (find_separate_debug_file): New function.
10221 (terminate_after_last_dir_separator): Likewise.
10222 (find_separate_debug_file_by_debuglink): Also try realpath.
10223 * configure.ac (AC_CHECK_FUNCS): Add lstat.
10224 * configure: Regenerate.
10225 * config.in: Regenerate.
10226
f83d8a90
DE
102272012-01-18 Doug Evans <dje@google.com>
10228
10229 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
10230 (main.o): Remove rule.
10231 * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
10232 (--with-sysroot): Rewrite.
10233 * configure: Regenerate.
10234 * config.in: Regenerate.
10235
2dbca4d6
SDJ
102362012-01-18 Sergio Durigan Junior <sergiodj@redhat.com>
10237
10238 * parse.c (initialize_expout): New function.
10239 (reallocate_expout): Likewise.
10240 (parse_exp_in_context): Use `initialize_expout' and
10241 `reallocate_expout' when appropriate.
10242
0695b514
PA
102432012-01-18 Pedro Alves <palves@redhat.com>
10244
10245 * record.c (struct record_breakpoint, record_breakpoint_p)
10246 (record_breakpoints): New.
10247 (record_insert_breakpoint, record_remove_breakpoint): Manage
10248 record breakpoints list. Only remove breakpoints from the
10249 inferior if they had been inserted there in the first place.
10250
136e1c30
DE
102512012-01-17 Doug Evans <dje@google.com>
10252
10253 * linespec.c (decode_line_internal): Don't call symtabs_from_filename
10254 if we know we don't have a file name to look for.
10255
c0bf857d
PA
102562012-01-17 Pedro Alves <palves@redhat.com>
10257
10258 * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
10259 the frame's stop reason is UNWIND_UNAVAILABLE.
10260
b486de60
JK
102612012-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
10262
10263 Fix compilation error.
10264 * m2-exp.y (yyerror): Use ANSI C prototype.
10265
d04550a6
SDJ
102662012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
10267
10268 * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
10269 (growbuf_by_size): Likewise.
10270 (yyerror): Likewise.
10271 * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
10272 (modblock): Remove variable (was #if 0'ed).
10273 (parse_number): Convert prototype from K&R to ANSI C.
10274 (yyerror): Likewise.
10275 * objc-exp.y (parse_number): Likewise.
10276 (yyerror): Likewise.
10277 (yylex): Remove #if 0'ed code.
10278 * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
10279 (yyerror): Likewise.
10280
4aac40c8
TT
102812012-01-16 Tom Tromey <tromey@redhat.com>
10282
10283 * NEWS: Add item.
10284 * symtab.h (compare_filenames_for_search): Declare.
10285 * symtab.c (compare_filenames_for_search): New function.
10286 (iterate_over_some_symtabs): Use it.
10287 * symfile.h (struct quick_symbol_functions)
10288 <map_symtabs_matching_filename>: Change spec.
10289 * psymtab.c (partial_map_symtabs_matching_filename): Use
10290 compare_filenames_for_search. Update for new spec.
10291 * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
10292 compare_filenames_for_search. Update for new spec.
10293 * breakpoint.c (clear_command): Use compare_filenames_for_search.
10294
cafec441
TT
102952012-01-16 Tom Tromey <tromey@redhat.com>
10296
10297 PR python/13281:
10298 * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
10299 (struct main_type) <flag_flag_enum>: New field.
10300 * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
10301 * NEWS: Add entries.
10302 * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
10303 enums.
10304 * python/lib/gdb/printing.py (_EnumInstance): New class.
10305 (FlagEnumerationPrinter): Likewise.
10306
983af33b
SDJ
103072012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
10308
10309 * breakpoint.c (create_sals_from_address_default): New function.
10310 (create_breakpoints_sal_default): Likewise.
10311 (decode_linespec_default): Likewise.
10312 (is_marker_spec): Removed.
10313 (strace_marker_p): New function.
10314 (init_breakpoint_sal): Using `strace_marker_p' instead of
10315 `is_marker_spec'.
10316 (create_breakpoint): Call method `create_sals_from_address' from
10317 breakpoint_ops, replacing code that created SALs conditionally
10318 on the type of the breakpoint. Call method `create_breakpoints_sal',
10319 replacing code that created breakpoints conditionally on the type
10320 wanted.
10321 (base_breakpoint_create_sals_from_address): New function.
10322 (base_breakpoint_create_breakpoints_sal): Likewise.
10323 (base_breakpoint_decode_linespec): Likewise.
10324 (base_breakpoint_ops): Add methods
10325 `base_breakpoint_create_sals_from_address',
10326 `base_breakpoint_create_breakpoints_sal' and
10327 `base_breakpoint_decode_linespec'.
10328 (bkpt_create_sals_from_address): New function.
10329 (bkpt_create_breakpoints_sal): Likewise.
10330 (bkpt_decode_linespec): Likewise.
10331 (tracepoint_create_sals_from_address): Likewise.
10332 (tracepoint_create_breakpoints_sal): Likewise.
10333 (tracepoint_decode_linespec): Likewise.
10334 (strace_marker_create_sals_from_address): Likewise.
10335 (strace_marker_create_breakpoints_sal): Likewise.
10336 (strace_marker_decode_linespec): Likewise.
10337 (strace_marker_breakpoint_ops): New variable.
10338 (addr_string_to_sals): Remove `marker_spec'. Call method
10339 `decode_linespec' from breakpoint_ops, replacing code that decoded
10340 an address string into a SAL. Use `strace_marker_p' instead of
10341 `marker_spec'.
10342 (strace_command): Decide whether we are dealing with a static
10343 tracepoint with marker or not. Use the appropriate breakpoint_ops.
10344 (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
10345 * breakpoint.h (linespec_result, linespec_sals): New forward
10346 declarations.
10347 (breakpoint_ops) <create_sals_from_address>,
10348 <create_breakpoints_sal>, <decode_linespec>: New methods.
10349
4795f398
DE
103502012-01-14 Doug Evans <dje@google.com>
10351
10352 * NEWS: Update text for "maint set python print-stack".
10353 It is deprecated in gdb 7.4 and deleted in 7.5.
10354
ee5106fe
EZ
103552012-01-13 Eli Zaretskii <eliz@gnu.org>
10356
10357 * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
10358 including curses.h.
10359
b161e06f
JK
103602012-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
10361
10362 * configure: Regenerate.
10363 * config.in: Regenerate.
10364
85254831
KS
103652012-01-12 Keith Seitz <keiths@redhat.com>
10366
10367 PR mi/10586
10368 * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
10369 (ANONYMOUS_UNION_NAME): Define.
10370 (is_path_expr_parent): New function.
10371 (get_path_expr_parent): New function.
10372 (is_anonymous_child): New function.
10373 (create_child_with_value): If the child is anonymous and without
10374 a name, assign an object name to it.
10375 (c_describe_child): Use get_path_expr_parent to determine
10376 the parent expression.
10377 If there field represents an anonymous struct or union and
10378 has no name, set an appropriate display name and expression.
10379 (cplus_describe_child): Likewise.
10380
620fa63a
PA
103812012-01-12 Pedro Alves <palves@redhat.com>
10382
10383 * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
10384 available when %ebp is found to be zero (outermost).
10385
2efa2c79
AT
103862012-01-11 Andreas Tobler <andreast@fgznet.ch>
10387
10388 * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
10389 an internal gdb_static_assert.
10390 * mi/mi-common.c: Rename static_assert to gdb_static_assert.
10391
88e7d25d
TT
103922012-01-11 Tom Tromey <tromey@redhat.com>
10393
10394 PR gdb/9598:
10395 * breakpoint.c (_initialize_breakpoint): Fix help for "catch
10396 catch" and "catch throw".
10397
72384ba3
PH
103982012-01-11 Paul Hilfinger <hilfingr@adacore.com>
10399
10400 * blockframe.c (block_innermost_frame): Start search from selected
10401 frame, if present, or otherwise the current frame.
10402
10403 * c-exp.y (variable): Update innermost_block for
10404 'block COLONCOLON NAME' clause.
10405 * m2-exp.y (variable): Ditto.
10406 * objc-exp.y (variable): Ditto.
10407
065a711f
TT
104082012-01-10 Tom Tromey <tromey@redhat.com>
10409
10410 PR python/13199:
10411 * python/python.c (finish_python_initialization): Set sys.argv.
10412
f3f5162e
DE
104132012-01-10 Doug Evans <dje@google.com>
10414
10415 * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd". New arg
10416 "want_line_info". All callers updated.
10417 (dwarf_decode_lines_1): New function.
10418 (handle_DW_AT_stmt_list): Add function comment.
10419 New arg "want_line_info". All callers updated.
10420 (read_file_scope,read_type_unit_scope): Move comment from
10421 handle_DW_AT_stmt_list to here.
10422
9934703b
JK
104232012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10424
10425 Fix regression after libiberty/ update for GCC PR 6057 and others.
10426 * c-exp.y (operator) <OPERATOR DELETE>
10427 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
10428 * cp-name-parser.y (fill_comp, make_operator, make_dtor)
10429 (make_builtin_type, make_name): New variable i, add gdb_assert.
10430 (operator) <OPERATOR NEW>: Update ARGS to 3.
10431 (operator) <OPERATOR DELETE>: Add trailing space.
10432 (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
10433 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
10434 * cp-support.c (cp_canonicalize_string): Check NULL from
10435 cp_comp_to_string, call warning and return.
10436
06b9f45f
JK
104372012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10438
10439 Fix duplicate .o files after omitting libbfd.a.
10440 * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
10441 (SFILES): Add corelow.c.
10442 (COMMON_OBS): Add corelow.o.
10443 (ALLDEPFILES): Remove corelow.c.
10444 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
10445 * config/alpha/alpha-osf3.mh: Likewise.
10446 * config/alpha/fbsd.mh: Likewise.
10447 * config/arm/nbsdaout.mh: Likewise.
10448 * config/arm/nbsdelf.mh: Likewise.
10449 * config/i386/i386gnu.mh: Likewise.
10450 * config/ia64/hpux.mh: Likewise.
10451 * config/ia64/linux.mh: Likewise.
10452 * config/m32r/linux.mh: Likewise.
10453 * config/m68k/linux.mh: Likewise.
10454 * config/mips/irix5.mh: Likewise.
10455 * config/mips/irix6.mh: Likewise.
10456 * config/pa/hpux.mh: Likewise.
10457 * config/pa/linux.mh: Likewise.
10458 * config/powerpc/aix.mh: Likewise.
10459 * config/sparc/linux.mh: Likewise.
10460 * config/sparc/linux64.mh: Likewise.
10461 * config/sparc/sol2.mh: Likewise.
10462 * config/vax/vax.mh: Likewise.
10463 * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
10464 (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
10465 (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
10466 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
10467 (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
10468 (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
10469 (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
10470 (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
10471 (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
10472 (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
10473 (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
10474 (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
10475 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
10476 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
10477 (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
10478 (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
10479 (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
10480 (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
10481 (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
10482 (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
10483 (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
10484 (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
10485 corelow.o from gdb_target_obs.
10486 * corefile.c (core_target): Update the comment on NULL value.
10487 (core_file_command): Replace error by gdb_assert on CORE_TARGET.
10488 * corelow.c (sniff_core_bfd): Call error instead of warning on zero
10489 MATCHES. Drop YUMMY set on NULL.
10490 (core_close): Do not call exit_inferior_silent on zero PID. Do not
10491 reclaim CORE_DATA if it is already NULL.
10492
34365054
DE
104932012-01-09 Doug Evans <dje@google.com>
10494
10495 * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
10496 * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
10497
696166a3
KS
104982012-01-09 Keith Seitz <keiths@redhat.com>
10499
10500 * breakpoint.c (wrapper.h): Don't include.
10501
8e7b59a5
KS
105022012-01-09 Keith Seitz <keiths@redhat.com>
10503
10504 * Makefile.in (SFILES): Remove wrapper.c.
10505 (HFILES_NO_SRCDIR): Remove wrapper.h.
10506 (COMMON_OBS): Remove wrapper.o.
10507 * cli/cli-interp.c: Don't inlude wrapper.h.
10508 * corelow.c: Likewise.
10509 (core_open): Replace gdb_target_find_new_threads with
10510 TRY_CATCH around target_find_new_threads.
10511 * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
10512 * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
10513 * varobj.c (varobj_create): Likewise for parse_exp_1 and
10514 evaluate_expression.
10515 (varobj_set_value): Likewise for evaluate_expression and
10516 value_assign.
10517 (install_new_variable): Likewise for value_fetch_lazy.
10518 (adjust_value_for_child_access): Likewise for value_ind.
10519 (c_describe_child): Likewise for value_subscript and
10520 value_ind.
10521 (c_value_of_root): Likewise for evaluate_expression.
10522 * wrapper.c: Remove.
10523 * wrapper.h: Remove.
10524
1a4eeb98
DE
105252012-01-09 Doug Evans <dje@google.com>
10526
9ff913ba
DE
10527 * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
10528 partial_read_comp_unit_head. Replace "buffer", "buffer_size" and
10529 "abfd" args with "section". All callers updated.
10530 Error checking code moved ...
10531 (error_check_comp_unit_head): ... here. New function.
10532 (read_and_check_type_unit_head): Renamed from read_type_unit_head.
10533 Delete arg "abfd". New arg "type_offset". All callers updated.
10534 (create_debug_types_hash_table): Simplify by using
10535 read_and_check_type_unit_head.
10536
1a4eeb98
DE
10537 * parser-defs.h (namecopy): Delete.
10538 * parse.c (namecopy, namecopy_size): Move into copy_name.
10539
2e6af8c0
JK
105402012-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10541
10542 Partially fix duplicate .o files after omitting libbfd.a.
10543 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
10544 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
10545 * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
10546 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
10547 * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
10548 * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
10549 * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
10550
9f2f828a
PA
105512012-01-09 Pedro Alves <palves@redhat.com>
10552
10553 * MAINTAINERS: Update my email address.
10554
4d72c0bc
DE
105552012-01-08 Doug Evans <dje@google.com>
10556
d467dd73
DE
10557 * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
10558 n_type_units. Rename type_comp_units to all_type_units.
10559 All uses updated.
10560 (add_signatured_type_cu_to_table): Renamed from
10561 add_signatured_type_cu_to_list. All callers updated.
10562
4d72c0bc
DE
10563 * gdbtypes.h (struct cplus_struct_type): Delete member
10564 nfn_fields_total. All uses removed.
10565
21b2bd31
DE
105662012-01-06 Doug Evans <dje@google.com>
10567
10568 * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
10569 to top of file.
10570 (dwarf2_find_comp_unit): Delete.
10571 (process_psymtab_comp_unit): Make result "void".
10572 Delete args buffer, info_ptr, buffer_size, and replace with
10573 "section". All callers updated.
10574 (dwarf2_build_psymtabs_hard): Simplify.
10575
bfd189b1
SDJ
105762012-01-06 Sergio Durigan Junior <sergiodj@redhat.com>
10577 Thiago Jung Bauermann <bauerman@br.ibm.com>
10578
10579 * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
10580 before `struct gdb_exception'.
10581 * breakpoint.c (update_global_location_list_nothrow)
10582 (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
10583 * cp-abi.c (value_rtti_type): Likewise.
10584 * cp-support.c (cp_validate_operator): Likewise.
10585 * infrun.c (insert_exception_resume_breakpoint)
10586 (check_exception_resume, keep_going): Likewise.
10587 * mi-interp.c (mi_breakpoint_created)
10588 (mi_breakpoint_modified): Likewise.
10589 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
10590 * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
10591 (ia64_hpux_handle_dld_breakpoint_1): Likewise.
10592
6b07635f
DE
105932012-01-05 Doug Evans <dje@google.com>
10594
0b30b85c
DE
10595 * dwarf2read.c (statement_prologue): Delete, unused.
10596
98714339
DE
10597 * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
10598 * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
10599
6b07635f
DE
10600 * dwarf2read.c (comp_unit_header): Delete, unused.
10601
761f4555
UW
106022012-01-05 Ulrich Weigand <uweigand@de.ibm.com>
10603
10604 * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
10605 * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
10606
2ca0b532
PA
106072012-01-05 Khoo Yit Phang <khooyp@cs.umd.edu>
10608
10609 * infrun.c (normal_stop): Don't skip calling the normal_stop
10610 observers if the thread was doing a multi-step, but stopped for
10611 some reason other than stepping.
10612
50aeff07
PA
106132012-01-05 Pedro Alves <alves.ped@gmail.com>
10614
10615 * cli/cli-decode.h: Add comments.
10616 (CMD_LIST_AMBIGUOUS): Moved to command.h
10617 (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
10618 (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
10619 (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
10620 (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
10621 (add_com, add_com_alias, add_info, add_info_alias)
10622 (complete_on_cmdlist, complete_on_enum, help_list): Remove
10623 declarations.
10624 * command.h: Add and adjust comments.
10625 (CMD_LIST_AMBIGUOUS): Moved here.
10626 (help_cmd, help_cmd_list): Delete declarations.
10627
5953832c
DE
106282012-01-04 Doug Evans <dje@google.com>
10629
e5fe5e75
DE
10630 * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
10631 All callers updated.
10632 (load_full_type_unit): Renamed from read_signatured_type_at_offset.
10633 Replace all arguments with "per_cu". All callers updated.
10634
28dee7f5
DE
10635 * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
10636
23745b47
DE
10637 * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
10638 New arg "per_cu". All callers updated.
10639
5953832c
DE
10640 Delete #if 0'd out code.
10641 * language.c (binop_result_type): Delete.
10642 (simple_type, ordered_type, same_type, integral_type): Delete.
10643 (numeric_type, character_type, string_type, boolean_type): Delete.
10644 (float_type, structured_type): Delete.
10645 * language.h: Update.
10646
0f5b7562
TT
106472012-01-04 Tom Tromey <tromey@redhat.com>
10648
10649 * python/py-value.c (valpy_binop): Initialize 'res_val'.
10650
78218f56
JB
106512012-01-04 Joel Brobecker <brobecker@adacore.com>
10652
10653 * corefile.c (close_exec_file): Delete.
10654 (reopen_exec_file): Remove commented out code that seems related
10655 to close_exec_file, which is being deleted here.
10656 * inferior.h (close_exec_file): Delete.
10657 * fork-child.c (fork_inferior): Remove call to fork_inferior.
10658
0fcd72ba
JB
106592012-01-04 Joel Brobecker <brobecker@adacore.com>
10660
10661 * ada-lang.c: #include "cli/cli-utils.h".
10662 (get_selections): Use skip_spaces.
10663 (ada_get_next_arg): Use skip_spaces and skip_to_space.
10664 (catch_ada_exception_command_split): Use skip_spaces.
10665 (ada_decode_assert_location): Likewise.
10666
1dabb4c4
JB
106672012-01-04 Joel Brobecker <brobecker@adacore.com>
10668
10669 * linespec.c (decode_line_internal): Check for C++ or Java
10670 compound constructs only if the current language is C, C++
10671 or Java.
10672
5931a2fa
JK
106732012-01-04 Jan Kratochvil <jan.kratochvil@redhat.com>
10674
10675 Revert:
10676 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10677 Joel Brobecker <brobecker@adacore.com>
10678 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
10679 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
10680 3 times.
10681 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
10682 fall through into AT_ENTRY_POINT.
10683 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
10684 DUMMY_ADDR with it.
10685 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
10686 PPC_INSN_SIZE skip to 3 times.
10687
1a2da5ee
JB
106882012-01-04 Joel Brobecker <brobecker@adacore.com>
10689
10690 * linespec.c (add_minsym): Preserve function descriptors.
10691
8645ff69
UW
106922012-01-04 Ulrich Weigand <uweigand@de.ibm.com>
10693
10694 * breakpoint.c (all_locations_are_pending): Consider locations
10695 in program spaces executing during startup pending as well.
10696
0b302171
JB
106972012-01-04 Joel Brobecker <brobecker@adacore.com>
10698
10699 Copyright year update in most files of the GDB Project.
10700
8ba098ad
JB
107012012-01-04 Joel Brobecker <brobecker@adacore.com>
10702
10703 * copyright.sh: Delete.
10704 * copyright.py: Rewrite.
10705
09c01c30
JB
107062012-01-04 Joel Brobecker <brobecker@adacore.com>
10707
10708 * gnulib/extra/update-copyright: New file, imported from gnulib.
10709
3c36c0af
JB
107102012-01-04 Joel Brobecker <brobecker@adacore.com>
10711
10712 * README (Copyright and License Notices): New section.
10713
888fe1e1
TT
107142012-01-03 Tom Tromey <tromey@redhat.com>
10715
10716 PR python/12533:
10717 * python/py-value.c (valpy_dereference, valpy_get_address
10718 valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
10719 (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
10720 (valpy_absolute, valpy_richcompare): Free intermediate values.
10721
6e681866
JB
107222011-01-03 Joel Brobecker <brobecker@adacore.com>
10723
10724 * ada-lang.c: Reformat the copyright notice.
10725
0cd09acb
JK
107262012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10727
10728 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
10729 * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
10730 (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
10731 (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
10732 Revert this part of:
10733 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10734 Build gdb directly from *.o files not using libgdb.a.
10735 * Makefile.in (COMMON_OBS): Remove solib-target.o.
10736
12c3e59c
JB
107372012-01-02 Joel Brobecker <brobecker@adacore.com>
10738
10739 * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
10740 gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
10741 Reformat the copyright header.
10742
11bf1490
JK
107432012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10744
10745 Revert this part of:
10746 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10747 Remove the gdbtui binary.
10748 * gdb.c (main): Remove args.interpreter_p initialization.
10749 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
10750 * main.h (struct captured_main_args): Remove interpreter_p.
10751
1fef196f
JB
107522012-01-02 Joel Brobecker <brobecker@adacore.com>
10753
10754 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
10755
67827812
JB
107562012-01-02 Joel Brobecker <brobecker@adacore.com>
10757
10758 * top.c (print_gdb_version): Update copyright year.
10759
a4d0b831
YQ
107602012-01-02 Yao Qi <yao@codesourcery.com>
10761
10762 * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
10763
b5914469
JK
107642012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10765 Joel Brobecker <brobecker@adacore.com>
10766
10767 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
10768 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
10769 3 times.
10770 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
10771 fall through into AT_ENTRY_POINT.
10772 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
10773 DUMMY_ADDR with it.
10774 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
10775 PPC_INSN_SIZE skip to 3 times.
10776
8da828f7
JK
107772012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10778
10779 * amd64-linux-nat.c (update_debug_registers_callback): New comment on
10780 the return value.
10781 * i386-linux-nat.c (update_debug_registers_callback): Likewise.
10782
8574e74b
JK
107832012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10784
10785 Build gdb directly from *.o files not using libgdb.a.
10786 * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
10787 (COMMON_OBS): Remove solib-target.o.
10788 (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
10789 (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
10790 (LIBGDB_OBS, libgdb.a): Move it above.
10791 * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
10792 (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
10793 (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
10794 (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
10795 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
10796 (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
10797 (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
10798 (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
10799 (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
10800 (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
10801 (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
10802 (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
10803 (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
10804 (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
10805 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
10806 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
10807 (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
10808 (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
10809 (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
10810 (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
10811 (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
10812 (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
10813 (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
10814 (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
10815 (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
10816 (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
10817 (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
10818
217bff3e
JK
108192012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10820
10821 Remove the gdbtui binary.
10822 * .gitignore (/gdbtui): Remove.
10823 * Makefile.in (TUI): Remove.
10824 (SUBDIR_TUI_OBS): Remove tui-main.o.
10825 (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
10826 (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
10827 (tui-main.o): Remove.
10828 (all_object_files): Remove tui-main.o.
10829 * NEWS: New note for the gdbtui removal.
10830 * configure: Rebuilt.
10831 * configure.ac: No longer add all-tui, clean-tui, install-tui and
10832 uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
10833 CONFIG_UNINSTALL respectively.
10834 * gdb.c (main): Remove args.interpreter_p initialization.
10835 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
10836 * main.h (struct captured_main_args): Remove interpreter_p.
10837 * tui/tui-main.c: Remove.
10838
9cdd5dbd
DE
108392012-01-01 Doug Evans <dje@google.com>
10840
bb5ed363
DE
10841 * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
10842 (dwarf2_physname, read_import_statement): Ditto.
10843 (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
10844 (process_structure_scope read_subroutine_type): Ditto.
10845 (read_typedef, load_partial_dies, read_partial_die): Ditto.
10846 (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
10847 (dwarf2_fetch_die_location_block): Ditto.
10848 (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
10849
a0f42c21
DE
10850 * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
10851 All callers updated.
10852 (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
10853 (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
10854 (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
10855
2dc860c0
DE
10856 * dwarf2read.c (load_cu): Move assert to more useful location.
10857
68dc6402
DE
10858 * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
10859 All callers updated.
10860
9cdd5dbd
DE
10861 * dwarf2read.c (dwarf2_per_objfile): Add comment.
10862 (dwarf2_elf_names): Minor reformat.
10863 (dwarf2_per_cu_data): Tweak comment.
10864 (dwarf2_read_section): Fix comment.
10865 (create_all_comp_units): Fix comment.
10866 (load_full_comp_unit): Fix comment.
10867 (process_full_comp_unit): Fix comment.
10868 (read_signatured_type): Fix comment.
10869
0c10e53e 10870For older changes see ChangeLog-2011.
c906108c
SS
10871\f
10872Local Variables:
10873mode: change-log
10874left-margin: 8
10875fill-column: 74
10876version-control: never
57da7796 10877coding: utf-8
c906108c 10878End:
This page took 2.913845 seconds and 4 git commands to generate.