* elf32-xtensa.c (free_section_cache): Renamed from
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
07540c15
DE
12012-10-15 Doug Evans <dje@google.com>
2
3 New option -nh: inhibit loading of ~/.gdbinit.
4 * NEWS: Mention -nh.
5 * main.c (captured_main): Recognize and process -nh.
6 (print_gdb_help): Mention -nh.
7 * gdb.1: Mention -nh. Remove erroneous docs on -nx behavior.
8
eab09350
L
92012-10-15 H.J. Lu <hongjiu.lu@intel.com>
10
11 PR backtrace/14646
12 PR gdb/14647
13 * i386-tdep.h (gdbarch_tdep): Remove sp_regnum_from_eax and
14 pc_regnum_from_eax.
15 * i386-tdep.c (i386_gdbarch_init): Don't use sp_regnum_from_eax
16 nor pc_regnum_from_eax.
17 * amd64-tdep.c (amd64_x32_init_abi): Don't set sp_regnum_from_eax
18 nor pc_regnum_from_eax.
19
9e3a7d65
JK
202012-10-15 Jan Kratochvil <jan.kratochvil@redhat.com>
21
22 Fix entry values resolving in inlined frames.
23 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Move func_addr,
24 gdbarch and caller_frame initialization later. Skip INLINE_FRAME
25 entries of FRAME.
26
c83393b9
JB
272012-10-15 Joel Brobecker <brobecker@adacore.com>
28
29 * configure.ac: Build with -DMS_WIN64 if building with Python
30 enabled using GCC on amd64-windows.
31 * configure: Regenerate.
32
801e4185
TT
332012-10-15 Tom Tromey <tromey@redhat.com>
34
35 PR python/14635:
36 * python/py-symtab.c (del_objfile_sal): Set 'symtab' field
37 to Py_None.
38
74f910c8
TT
392012-10-15 Tom Tromey <tromey@redhat.com>
40
41 PR python/14634:
42 * python/py-symbol.c (sympy_dealloc): Check for NULL symbol.
43
2a7c8fd5
AB
442012-10-11 Andrew Burgess <aburgess@broadcom.com>
45
46 * remote-sim.c (gdbsim_create_inferior): Call init_thread_list to
47 reset thread numbering back to 1.
48
7c09e5a0
DE
492012-10-11 Doug Evans <dje@google.com>
50
51 PR breakpoints/14643.
52 * linespec.c (struct ls_parser): New member keyword_ok.
53 (linespec_lexer_lex_string): Add comment.
54 (linespec_lexer_lex_one): Ignore keywords if it's the wrong place
55 for one.
56 (parse_linespec): Set keyword_ok.
57
a1855c1d
DE
582012-10-10 Doug Evans <dje@google.com>
59
844226d6
DE
60 * dwarf2read.c (process_psymtab_comp_unit_reader): Remove duplicate
61 "0x" prefix on address in log message.
62
a1855c1d
DE
63 * dwarf2read.c (read_1_byte): Add const to buf parameter.
64 (read_1_signed_byte, read_2_bytes, read_2_signed_bytes): Ditto.
65 (read_4_bytes, read_4_signed_bytes, read_8_bytes): Ditto.
66 (lookup_dwo_file): Add const to dwo_name parameter.
67 (lookup_dwo_comp_unit, lookup_dwo_type_unit): Ditto.
68
2e24f4aa
JK
692012-10-06 Jan Kratochvil <jan.kratochvil@redhat.com>
70
71 Fix crash during stepping on ppc32.
72 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Test NULL
73 SYM.
74
aa14df25
DE
752012-10-03 Doug Evans <dje@google.com>
76
77 PR symtab/14601
78 * buildsym.c (buildsym_init): Reset using_directives to NULL.
79
3d468296
AB
802012-10-02 Andrew Burgess <aburgess@broadcom.com>
81
82 * remote-sim.c (dump_mem): Always dump buffer contents, zero fill
83 output and use uint32_t not long to ensure 4 byte size.
84
8f0ee2eb
JB
852012-10-02 Joel Brobecker <brobecker@adacore.com>
86
87 * rs6000-nat.c (add_vmap): Set "last" to "next" after having
88 unref'ed it.
89
b3dc46ff
AB
902012-10-01 Andrew Burgess <aburgess@broadcom.com>
91
92 * target.c (simple_search_memory): Include access length in
93 warning message.
94
f712f01f
EBM
952012-09-28 Nathan Miller <nathanm2@us.ibm.com>
96 Edjunior Machado <emachado@linux.vnet.ibm.com>
97
98 PR gdb/13989
99 * solib.c (solib_find): Prevent GDB from loading native libraries when
100 debugging a cross-target corefile.
101
39181896
PA
1022012-09-28 selven <pcthegreat@gmail.com>
103
104 Make definition match declaration.
105
106 * regcache.c (regcache_register_status): Change return type to
107 enum register_status.
108
4c2786ba
YQ
1092012-09-28 Yao Qi <yao@codesourcery.com>
110
111 * mi/mi-main.c (mi_cmd_data_write_memory): Call
112 write_memory_with_notification instead of write_memory.
113 (mi_cmd_data_write_memory_bytes): Call write_memory_with_notification
114 instead of target_write_memory.
115
1ae0c35e
YQ
1162012-09-28 Yao Qi <yao@codesourcery.com>
117
118 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Emit error
119 when the length of content is not an even number.
120
7977e5d2
TT
1212012-09-27 Tom Tromey <tromey@redhat.com>
122
123 Fix https://bugzilla.redhat.com/show_bug.cgi?id=849357
124 * cp-valprint.c (cp_print_value_fields): Use get_vptr_fieldno.
125
807160da
JB
1262012-09-27 Joel Brobecker <brobecker@adacore.com>
127
128 * sol-thread.c (sol_thread_fetch_registers)
129 (sol_thread_store_registers): Delete commented out code.
130
43c75337
JB
1312012-09-27 Joel Brobecker <brobecker@adacore.com>
132
133 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
134 Move these functions to sparc-sol-thread.c.
135 * sparc-sol-thread.c: New file.
136 * configure.ac: Add sparc-sol-thread.o to CONFIG_OBS and
137 sparc-sol-thread.c to CONFIG_SRCS for sparc-solaris native
138 configurations.
139 * configure: Regenerate.
140
d292a972
JB
1412012-09-27 Joel Brobecker <brobecker@adacore.com>
142
143 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
144 Remove commented-out code.
145
8c3da003
JB
1462012-09-27 Joel Brobecker <brobecker@adacore.com>
147
148 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
149 Enable this code for sparc hosts only.
150
f00482b6
JB
1512012-09-27 Joel Brobecker <brobecker@adacore.com>
152
153 * procfs.h (procfs_find_LDT_entry): Add declaration.
154 * sol-thread.c (ps_lgetLDT): Delete local declaration of
155 function procfs_find_LDT_entry.
156
337c776f
JB
1572012-09-27 Joel Brobecker <brobecker@adacore.com>
158
159 * procfs.c (proc_get_LDT_entry): Make static.
160
1a04d88f
JB
1612012-09-27 Joel Brobecker <brobecker@adacore.com>
162
163 * procfs.c (proc_find_memory_regions): Fix declaration.
164
bad43aa5
SP
1652012-09-27 Siddhesh Poyarekar <siddhesh@redhat.com>
166
167 * amd64-tdep.c (amd64_return_value): Revert previous change
168 that used TYPE_LENGTH directly.
169 * bfin-tdep.c (bfin_extract_return_value): Likewise.
170 (bfin_store_return_value): Likewise.
171 * cris-tdep.c (cris_store_return_value): Likewise.
172 (cris_extract_return_value): Likewise.
173 * h8300-tdep.c (h8300_extract_return_value): Likewise.
174 * hppa-tdep.c (hppa64_return_value): Likewise.
175 * lm32-tdep.c (lm32_store_return_value): Likewise.
176 * microblaze-tdep.c (microblaze_store_return_value): Likewise.
177 * spu-tdep.c (spu_value_from_register): Likewise.
178 * vax-tdep.c (vax_return_value): Likewise.
179
63375b74
SP
1802012-09-27 Siddhesh Poyarekar <siddhesh@redhat.com>
181
182 * gdbtypes.c (lookup_array_range_type): Expand parameters
183 LOW_BOUND and HIGH_BOUND to LONGEST.
184 (lookup_string_range_type): Likewise.
185 * gdbtypes.h (lookup_array_range_type): Likewise.
186 (lookup_string_range_type): Likewise.
187 * valops.c (value_cstring): Expand parameter LEN to ssize_t.
188 Expand HIGHBOUND to ssize_t.
189 (value_string): Likewise.
190 * value.h (value_cstring): Expand parameter LEN to ssize_t.
191 (value_string): Likewise.
192
19ca11c5
YQ
1932012-09-27 Yao Qi <yao@codesourcery.com>
194
195 PR breakpoints/13898
196 * breakpoint.h (tracepoint_breakpoint_ops): Forward declaration.
197 * mi/mi-cmd-break.c (mi_cmd_break_insert): Set breakpoint_ops
198 per breakpoint type.
199
92107356
PM
2002012-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
201
202 * procfs.c: Add gdb_bfd header.
203 * rs6000-nat.c: Likewise.
204 * solib-pa64.c: Likewise.
205 * spu-linux-nat.c: Likewise.
206 * windows-nat.c: Likewise.
207
9742094a
TT
2082012-09-26 Tom Tromey <tromey@redhat.com>
209
210 * f-lang.h (BLANK_COMMON_NAME_LOCAL): Remove.
211
0971de02
TT
2122012-09-26 Tom Tromey <tromey@redhat.com>
213
214 * dwarf2read.c (mark_common_block_symbol_computed): New function.
215 (read_common_block): Handle child DIEs with
216 DW_AT_data_member_location.
217 (new_symbol_full): Add special case for common blocks.
218
4357ac6c
TT
2192012-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
220 Tom Tromey <tromey@redhat.com>
221
222 * dwarf2read.c (read_common_block): Rewrite.
223 (new_symbol_full): Handle DW_TAG_common_block.
224 * f-lang.c (head_common_list, find_common_for_function):
225 Remove.
226 * f-lang.h (struct common_entry, struct saved_f77_common,
227 SAVED_F77_COMMON, SAVED_F77_COMMON_PTR, COMMON_ENTRY,
228 COMMON_ENTRY_PTR, head_common_list, find_common_for_function,
229 BLANK_COMMON_NAME_LOCAL): Remove.
230 (struct common_block): New.
231 * f-valprint.c (list_all_visible_commons): Remove.
232 (info_common_command_for_block): New function.
233 (info_common_command): Use it.
234 * stack.c (iterate_over_block_locals): Special case for
235 COMMON_BLOCK_DOMAIN.
236 * symtab.h (enum domain_enum_tag) <COMMON_BLOCK_DOMAIN>: New
237 constant.
238 (struct general_symbol_info) <value.common_block>: New field.
239 (SYMBOL_VALUE_COMMON_BLOCK): New define.
240
965f07a8
TT
2412012-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
242 Tom Tromey <tromey@redhat.com>
243
244 * f-lang.c (allocate_saved_bf_node,
245 allocate_saved_function_node, allocate_saved_f77_common_node,
246 allocate_common_entry_node, tail_common_list, current_common,
247 saved_bf_list, saved_bf_list_end, current_head_bf_list,
248 tmp_bf_ptr, add_common_block, add_common_entry,
249 find_first_common_named, patch_common_entries,
250 patch_all_commons_by_name, ADD_BF_SYMNUM, clear_bf_list,
251 global_remote_debug, get_bf_for_fcn, saved_function_list,
252 saved_function_list_end, clear_function_list, struct saved_fcn,
253 struct saved_bf_symnum, SAVED_FUNCTION, SAVED_FUNCTION_PTR,
254 SAVED_BF, SAVED_BF_PTR): Remove.
255 * f-lang.h (tail_common_list, current_common,
256 UNINITIALIZED_SECNUM, COMMON_NEEDS_PATCHING,
257 BLANK_COMMON_NAME_ORIGINAL, BLANK_COMMON_NAME_MF77,
258 DEFAULT_UPPER_BOUND, DEFAULT_LOWER_BOUND, real_main_name,
259 real_main_c_value): Remove.
260 * f-valprint.c (there_is_a_visible_common_named): Remove.
261
6f380991
AB
2622012-09-26 Andrew Burgess <aburgess@broadcom.com>
263
264 * breakpoint.c (update_global_location_list): Ignore previous
265 duplicate status of a breakpoint when starting a new scan for
266 duplicate breakpoints.
267
9ead7ae4 2682012-09-26 Karthik Bhat <kv.bhat@samsung.com>
8b3d5494 269 PR breakpoints/14419
2536b51c
YQ
270 * arm-tdep.c (arm_skip_prologue): Extending producer check to
271 support LLVM compiler.
9ead7ae4 272
8f8a23a2
SP
2732012-09-26 Siddhesh Poyarekar <siddhesh@redhat.com>
274
275 * amd64-tdep.c (amd64_return_value): Use TYPE_LENGTH directly.
276 * bfin-tdep.c (bfin_extract_return_value): Likewise.
277 (bfin_store_return_value): Likewise.
278 * cris-tdep.c (cris_store_return_value): Likewise.
279 (cris_extract_return_value): Likewise.
280 * h8300-tdep.c (h8300_extract_return_value): Likewise.
281 * hppa-tdep.c (hppa64_return_value): Likewise.
282 * lm32-tdep.c (lm32_store_return_value): Likewise.
283 * microblaze-tdep.c (microblaze_store_return_value): Likewise.
284 * spu-tdep.c (spu_value_from_register): Likewise.
285 * vax-tdep.c (vax_return_value): Likewise.
286
d7019589
SP
2872012-09-26 Siddhesh Poyarekar <siddhesh@redhat.com>
288
289 * breakpoint.c (invalidate_bp_value_on_memory_change): Expand
290 parameter LEN to ssize_t.
291
744a8059
SP
2922012-09-25 Siddhesh Poyarekar <siddhesh@redhat.com>
293
294 * ada-valprint.c (ada_val_print_1): Eliminate single-use
295 variable LEN.
296 * alpha-tdep.c (alpha_extract_return_value): Use TYPE_LENGTH
297 directly.
298 (alpha_store_return_value): Likewise.
299 * amd64-tdep.c (amd64_classify_aggregate): Likewise.
300 (amd64_push_arguments): Likewise.
301 * ax-gdb.c (gen_trace_static_fields): Likewise.
302 (gen_traced_pop): Likewise.
303 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
304 * breakpoint.c (update_watchpoint): Likewise.
305 * findcmd.c (parse_find_args): Use local variable for type
306 instead of length.
307 * findvar.c (default_read_var_value): Use TYPE_LENGTH directly.
308 * h8300-tdep.c (h8300h_extract_return_value): Likewise.
309 (h8300_store_return_value): Likewise.
310 * i386-darwin-tdep.c (i386_darwin_push_dummy_call): Likewise.
311 Use i386_darwin_arg_type_alignment directly.
312 * infcall.c (call_function_by_hand): Use TYPE_LENGTH directly.
313 * lm32-tdep.c (lm32_push_dummy_call): Likewise.
314 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
315 (m68hc11_extract_return_value): Likewise.
316 * mep-tdep.c (mep_push_dummy_call): Likewise.
317 * printcmd.c (float_type_from_length): Likewise.
318 * s390-tdep.c (s390_value_from_register): Likewise.
319 * stack.c (read_frame_arg): Likewise.
320 * tracepoint.c (encode_actions_1): Likewise.
321 * valops.c (value_fetch_lazy): Use local variable for type
322 instead of length. Use TYPE_LENGTH directly.
323 * value.c (value_contents_equal): Use TYPE_LENGTH directly.
324
a4b411d6
JB
3252012-09-25 Joel Brobecker <brobecker@adacore.com>
326
327 * symtab.c (skip_prologue_sal): Fix typo in comment.
328
11dba07a
JB
3292012-09-25 Joel Brobecker <brobecker@adacore.com>
330
331 * linespec.c (create_sals_line_offset): Fix typo in comment.
332
318102b9
SP
3332012-09-25 Siddhesh Poyarekar <siddhesh@redhat.com>
334
335 * c-typeprint.c (c_type_print_varspec_suffix): Remove cast and
336 use plongest to print the array size.
337
b4aa388a
SP
3382012-09-24 Siddhesh Poyarekar <siddhesh@redhat.com>
339
340 * m2-typeprint.c (m2_enum): Expand LASTVAL to LONGEST.
341 * p-valprint.c (pascal_type_print_base): Likewise.
342
84cebc4a
YQ
3432012-09-22 Yao Qi <yao@codesourcery.com>
344
345 * remote.c (remote_get_trace_status): Remove setting default
346 values of fields of 'ts'.
347
04e7407c
JK
3482012-09-21 Jan Kratochvil <jan.kratochvil@redhat.com>
349
350 Fix internal error on canonicalization of clang types.
351 * cp-name-parser.y (operator): New comment at make_operator call for
352 new, delete, new[] and delete[].
353 (exp): Use "sizeof ". Add new comment at make_operator call.
354
9bf4bce9
JK
3552012-09-21 Jan Kratochvil <jan.kratochvil@redhat.com>
356
357 Fix disassemble without parameters in tailcall frame.
358 * cli/cli-cmds.c (disassemble_current_function): Use
359 get_frame_address_in_block.
360
1c5b7826
TT
3612012-09-21 Tom Tromey <tromey@redhat.com>
362
363 * c-typeprint.c (c_type_print_base) <TYPE_CODE_STRUCT,
364 TYPE_CODE_UNION>: Unify, removing a goto.
365
62a49610
TT
3662012-09-21 Tom Tromey <tromey@redhat.com>
367
368 * c-typeprint.c (cp_type_print_derivation_info): Fix comment.
369
2603f7ee
AB
3702012-09-21 Andrew Burgess <aburgess@broadcom.com>
371
372 * findvar.c (read_frame_register_value): Mark the result value as
373 optimized out if any of the input registers have been optimized out.
374
810849a3
AS
3752012-09-21 Andreas Schwab <schwab@linux-m68k.org>
376
377 * python/python.c (finalize_python): Only define if HAVE_PYTHON.
378
0953dec1
SP
3792012-09-21 Siddhesh Poyarekar <siddhesh@redhat.com>
380
381 * eval.c (evaluate_subexp_standard): Eliminate single-use
382 variable LOWER.
383
82a90ccf
YQ
3842012-09-21 Yao Qi <yao@codesourcery.com>
385
386 * mi/mi-interp.c: Declare mi_record_changed.
387 (mi_interpreter_init): Call observer_attach_record_changed.
388 (mi_record_changed): New.
389 * record.c (record_open): Call observer_notify_record_changed.
390 (cmd_record_stop): Call observer_notify_record_changed.
391 * NEWS: Mention it.
392
d7de8e3c
TT
3932012-09-20 Tom Tromey <tromey@redhat.com>
394
395 * NEWS: Update.
396 * python/python.c (finalize_python): New function.
397 (_initialize_python): Make a final cleanup.
398
43c7c83d
DE
3992012-09-19 Doug Evans <dje@google.com>
400
401 * buildsym.h (param_symbols): Delete, unused.
402 (context_stack): Delete member "params", unused.
403 * buildsym.c (push_context): Update.
404 * dwarf2read.c (read_func_scope): Update.
405
aa9259cc
TS
4062012-09-19 Thomas Schwinge <thomas@codesourcery.com>
407
a6521d9a
TS
408 * sh-tdep.c (sh_register_convert_to_virtual)
409 (sh_register_convert_to_raw): Add a gdbarch parameter. Update
410 all callers. Just do a memcpy if not the little-endian case.
411
f92589cb
TS
412 * h8300-tdep.c (h8300_gdbarch_init): Invoke
413 set_gdbarch_double_format and set_gdbarch_long_double_format.
414 * m68hc11-tdep.c (m68hc11_gdbarch_init): Invoke
415 set_gdbarch_double_format.
416 * sh-tdep.c (sh_gdbarch_init): Likewise.
417
aa9259cc
TS
418 * NEWS: Document the removal of SH's 'regs' command.
419 * sh-tdep.c (_initialize_sh_tdep): Remove the deprecated 'regs'
420 command.
421
c1d780c2
SDJ
4222012-09-18 Sergio Durigan Junior <sergiodj@redhat.com>
423
424 * infcmd.c (_initialize_infcmd): Register `j' as an alias for
425 `jump'.
426
4ae24af0
JB
4272012-09-18 Joel Brobecker <brobecker@adacore.com>
428
429 * linespec.c (iterate_over_all_matching_symtabs): Use the correct
430 language when iterating over symbols.
431
bb25a15c
YQ
4322012-09-18 Yao Qi <yao@codesourcery.com>
433
434 * mi/mi-interp.c: Declare mi_tsv_created and mi_tsv_deleted.
435 (mi_interpreter_init): Call observer_attach_tsv_created and
436 observer_attach_tsv_deleted.
437 (mi_tsv_created, mi_tsv_deleted): New.
438 * tracepoint.c (delete_trace_state_variable): Call
439 observer_notify_tsv_deleted.
440 (trace_variable_command): Call observer_notify_tsv_created.
441 (delete_trace_variable_command): Call
442 observer_notify_tsv_deleted.
443 (create_tsv_from_upload): Call observer_notify_tsv_created.
444 * NEWS: Mention it.
445
201b4506
YQ
4462012-09-18 Yao Qi <yao@codesourcery.com>
447
448 * tracepoint.c (tfind_1): Call observer_notify_traceframe_changed
449 if traceframe changed.
450 * mi/mi-cmds.c (mi_cmd mi_cmds): Adjust for command
451 "trace-find".
452 * mi/mi-interp.c: Declare 'mi_traceframe_changed'.
453 (mi_interpreter_init): Hook mi_traceframe_changed to observer
454 'traceframe_changed'.
455 (mi_traceframe_changed): New.
456 * mi/mi-main.h (struct mi_suppress_notification) <traceframe>:
457 New field.
458 * NEWS: Mention the new MI notification.
459
eaeb12db
MW
4602012-09-17 Mike Wrighton <wrighton@codesourcery.com>
461
462 * MAINTAINERS (Write After Approval): Add "Mike Wrighton".
463
6e3c039e
JK
4642012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
465
466 * common/linux-ptrace.c: Change __i386__ to __i386__ || __x86_64__.
467 (linux_ptrace_test_ret_to_nx): Extend comment for x86_64. Change
468 __i386__ to __i386__ || __x86_64__. Extend code also for __x86_64__.
469 Extend code also for PaX support. Convert all gdb_assert to warning
470 calls.
471
9a950c7c
JK
4722012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
473
474 Implement auto-load user conveniences suggested by Doug Evans.
475 * auto-load.c: Include top.h.
476 (file_is_auto_load_safe): New variable advice_printed. Print advice.
477 (_initialize_auto_load): New variable scripts_directory_help. Mention
478 GDBPY_AUTO_FILE_NAME and GDB_AUTO_FILE_NAME for set auto-load
479 scripts-directory. Document in online help one can use also files for
480 set auto-load safe-path.
481 * python/py-auto-load.c: (GDBPY_AUTO_FILE_NAME): Move it from here ...
482 * python/python.h (GDBPY_AUTO_FILE_NAME): ... to here.
483
deec9a9d
SP
4842012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
485
486 * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused definition
487 of LEN.
488
354ecfd5
SP
4892012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
490
491 * m2-valprint.c (m2_print_array_contents): Eliminate variable
492 ELTLEN and use TYPE_LENGTH directly.
493 (m2_val_print): Likewise.
494 * m68k-tdep.c (m68k_svr4_extract_return_value): Eliminate
495 variable LEN and use TYPE_LENGTH directly.
496 (m68k_svr4_store_return_value): Likewise.
497 * mips-tdep.c (mips_o32_push_dummy_call): Eliminate variable
498 ARGLEN and use TYPE_LENGTH directly.
499 (mips_o64_push_dummy_call): Likewise.
500 * s390-tdep (s390_function_arg_pass_by_reference): Eliminate
501 variable LENGTH and use TYPE_LENGTH directly.
502 (s390_function_arg_float): Likewise.
503 (s390_function_arg_integer): Likewise.
504 (s390_push_dummy_call): Likewise.
505 (s390_return_value_convention): Likewise.
506 * spu-tdep.c (spu_push_dummy_call): Eliminate LEN and use
507 TYPE_LENGTH directly.
508
6fc1c773
YQ
5092012-09-17 Yao Qi <yao@codesourcery.com>
510
511 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): New.
512 Update comment to add_setshow_integer_cmd.
513 * cli/cli-setshow.c (do_set_command): Handle case
514 'var_zuinteger_unlimited'.
515 (do_show_command): Likewise.
516 * cli/cli-cmds.c (init_cmds): Call add_setshow_zuinteger_unlimited_cmd
517 for command 'remotetimeout'.
518 * command.h (enum var_types): New zuinteger_unlimited. Update comment
519 to var_integer.
520 * source.c (_initialize_source): Call add_setshow_zuinteger_unlimited_cmd
521 for command 'set listsize'.
522
6acef6cd
SP
5232012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
524
525 * infrun.c (restore_infcall_suspend_state): Eliminate single-use
526 variable LEN.
527
1ab3b62c
JK
5282012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
529
530 PR 14119
531 * frame.c (skip_inlined_frames): Skip also TAILCALL_FRAME frames.
532 (frame_pop): Drop also TAILCALL_FRAME frames.
533 * infcmd.c (finish_command): Ignore also TAILCALL_FRAME frames.
534
acf9414f
JK
5352012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
536 Pedro Alves <palves@redhat.com>
537
538 PR 14548
539 * infrun.c (handle_inferior_event): Do not reverse-continue back to the
540 function start if we are already at function start. Both for
541 reverse-next and for reverse-step into function without line number
542 info.
543
193facb3
JK
5442012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
545
546 Code cleanup - rename 'inline' depth to 'artificial' depth.
547 * breakpoint.c (set_momentary_breakpoint): Rename at a caller to
548 frame_id_artificial_p, extend the comment.
549 * dwarf2-frame-tailcall.c (tailcall_frame_this_id): Rename at a user.
550 * frame.c (fprint_frame_id): Rename at a user, change debug output
551 text to "artificial=".
552 (skip_inlined_frames): Rename to ...
553 (skip_artificial_frames): ... here. Extend the comment.
554 (get_stack_frame_id, frame_unwind_caller_id): Rename at a caller.
555 (frame_id_inlined_p): Rename to ...
556 (frame_id_artificial_p): ... here. Rename at a user.
557 (frame_id_eq, frame_id_inner, frame_unwind_caller_pc)
558 (frame_unwind_caller_pc_if_available, frame_unwind_caller_arch): Rename
559 at a user.
560 * frame.h (struct frame_id): Rename inline_depth to artificial_depth.
561 Extend the comment.
562 (frame_id_inlined_p): Rename to ...
563 (frame_id_artificial_p): ... here.
564 * inline-frame.c (inline_frame_this_id): Rename at a user.
565
42056501
AB
5662012-09-14 Andrew Burgess <aburgess@broadcom.com>
567
568 * c-typeprint.c (c_type_print_varspec_suffix): Display the size of
569 vector variables using vector_size syntax rather than array
570 syntax.
571
84c47588
SP
5722012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
573
574 * valarith.c (value_concat): Replace unsafe ALLOCA with
575 XMALLOC/XFREE.
576
f4045bcb
PA
5772012-09-14 Pedro Alves <palves@redhat.com>
578
579 * gdb.1 (SEE ALSO): Expand pointer to GDB's Texinfo manual.
580
63b46266
YPK
5812012-09-14 Khoo Yit Phang <khooyp@cs.umd.edu>
582
583 Point contrib/cc-with-tweaks.sh to the build-local data-directory.
584 * contrib/cc-with-tweaks.sh (GDB): Add -data-directory
585 data-directory as appropriate.
586
ddd7a8e7
SP
5872012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
588
589 * printcmd.c (ui_printf): Eliminate single-use variable
590 PARAM_LEN.
591
d649a38e
YQ
5922012-09-14 Yao Qi <yao@codesourcery.com>
593 Pedro Alves <palves@redhat.com>
594
595 * valops.c (value_assign): Move observer_notify_target_changed
596 below to replace reinit_frame_cache.
597
b9516fa1
YPK
5982012-09-13 Khoo Yit Phang <khooyp@cs.umd.edu>
599
600 Refactor Python "gdb" module into a proper Python package, by
601 introducing a new "_gdb" module for code implemented in C, and
602 using reload/__import__ instead of exec.
603 * python/lib/gdb/__init__.py: Import * from _gdb.
604 (GdbOutputFile, sys.stdout, GdbOutputErrorFile, sys.stderr,
605 prompt_hook, sys.argv): Moved from finish_python_initialization.
606 (pretty_printers, PYTHONDIR): Moved from _initialize_python.
607 (packages, auto_load_packages): New list and function replacing
608 module_dict and auto-loading code, using __file__ instead of
609 gdb.PYTHONDIR and reload/__import__ instead of exec.
610 (GdbSetPythonDirectory): Replacing function of the same name
611 from finish_python_initialization, using reload/__import__ instead
612 of exec, as well as call auto_load_packages.
613 * python/py-prettyprint.c (find_pretty_printer_from_gdb): Check
614 gdb_python_module and not gdb_module.
615 * python/python-internal.h (gdb_python_module): Declare.
616 * python/python.c (gdb_python_module): New global.
617 (before_prompt_hook): Check gdb_python_module and not gdb_module.
618 (_initialize_python): Rename gdb module to _gdb.
619 Move gdb.PYTHONDIR and gdb.pretty_printer to lib/gdb/__init__.py.
620 (finish_python_initialization): Move Python code to
621 lib/gdb/__init__.py; instead, set up sys.path and import gdb into
622 __main__.
623
aa0fbdd8
PA
6242012-09-13 Pedro Alves <palves@redhat.com>
625
626 * Makefile.in (COMMON_OBS): Add registry.o.
627 * registry.c: New file.
628 * registry.h (struct registry_container): Declare.
629 (registry_data_callback): New typedef.
630 (struct registry_data, struct registry_data_registration, struct
631 registry_data_registry): New type.
632 (register_data_with_cleanup, registry_alloc_data)
633 (registry_callback_adaptor, registry_clear_data)
634 (registry_container_free_data, registry_set_data, registry_data):
635 Declare.
636 (DEFINE_REGISTRY): Refactor structures and functions as shims over
637 the new common structures and functions.
638 (DECLARE_REGISTRY): Declare struct TAG ## _data. Use the tagged
639 callback typedefs.
640
42b5c53d
MW
6412012-09-12 Mike Wrighton <wrighton@codesourcery.com>
642
643 * remote.c (remote_insert_hw_breakpoint): Throw exception if
644 there is an error inserting hardware breakpoints and use the
645 error message from the target.
646
647 * breakpoint.c (insert_bp_location, insert_breakpoint_locations):
648 Catch this exception and print the error message contained within. Do not
649 print the default hardware error breakpoint message in this case.
650
a1b64ce1
DE
6512012-09-12 Doug Evans <dje@google.com>
652
653 * dwarf2read.c (dwarf2_read_addr_index): Fix handling the case where
654 cu == NULL.
655
83a788b8
DE
6562012-09-11 Doug Evans <dje@google.com>
657
658 * dwarf2read.c (dw2_do_expand_symtabs_matching): Don't examine
659 .gdb_index symbol attributes if there are none.
660
d9eaeb59
JB
6612012-09-11 Joel Brobecker <brobecker@adacore.com>
662
663 * symtab.h (struct minimal_symbol) [has_size]: New field.
664 (MSYMBOL_SIZE): Adjust to forbid macro from being used as lvalue.
665 (SET_MSYMBOL_SIZE, MSYMBOL_HAS_SIZE): New macros.
666 * printcmd.c (build_address_symbolic): Only filter out zero-sized
667 minimal symbols if the symbol's size is actually known.
668 * minsyms.c (prim_record_minimal_symbol_full): Adjust setting
669 of msymbol's size field. Add comment.
670 * elfread.c (elf_symtab_read, elf_rel_plt_read): Use
671 SET_MSYMBOL_SIZE to set the minimal symbol size.
672
a83e9154
JB
6732012-09-11 Joel Brobecker <brobecker@adacore.com>
674
675 * minsyms.c (install_minimal_symbols): Use memset to fill entire
676 minimal_symbol struct object, rather than setting some of its
677 fields one by one.
678
350b1b26
AB
6792012-09-11 Andrew Burgess <aburgess@broadcom.com>
680
681 * c-typeprint.c (c_type_print_varspec_prefix): Pass through the
682 passed_a_ptr flag when displaying typedef types.
683
2fa15f23
JB
6842012-09-10 Joel Brobecker <brobecker@adacore.com>
685
686 * ada-lang.c (coerce_unspec_val_to_type): Make sure that
687 the optimized_out flag is preserved.
688
5152ff90
AG
6892012-09-10 Anthony Green <green@moxielogic.com>
690
691 * moxie-tdep.c (moxie_analyze_prologue): Update for function
692 prologue changes in GCC.
693
5b4f6e25
KS
6942012-09-10 Keith Seitz <keiths@redhat.com>
695
696 PR gdb/13483
697 * gdbtypes.h (BOOL_PTR_CONVERSION_BADNESS): Rename to ...
698 (BOOL_CONVERSION_BADNESS): ... this.
699 * gdbtypes.c (BOOL_PTR_CONVERSION_BADNESS): Likewise.
700 (rank_one_type): Allow all boolean conversions
701 permitted by the standard.
702
f1070426
TT
7032012-09-06 Tom Tromey <tromey@redhat.com>
704
705 * python/py-newobjfileevent.c (create_new_objfile_event_object):
706 Don't decref py_objfile.
707
a8db4212
YPK
7082012-09-02 Khoo Yit Phang <khooyp@cs.umd.edu>
709
710 Do not enable -lmcheck by default when Python is enabled with
711 threading support.
712 * configure.ac: (python_has_threads) New variable, by testing
713 if WITH_THREAD is defined in Python.h.
714 Move --enable-lmcheck after --with-python.
715 Do not enable -lmcheck by default if python_has_threads=yes.
716 Warn if --enable-lmcheck and python_has_threads=yes.
717 * configure: Regenerate.
718
648beb2b
YQ
7192012-08-31 Yao Qi <yao@codesourcery.com>
720
721 * mi/mi-cmds.c (mi_cmds): New macros DEF_MI_CMD_CLI
722 DEF_MI_CMD_MI DEF_MI_CMD_CLI_1 and DEF_MI_CMD_CLI_1.
723 Update some commands.
724 * mi/mi-cmds.h (struct mi_cmd) <suppress_notification>: New field.
725 * mi/mi-main.c (mi_cmd_execute): Set '*parse->cmd->suppress_notification'
726 to 1.
727
ef07a9f7
YQ
7282012-08-31 Yao Qi <yao@codesourcery.com>
729
730 * mi/mi-cmds.c (mi_cmds): Add 'static'.
731
fda395cf
YPK
7322012-08-30 Khoo Yit Phang <khooyp@cs.umd.edu>
733
734 * MAINTAINERS (Write After Approval): Add "Khoo Yit Phang".
735
8efd8e78
DE
7362012-08-29 Doug Evans <dje@google.com>
737
738 * main.c (print_gdb_help): Remove reference to
739 --use-deprecated-index-sections.
740
883b9c6c
YQ
7412012-08-28 Yao Qi <yao@codesourcery.com>
742
743 * cli/cli-cmds.c (max_user_call_depth): Add 'unsigned'.
744 (init_cmds): Call add_setshow_uinteger_cmd for command
745 'max-user-call-depth'.
746 * cli/cli-script.c (execute_user_command): Add 'unsigned' to the
747 declaration of 'max_user_call_depth'.
748 * frame.c (backtrace_limit): Add 'unsigned'.
749 (_initialize_frame): Call add_setshow_uinteger_cmd for command
750 'limit'.
751 * remote.c (remoteaddresssize): Add 'unsigned'.
752 (remote_address_masked): Change local var 'address_size' to
753 'unsigned'.
754 (_initialize_remote): Call add_setshow_uinteger_cmd for
755 'remoteaddresssize'.
756 * top.c (history_size): Add 'unsigned'.
757 (show_commands): Change local variables to 'unsigned'.
758 (set_history_size_command): Don't check history_size is negative.
759 Adjust the condition to call unstifle_history and set history_size
760 to UNIT_MAX.
761
1292279a
PA
7622012-08-28 Pedro Alves <palves@redhat.com>
763
764 PR gdb/14428
765
766 * infcmd.c (default_print_one_register_info): New, factored out
767 from default_print_registers_info.
768 (default_print_registers_info): Use it. Mark value unavailable if
769 necessary.
770 (registers_info): Print user registers with
771 default_print_one_register_info.
772
f629cd75
L
7732010-08-27 H.J. Lu <hongjiu.lu@intel.com>
774
775 PR tui/14486
776 * tui/tui-source.c (tui_source_is_displayed): Check if TUI_SRC_WIN
777 is not NULL before referencing it.
778
1c8cdcb1
JK
7792012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
780
781 * breakpoint.c (parse_breakpoint_sals) <(*address) == NULL>: New
782 variable pc. Call find_pc_line instead of find_pc_overlay, restore
783 original PC for it.
784
e9687799
JK
7852012-08-27 Eli Zaretskii <eliz@gnu.org>
786 Jan Kratochvil <jan.kratochvil@redhat.com>
787
788 * auto-load.c (auto_load_objfile_script): Rename to ...
789 (auto_load_objfile_script_1): ... here, change variable realname to
790 parameter realname, document it, add return value, add variable retval.
791 (auto_load_objfile_script): New function.
792
7afa1642
JK
7932012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
794
795 * cli/cli-decode.c (print_doc_line): Keep skipping '.' and ',' not
796 followed by a whitespace.
797
dc7650b8
JK
7982012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
799
28e66c70 800 PR gdb/14494.
dc7650b8
JK
801 * dwarf2read.c (dwarf2_locate_sections): Move variable aflag here.
802 Move the SEC_HAS_CONTENTS check here - for any NAMES use.
803 (dwarf2_locate_sections) <eh_frame>: Move the variable and check from
804 here.
805
1591a1e8
PA
8062012-08-27 Wei-cheng Wang <cole945@gmail.com>
807
808 * memattr.c (create_mem_region): Fix memory region overlapping
809 checking.
810
ecfb0d68
SP
8112012-08-24 Siddhesh Poyarekar <siddhesh@redhat.com>
812
813 * h8300-tdep.c (h8300_push_dummy_call): Replace unsafe alloca
814 with xmalloc/cleanup.
815 * mt-tdep.c (mt_push_dummy_call): Likewise.
816 * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
817 * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
818
8c56c1b9
YQ
8192012-08-24 Yao Qi <yao@codesourcery.com>
820
821 * jv-exp.y (push_expression_name): Add "." at the end of error
822 message.
823
e3480f4a
YPK
8242012-08-23 Khoo Yit Phang <khooyp@cs.umd.edu>
825
826 Document how to return from "python-interactive" to GDB.
e3480f4a
YPK
827 * python/python.c (_initialize_python): Update documentation.
828
dfbd5e7b
PA
8292012-08-23 Pedro Alves <palves@redhat.com>
830
831 * infrun.c (_initialize_infrun) <handle command help text>:
832 Mention that multiple signals are supported.
833
2edda2ff
PA
8342012-08-23 Pedro Alves <palves@redhat.com>
835
836 * infcmd.c (_initialize_infcmd) <signal command>: Fix typo in help
837 string.
838
8d735b87
YQ
8392012-08-23 Yao Qi <yao@codesourcery.com>
840
841 * tracepoint.c (disconnect_tracing): Call set_tracepoint_num.
842 (tfind_1): Don't call registers_changed, set_traceframe_num,
843 and clear_traceframe_info.
844 Call set_current_traceframe.
845 (set_current_traceframe): call set_traceframe_num.
846
c5d9b215
SDJ
8472012-08-22 Sergio Durigan Junior <sergiodj@redhat.com>
848
849 * remote-sim.c (_initialize_remote_sim): Pass NULL argument to
850 `register_inferior_data_with_cleanup', fixing regression on PowerPC64.
851
037bbc8e
YPK
8522012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
853
854 Enable readline in Python in a GDB-specific way and block the
855 standard Python readline module to prevent conflicts with GDB.
856 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-gdb-readline.o.
857 (SUBDIR_PYTHON_SRCS): Add python/py-gdb-readline.c.
858 (py-gdb-readline.o): Add rule to compile python/py-gdb-readline.c.
859 * python/py-gdb-readline.c: New file.
860 * python/python-internal.h (gdbpy_initialize_gdb_readline): New
861 prototype.
862 * python/python.c (_initialize_python): Call
863 gdbpy_initialize_gdb_readline.
864
406b1477
KS
8652012-08-22 Keith Seitz <keiths@redhat.com>
866
867 * defs.h: Include build-gnulib/config.h
868
6ca1b147
JM
8692012-08-22 Joseph Myers <joseph@codesourcery.com>
870
871 * arm-tdep.c (thumb_get_next_pc_raw): Mask off low bits for bx pc
872 and blx pc.
873
8315665e
YPK
8742012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
875
876 Add a new "python-interactive" command that starts a standard
877 Python interactive prompt with "pi" as alias, and add "py" as
878 an alias to "python".
879 * NEWS: Mention the new commands.
8315665e
YPK
880 * python/python.c (eval_python_command): New function.
881 (python_interactive_command): For "python-interactive" with
882 arguments, call eval_python_command. For "python-interactive"
883 without arguments, call PyRun_InteractiveLoop.
884 (_initialize_python): Add "python-interactive" command with
885 "pi" as alias, and add "py" as an alias to "python".
886
522002f9
TT
8872012-08-22 Tom Tromey <tromey@redhat.com>
888
889 * defs.h (quit_flag): Don't declare.
890 (clear_quit_flag, check_quit_flag, set_quit_flag): Declare.
891 (QUIT): Use new functions.
892 * event-top.c (command_handler): Use clear_quit_flag.
893 (handle_sigint): Use set_quit_flag.
894 (async_request_quit): Use check_quit_flag. Don't check
895 immediate_quit.
896 * exceptions.c (throw_exception): Use clear_quit_flag.
897 * main.c (captured_main): Use clear_quit_flag.
898 * python/python.c (clear_quit_flag, set_quit_flag)
899 (check_quit_flag): New functions.
900 * remote-sim.c (gdb_os_poll_quit): Use check_quit_flag,
901 clear_quit_flag.
902 * remote.c (remote_wait_as): Use check_quit_flag,
903 clear_quit_flag.
904 (remote_start_remote): Call QUIT.
905 * symfile.c (load_progress): Use check_quit_flag.
906 * top.c (command_loop): Use clear_quit_flag.
907 (command_line_input): Call QUIT.
908 * utils.c (quit_flag): Conditionally define.
909 (clear_quit_flag, check_quit_flag, set_quit_flag): New
910 functions.
911 (prompt_for_continue): Call QUIT. Use quit, not
912 async_request_quit.
913 * remote-mips.c (mips_expect_timeout): Call QUIT.
914 * monitor.c (monitor_expect): Call QUIT.
915
b583003e
TT
9162012-08-22 Tom Tromey <tromey@redhat.com>
917
918 * event-top.c (sigwinch_token, handle_sigwinch): Remove.
919 (async_init_signals): Update.
920 * utils.c (init_page_info): Don't use SIGWINCH_HANDLER.
921 (SIGWINCH_HANDLER_BODY): Remove.
922
e1507e95
TT
9232012-08-22 Tom Tromey <tromey@redhat.com>
924
925 * jit.c (jit_object_close_impl): Don't malloc the objfile
926 name.
927 * objfiles.c (allocate_objfile): Don't malloc the objfile
928 name.
929 (free_objfile): Don't free the objfile name.
930 * objfiles.h (struct objfile) <name>: Update comment.
931 * symfile.c (reread_symbols): Fix reference counting. Don't
932 malloc objfile name.
933
1c00ec6b
TT
9342012-08-22 Tom Tromey <tromey@redhat.com>
935
936 * windows-nat.c (windows_make_so): Use gdb_bfd_open.
937 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_open.
938 (symfile_bfd_open): Likewise.
939 (generic_load): Likewise.
940 * solib.c (solib_bfd_fopen): Use gdb_bfd_open.
941 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
942 gdb_bfd_open.
943 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
944 Use gdb_bfd_open.
945 * rs6000-nat.c (add_vmap): Use gdb_bfd_open.
946 * remote-mips.c (mips_load_srec): Use gdb_bfd_open.
947 (pmon_load_fast): Likewise.
948 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_open.
949 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_open.
950 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_open.
951 (macho_check_dsym): Likewise.
952 * m32r-rom.c (m32r_load): Use gdb_bfd_open.
953 (m32r_upload_command): Likewise.
954 * gdb_bfd.h (gdb_bfd_cache): Declare.
955 * gdb_bfd.c (struct gdb_bfd_data): New.
956 (gdb_bfd_cache): New global.
957 (struct gdb_bfd_cache_search): New.
958 (hash_bfd): New function.
959 (eq_bfd): Likewise.
960 (gdb_bfd_open): Likewise.
961 (gdb_bfd_ref): Allocate a gdb_bfd_data and attach to the BFD.
962 (gdb_bfd_unref): Remove closed BFD from cache. Update for
963 gdb_bfd_data.
964 * exec.c (exec_file_attach): Use gdb_bfd_open.
965 * dsrec.c (load_srec): Use gdb_bfd_open.
966
6532ff36
TT
9672012-08-22 Tom Tromey <tromey@redhat.com>
968
969 * dwarf2read.c (macro_start_file): Update.
970 * objfiles.c (get_objfile_bfd_data): Initialize macro_cache.
971 (free_objfile_per_bfd_storage): Destroy macro_cache.
972 (allocate_objfile, free_objfile): Update.
973 * objfiles.h (struct objfile_per_bfd_storage) <macro_cache>:
974 New field.
975 (struct objfile) <macro_cache>: Remove.
976 * symfile.c (reread_symbols): Update.
977 * symmisc.c (print_symbol_bcache_statistics): Update.
978 (print_objfile_statistics): Update.
979
706e3705
TT
9802012-08-22 Tom Tromey <tromey@redhat.com>
981
982 * elfread.c (elf_symtab_read): Update.
983 * objfiles.c (objfiles_bfd_data): New global.
984 (get_objfile_bfd_data, free_objfile_per_bfd_storage)
985 (objfile_bfd_data_free, set_objfile_per_bfd): New functions.
986 (allocate_objfile, free_objfile): Update.
987 (_initialize_objfiles): Initialize objfiles_bfd_data.
988 * objfiles.h (struct objfile_per_bfd_storage): New.
989 (struct objfile) <per_bfd>: New field.
990 <filename_cache>: Remove.
991 (set_objfile_per_bfd): Declare.
992 * symfile.c (reread_symbols): Update. Call
993 set_objfile_per_bfd.
994 (allocate_symtab): Update.
995 * symmisc.c (print_symbol_bcache_statistics): Update.
996 (print_objfile_statistics): Print the size of the BFD obstack.
997
e992eda4
TT
9982012-08-22 Tom Tromey <tromey@redhat.com>
999
1000 * gdb_bfd.h: Include registry.h. Use DECLARE_REGISTRY.
1001 * gdb_bfd.c: Use DEFINE_REGISTRY.
1002 (struct gdb_bfd_data): Add REGISTRY_FIELDS.
1003 (gdb_bfd_ref): Call bfd_alloc_data.
1004 (gdb_bfd_unref): Call bfd_free_data.
1005
6b81941e
TT
10062012-08-22 Tom Tromey <tromey@redhat.com>
1007
1008 * registry.h (struct registry_fields): New.
1009 (REGISTRY_FIELDS): Redefine.
1010 (REGISTRY_ACCESS_FIELD): New macro.
1011 (DEFINE_REGISTRY): Add ACCESS argument. Update defined
1012 functions.
1013
8e260fc0
TT
10142012-08-22 Tom Tromey <tromey@redhat.com>
1015
1016 * auto-load.c (_initialize_auto_load): Update.
1017 * solib-svr4.c (_initialize_svr4_solib): Update
1018 * solib-dsbt.c (_initialize_dsbt_solib): Update.
1019 * solib-darwin.c (_initialize_darwin_solib): Update.
1020 * registry.h: New file.
1021 * python/py-progspace.c (gdbpy_initialize_pspace): Update.
1022 * python/py-inferior.c (gdbpy_initialize_inferior): Update.
1023 * progspace.h: Include registry.h. Use DECLARE_REGISTRY.
1024 (register_program_space_data_with_cleanup)
1025 (register_program_space_data, program_space_alloc_data)
1026 (clear_program_space_data, set_program_space_data)
1027 (program_space_data): Don't declare.
1028 * progspace.c: Use DEFINE_REGISTRY.
1029 (struct program_space_data, struct
1030 program_space_data_registration, struct
1031 program_space_data_registry, program_space_data_registry)
1032 (register_program_space_data_with_cleanup)
1033 (register_program_space_data, program_space_alloc_data)
1034 (program_space_free_data, clear_program_space_data)
1035 (set_program_space_data, program_space_data): Remove.
1036 * objfiles.h: Include registry.h. Use DECLARE_REGISTRY.
1037 (struct objfile) <data, num_data>: Replace with REGISTRY_FIELDS.
1038 (register_objfile_data_with_cleanup, register_objfile_data)
1039 (clear_objfile_data, set_objfile_data, objfile_data): Don't
1040 declare.
1041 * objfiles.c: Use DEFINE_REGISTRY.
1042 (struct objfile_data, struct objfile_data_registration, struct
1043 objfile_data_registry, objfile_data_registry)
1044 (register_objfile_data_with_cleanup, register_objfile_data)
1045 (objfile_alloc_data, objfile_free_data, clear_objfile_data)
1046 (set_objfile_data, objfile_data): Remove.
1047 (_initialize_objfiles): Update.
1048 * jit.c (_initialize_jit): Update.
1049 * inflow.c (_initialize_inflow): Update.
1050 * inferior.h: Include registry.h. Use DECLARE_REGISTRY.
1051 (struct inferior) <data, num_data>: Replace with REGISTRY_FIELDS.
1052 (register_inferior_data_with_cleanup, register_inferior_data)
1053 (clear_inferior_data, set_inferior_data, inferior_data): Don't
1054 declare.
1055 * inferior.c: Use DEFINE_REGISTRY.
1056 (struct inferior_data, struct inferior_data_registration, struct
1057 inferior_data_registry, inferior_data_registry)
1058 (register_inferior_data_with_cleanup, register_inferior_data)
1059 (inferior_alloc_data, inferior_free_data clear_inferior_data)
1060 (set_inferior_data, inferior_data): Remove.
1061 * auxv.c (_initialize_auxv): Update.
1062 * ada-lang.c (_initialize_ada_language): Update.
1063 * breakpoint.c (_initialize_breakpoint): Update.
1064 * i386-nat.c (i386_use_watchpoints): Update.
1065
ed9eebaf
TT
10662012-08-22 Tom Tromey <tromey@redhat.com>
1067
1068 * exec.c (exec_close, exec_file_attach): Update.
1069 (add_to_section_table): Initialize 'key' field.
1070 (add_target_sections, remove_target_sections): Add 'key' argument.
1071 * exec.h (add_target_sections, remove_target_sections): Add
1072 'key' argument.
1073 * solib.c (solib_map_sections, update_solib_list, clear_solib)
1074 (reload_shared_libraries_1): Update.
1075 * target.h (struct target_section) <key>: New field.
1076
2f2e97fa
TT
10772012-08-22 Tom Tromey <tromey@redhat.com>
1078
1079 * cli/cli-cmds.c (filter_sals): Handle nelts == 0 case.
1080
b3dbbd6f
PM
10812012-08-21 Pierre Muller <muller@ics.u-strasbg.fr>
1082
1083 * symfile.c (allocate_symtab): Use host_address_to_string
1084 function instead of cast of pointer to long which is not
1085 compatible with x86_64-w64-mingw32 build.
1086
f94363d7
AP
10872012-08-19 Andrew Pinski <apinski@cavium.com>
1088
1089 * mips-tdep.c (is_octeon): New function.
1090 (is_octeon_bbit_op): New function.
1091 (mips32_next_pc): Handle Octeon's bbit instructions.
1092 (mips32_instruction_has_delay_slot): Likewise.
1093
78a59c2f
AP
10942012-08-19 Andrew Pinski <apinski@cavium.com>
1095
1096 * mips-tdep.c (mips32_next_pc): Fix line spacing of the comment
1097 before the function.
1098
4f5bcb50
AP
10992012-08-19 Andrew Pinski <apinski@cavium.com>
1100
1101 * mips-tdep.c (mips32_next_pc): Consolidate calls to itype_op.
1102
e5afdbd7
KS
11032012-08-19 Keith Seitz <keiths@redhat.com>
1104
1105 PR c++/14365
1106 * c-typeprint.c (c_type_print_varspec_prefix): Pass
1107 -1 for SHOW to c_type_print_base for METHODPTR and MEMBERPTR.
1108
13c9750e
EZ
11092012-08-18 Eli Zaretskii <eliz@gnu.org>
1110
1111 * Makefile.in (HFILES_NO_SRCDIR): Fix a typo: golang.h -> go-lang.h.
1112 The typo broke "make TAGS".
1113
db761810 11142012-08-17 Joel Brobecker <brobecker@adacore.com>
1115
1116 GDB 7.5 released.
1117
a451cb65
KS
11182012-08-17 Keith Seitz <keiths@redhat.com>
1119
1120 PR c++/13356
1121 * gdbtypes.c (strict_type_checking): New variable.
1122 (show_strict_type_checking): New function.
1123 (rank_one_type): Return NS_POINTER_INTEGER_CONVERSION_BADNESS
1124 if strict type checking is disabled.
1125 (_initialize_gdbtypes): Add "check type" subcommand.
1126 * gdbtypes.h (NS_INTEGER_POINTER_CONVERSION_BADNESS): New struct.
1127
11282012-08-17 Keith Seitz <keiths@redhat.com>
1129
1130 * language.h (type_mode): Remove.
1131 (type_check): Remove.
1132 (struct language_defn): Remove la_type_check.
1133 (STRICT_TYPE): Remove unused macro.
1134 (type_error): Remove.
1135 * language.c (set_type_range_case): Renamed to ...
1136 (set_range_case): ... this. Update all callers.
1137 Remove type_mode/type_check.
1138 (type_mode): Remove.
1139 (type_check): Remove.
1140 (show_type_command): Remove.
1141 (set_type_command): Remove.
1142 (language_info): Remove type checking output.
1143 (type_error): Remove unused function.
1144 (range_error): Update comment.
1145 (unknown_language_defn): Remove la_type_check.
1146 (auto_language_defn): Likewise.
1147 (local_language_defn): Likewise.
1148 (_initialize_language): Remove "check type" subcommand.
1149 * ada-lang.c (ada_language_defn): Remove la_type_check.
1150 * c-lang.c (c_language_defn): Likewise.
1151 (cplus_language_defn): Likewise.
1152 (asm_language_defn): Likewise.
1153 (minimal_language_defn): Likewise.
1154 * d-lang.c (d_language_defn): Likewise.
1155 * f-lang.c (f_language_defn): Likewise.
1156 * go-lang.c (go_language_defn): Likewise.
1157 * jv-lang.c (java_language_defn): Likewise.
1158 * m2-lang.c (m2_language_defn): Likewise.
1159 * objc-lang.c (objc_language_defn): Likewise.
1160 * opencl-lang.c (opencl_language_defn): Likewise.
1161 * p-lang.c (pascal_language_defn): Likewise.
1162
dbf6a605
MF
11632012-08-16 Mike Frysinger <vapier@gentoo.org>
1164
1165 * infcmd.c (_initialize_infcmd): Remove trailing ) in next help text.
1166
973e3cf7
JB
11672012-08-16 Joel Brobecker <brobecker@adacore.com>
1168
1169 * ia64-hpux-nat.c (ia64_hpux_get_register_from_save_state_t):
1170 New function.
1171 (ia64_hpux_xfer_memory): Check if inferior_ptid is known before
1172 using the regache. Use ia64_hpux_get_register_from_save_state_t
1173 to access the bsp and bspstore registers if not.
1174
d80ee84f
JB
11752012-08-16 Joel Brobecker <brobecker@adacore.com>
1176
1177 * breakpoint.h (detach_breakpoints): pid parameter is now a ptid.
1178 * breakpoint.c (detach_breakpoints): Change pid parameter into
1179 a ptid. Adjust code accordingly.
1180 * infrun.c (handle_inferior_event): Delete variable child_pid.
1181 Update call to detach_breakpoints to pass the child ptid for
1182 fork events.
1183 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Remove
1184 assert that inferior_ptid's lwp is zero.
1185 (linux_handle_extended_wait): Update call to detach_breakpoints.
1186 * inf-ttrace.c (inf_ttrace_follow_fork): Update call to
1187 detach_breakpoints.
1188
2dcc6086
JB
11892012-08-16 Joel Brobecker <brobecker@adacore.com>
1190
1191 * inf-ttrace.c (inf_ttrace_follow_fork): When following the
1192 parent, only call detach_breakpoints if tts.tts_event ==
1193 TTEVT_VFORK.
1194
0c92d8c1
JB
11952012-08-16 Joel Brobecker <brobecker@adacore.com>
1196
1197 * dwarf2-frame.c (dwarf2_frame_cache): Use
1198 get_frame_address_in_block instead of get_frame_pc as
1199 the bound for executing the frame's FDE.
1200
6b1755ce
YQ
12012012-08-16 Yao Qi <yao@codesourcery.com>
1202
1203 * gdbtypes.h (enum type_code): Define TYPE_CODE_BITSTRING -1.
1204 * arm-tdep.c (arm_type_align): Remove code handling TYPE_CODE_BITSTRING.
1205 * c-typeprint.c (c_type_print_varspec_prefix): Likewise.
1206 (c_type_print_varspec_suffix): Likewise.
1207 * eval.c (evaluate_subexp_standard): Likewise.
1208 * f-typeprint.c (f_type_print_varspec_prefix): Likewise.
1209 (f_type_print_varspec_suffix): Likewise.
1210 * gdbtypes.c (is_scalar_type): Likewise.
1211 (recursive_dump_type): Likewise.
1212 * infcall.c (value_arg_coerce): Likewise.
1213 * m2-valprint.c (m2_val_print): Likewise.
1214 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
1215 (pascal_type_print_varspec_suffix): Likewise.
1216 (pascal_type_print_base): Likewise.
1217 * p-valprint.c (pascal_val_print): Likewise.
1218 (pascal_val_print): Likewise.
1219 * valops.c (value_slice): Likewise.
1220 * valprint.c (scalar_type_p): Likewise.
1221 * valarith.c (value_bitstring_subscript): Remove.
1222 (value_concat): Remove code handling TYPE_CODE_BITSTRING.
1223 Remove comment on TYPE_CODE_BITSTRING.
1224
1225 * stabsread.c (read_type): Don't set TYPE_CODE (type) to
1226 TYPE_CODE_BITSTRING.
1227
1228 * python/py-type.c (pyty_codes): Move ENTRY (TYPE_CODE_BITSTRING) to
1229 slot 0.
1230
8acc4065
YQ
12312012-08-16 Yao Qi <yao@codesourcery.com>
1232
1233 * tracepoint.c (trace_find_none_command): Remove.
1234 (_initialize_tracepoint): Call add_alias_cmd for "tfind none".
1235
8128fd8e
YQ
12362012-08-16 Yao Qi <yao@codesourcery.com>
1237
1238 * remote.c (handle_notification): Remove parameter 'length'.
1239 (putpkt_binary, getpkt_or_notif_sane_1): Caller update.
1240
2873700e
KS
12412012-08-15 Keith Seitz <keiths@redhat.com>
1242
1243 * gdbtypes.c (opaque_type_resolution): Make static.
1244 Add missing comment.
1245 (overload_debug): Add missing comment.
1246 (show_opaque_type_resolution): Likewise.
1247 (show_overload_debug): Likewise.
1248 (print_bit_vector): Remove unnecessary forward declaration.
1249 (print_arg_types): Likewise.
1250 (dump_fn_fieldlists): Likewise.
1251 (print_cplus_stuff): Likewise.
1252
b82d08cd
TT
12532012-08-15 Tom Tromey <tromey@redhat.com>
1254
1255 * gdb_bfd.c (struct gdb_bfd_data) <archive_bfd>: New field.
1256 (gdb_bfd_ref): Initialize new field.
1257 (gdb_bfd_unref): Unref the archive BFD.
1258 (gdb_bfd_openr_next_archived_file): Acquire a reference to the
1259 parent archive.
1260
db6573d6
TT
12612012-08-15 Tom Tromey <tromey@redhat.com>
1262
1263 PR python/14387:
1264 * python/py-bpevent.c (create_breakpoint_event_object): Update
1265 comment.
1266 * python/py-event.c (evpy_add_attribute): Update comment.
1267 * python/py-exitedevent.c (create_exited_event_object): Fix
1268 reference counting and error handling.
1269 * python/py-newobjfileevent.c (create_new_objfile_event_object):
1270 Fix reference counting.
1271 * python/py-signalevent.c (create_signal_event_object): Fix
1272 reference counting and error handling.
1273 * python/py-stopevent.c (emit_stop_event): Fix reference
1274 counting.
1275 * python/py-threadevent.c (get_event_thread): Return a
1276 borrowed reference.
1277 * python/py-type.c (convert_field): Fix reference counting.
1278
a036ba48
TT
12792012-08-15 Tom Tromey <tromey@redhat.com>
1280
1281 * dwarf2read.c (dwarf_decode_macro_bytes)
1282 <DW_MACRO_GNU_transparent_include>: Use pointer to included data
1283 as hash key.
1284
486c7739
MF
12852012-08-14 Mike Frysinger <vapier@gentoo.org>
1286
1287 * infcmd.c (_initialize_infcmd): Update help text for the signal,
1288 stepi, nexti, finish, next, step, jump, and continue commands.
1289 * infrun.c (_initialize_infrun): Update help text for the handle
1290 command.
1291
4cf93a03
DE
12922012-08-14 Doug Evans <dje@google.com>
1293
70b099cf
DE
1294 * gdbtypes.c (struct extra): Delete, unused.
1295
5212577a
DE
1296 * gdbtypes.c: Whitespace cleanup.
1297 (address_space_name_to_int): Remove "extern" from definition.
1298 (_initialize_gdbtypes): Declare with initialize_file_ftype.
1299
4cf93a03
DE
1300 * gdbtypes.c (make_pointer_type): Remove redundant setting of
1301 TYPE_POINTER_TYPE (type).
1302
3756ef7e
GB
13032012-08-14 Gary Benson <gbenson@redhat.com>
1304
1305 * solib-svr4.c (svr4_free_library_list): Use free_so.
1306
40d72643
MF
13072012-08-13 Mike Frysinger <vapier@gentoo.org>
1308
1309 * .gitignore: Add go-exp.c.
1310
f47f77df
DE
13112012-08-13 Doug Evans <dje@google.com>
1312
1313 * value.c (show_convenience): Tweak comment.
1314 (_initialize_values): Mention convenience functions in the help text
1315 for "show convenience".
1316
7507c54a
YQ
13172012-08-13 Yao Qi <yao@codesourcery.com>
1318
1319 * std-operator.def: Remove TERNOP_SLICE_COUNT.
1320 * breakpoint.c (watchpoint_exp_is_const): Remove handling to
1321 TERNOP_SLICE_COUNT.
1322 * eval.c (evaluate_subexp_standard): Likewise.
1323 * expprint.c (print_subexp_standard): Likewise.
1324 (dump_subexp_body_standard): Likewise.
1325 * parse.c (operator_length_standard): Likewise.
1326
5cad9736
YQ
13272012-08-13 Yao Qi <yao@codesourcery.com>
1328
1329 * std-operator.def: Remove OP_BITSTRING.
1330 * breakpoint.c (watchpoint_exp_is_const): Update.
1331 * eval.c (evaluate_subexp_standard): Remove handling to
1332 OP_BITSTRING.
1333 * expprint.c (print_subexp_standard): Likewise.
1334 (dump_subexp_body_standard): Likewise.
1335 * parse.c (operator_length_standard): Likewise.
1336 * valops.c (value_bitstring): Remove.
1337 * value.h: Remove the declaration of 'value_bitstring'.
1338
bad7670a
SDJ
13392012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
1340
1341 * linespec.c (find_methods): Remove unused variables `i1' and
1342 `name_len'.
1343 (decode_line_full): Likewise for `arg_start'.
1344
d9dce7fa
SDJ
13452012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
1346
1347 * gdb_bfd.c (gdb_bfd_unref): Remove unused variable `slot'.
1348 (zlib_decompress_section): Likewise for `section_data'.
1349 (gdb_bfd_map_section): Likewise for `buf' and `retbuf'.
1350
a72c3253
DE
13512012-08-10 Doug Evans <dje@google.com>
1352
1353 Add $_memeq, $_regex, $_streq, $_strlen convenience functions.
1354 * NEWS: Document them.
1355 * data-directory/Makefile.in (PYTHON_FILES): Add function/__init__.py,
1356 function/strfns.py.
1357 * python/py-type.c (typy_array_1): New function.
1358 (typy_array): Call it.
1359 (typy_vector): New function.
1360 (type_object_methods): Add "vector".
1361 * python/lib/gdb/function/__init__.py: New file.
1362 * python/lib/gdb/function/strfns.py: New file.
1363
200bc880
SP
13642012-08-10 Siddhesh Poyarekar <siddhesh@redhat.com>
1365
1366 * python/py-type.c (convert_field): Use gdb_py_long_from_longest
1367 for TYPE_FIELD_BITPOS.
1368 (typy_get_sizeof): Likewise for TYPE_LENGTH.
1369
de0bea00
MF
13702012-08-10 Mike Frysinger <vapier@gentoo.org>
1371
1372 PR cli/10436:
1373 * common/vec.h (VEC_merge): Define.
1374 (DEF_VEC_ALLOC_FUNC_I): Add a merge helper.
1375 (DEF_VEC_ALLOC_FUNC_P): Likewise.
1376 (DEF_VEC_ALLOC_FUNC_O): Likewise.
1377 * completer.c: Include gdb_signals.h.
1378 (signal_completer): Define.
1379 * completer.h (signal_completer): Add prototype.
1380 * infcmd.c (_initialize_infcmd): Assign the command
1381 completer for "signal" to handle_completer.
1382 * infrun.c: Include completer.h.
1383 (handle_completer): Define.
1384 (_initialize_infrun): Declare a new local variable c. Store the
1385 result of add_com("handle") to it. Assign the command
1386 completer for "handle" to handle_completer.
1387
5b9afe8a
YQ
13882012-08-09 Yao Qi <yao@codesourcery.com>
1389
1390 * cli/cli-decode.c (set_cmd_prefix): New.
1391 (lookup_cmd_for_prefixlist): New.
1392 (add_prefix_cmd): Call set_cmd_prefix and update field 'prefix'
1393 of each cmd_list_element in *prefixlist.
1394 (add_setshow_cmd_full): set_cmd_prefix.
1395 (add_alias_cmd): Likewise.
1396 * cli/cli-decode.h (struct cmd_list_element) <prefix>: New field.
1397 Declare 'auto_boolean_enums'.
1398 * cli/cli-setshow.c: Include "observer.h".
1399 (notify_command_param_changed_p): New.
1400 (add_setshow_auto_boolean_cmd): Move auto_boolean_enums out.
1401 Remove 'static'.
1402 (do_setshow_command): Split it to ...
1403 (do_set_command, do_show_command): ... them. New.
1404 (do_set_command): Call observer_notify_command_param_changed if
1405 notify_command_param_changed_p returns true.
1406 (cmd_show_list): Caller update.
1407 * auto-load.c (set_auto_load_cmd): Likewise.
1408 * remote.c (show_remote_cmd): Likewise.
1409 * cli/cli-setshow.h: Update declarations.
1410 * top.c (execute_command): Call do_set_command and do_show_command.
1411
1412 * NEWS: Mention new MI notification.
1413 * mi/mi-interp.c: Declare mi_command_param_changed.
1414 (mi_interpreter_init): Attach mi_command_param_changed to
1415 observer command_param_changed.
1416 (mi_command_param_changed): New.
1417 Remove mi_suppress_breakpoint_notifications.
1418 Define global variable mi_suppress_notification.
1419 (mi_breakpoint_created): Update.
1420 (mi_breakpoint_deleted): Likewise.
1421 (mi_breakpoint_modified): Likewise.
1422 * mi/mi-main.c (mi_cmd_execute): Likewise. Check command
1423 'gdb-set' and set mi_suppress_notification.
1424 * mi/mi-main.h: (mi_suppress_notification): New struct.
1425
1969df89
JK
14262012-08-09 Andreas Tobler <andreast@fgznet.ch>
1427 Jan Kratochvil <jan.kratochvil@redhat.com>
1428
1429 * fbsd-nat.h (fbsd_find_memory_regions): Use find_memory_region_ftype.
1430
8bfd80db
YQ
14312012-08-09 Yao Qi <yao@codesourcery.com>
1432
1433 * cli/cli-cmds.c (enablebreaklist): Move it to breakpoint.c.
1434 (skiplist): Move it to skip.c.
1435 (init_cmd_lists): Remove code setting enablebreaklist and
1436 skiplist to NULL.
1437 * breakpoint.c (enablebreaklist): Moved from cli/cli-cmds.c.
1438 * cli/cli-cmds.h: Remove declaration of enablebreaklist and
1439 skiplist.
1440 * gdbcmd.h: Likewise.
1441 * skip.c (_initialize_step_skip): Move 'skiplist' from
1442 cli/cli-cmds.c.
1443
28578e6b
YQ
14442012-08-09 Yao Qi <yao@codesourcery.com>
1445
1446 * cli/cli-dump.c: Add 'static' to some cmd_list_element variables.
1447 * gnu-nat.c, symfile.c: Likewise.
1448
260c0b2a
DE
14492012-08-08 Aaron Gamble <agamble@google.com>
1450
1451 * utils.c (prompt_for_continue_wait_time): New static global.
1452 (make_command_stats_cleanup): Initialize it.
1453 (report_command_stats): Subtract time waiting for user.
1454 (prompt_for_continue): Track time waiting for user.
1455 (defaulted_query): Track time waiting for user.
1456
4f485ebc
DE
14572012-08-08 Doug Evans <dje@google.com>
1458
1459 * eval.c (evaluate_subexp_standard): Fix thinko in handling
1460 UNOP_MEMVAL_TYPE.
1461 * expprint.c (print_subexp_standard, case OP_TYPE): New.
1462 (print_subexp_standard, case UNOP_CAST_TYPE): Don't increment pos.
1463 (print_subexp_standard, case UNOP_DYNAMIC_CAST): Ditto.
1464 (print_subexp_standard, case UNOP_REINTERPRET_CAST): Ditto.
1465 (print_subexp_standard, case UNOP_MEMVAL_TYPE): Ditto.
1466 (dump_subexp_body_standard, case UNOP_DYNAMIC_CAST): Don't increment
1467 elt.
1468 (dump_subexp_body_standard, case UNOP_REINTERPRET_CAST): Ditto.
1469 (dump_subexp_body_standard, case UNOP_CAST_TYPE): Ditto.
1470 (dump_subexp_body_standard, case UNOP_MEMVAL_TYPE): Ditto.
1471 (dump_prefix_expression): Handle OP_TYPE.
1472
2acf2b39
KS
14732012-08-08 Keith Seitz <keiths@redhat.com>
1474
1475 * breakpoint.c (parse_breakpoint_sals): Remove unused variable
1476 addr_start.
1477
e6712ff1
DE
14782012-08-08 Doug Evans <dje@google.com>
1479
1480 * linux-thread-db.c: #include "gdb_vecs.h".
1481 (try_thread_db_load_from_pdir_1): New arg "subdir". All callers
1482 updated.
1483 (try_thread_db_load_from_pdir): New arg "subdir". All callers updated.
1484 (thread_db_load_search): Use a vector to iterate over path elements.
1485 Handle text appearing after "$pdir".
1486
1487 * gdb_string.h: Moved to ...
1488 * common/gdb_string.h: ... here.
1489 * common/vec.h: Remove #ifndef GDBSERVER conditional inclusion of
1490 gdb_string.h and gdb_assert.h.
1491
ab854e54
YQ
14922012-08-08 Yao Qi <yao@codesourcery.com>
1493
1494 * tic6x-tdep.c (tic6x_register_to_value): Remove.
1495 (tic6x_value_to_register): Likewise.
1496 (tic6x_gdbarch_init): Don't call set_gdbarch_register_to_value
1497 and set_gdbarch_value_to_register.
1498
4f69f4c2
JK
14992012-08-07 Jan Kratochvil <jan.kratochvil@redhat.com>
1500 Jean-Marc Saffroy <saffroy@gmail.com>
1501
1502 PR 11804
1503 * defs.h (find_memory_region_ftype): New comment. New arg modified.
1504 * fbsd-nat.c (fbsd_find_memory_regions): Add the passed modified value.
1505 * gcore.c (gcore_create_callback): New function comment. Add modified
1506 parameter. Only write modified regions. Set SEC_READONLY exactly
1507 according to MODIFIED.
1508 (objfile_find_memory_regions): Ignore separate debug info files. Ass
1509 the passed modified value to FUNC.
1510 * gnu-nat.c (gnu_find_memory_regions): Add the passed modified value.
1511 * linux-tdep.c (linux_find_memory_regions): Try to reads smaps file
1512 first. New variables modified and has_anonymous. Parse the lines of
1513 smaps file. Add the passed MODIFIED value to FUNC.
1514 * procfs.c (find_memory_regions_callback): Add the passed modified
1515 value.
1516
78ac5f83
TT
15172012-08-06 Tom Tromey <tromey@redhat.com>
1518
1519 * dwarf2-frame.c (clear_pointer_cleanup): New function.
1520 (dwarf2_frame_cache): Use it.
1521 * frame-unwind.h (frame_sniffer_ftype): Document prologue
1522 cache initialization constraint.
1523
2c12abee
TT
15242012-08-06 Tom Tromey <tromey@redhat.com>
1525
1526 PR python/14386:
1527 * varobj.c (update_dynamic_varobj_children): Don't call
1528 PyIter_Check.
1529
4979d7f0
TT
15302012-08-06 Tom Tromey <tromey@redhat.com>
1531
1532 PR cli/14392:
1533 * cli/cli-cmds.c (list_command): Filter 'sals_end'.
1534
f3c8a52a
JK
15352012-08-06 Nathaniel Flath <flat0103@gmail.com>
1536
1537 * NEWS: New entry for 'cd' default parameters.
1538 * cli/cli-cmds.c (cd_command): Replace error_no_arg by DIR assignment.
1539
5a1cf4d6
TT
15402012-08-03 Tom Tromey <tromey@redhat.com>
1541
1542 * dwarf2-frame.c (dwarf2_frame_cache): Call do_cleanups before
1543 return.
1544
7c3270ae
UW
15452012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
1546
1547 * inf-child.c (inf_child_fileio_pwrite): If pwrite fails, fall back
1548 to attempting lseek/write.
1549 (inf_child_fileio_pread): Likewise for pread.
1550
ccce17b0
YQ
15512012-08-02 Yao Qi <yao@codesourcery.com>
1552
1553 * dwarf2loc.c (entry_values_debug): Add 'unsigned'.
1554 (_initialize_dwarf2loc): Call add_setshow_zuinteger_cmd instead of
1555 add_setshow_zinteger_cmd.
1556 * dwarf2loc.h: Update the declaration of 'entry_values_debug'.
1557 * dwarf2read.c (dwarf2_die_debug): Add 'unsigned'.
1558 (_initialize_dwarf2_read): Call add_setshow_zuinteger_cmd
1559 instead of add_setshow_zinteger_cmd.
1560 * darwin-nat.c (dwarwin_debug_flag): Add 'unsigned'.
1561 (_initialize_darwin_inferior): Call add_setshow_zuinteger_cmd
1562 instead of add_setshow_zinteger_cmd.
1563 * frame.c (frame_debug): Add 'unsigned'.
1564 (_intialize_frame): Call add_setshow_zuinteger_cmd instead of
1565 add_setshow_zinteger_cmd.
1566 * frame.h: Update the declaration of 'frame_debug'.
1567 * gdbtypes.c (overload_debug): Add 'unsigned'.
1568 (_initialize_gdbtypes): Call add_setshow_zuinteger_cmd instead of
1569 add_setshow_zinteger_cmd.
1570 * inferior.h: Update declaration of 'debug_infrun'.
1571 * infrun.c (debug_infrun): Add 'unsigned'.
1572 (_initialize_infrun): Call add_setshow_zuinteger_cmd instead of
1573 add_setshow_zinteger_cmd.
1574 * jit.c (jit_debug): Add 'unsigned'.
1575 (_initialize_jit): Call add_setshow_zuinteger_cmd instead of
1576 add_setshow_zinteger_cmd.
1577 * linux-nat.c (debug_linux_nat): Add 'unsigned'.
1578 (_initialize_linux_nat): Call add_setshow_zuinteger_cmd
1579 instead of add_setshow_zinteger_cmd.
1580 * linux-thread-db.c (libthread_db_debug): Add 'unsigned'.
1581 (_initialize_thread_db): Call add_setshow_zuinteger_cmd instead of
1582 add_setshow_zinteger_cmd.
1583 * machoread.c (mach_o_debug_level): Add 'unsigned'.
1584 (_initialize_machoread): Call add_setshow_zuinteger_cmd
1585 instead of add_setshow_zinteger_cmd.
1586 * mi/mi-cmd-var.c: Update the declaration of 'varobjdebug'.
1587 * microblaze-tdep.c (microblaze_debug_flag): Add 'unsigned'.
1588 (_initialize_microblaze_tdep): Call add_setshow_zuinteger_cmd
1589 intead of add_setshow_zinteger_cmd.
1590 * mips-tdep.c (mips_debug): Add 'unsigned'.
1591 (_initialize_mips_tdep): Call add_setshow_zuinteger_cmd
1592 instead of add_setshow_zinteger_cmd.
1593 * monitor.c (monitor_debug): Add 'unsigned'.
1594 (_initialize_remote_monitors): Call add_setshow_zuinteger_cmd instead of
1595 add_setshow_zinteger_cmd.
1596 * observer.c (observer_debug): Add 'unsigned'.
1597 (_initialize_observer): Call add_setshow_zuinteger_cmd instead of
1598 add_setshow_zinteger_cmd.
1599 * parse.c (expressiondebug): Add 'unsigned'.
1600 (_initialize_parse): Call add_setshow_zuinteger_cmd instead of
1601 add_setshow_zinteger_cmd.
1602 * record.c (record_debug): Add 'unsigned'.
1603 (_initialize_record): Call add_setshow_zuinteger_cmd instead of
1604 add_setshow_zinteger_cmd.
1605 * record.h: Update the declaration of 'record_debug'.
1606 * stap-probe.c (stap_expression_debug): Add 'unsigned'.
1607 (_initialize_stap_probe): Call add_setshow_zuinteger_cmd instead of
1608 add_setshow_zinteger_cmd.
1609 * serial.c (global_serial_debug_p): Add 'unsigned'.
1610 (_initialize_serial): Call add_setshow_zuinteger_cmd instead of
1611 add_setshow_zinteger_cmd.
1612 * solib-dsbt.c (solib_dsbt_debug): Add 'unsigned'.
1613 (_initialize_dsbt_solib): Call add_setshow_zuinteger_cmd instead of
1614 add_setshow_zinteger_cmd.
1615 * solib-frv.c (solib_frv_debug): Add 'unsigned'.
1616 (_initialize_frv_solib): Call add_setshow_zuinteger_cmd instead of
1617 add_setshow_zinteger_cmd.
1618 * target.c (targetdebug): Add 'unsigned'.
1619 (initialize_targets): Call add_setshow_zuinteger_cmd instead of
1620 add_setshow_zinteger_cmd.
1621 * valops.c (overload_debug): Add 'unsigned'.
1622 * varobj.c (varobjdebug): Add 'unsigned'.
1623 (_initialize_varobj): Call add_setshow_zuinteger_cmd instead of
1624 add_setshow_zinteger_cmd.
1625 * xtensa-tdep.c (xtensa_debug_level): Add 'unsigned'.
1626 (_initialize_xtensa_tdep): Call add_setshow_zuinteger_cmd
1627 instead of add_setshow_zinteger_cmd.
1628
1629 * arch-utils.h: Remove the declaration of 'gdbarch_debug'.
1630 * gdbarch.sh (gdbarch_debug): Add 'unsigned'.
1631 (extern void _initialize_gdbarch): Call add_setshow_zuinteger_cmd
1632 instead of add_setshow_zinteger_cmd.
1633 * gdbarch.c, gdbarch.h: Re-generated.
1634
95b07c96
YQ
16352012-08-02 Yao Qi <yao@codesourcery.com>
1636
1637 * nto-tdep.c: Don't include cli/cli-decode.h and
1638 cli/cli-cmds.h.
1639 (_initialize_nto_tdep): Remove.
1640 * nto-tdep.h (struct nto_target_ops) <internal_debugging>:
1641 Remove field.
1642 Remove macro nto_internal_debugging.
1643
57295b0b
RH
16442012-08-01 Richard Henderson <rth@redhat.com>
1645
1646 * configure.tgt (m32c-*-*) [gdb_target_obs]: Remove prologue-value.o.
1647 (mep-*-*) [gdb_target_obs]: Likewise.
1648
f782ad9b
AS
16492012-07-31 Andreas Schwab <schwab@linux-m68k.org>
1650
1651 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
1652 linux_get_siginfo_type.
1653
a14dd77e
JK
16542012-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
1655
1656 * infcall.c (call_function_by_hand): Move BP_ADDR comment to
1657 AT_ENTRY_POINT.
1658 (call_function_by_hand) <ON_STACK>: Call write_memory with
1659 gdbarch_breakpoint_from_pc, if possible.
1660 (call_function_by_hand) <AT_ENTRY_POINT>: The BP_ADDR comment is moved
1661 here.
1662
1467929f
YQ
16632012-07-31 Yao Qi <yao@codesourcery.com>
1664
1665 * tracepoint.c: Add 'static' for some variables.
1666
70976b65
YQ
16672012-07-31 Yao Qi <yao@codesourcery.com>
1668
1669 * go32-nat.c: Declare _initialize_go32_nat.
1670 * ser-go32.c: Declare _initialize_ser_dos.
1671 * top.c (do_chdir_cleanup): Add 'static'.
1672
eff9c3e6
KS
16732012-07-30 Keith Seitz <keiths@redhat.com>
1674
1675 * linespec.c (linespec_lex_number): A number followed
1676 by quotes is a valid number, too.
1677
728400d7
TT
16782012-07-30 Tom Tromey <tromey@redhat.com>
1679
1680 * remote-sim.c (gdb_os_poll_quit): Don't check immediate_quit.
1681
fcf303ab
UW
16822012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
1683
1684 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Do not
1685 attempt to 4-byte-align HW breakpoint addresses for Thumb.
1686
4e969b4f
AB
16872012-07-30 Andrew Burgess <aburgess@broadcom.com>
1688
1689 * varobj.c (varobj_invalidate_iter): All varobj must be marked as
1690 invalid or reevaluated to prevent prevent references to possibly
1691 delete'd type objects being left in the varobj.
1692
c4bfde41
JK
16932012-07-27 Tom Tromey <tromey@redhat.com>
1694 Jan Kratochvil <jan.kratochvil@redhat.com>
1695
1696 * copying.awk: Print buffer-read-only and vi ro markers.
1697 * copying.c: Rebuild.
1698 * gdbarch.sh (copyright): Print buffer-read-only and vi ro markers.
1699 * gdbarch.c, gdbarch.h: Rebuild.
1700 * target-descriptions.c (maint_print_c_tdesc_cmd): Print
1701 buffer-read-only and vi ro markers.
1702 * features/arm-with-iwmmxt.c: Rebuild.
1703 * features/arm-with-m-fpa-layout.c: Rebuild.
1704 * features/arm-with-m-vfp-d16.c: Rebuild.
1705 * features/arm-with-m.c: Rebuild.
1706 * features/arm-with-neon.c: Rebuild.
1707 * features/arm-with-vfpv2.c: Rebuild.
1708 * features/arm-with-vfpv3.c: Rebuild.
1709 * features/i386/amd64-avx-linux.c: Rebuild.
1710 * features/i386/amd64-avx.c: Rebuild.
1711 * features/i386/amd64-linux.c: Rebuild.
1712 * features/i386/amd64.c: Rebuild.
1713 * features/i386/i386-avx-linux.c: Rebuild.
1714 * features/i386/i386-avx.c: Rebuild.
1715 * features/i386/i386-linux.c: Rebuild.
1716 * features/i386/i386-mmx-linux.c: Rebuild.
1717 * features/i386/i386-mmx.c: Rebuild.
1718 * features/i386/i386.c: Rebuild.
1719 * features/i386/x32-avx-linux.c: Rebuild.
1720 * features/i386/x32-avx.c: Rebuild.
1721 * features/i386/x32-linux.c: Rebuild.
1722 * features/i386/x32.c: Rebuild.
1723 * features/mips-dsp-linux.c: Rebuild.
1724 * features/mips-linux.c: Rebuild.
1725 * features/mips64-dsp-linux.c: Rebuild.
1726 * features/mips64-linux.c: Rebuild.
1727 * features/rs6000/powerpc-32.c: Rebuild.
1728 * features/rs6000/powerpc-32l.c: Rebuild.
1729 * features/rs6000/powerpc-403.c: Rebuild.
1730 * features/rs6000/powerpc-403gc.c: Rebuild.
1731 * features/rs6000/powerpc-405.c: Rebuild.
1732 * features/rs6000/powerpc-505.c: Rebuild.
1733 * features/rs6000/powerpc-601.c: Rebuild.
1734 * features/rs6000/powerpc-602.c: Rebuild.
1735 * features/rs6000/powerpc-603.c: Rebuild.
1736 * features/rs6000/powerpc-604.c: Rebuild.
1737 * features/rs6000/powerpc-64.c: Rebuild.
1738 * features/rs6000/powerpc-64l.c: Rebuild.
1739 * features/rs6000/powerpc-7400.c: Rebuild.
1740 * features/rs6000/powerpc-750.c: Rebuild.
1741 * features/rs6000/powerpc-860.c: Rebuild.
1742 * features/rs6000/powerpc-altivec32.c: Rebuild.
1743 * features/rs6000/powerpc-altivec32l.c: Rebuild.
1744 * features/rs6000/powerpc-altivec64.c: Rebuild.
1745 * features/rs6000/powerpc-altivec64l.c: Rebuild.
1746 * features/rs6000/powerpc-cell32l.c: Rebuild.
1747 * features/rs6000/powerpc-cell64l.c: Rebuild.
1748 * features/rs6000/powerpc-e500.c: Rebuild.
1749 * features/rs6000/powerpc-e500l.c: Rebuild.
1750 * features/rs6000/powerpc-isa205-32l.c: Rebuild.
1751 * features/rs6000/powerpc-isa205-64l.c: Rebuild.
1752 * features/rs6000/powerpc-isa205-altivec32l.c: Rebuild.
1753 * features/rs6000/powerpc-isa205-altivec64l.c: Rebuild.
1754 * features/rs6000/powerpc-isa205-vsx32l.c: Rebuild.
1755 * features/rs6000/powerpc-isa205-vsx64l.c: Rebuild.
1756 * features/rs6000/powerpc-vsx32.c: Rebuild.
1757 * features/rs6000/powerpc-vsx32l.c: Rebuild.
1758 * features/rs6000/powerpc-vsx64.c: Rebuild.
1759 * features/rs6000/powerpc-vsx64l.c: Rebuild.
1760 * features/rs6000/rs6000.c: Rebuild.
1761 * features/s390-linux32.c: Rebuild.
1762 * features/s390-linux32v1.c: Rebuild.
1763 * features/s390-linux32v2.c: Rebuild.
1764 * features/s390-linux64.c: Rebuild.
1765 * features/s390-linux64v1.c: Rebuild.
1766 * features/s390-linux64v2.c: Rebuild.
1767 * features/s390x-linux64.c: Rebuild.
1768 * features/s390x-linux64v1.c: Rebuild.
1769 * features/s390x-linux64v2.c: Rebuild.
1770 * features/tic6x-c62x-linux.c: Rebuild.
1771 * features/tic6x-c62x.c: Rebuild.
1772 * features/tic6x-c64x-linux.c: Rebuild.
1773 * features/tic6x-c64x.c: Rebuild.
1774 * features/tic6x-c64xp-linux.c: Rebuild.
1775 * features/tic6x-c64xp.c: Rebuild.
1776
826f0041
TT
17772012-07-27 Tom Tromey <tromey@redhat.com>
1778
1779 * c-exp.y (classify_name): Avoid assignment in condition.
1780
84552b16
PA
17812012-07-27 Roland Schwingel <roland.schwingel@onevision.com>
1782
1783 * amd64-windows-tdep.c: Include "frame.h".
1784 (amd64_windows_skip_trampoline_code): New function.
1785 (amd64_windows_init_abi): Add trampoline registration.
1786
a8a64aa8
YQ
17872012-07-27 Yao Qi <yao@codesourcery.com>
1788
1789 * tracepoint.c (cur_traceframe_number): Remove.
1790 (set_tfile_traceframe): Remove.
1791 (tfile_trace_find, tfile_fetch_registers): Update callers.
1792 (tfile_xfer_partial, tfile_get_trace_state_variable_value): Likewise.
1793 (tfile_open, tfile_trace_find): Likewise.
1794
d99067cb
YQ
17952012-07-27 Yao Qi <yao@codesourcery.com>
1796
1797 * thread.c (switch_to_thread): Don't call registers_changed.
1798
f2e8016f
TT
17992012-07-26 Tom Tromey <tromey@redhat.com>
1800
f782ad9b
AS
1801 * Makefile.in (SFILES): Remove objc-exp.y.
1802 (YYFILES): Remove objc-exp.c.
1803 (YYOBJ): Remove objc-exp.o.
1804 (local-maintainer-clean): Don't mention objc-exp.c.
1805 * c-exp.y: Include objc-lang.h.
1806 (%union) <class>: New field.
1807 (NSSTRING, SELECTOR, CLASSNAME, OBJC_LBRAC): New tokens.
1808 (exp): Clone subscript production for OBJC_LBRAC. Add various
1809 Objective C productions.
1810 (msglist, msgarglist, msgarg): New productions.
1811 (array_mod, func_mod, operator): Clone productions for
1812 OBJC_LBRAC.
1813 (parse_string_or_char): Handle '@' strings.
1814 (lex_one_token): Return OBJC_LBRAC. Recognize @selector.
1815 (classify_name): Check la_name_of_this. Recognize ObjC class
1816 names.
1817 * objc-exp.y: Remove.
1818 * objc-lang.c (objc_language_defn): Use c_parse, c_error.
1819 * objc-lang.h (objc_parse, objc_error): Don't declare.
f2e8016f 1820
f66713d2
JK
18212012-07-26 Markus Metzger <markus.t.metzger@intel.com>
1822
1823 * python/py-inferior.c (infpy_threads): Call update_thread_list ().
1824
7cfe01b4
JK
18252012-07-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1826
1827 * auto-load.c (auto_load_info_scripts): Remove immediate_quit increment
1828 and decrement.
1829
5ba19b4c
TT
18302012-07-26 Tom Tromey <tromey@redhat.com>
1831
1832 * copying.c: Rebuild.
1833 * copying.awk: Don't use immediate_quit. Use 'no_set_class', not
1834 'no_class'.
1835
27618ce4
TT
18362012-07-26 Tom Tromey <tromey@redhat.com>
1837
1838 * symmisc.c (print_symbol_bcache_statistics): Use QUIT, not
1839 immediate_quit.
1840 (print_objfile_statistics): Likewise.
1841 (maintenance_print_symbols): Likewise.
1842 (maintenance_print_msymbols): Likewise.
1843 (maintenance_print_objfiles): Likewise.
1844 * psymtab.c (print_partial_symbols): Call QUIT.
1845 (maintenance_print_psymbols): Likewise. Don't modify
1846 immediate_quit.
1847 * copying.c (show_copying_command): Don't modify immediate_quit.
1848 (show_warranty_command): Likewise.
1849 * cli/cli-cmds.c (show_version): Don't modify immediate_quit.
1850
dd3818c8
KS
18512012-07-26 Keith Seitz <keiths@redhat.com>
1852
1853 * linespec.c (linespec_lexer_lex_number): The input
1854 is also a valid number if the next character is a comma
1855 or colon.
1856
23a80689
JB
18572012-07-26 Joel Brobecker <brobecker@adacore.com>
1858
1859 * NEWS: Document new --enable-libmcheck/--disable-libmcheck
1860 configure options.
1861
29f77997
TG
18622012-07-26 Tristan Gingold <gingold@adacore.com>
1863
1864 * machoread.c: Include gdb_bfd.h.
1865
a55c1f32
TG
18662012-07-26 Tristan Gingold <gingold@adacore.com>
1867
1868 * dwarf2loc.c (locexpr_describe_location_piece): Use uint64_t for
1869 offset.
1870
56eb65bd
SP
18712012-07-26 Siddhesh Poyarekar <siddhesh@redhat.com>
1872
1873 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Expand parameter
1874 SIZE to size_t.
1875 (dwarf2_evaluate_loc_desc): Likewise.
1876 (dwarf2_loc_desc_needs_frame): Likewise.
1877 (locexpr_describe_location_1): Likewise.
1878 * dwarf2loc.h (struct dwarf2_locexpr_baton): Make SIZE as
1879 size_t.
1880 (struct dwarf2_loclist_baton): Likewise.
1881 * dwarf2read.c (struct dwarf_block): Likewise.
1882 (dump_die_shallow): Use pulongest to print dwarf_block.size.
1883 (decode_locdesc): Expand SIZE and I to size_t.
1884
aec8845c
JK
18852012-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
1886
1887 * contrib/cc-with-tweaks.sh: Put into comment path gdb/contrib/.
1888
33d7655b
JB
18892012-07-25 Joel Brobecker <brobecker@adacore.com>
1890
1891 * doublest.c (convert_doublest_to_floatformat): If the exponent
1892 is too small, treat the value as zero. If the exponent is too
1893 large, treat the value as infinity.
1894
a22d44ff
JB
18952012-07-25 Joel Brobecker <brobecker@adacore.com>
1896
1897 * configure.ac: Add --enable-lmcheck configure option.
1898 * configure: Regenerate.
1899
d6b28940
TT
19002012-07-25 Tom Tromey <tromey@redhat.com>
1901
f782ad9b
AS
1902 * NEWS: Mention maint info bfds.
1903 * gdb_bfd.c (all_bfds): New global.
1904 (gdb_bfd_ref, gdb_bfd_unref): Update all_bfds.
1905 (print_one_bfd, maintenance_info_bfds, _initialize_gdb_bfd):
1906 New functions.
d6b28940 1907
6e73ba20
RC
19082012-07-25 Ralf Corsépius <ralf.corsepius@rtems.org>
1909
1910 * configure.tgt: Add v850*-*-rtems*.
1911
d560eebd
TT
19122012-07-25 Tom Tromey <tromey@redhat.com>
1913
1914 * macrotab.c (macro_bcache_str): Remove cast.
1915
d7cbec71
HZ
19162012-07-25 Hui Zhu <hui_zhu@mentor.com>
1917
1918 * linespec.c (linespec_lexer_lex_number): Update comments,
1919 change the return and add check to make sure the input is
1920 the decimal numbers.
1921 (linespec_lexer_lex_one): If linespec_lexer_lex_number return
1922 false, call linespec_lexer_lex_string.
1923
882f447f
TT
19242012-07-24 Tom Tromey <tromey@redhat.com>
1925
1926 * symfile.c (symbol_file_add): Don't open BFD twice.
1927
53ab4066 19282012-07-24 Marc Khouzam <marc.khouzam@ericsson.com>
e12c7713
MK
1929
1930 * breakpoint.c (create_breakpoint): Store condition for pending
1931 breakpoints.
1932
108fb0f7
AS
19332012-07-24 Andreas Schwab <schwab@linux-m68k.org>
1934
1935 * m68k-tdep.c (m68k_reg_struct_return_p): Accept complex types.
1936 (m68k_return_value): Handle complex types like structures.
1937 (m68k_svr4_return_value): Likewise.
1938
1634dcbe
JK
19392012-07-24 Marcus Shawcroft <marcus.shawcroft@arm.com>
1940
1941 * gdb_bfd.c (zlib_decompress_section) <!HAVE_ZLIB_H>: Adjust
1942 parameters to bfd_get_section_name.
1943
e2d12c21
YQ
19442012-07-24 Yao Qi <yao@codesourcery.com>
1945
1946 * cli/cli-setshow.c: Handle case 'var_uinteger'
1947 and 'var_zuninteger' together. Handle case 'var_integer' and
1948 'var_zinteger' together.
1949
64b92e45
KS
19502012-07-23 Keith Seitz <keiths@redhat.com>
1951
1952 * linespec.c (convert_linespec_to_sal): Don't add
1953 any symbols to the result vector if symbol_to_sal
1954 returns zero.
1955
0f5f4ffe
KS
19562012-07-23 Keith Seitz <keiths@redhat.com>
1957
1958 * linespec.c (decode_objc): Record the function name
1959 in the linespec.
1960
da1cc82f
TT
19612012-07-23 Tom Tromey <tromey@redhat.com>
1962
1963 * rs6000-nat.c (add_vmap): Rewrite archive loop. Fix reference
1964 counting.
1965 * exec.c (exec_close_1): Unconditionally release vmap's BFD.
1966 (map_vmap): Acquire a reference to the BFD.
1967
6c18f3e0
SP
19682012-07-23 Siddhesh Poyarekar <siddhesh@redhat.com>
1969
1970 * p-valprint.c (pascal_object_print_value): Replace potentially
1971 unsafe alloca with xmalloc/xfree.
1972 * valops.c (search_struct_method): Likewise.
1973
695c3173
TT
19742012-07-23 Tom Tromey <tromey@redhat.com>
1975
1976 * solib-svr4.c (enable_break): Update.
1977 * bfd-target.h (target_bfd_reopen): Update documentation.
1978
08d2cd74
TT
19792012-07-23 Tom Tromey <tromey@redhat.com>
1980
1981 * symfile.c (separate_debug_file_exists): Update.
1982 (gdb_bfd_open_maybe_remote): Rename from bfd_open_maybe_remote.
1983 (reread_symbols): Update.
1984 * elfread.c (build_id_verify): Update.
1985 * symfile.h (gdb_bfd_open_maybe_remote): Rename from
1986 bfd_open_maybe_remote.
1987
596f7d67
TT
19882012-07-23 Tom Tromey <tromey@redhat.com>
1989
1990 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Fix comment.
1991
8ac244b4
TT
19922012-07-23 Tom Tromey <tromey@redhat.com>
1993
1994 * coffread.c (coff_symfile_read): Make a cleanup for 'debugfile'
1995 and 'abfd'.
1996 * elfread.c (elf_symfile_read): Make a cleanup for 'debugfile'
1997 and 'abfd'.
1998 * jit.c (jit_bfd_try_read_symtab): Make a cleanup for 'nbfd'.
1999 * machoread.c (macho_add_oso_symfile): Make a cleanup for
2000 'abfd'.
2001 (macho_symfile_read): Make a cleanup for 'dsym_bfd'.
2002 * objfiles.c (allocate_objfile): Acquire a new reference.
2003 * rs6000-nat.c (add_vmap): Don't acquire a BFD reference.
2004 * solib.c (solib_read_symbols): Don't acquire a BFD reference.
2005 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Make
2006 a cleanup for 'nbfd'.
2007 * symfile-mem.c (symbol_file_add_from_memory): Make a cleanup
2008 for 'nbfd'.
2009 * symfile.c (symbol_file_add_with_addrs_or_offsets): Don't
2010 make a cleanup for 'abfd'.
2011 (symbol_file_add): Make a BFD cleanup.
2012
64c31149
TT
20132012-07-23 Tom Tromey <tromey@redhat.com>
2014
2015 * cli/cli-dump.c (bfd_openr_with_cleanup): Use gdb_bfd_openr.
2016 (bfd_openw_with_cleanup): Use gdb_bfd_openw.
2017 * corelow.c (core_open): Use gdb_bfd_fopen.
2018 * dsrec.c (load_srec): Use gdb_bfd_openr.
2019 * exec.c (exec_file_attach): Use gdb_bfd_fopen.
2020 * gcore.c (gcore_memory_sections): Use gdb_bfd_openw.
2021 * gdb_bfd.c (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
2022 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
2023 (gdb_bfd_fdopenr): New functions.
2024 * gdb_bfd.h (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
2025 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
2026 (gdb_bfd_fdopenr): Declare.
2027 * jit.c (bfd_open_from_target_memory): Use gdb_bfd_openr_iovec.
2028 * m32-rom.c (m32r_load, m32r_upload_command): Use gdb_bfd_openr.
2029 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_openr,
2030 gdb_bfd_openr_next_archived_file.
2031 (macho_check_dsym): Use gdb_bfd_openr.
2032 (macho_add_oso_symfile): Don't call gdb_bfd_stash_filename.
2033 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_fdopenr.
2034 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_openr.
2035 * remote-mips.c (mips_load_srec, pmon_load_fast): Use
2036 gdb_bfd_openr.
2037 * remote.c (remote_bfd_open): Use gdb_bfd_openr_iovec.
2038 * rs6000-nat.c (add_vmap): Use gdb_bfd_openr, gdb_bfd_fdopenr,
2039 gdb_bfd_openr_next_archived_file.
2040 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2041 Use gdb_bfd_openr.
2042 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
2043 gdb_bfd_openr.
2044 * solib-spu.c (spu_bfd_fopen): Use gdb_bfd_openr_iovec.
2045 * solib.c (solib_bfd_fopen): Use gdb_bfd_fopen.
2046 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_openr_iovec.
2047 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_openr.
2048 (symfile_bfd_open): Use gdb_bfd_fopen.
2049 (generic_load): Use gdb_bfd_openr.
2050 * windows-nat.c (windows_make_so): Use gdb_bfd_openr.
2051
520b0001
TT
20522012-07-23 Tom Tromey <tromey@redhat.com>
2053
2054 * bfd-target.c (target_bfd_reopen): Update.
2055 * cli/cli-dump.c (bfd_openr_with_cleanup)
2056 (bfd_openw_with_cleanup): Update.
2057 * corelow.c (core_open): Update.
2058 * dsrec.c (load_srec): Update.
2059 * exec.c (exec_file_attach): Update.
2060 * gcore.c (create_gcore_bfd): Update.
2061 * gdb_bfd.c (gdb_bfd_ref): Return void.
2062 (gdb_bfd_open): Update.
2063 * gdb_bfd.h (gdb_bfd_ref): Return void.
2064 Update comments.
2065 * jit.c (jit_bfd_try_read_symtab): Update.
2066 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
2067 * machoread.c (macho_symfile_read_all_oso): Update.
2068 (macho_check_dsym): Update.
2069 * procfs.c (insert_dbx_link_bpt_in_file): Update.
2070 * remote-m32r-sdi.c (m32r_load): Update.
2071 * remote-mips.c (mips_load_srec, pmon_load_fast): Update.
2072 * rs6000-nat.c (add_vmap): Update.
2073 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2074 Update.
2075 * solib-pa64.c (pa64_solib_create_inferior_hook): Update.
2076 * solib-spu.c (spu_bfd_open): Update.
2077 * solib.c (solib_bfd_fopen, solib_read_symbols): Update.
2078 * spu-linux-nat.c (spu_bfd_open): Update.
2079 * symfile.c (bfd_open_maybe_remote, symfile_bfd_open)
2080 (generic_load): Update.
2081 * windows-nat.c (windows_make_so): Update.
2082
2322ff16
SP
20832012-07-22 Siddhesh Poyarekar <siddhesh@redhat.com>
2084
2085 * sh-tdep.c (sh_treat_as_flt_p): Remove unused variable LEN.
2086
3def0b36
PA
20872012-07-20 Jeff Kenton <jkenton@tilera.com>
2088
2089 * tilegx-linux-tdep.c (tilegx_linux_sigframe_init): Fix
2090 SIGTRAMP_FRAME unwinding.
2091
e615022a
DE
20922012-07-20 Doug Evans <dje@google.com>
2093
2094 * NEWS: Document new options "set/show use-deprecated-index-sections",
2095 and delete reference to --use-deprecated-index-sections.
2096 * symfile.h (use_deprecated_index_sections): Delete.
2097 * dwarf2read.c (use_deprecated_index_sections): Make static.
2098 (read_index_from_section): Update wording of how to load
2099 deprecated index sections.
2100 (_initialize_dwarf2_read): New options
2101 "set/show use-deprecated-index-sections".
2102 * main.c (captured_main): Delete --use-deprecated-index-sections.
2103
64776a0b
PA
21042012-07-20 Pedro Alves <palves@redhat.com>
2105
2106 PR threads/11692
2107 PR gdb/12203
2108
2109 * infrun.c (handle_inferior_event) <new thread>: Don't special
2110 case minus_one_ptid.
2111 <TARGET_WAITKIND_SPURIOUS>: Ditto.
2112 * linux-thread-db.c (thread_get_info_callback): Don't return early
2113 if the thread is zombie.
2114 (thread_from_lwp): Change return type to void. Rewrite stale
2115 comment.
2116 (attach_thread): Don't return early if the thread is zombie,
2117 instead set its "dying" flag.
2118 (thread_db_wait): Don't return TARGET_WAITKIND_SPURIOUS anymore.
2119 (find_new_threads_callback): Don't return early if the thread is
2120 zombie.
2121
09826ec5
PA
21222012-07-20 Pedro Alves <palves@redhat.com>
2123
2124 * linux-nat.c (linux_nat_wait): Dump the passed in target options.
2125 * target.c (target_wait): Likewise.
2126 (str_comma_list_concat_elem, do_option, target_options_to_string):
2127 New functions.
2128 * target.h (target_options_to_string): Declare.
2129
f7a35f02
TT
21302012-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2131 Tom Tromey <tromey@redhat.com>
2132
2133 * dwarf2read.c (dwarf_decode_macros)
2134 <DW_MACRO_GNU_define_indirect_alt, DW_MACRO_GNU_undef_indirect_alt,
2135 DW_MACRO_GNU_transparent_include_alt>: New cases.
2136 (dwarf_decode_macro_bytes) <DW_MACRO_GNU_define_indirect,
2137 DW_MACRO_GNU_undef_indirect>: Examine 'section_is_dwz'.
2138
b81e1ee0
TT
21392012-07-20 Tom Tromey <tromey@redhat.com>
2140
2141 * dwarf2read.c (try_open_dwo_file): Don't call
2142 gdb_bfd_stash_filename.
2143
99c1624c
PA
21442012-07-20 Pedro Alves <palves@redhat.com>
2145
2146 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
2147 (i386_record_lea_modrm, i386_record_push, i386_record_floats)
2148 (i386_process_record): Tweak description comments.
2149
4ffa4fc7
PA
21502012-07-20 Pedro Alves <palves@redhat.com>
2151
2152 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
2153 (i386_process_record): Use record_read_memory.
2154 * record.c (record_read_memory): New function.
2155 (record_arch_list_add_mem, record_exec_insn): Use
2156 record_read_memory.
2157 * record.h (record_read_memory): Declare.
2158
c24343e2
YQ
21592012-07-20 Yao Qi <yao@codesourcery.com>
2160
2161 * cli/cli-setshow.c (do_setshow_command): Don't check pointer is
2162 NULL for xfree.
2163
90f47860
PA
21642012-07-19 Pedro Alves <palves@redhat.com>
2165
2166 * record.c (record_resume): Ask the target beneath to report all
2167 signals.
2168
01093045
DE
21692012-07-19 Doug Evans <dje@google.com>
2170
2171 * dwarf2read.c (dwarf2_ranges_read): Ignore ranges starting at zero if
2172 there's no section at address zero.
2173 (dwarf2_record_block_ranges): Ditto.
2174
a7c3d162
YQ
21752012-07-19 Yao Qi <yao@codesourcery.com>
2176
2177 * command.h, remote.c: Fix a typo in comment.
2178
608b4967
TT
21792012-07-19 Tom Tromey <tromey@redhat.com>
2180
2181 PR exp/13206:
2182 * ax-gdb.c (gen_expr) <OP_TYPEOF, OP_DECLTYPE>: New cases.
2183 * breakpoint.c (watchpoint_exp_is_const) <OP_TYPEOF,
2184 OP_DECLTYPE>: New cases.
2185 * c-exp.y (TYPEOF, DECLTYPE): New tokens.
2186 (type_exp): Add new productions.
2187 (ident_tokens): Add __typeof__, typeof, __typeof, __decltype,
2188 and decltype.
2189 * eval.c (evaluate_subexp_standard) <OP_TYPEOF, OP_DECLTYPE>:
2190 New case.
2191 * expprint.c (dump_subexp_body_standard) <OP_TYPEOF,
2192 OP_DECLTYPE>: New case.
2193 * parse.c (operator_length_standard) <OP_TYPEOF, OP_DECLTYPE>:
2194 New case.
2195 * std-operator.def (OP_TYPEOF, OP_DECLTYPE): New constants.
2196 * varobj.c (varobj_create): Handle OP_TYPEOF, OP_DECLTYPE.
2197
274b54d7
TT
21982012-07-19 Tom Tromey <tromey@redhat.com>
2199
2200 * c-exp.y (enum token_flags): New.
2201 (struct token) <cxx_only>: Remove.
2202 <flags>: New field.
2203 (tokentab3, tokentab2, ident_tokens): Update.
2204 (lex_one_token): Update. Handle FLAG_SHADOW.
2205
9eaf6705
TT
22062012-07-19 Tom Tromey <tromey@redhat.com>
2207
2208 * ax-gdb.c (gen_expr): Handle UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE.
2209 * breakpoint.c (watchpoint_exp_is_const): Handle UNOP_CAST_TYPE,
2210 UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST.
2211 * c-exp.y (exp): Emit UNOP_MEMVAL_TYPE, UNOP_CAST_TYPE. Update
2212 for changes to UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST. Use
2213 type_exp production where appropriate.
2214 * eval.c (evaluate_subexp_standard) <UNOP_CAST_TYPE>: New case.
2215 <UNOP_DYNAMIC_CAST, UNOP_REINTERPRET_CAST>: Update.
2216 <UNOP_MEMVAL_TYPE>: New case.
2217 (evaluate_subexp_for_address) <UNOP_MEMVAL_TYPE>: New case.
2218 (evaluate_subexp_for_sizeof) <UNOP_MEMVAL_TYPE>: New case.
2219 * expprint.c (print_subexp_standard) <UNOP_CAST_TYPE>: New case.
2220 <UNOP_MEMVAL_TYPE>: New case.
2221 (dump_subexp_body_standard) <UNOP_DYNAMIC_CAST,
2222 UNOP_REINTERPRET_CAST>: Update.
2223 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
2224 * parse.c (operator_length_standard) <UNOP_DYNAMIC_CAST,
2225 UNOP_REINTERPRET_CAST>: Update.
2226 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
2227 * stack.c (return_command): Also check for UNOP_CAST_TYPE.
2228 * std-operator.def (UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE): New
2229 constants.
2230
6ace3df1
YQ
22312012-07-19 Yao Qi <yao@codesourcery.com>
2232 Jan Kratochvil <jan.kratochvil@redhat.com>
2233
2234 * cli/cli-setshow.c (do_setshow_command): Handle case 'var_filename'
2235 and case 'var_optional_filename' together.
2236 * infcmd.c (_initialize_infcmd): Call add_setshow_string_noescape_cmd
2237 instead of add_setshow_optional_filename_cmd for setshow command
2238 'args'. Set completer for 'set args'.
2239
48faced0
DE
22402012-07-18 Doug Evans <dje@google.com>
2241
2242 * common/gdb_vecs.h: Moved here from ./gdb_vecs.h.
2243 * common/gdb_vecs.c: New file, contents from utils.c.
2244 * common/host-defs.h: New file, contents from defs.h.
2245 * utils.h: New file, contents from defs.h.
2246 * defs.h: Move all declarations of objects defined in utils.c
2247 to utils.h (except QUIT() and related).
2248 #include "utils.h", "host-defs.h".
2249 * probe.h (probe_p): Move here from gdb_vecs.h.
2250 * symfile.c: #include "probe.h" instead of "gdb_vecs.h".
2251 * utils.c (free_char_ptr_vec): Moved to common/gdb_vecs.c.
2252 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): Ditto.
2253 * Makefile.in (SFILES): Add common/gdb_vecs.c.
2254 (HFILES_NO_SRCDIR): Add common/gdb_vecs.h, common/host-defs.h, utils.h.
2255 (COMMON_OBS): Add gdb_vecs.o.
2256 (gdb_vecs.o): New rule.
2257
66f1999b
KS
22582012-07-18 Keith Seitz <keiths@redhat.com>
2259
2260 * linespec.c (add_sal_to_sals): Add LITERAL_CANONICAL
2261 parameter. If non-zero, use SYMNAME as the canonical name
2262 for the SaL.
2263 Update all callers.
2264 (convert_linespec_to_sals): Use add_sal_to_sals for
2265 expressions, too.
2266 (decode_line_full): No need to "fill in missing canonical names"
2267 anymore. Simply make cleanups for the allocated names.
2268
5d94e27b
KS
22692012-07-18 Keith Seitz <keiths@redhat.com>
2270
2271 * linespec.c (struct linespec): Constify expression,
2272 source_filename, function_name, and label_name.
2273 (symbol_not_found_error): Make all parameters const.
2274 (linespec_parser_delete): No need to check for NULL
2275 when using xfree. Cast const char * to char * for xfree.
2276
af4908ba
KS
22772012-07-18 Keith Seitz <keiths@redhat.com>
2278
2279 * breakpoint.c (invalid_thread_id_error): New function.
2280 (find_condition_and_thread): Use invalid_thread_id_error.
2281 (watch_command_1): Likewise.
2282
853254db
TT
22832012-07-18 Tom Tromey <tromey@redhat.com>
2284
2285 * cc-with-index.sh, cc-with-dwz.sh: Remove.
2286 * contrib/cc-with-tweaks.sh: New file.
2287
2ec9a5e0
TT
22882012-07-18 Tom Tromey <tromey@redhat.com>
2289
2290 * dwarf2read.c (struct dwz_file) <gdb_index>: New field.
2291 (locate_dwz_sections): Recognize .gdb_index.
2292 (create_cus_from_index_list): New function.
2293 (create_cus_from_index): Use it. Handle .dwz data.
2294 (read_index_from_section): New function, extracted from
2295 dwarf2_read_index.
2296 (dwarf2_read_index): Use it. Read .gdb_index from dwz file,
2297 if needed.
2298
36586728
TT
22992012-07-18 Tom Tromey <tromey@redhat.com>
2300
2301 * dwarf2read.c (struct dwarf2_per_objfile) <dwz_file>: New field.
2302 (struct dwarf2_per_cu_data) <length>: No longer bitfield.
2303 <is_dwz>: New field.
2304 (struct dwz_file): New.
2305 (struct partial_die_info) <is_dwz, spec_is_dwz>: New fields.
2306 (locate_dwz_sections, dwarf2_get_dwz_file)
2307 (get_abbrev_section_for_cu): New functions.
2308 (error_check_comp_unit_head, read_and_check_comp_unit_head)
2309 (read_and_check_type_unit_head): Add abbrev_section argument.
2310 (create_debug_types_hash_table): Update.
2311 (init_cutu_and_read_dies): Use proper abbrev section.
2312 (init_cutu_and_read_dies_no_follow): Likewise.
2313 (set_partial_user): Do nothing if PST==NULL.
2314 (read_comp_units_from_section): New function.
2315 (create_all_comp_units): Use it.
2316 (scan_partial_symbols, partial_die_parent_scope): Update.
2317 (skip_one_die): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
2318 (process_imported_unit_die, read_partial_die): Handle .dwz files.
2319 (find_partial_die): Add offset_in_dwz argument. Update.
2320 (guess_partial_die_structure_name, fixup_partial_die): Update.
2321 (read_attribute_value): Handle DW_FORM_GNU_ref_alt,
2322 DW_FORM_GNU_strp_alt.
2323 (read_indirect_string_from_dwz): New function.
2324 (dwarf2_const_value_attr): Handle DW_FORM_GNU_strp_alt.
2325 (dump_die_shallow): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
2326 (is_ref_attr): Handle DW_FORM_GNU_ref_alt.
2327 (follow_die_offset): Add offset_in_dwz argument.
2328 (follow_die_ref, dwarf2_fetch_die_location_block): Update.
2329 (skip_form_bytes): Handle DW_FORM_GNU_strp_alt.
2330 (dwarf_decode_macro_bytes): Add section_is_dwz argument.
2331 Handle new macro forms.
2332 (dwarf_decode_macros): Update.
2333 (dwarf2_find_containing_comp_unit): Add offset_in_dwz argument.
2334 (dwarf2_per_objfile_free): Unref dwz_bfd, if it exists
2335 (lookup_die_type): Handle DW_FORM_GNU_ref_alt.
2336 (create_debug_types_hash_table): Use correct abbrev section.
2337 (get_debug_line_section): New function.
2338 (dwarf_decode_line_header, dwarf_decode_lines_1): Use it.
2339 (process_full_comp_unit): Pass 'required' argument to
2340 end_symtab_get_static_block.
2341 * buildsym.h (end_symtab_get_static_block): Update.
2342 * buildsym.c (end_symtab_get_static_block): Add 'required'
2343 argument.
2344 (end_symtab, end_expandable_symtab): Update.
2345
4bf44c1c
TT
23462012-07-18 Tom Tromey <tromey@redhat.com>
2347
2348 * dwarf2read.c: Don't include zlib.h or sys/mman.h.
2349 (pagesize): Remove.
2350 (struct dwarf2_section_info) <map_addr, map_len>: Remove.
2351 (zlib_decompress_section): Remove.
2352 (dwarf2_read_section): Use gdb_bfd_map_section.
2353 (munmap_section_buffer): Remove.
2354 (free_dwo_file, dwarf2_per_objfile_free): Don't use
2355 munmap_section_buffer.
2356 * gdb_bfd.c: Include zlib.h, sys/mman.h.
2357 (struct gdb_bfd_section_data): New.
2358 (free_one_bfd_section): New function.
2359 (gdb_bfd_close_or_warn): Use free_one_bfd_section.
2360 (get_section_descriptor, zlib_decompress_section)
2361 (gdb_bfd_map_section): New functions.
2362 * gdb_bfd.h (gdb_bfd_map_section): Declare.
2363
bb397797
TT
23642012-07-18 Tom Tromey <tromey@redhat.com>
2365
2366 * dwarf2read.c (try_open_dwo_file): use gdb_bfd_open.
2367
6ec53d05
TT
23682012-07-18 Tom Tromey <tromey@redhat.com>
2369
2370 * gdb_bfd.c (struct gdb_bfd_data): New.
2371 (gdb_bfd_cache): New global.
2372 (struct gdb_bfd_cache_search): New.
2373 (hash_bfd, eq_bfd, gdb_bfd_open): New functions.
2374 (gdb_bfd_ref, gdb_bfd_unref): Use gdb_bfd_data.
2375 * gdb_bfd.h (gdb_bfd_open): Declare.
2376
f9a062ff
TT
23772012-07-18 Tom Tromey <tromey@redhat.com>
2378
2379 * utils.c (make_cleanup_bfd_unref): Rename from
2380 make_cleanup_bfd_close.
2381 * defs.h (make_cleanup_bfd_unref): Rename from
2382 make_cleanup_bfd_close.
2383 * cli/cli-dump.c (bfd_openr_with_cleanup): Update.
2384 (bfd_openw_with_cleanup): Update.
2385 * corelow.c (core_open): Update.
2386 * dsrec.c (load_srec): Update.
2387 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
2388 * remote-m32r-sdi.c (m32r_load): Update.
2389 * remote-mips.c (mips_load_srec): Update.
2390 (pmon_load_fast): Update.
2391 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2392 Update.
2393 (darwin_bfd_open): Update.
2394 * solib.c (solib_bfd_fopen): Update.
2395 * symfile-mem.c (symbol_file_add_from_memory): Update.
2396 * symfile.c (symbol_file_add_with_addrs_or_offsets): Update.
2397 (symfile_bfd_open): Update.
2398 (generic_load): Update.
2399
d6ad71ba
TT
24002012-07-18 Tom Tromey <tromey@redhat.com>
2401
2402 * remote-mips.c (mips_load_srec): Use make_cleanup_bfd_close.
2403 (pmon_load_fast): Likewise.
2404 * m32r-rom.c (m32r_load): Use make_cleanup_bfd_close.
2405 (m32r_upload_command): Likewise.
2406 * dsrec.c (load_srec): Use make_cleanup_bfd_close.
2407 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2408 Use make_cleanup_bfd_close.
2409
a4453b7e
TT
24102012-07-18 Tom Tromey <tromey@redhat.com>
2411
2412 * symfile.c (symfile_bfd_open): Don't copy name. Call
2413 gdb_bfd_stash_filename.
2414 (load_command): Open the new BFD before freeing the old.
2415 (bfd_open_maybe_remote): Call gdb_bfd_stash_filename.
2416 * symfile-mem.c (symbol_file_add_from_memory): Don't copy name.
2417 Call gdb_bfd_stash_filename.
2418 * spu-linux-nat.c (spu_bfd_open): Don't copy name.
2419 * solib-spu.c (spu_bfd_fopen): Don't copy name. Call
2420 gdb_bfd_stash_filename.
2421 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2422 Free found_pathname.
2423 * rs6000-nat.c (add_vmap): Don't copy filename. Call
2424 gdb_bfd_stash_filename.
2425 * remote.c (remote_bfd_open): Call gdb_bfd_stash_filename.
2426 * machoread.c (macho_add_oso_symfile): Call
2427 gdb_bfd_stash_filename.
2428 (macho_symfile_read_all_oso): Arrange to free archive_name. Call
2429 gdb_bfd_stash_filename.
2430 (macho_check_dsym): Don't copy filename. Call
2431 gdb_bfd_stash_filename.
2432 * jit.c (bfd_open_from_target_memory): Don't copy the filename.
2433 * gdb_bfd.c (gdb_bfd_stash_filename): New function.
2434 * gdb_bfd.h (gdb_bfd_stash_filename): Declare.
2435 * gcore.c (create_gcore_bfd): Call gdb_bfd_stash_filename.
2436 * exec.c (exec_close): Don't free the BFD's filename.
2437 (exec_file_attach): Don't copy the filename. Call
2438 gdb_bfd_stash_filename.
2439 * corelow.c (core_close): Don't free the BFD's filename.
2440 (core_open): Call gdb_bfd_stash_filename.
2441 * corefile.c (reopen_exec_file): Remove #if 0 code.
2442 * solib.c (solib_bfd_fopen): Call gdb_bfd_stash_filename. Free
2443 pathname.
2444 * dwarf2read.c (try_open_dwo_file): Call gdb_bfd_stash_filename.
2445
cbb099e8
TT
24462012-07-18 Tom Tromey <tromey@redhat.com>
2447
2448 * dwarf2read.c (try_open_dwo_file): Use gdb_bfd_ref and
2449 gdb_bfd_unref.
2450 (free_dwo_file): Use gdb_bfd_unref.
2451 * cli/cli-dump.c: Include gdb_bfd.h.
2452 (bfd_openw_with_cleanup): Use gdb_bfd_ref.
2453 (bfd_openr_with_cleanup): Likewise.
2454 * windows-nat.c (windows_make_so): Use gdb_bfd_ref,
2455 gdb_bfd_unref.
2456 * utils.c: Include gdb_bfd.h.
2457 (do_bfd_close_cleanup): Use gdb_bfd_unref.
2458 * symfile.c: Include gdb_bfd.h.
2459 (separate_debug_file_exists): Use gdb_bfd_unref.
2460 (bfd_open_maybe_remote): Use gdb_bfd_ref.
2461 (symfile_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
2462 (generic_load): Use gdb_bfd_ref.
2463 (reread_symbols): Use gdb_bfd_unref.
2464 * symfile-mem.c: Include gdb_bfd.h.
2465 (symbol_file_add_from_memory): Use make_cleanup_bfd_close.
2466 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
2467 * solib.c: Include gdb_bfd.h.
2468 (solib_bfd_fopen): Use gdb_bfd_ref.
2469 (solib_bfd_open): Use gdb_bfd_unref.
2470 (free_so_symbols): Use gdb_bfd_unref.
2471 (reload_shared_libraries_1): Use gdb_bfd_unref.
2472 * solib-spu.c: Include gdb_bfd.h.
2473 (spu_bfd_fopen): Use gdb_bfd_ref, gdb_bfd_unref.
2474 * solib-pa64.c (pa64_solib_create_inferior_hook): Use gdb_bfd_ref,
2475 gdb_bfd_unref.
2476 * solib-frv.c: Include gdb_bfd.h.
2477 (enable_break2): Use gdb_bfd_unref.
2478 * solib-dsbt.c: Include gdb_bfd.h.
2479 (enable_break2): Use gdb_bfd_unref.
2480 * solib-darwin.c: Include gdb_bfd.h.
2481 (darwin_solib_get_all_image_info_addr_at_init): Use gdb_bfd_ref,
2482 gdb_bfd_unref.
2483 (darwin_bfd_open): Use gdb_bfd_unref.
2484 * rs6000-nat.c (add_vmap): Use gdb_bfd_ref, gdb_bfd_unref.
2485 * remote-mips.c: Include gdb_bfd.h.
2486 (mips_load_srec): Use gdb_bfd_ref.
2487 (pmon_load_fast): Use gdb_bfd_ref.
2488 * remote-m32r-sdi.c: Include gdb_bfd.h.
2489 (m32r_load): Use gdb_bfd_ref.
2490 * record.c: Include gdb_bfd.h.
2491 (record_save_cleanups): Use gdb_bfd_unref.
2492 (cmd_record_save): Use gdb_bfd_unref.
2493 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_ref,
2494 gdb_bfd_unref.
2495 * objfiles.h (gdb_bfd_close_or_warn): Remove.
2496 (gdb_bfd_ref, gdb_bfd_unref): Move to gdb_bfd.h.
2497 * objfiles.c: Include gdb_bfd.h.
2498 (free_objfile): Use gdb_bfd_unref.
2499 (gdb_bfd_close_or_warn, gdb_bfd_ref, gdb_bfd_unref): Move to
2500 gdb_bfd.c.
2501 * machoread.c (macho_add_oso_symfile): Use gdb_bfd_unref.
2502 (macho_symfile_read_all_oso): Use gdb_bfd_ref, gdb_bfd_unref.
2503 (macho_check_dsym): Likewise.
2504 * m32r-rom.c: Include gdb_bfd.h.
2505 (m32r_load): Use gdb_bfd_ref.
2506 (m32r_upload_command): Use gdb_bfd_ref.
2507 * jit.c: Include gdb_bfd.h.
2508 (jit_bfd_try_read_symtab): Use gdb_bfd_ref, gdb_bfd_unref.
2509 * gdb_bfd.h: New file.
2510 * gdb_bfd.c: New file.
2511 * gcore.c: Include gdb_bfd.h.
2512 (create_gcore_bfd): Use gdb_bfd_ref.
2513 (do_bfd_delete_cleanup): Use gdb_bfd_unref.
2514 (gcore_command): Use gdb_bfd_unref.
2515 * exec.c: Include gdb_bfd.h.
2516 (exec_close): Use gdb_bfd_unref.
2517 (exec_close_1): Use gdb_bfd_unref.
2518 (exec_file_attach): Use gdb_bfd_ref.
2519 * elfread.c: Include gdb_bfd.h.
2520 (build_id_verify): Use gdb_bfd_unref.
2521 * dsrec.c: Include gdb_bfd.h.
2522 (load_srec): Use gdb_bfd_ref.
2523 * corelow.c: Include gdb_bfd.h.
2524 (core_close): Use gdb_bfd_unref.
2525 (core_open): Use gdb_bfd_ref.
2526 * bfd-target.c: Include gdb_bfd.h.
2527 (target_bfd_xclose): Use gdb_bfd_unref.
2528 (target_bfd_reopen): Use gdb_bfd_ref.
2529 * Makefile.in (SFILES): Add gdb_bfd.c.
2530 (HFILES_NO_SRCDIR): Add gdb_bfd.h.
2531 (COMMON_OBS): Add gdb_bfd.o.
2532
ed1d1739
KS
25332012-07-18 Keith Seitz <keiths@redhat.com>
2534
2535 * breakpoint.c (find_condition_and_thread): Initialize
2536 TASK and REST.
2537 (create_breakpiont): find_condition_and_thread will now
2538 initialize COND_STRING, THREAD, and REST (and TASK).
2539 (addr_string_to_sals): Likewise.
2540
eab402df
PA
25412012-07-18 Pedro Alves <palves@redhat.com>
2542
2543 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_NO_HISTORY>:
2544 Pull the single step breakpoints out of the target.
2545
2b963b68
SDJ
25462012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
2547
2548 * probe.c (probe_safe_evaluate_at_pc): Rename variable `n_probes'.
2549 * stap-probe.c (compile_probe_arg): Likewise.
2550
6bac7473
SDJ
25512012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
2552
2553 * elfread.c (elf_get_probe_argument_count): Remove `objfile' argument.
2554 (elf_compile_to_ax): Likewise.
2555 * infrun.c (insert_exception_resume_from_probe): Likewise.
2556 (check_exception_resume): Remove `objfile' variable.
2557 * probe.c (find_probe_by_pc): Remove `objfile' argument.
2558 (struct probe_and_objfile, probe_and_objfile_s): Delete.
2559 (collect_probes): Adjust return value to `VEC (probe_p) *'.
2560 (compare_entries): Rename to...
2561 (compare_probes): ...this. Adjust function to work with
2562 `struct probe *'. Rename variables `ea' and `eb' to `pa' and `pb'
2563 respectively.
2564 (gen_ui_out_table_header_info): Adjust `probes' argument to be
2565 `VEC (probe_p) *'.
2566 (print_ui_out_info): Adjust argument to be `struct probe *'.
2567 (info_probes_for_ops): Adjust internal computations to use
2568 `VEC (probe_p) *'.
2569 (probe_safe_evaluate_at_pc): Refactor to not pass `objfile' anymore.
2570 * probe.h (struct probe_ops) <get_probe_argument_count, compile_to_ax,
2571 gen_info_probes_table_values>: Remove `objfile' argument.
2572 (struct probe) <objfile>: New field.
2573 (find_probe_by_pc): Remove `objfile' argument.
2574 * stap-probe.c (stap_parse_probe_arguments): Likewise.
2575 (stap_get_probe_argument_count): Likewise.
2576 (stap_get_arg): Likewise.
2577 (stap_evaluate_probe_argument): Likewise.
2578 (stap_compile_to_ax): Likewise.
2579 (compile_probe_arg): Refactor not to pass `objfile' anymore.
2580 (handle_stap_probe): Fill `objfile' field from `struct probe'.
2581 (stap_gen_info_probes_table_header): Remove `objfile' argument.
2582 * symfile.h (struct sym_probe_fns) <sym_evaluate_probe_argument,
2583 sym_compile_to_ax>: Likewise.
2584
3347eb1a 25852012-07-18 Terry Guo <terry.guo@arm.com>
2586
2587 PR 14329
2588 * defs.h (GDB_MI_MSG_WIDTH): New.
2589 * ser_base (ser_base_read_error_fd): New function.
2590 (do_ser_base_readchar): Poll error file descriptor as well as
2591 standard output.
f782ad9b 2592 (generic_readchar): Refactor error handling.
3347eb1a 2593
80c8d323
JB
25942012-07-18 Joel Brobecker <brobecker@adacore.com>
2595
2596 * NEWS: Create a new section for the next release branch.
2597 Rename the section of the current branch, now that it has
2598 been cut.
2599
b45a0664 26002012-07-18 Joel Brobecker <brobecker@adacore.com>
2601
2602 GDB 7.5 branch created (branch timestamp: 2012-07-18 03:22 UTC)
2603 * version.in: Bump version to 7.5.50.20120718-cvs.
2604
09cf2b22
KS
26052012-07-17 Keith Seitz <keiths@redhat.com>
2606
2607 * linespec.c (linespec_parse_line_offset): Make parameter
2608 const.
2609
8f043999
JK
26102012-07-16 Jan Kratochvil <jan.kratochvil@redhat.com>
2611
2612 PR 11914
2613 * f-valprint.c (info_common_command): New variable frame_id.
2614 Reinitialize FI form FRAME_ID after each print_variable_and_value.
2615 * printcmd.c (print_variable_and_value): Extend function comment.
2616 Add comment for invalidated FRAME.
2617 * stack.c (backtrace_command_1): New variable frame_id. Reinitialize
2618 FI form FRAME_ID after each print_frame_local_vars.
2619 (struct print_variable_and_value_data): Change frame to frame_id.
2620 (do_print_variable_and_value): New variable frame, initialize it from
2621 p->frame_id. Add comment for invalidated FRAME.
2622 (print_frame_local_vars, print_frame_arg_vars): New function comment.
2623 Update CB_DATA.FRAME to CB_DATA.FRAME_ID initialization. Add comment
2624 for invalidated FRAME.
2625
ae5e0686
MK
26262012-07-16 Marc Khouzam <marc.khouzam@ericsson.com>
2627 Pedro Alves <palves@redhat.com>
2628
2629 * linux-nat.c (linux_nat_detach): Don't unregister from the event
2630 loop.
2631
5049c5be
TT
26322012-07-16 Tom Tromey <tromey@redhat.com>
2633
2634 * jv-typeprint.c (c_type_print_varspec_suffix): Don't declare.
2635
2908cac6
DE
26362012-07-15 Doug Evans <dje@google.com>
2637
094b34ac
DE
2638 * dwarf2read.c (stmt_list_hash): New struct.
2639 (type_unit_group): Embed "per_cu" member, remove pointer.
2640 New union member "t", move member "tus" into it, all uses updated.
2641 New member "hash", replaces member "line_offset, all uses updated.
2642 (quick_file_names): Replace member "offset" with "hash", all uses
2643 updated.
2644 (hash_stmt_list_entry, eq_stmt_list_entry): New functions.
2645 (hash_file_name_entry, eq_file_name_entry): Call them.
2646 (hash_type_unit_group, eq_type_unit_group): Ditto.
2647 (dw2_get_cu, dw2_get_primary_cu): Replace assert with a better one.
2648 (dw2_get_file_names_reader): Fix file name table calculation for TUs.
2649 (dw2_get_file_names): Update.
2650 (create_type_unit_group): Replace "per_cu" arg with "cu".
2651 All callers updated. Fix "quick" (.gdb_index) handling.
2652 (get_type_unit_group): Replace "per_cu" arg with "cu".
2653 All callers updated.
2654 (build_type_unit_groups): Don't reset tu_stats.
2655
2908cac6
DE
2656 * symtab.c (filename_seen_cache): Delete members "tab_alloc_size",
2657 "tab_cur_size". Change member "tab" to be a htab_t.
2658 (create_filename_seen_cache): Update.
2659 (clear_filename_seen_cache, delete_filename_seen_cache): Update.
2660 (filename_seen): Update.
2661
a2b6eff5
DE
26622012-07-13 Doug Evans <dje@google.com>
2663
2664 * symtab.c (filename_seen): Update comment.
2665
4359dff1
JK
26662012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2667 Doug Evans <dje@google.com>
2668
2669 * buildsym.c (end_symtab_1): Split it to ...
2670 (end_symtab_get_static_block): ... this ...
2671 (end_symtab_from_static_block): ... and this function.
2672 (end_symtab, end_expandable_symtab): Call them.
2673 * buildsym.h (end_symtab_get_static_block)
2674 (end_symtab_from_static_block): New declarations.
2675 * dwarf2read.c (process_full_comp_unit): New variable static_block.
2676 Set its valid CU ranges.
2677
a24f71ab
JK
26782012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2679
2680 * dwarf2loc.c (disassemble_dwarf_expression): Handle
2681 DW_OP_GNU_parameter_ref.
2682
d76b7dbc
JK
26832012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2684
2685 * dwarf2read.c (read_call_site_scope): Do not gdb_assert for invalid
2686 read-in CALL_SITE_PARAMETER_PARAM_OFFSET.
2687
9fdc877b
DE
26882012-07-13 Doug Evans <dje@google.com>
2689
2690 * symtab.c (output_source_filename): Delete unnecessary forward decl.
2691 (filename_seen_cache): New struct.
2692 (INITIAL_FILENAME_SEEN_CACHE_SIZE): New macro.
2693 (create_filename_seen_cache): New function.
2694 (clear_filename_seen_cache, delete_filename_seen_cache): New functions.
2695 (filename_seen): Delete arg "first". New arg "cache". All callers
2696 updated.
2697 (output_source_filename_data): New struct.
2698 (output_source_filename): Delete arg "first". New arg "data".
2699 All callers updated.
2700 (sources_info): Delete local "first". New locals "data", "cleanups".
2701 Rewrite to use filename_seen_cache.
2702 (add_partial_filename_data): Delete member "first". New member
2703 "filename_seen_cache". All uses updated.
2704 (make_source_files_completion_list): Rewrite to use
2705 filename_seen_cache.
2706
f80c6f3f
DE
27072012-07-12 Doug Evans <dje@google.com>
2708
2709 * psymtab.c (map_symbol_filenames_psymtab): Skip shared psymtabs.
2710
0bfa869d
DE
27112012-07-10 Doug Evans <dje@google.com>
2712
f4dc4d17
DE
2713 PR gdb/13498
2714 * dwarf2read.c (dwarf2_per_objfile): New members n_type_unit_groups,
2715 all_type_unit_groups, type_unit_groups, tu_stats.
2716 (dwarf2_per_cu_data): Move "imported_symtabs" into new union "s".
2717 All uses updated. Add type_unit_group to union "s".
2718 (type_unit_group): New struct.
2719 (IS_TYPE_UNIT_GROUP): New macro.
2720 (abbrev_table): Delete unused member "section".
2721 (dw2_do_instantiate_symtab): Early exit if type_unit_group.
2722 (dw2_get_cu): Assert not used with type_unit_group.
2723 (dw2_get_primary_cu): New function.
2724 (dw2_build_type_unit_groups_reader): New function.
2725 (dw2_build_type_unit_groups): New function.
2726 (dw2_get_file_names): Assert not called on type units.
2727 (dw2_map_symtabs_matching_filename): Call dw2_build_type_unit_groups.
2728 Redo loop to iterate over type unit groups instead of type units.
2729 (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Ditto.
2730 (read_abbrev_offset): New function.
2731 (init_cutu_and_read_dies): New arg "abbrev_table". All callers
2732 updated.
2733 (create_partial_symtab): New function.
2734 (process_psymtab_comp_unit_reader): Assert not used with type units.
2735 Call create_partial_symtab.
2736 (process_psymtab_type_unit): Delete.
2737 (hash_type_unit_group, eq_type_unit_group): New functions.
2738 (allocate_type_unit_groups_table): New function.
2739 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB): New macro.
2740 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB_SIZE): New macro.
2741 (create_type_unit_group, get_type_unit_group): New functions.
2742 (tu_abbrev_offset): New struct.
2743 (sort_tu_by_abbrev_offset): New function.
2744 (add_type_unit_group_to_table): New function.
2745 (build_type_unit_groups): New function.
2746 (build_type_psymtabs_reader): New function.
2747 (build_type_psymtab_dependencies): New function.
2748 (build_type_psymtabs): Rewrite.
2749 (scan_partial_symbols): Flag an error if a DW_TAG_imported_unit
2750 is seen in a type unit.
2751 (process_queue): Move symtab expansion debugging printfs here.
2752 Call process_full_type_unit for type units.
2753 (compute_symtab_includes): Assert not called for type units.
2754 (process_cu_includes): Don't call compute_symtab_includes for
2755 type units.
2756 (process_full_type_unit): New function.
2757 (process_imported_unit_die): Flag an error if called for type units.
2758 (handle_DW_AT_stmt_list): Delete arg "want_line_info". All callers
2759 updated. Assert not called for type units.
2760 (read_file_scope): Call dwarf2_start_symtab.
2761 (setup_type_unit_groups): New function.
2762 (read_type_unit_scope): Rewrite.
2763 (abbrev_table_read_table): Initialize abbrev_table->offset.
2764 (abbrev_table_free_cleanup): New function.
2765 (dwarf2_start_symtab): New function.
2766 (load_full_type_unit): Assert not called for type unit groups.
6d30eef8
DE
2767 * buildsym.c (finish_block_internal): New arg "expandable".
2768 All callers updated.
2769 (start_symtab): Move most contents to ...
2770 (restart_symtab): ... here. New function.
2771 (reset_symtab_globals): New function.
2772 (end_symtab_1): Renamed from end_symtab. New arg "expandable".
2773 Call reset_symtab_globals.
2774 (end_symtab, end_expandable_symtab): New functions.
2775 (set_missing_symtab, augment_type_symtab): New functions.
2776 * buildsym.h (end_expandable_symtab): Declare.
2777 (augment_type_symtab, restart_symtab): Declare.
b4c41fc7
DE
2778 * psympriv.h (struct partial_symtab): New member "anonymous".
2779 * psymtab.c (partial_map_symtabs_matching_filename): Ignore
2780 anonymous psymtabs.
2781 (read_psymtabs_with_filename): Ditto.
2782 (map_symbol_filenames_psymtab, psymtab_to_fullname): Ditto.
2783 (expand_symtabs_matching_via_partial): Ditto.
2784 (dump_psymtab): Update.
0bfa869d
DE
2785 * dictionary.c (dict_add_pending): New function.
2786 * dictionary.h (dict_add_pending): Declare.
2787
45e58e77
DE
27882012-07-09 Doug Evans <dje@google.com>
2789
b74db436
DE
2790 * buildsym.c (start_subfile): Remove unnecessary check for
2791 name == NULL.
2792
fd55216c
DE
2793 * psymtab.c (allocate_psymtab): Use host_address_to_string.
2794
6721b2ec
DE
2795 * dwarf2read.c (load_full_type_unit): Simplify.
2796
b4dd5633
DE
2797 * dwarf2read.c (dwarf2_per_objfile): Change type of all_type_units
2798 to struct signatured_type **. All uses updated.
2799
45e58e77
DE
2800 * dwarf2read.c (dwarf2_attr_no_follow): Delete unused arg "cu".
2801 All callers updated.
2802
e314d629
TT
28032012-07-09 Tom Tromey <tromey@redhat.com>
2804
2805 * c-exp.y (check_parameter_typelist): New function.
2806 (parameter_typelist): Call it.
2807 * eval.c (make_params): Handle '(void)' case.
2808 * gdbtypes.c (lookup_function_type_with_arguments): Handle
2809 '(void)' case.
2810
aa7c7447
JK
28112012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2812
2813 * common/linux-ptrace.c: Include gdb_assert.h.
2814 <__i386__> (linux_ptrace_test_ret_to_nx_instr): New declaration.
2815 <__i386__>: Include sys/reg.h, sys/mman.h, signal.h, sys/wait.h and
2816 stdint.h.
2817 (linux_ptrace_test_ret_to_nx, linux_ptrace_init_warnings): New
2818 functions.
2819 * common/linux-ptrace.h (linux_ptrace_init_warnings): New declarations.
2820 * linux-nat.c (linux_child_post_attach)
2821 (linux_child_post_startup_inferior): Call linux_ptrace_init_warnings.
2822
889003ed
JK
28232012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2824
2825 * linux-thread-db.c (thread_db_find_new_threads_silently): Do not apply
2826 nptl <2.7 bug workaround for core files.
2827
da559b09
JK
28282012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2829
2830 * linux-nat.c (resume_lwp, linux_nat_resume): Remove LP->SIGINFO
2831 clearing.
2832 (save_siginfo): Remove.
2833 (stop_wait_callback, linux_nat_filter_event): Remove the save_siginfo
2834 call.
2835 (resume_stopped_resumed_lwps): Remove LP->SIGINFO clearing.
2836 (linux_nat_get_siginfo): Use PTRACE_GETSIGINFO.
2837 * linux-nat.h (struct lwp_info): Remove field siginfo.
2838
f865ee35
JK
28392012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2840
2841 Code cleanup for the next patch.
2842 * arm-linux-nat.c (arm_linux_stopped_data_address): Change variable
2843 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
2844 call for it.
2845 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
2846 (ia64_linux_stopped_data_address):
2847 * linux-nat.c (linux_nat_get_siginfo): Add parameter siginfo, change
2848 the return value.
2849 * linux-nat.h (linux_nat_get_siginfo): Likewise.
2850 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Change variable
2851 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
2852 call for it.
2853
76b83c51
JK
28542012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2855
2856 PR 14321
2857 * findcmd.c (parse_find_args): New variable pattern_buf_size_need.
2858 Increase buffer sizes to 2x we need, not just 2x of the previous size.
2859
a6fb9c08
TT
28602012-07-06 Tom Tromey <tromey@redhat.com>
2861
2862 * c-exp.y (DOTDOTDOT): New token.
2863 (func_mod, exp): Use parameter_typelist.
2864 (parameter_typelist): New production.
2865 (tokentab3): Add "..." token.
2866 * eval.c (make_params): Handle varargs.
2867 * gdbtypes.c (lookup_function_type_with_arguments): Handle
2868 varargs.
2869
71918a86
TT
28702012-07-06 Tom Tromey <tromey@redhat.com>
2871
2872 PR exp/9608:
2873 * c-exp.y (%union) <tvec>: Change type.
2874 (func_mod): Now uses <tvec> type.
2875 (exp): Update for tvec change.
2876 (direct_abs_decl): Push the typelist.
2877 (func_mod): Return a typelist.
2878 (nonempty_typelist): Update for tvec change.
2879 * gdbtypes.c (lookup_function_type_with_arguments): New function.
2880 * gdbtypes.h (lookup_function_type_with_arguments): Declare.
2881 * parse.c (pop_type_list): New function.
2882 (push_typelist): New function.
2883 (follow_types): Handle tp_function_with_arguments.
2884 * parser-defs.h (type_ptr): New typedef. Define a VEC.
2885 (enum type_pieces) <tp_function_with_arguments>: New constant.
2886 (union type_stack_elt) <typelist_val>: New field.
2887 (push_typelist): Declare.
2888
fcde5961
TT
28892012-07-06 Tom Tromey <tromey@redhat.com>
2890
2891 * c-exp.y (%union) <type_stack>: New field.
2892 (abs_decl, direct_abs_decl): Use <type_stack> type. Update.
2893 (ptr_operator_ts): New production.
2894 (ptype): Update.
2895 * parse.c (type_stack_reserve): New function.
2896 (check_type_stack_depth): Use it.
2897 (pop_type_stack, append_type_stack, push_type_stack)
2898 (get_type_stack, type_stack_cleanup): New functions.
2899 (follow_types): Handle tp_type_stack.
2900 (_initialize_parse): Simplify initialization.
2901 * parser-defs.h (enum type_pieces) <tp_type_stack>: New
2902 constant.
2903 (union type_stack_elt) <stack_val>: New field.
2904 (get_type_stack, append_type_stack, push_type_stack)
2905 (type_stack_cleanup): Declare.
2906
1a7d0ce4
TT
29072012-07-06 Tom Tromey <tromey@redhat.com>
2908
2909 * parser-defs.h (type_stack, type_stack_size, type_stack_depth):
2910 Remove.
2911 (struct type_stack): New.
2912 * parse.c (type_stack, type_stack_size, type_stack_depth):
2913 Remove.
2914 (type_stack): New global.
2915 (parse_exp_in_context, check_type_stack_depth)
2916 (insert_into_type_stack, insert_type, push_type, push_type_int)
2917 (insert_type_address_space, pop_type, pop_type_int)
2918 (_initialize_parse): Update.
2919
16d01384
TT
29202012-07-06 Tom Tromey <tromey@redhat.com>
2921
2922 * c-exp.y (func_mod, direct_abs_decl, abs_decl, ptr_operator):
2923 Remove %type.
2924
9bfc60bf
SP
29252012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
2926
2927 * c-lang.c (c_printstr): Remove ununsed variable WIDTH.
2928
d5161074
SP
29292012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
2930 Jan Kratochvil <jan.kratochvil@redhat.com>
2931
2932 * cp-valprint.c (cp_print_value): Replace potentially unsafe
2933 alloca with xmalloc/xfree.
2934
a74bc576
SP
29352012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
2936
2937 * MAINTAINERS (Write After Approval): Add myself to the list.
2938
667e0a4b
DE
29392012-07-05 Doug Evans <dje@google.com>
2940
2941 * dwarf2read.c (dw2_expand_symtabs_matching): Fix typo.
2942
34b536a8
HZ
29432012-07-05 Hui Zhu <hui_zhu@mentor.com>
2944
2945 * ax-gdb.c (cli/cli-utils.h): New include.
2946 (linespec.h): Ditto.
2947 (agent_eval_command_one): New function.
2948 (agent_command_1): Ditto.
2949 (agent_command): Call function agent_command_1.
2950 (agent_eval_command): Ditto.
2951 (_initialize_ax_gdb): Change help for "maint agent"
2952 and "maint agent-eval".
2953
e6f0bce7
HZ
29542012-07-05 Hui Zhu <hui_zhu@mentor.com>
2955
2956 * breakpoint.c (check_for_argument): Move to file cli/cli-utils.c.
2957 * cli/cli-utils.c (check_for_argument): New function.
2958 * cli/cli-utils.h (check_for_argument): Ditto.
2959
1b3371b1
L
29602012-07-04 H.J. Lu <hongjiu.lu@intel.com>
2961
2962 * NEWS: Mention x32 ABI support.
2963
23e2d720
L
29642012-07-04 H.J. Lu <hongjiu.lu@intel.com>
2965
2966 * amd64-tdep.c (amd64_x32_init_abi): Set sp_regnum_from_eax to
2967 AMD64_RSP_REGNUM and pc_regnum_from_eax to AMD64_RIP_REGNUM.
2968
2969 * i386-tdep.c (i386_gdbarch_init): Initialize sp_regnum_from_eax
2970 and pc_regnum_from_eax to -1. Update SP regnum from
2971 sp_regnum_from_eax and PC regnum from pc_regnum_from_eax if
2972 needed.
2973
2974 * i386-tdep.h (gdbarch_tdep): Add sp_regnum_from_eax and
2975 pc_regnum_from_eax.
2976
836bf454
JK
29772012-07-03 Jan Kratochvil <jan.kratochvil@redhat.com>
2978
2979 Fix 'warning: parameter has incomplete type' with gcc-3.4.6.
2980 * dwarf2expr.h: Include gdbtypes.h.
2981 (enum call_site_parameter_kind, union call_site_parameter_u): Remove
2982 these forward declarations.
2983 (cu_offset, sect_offset): Move these ...
2984 * gdbtypes.h: Remove include dwarf2expr.h.
2985 (cu_offset, sect_offset): ... here.
2986
1e55e04f
L
29872012-07-03 H.J. Lu <hongjiu.lu@intel.com>
2988
2989 * amd64-linux-tdep.c (linux_sigtramp_code): Renamed to ...
2990 (amd64_linux_sigtramp_code): This.
2991 (amd64_x32_linux_sigtramp_code): New.
2992 (LINUX_SIGTRAMP_LEN): Updated.
2993 (amd64_linux_sigtramp_start): Check x32 sigtramp.
2994
7d0e21ad
JK
29952012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2996
2997 * linux-thread-db.c (thread_db_new_objfile): Fix comment typos.
2998
8775fd2d
JK
29992012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3000
3001 * config.in: Regenerate.
3002 * configure: Regenerate.
3003 * configure.ac: Remove check for gnu/libc-version.h.
3004 * linux-thread-db.c <HAVE_GNU_LIBC_VERSION_H>: Remove include of
3005 gnu/libc-version.h.
3006 (enable_thread_event_reporting) <HAVE_GNU_LIBC_VERSION_H>: Remove
3007 variables libc_version, libc_major and libc_minor. Replace sscanf by
3008 inferior_has_bug. Extend the comment.
3009
fcb44371
JK
30102012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3011
3012 * linux-thread-db.c (inferior_has_bug): New function.
3013 (thread_db_find_new_threads_silently): Return boolean as checked by
3014 inferior_has_bug, describe it in the comments.
3015 (try_thread_db_load_1): Move call to thread_db_find_new_threads_silently
3016 earlier. Abort the initialization if it returned non-zero.
7d0e21ad 3017 (thread_db_new_objfile): Exclude debug files.
fcb44371
JK
3018 (thread_db_find_new_threads_2): Preinitialize ERR. Check errors also
3019 if UNTIL_NO_NEW,
3020
09406207
DE
30212012-07-02 Doug Evans <dje@google.com>
3022
0907af0c
DE
3023 * dwarf2read.c (maybe_queue_comp_unit): Move definition next to others
3024 related to queue management.
3025
09406207
DE
3026 * dwarf2read.c (create_debug_types_hash_table): Use "debug dwarf2-read"
3027 instead of "debug dwarf2-die" in debugging printfs.
3028 (create_debug_info_hash_table_reader): Ditto.
3029 (create_debug_info_hash_table): Ditto.
3030 (init_dwo_file): Ditto.
3031 (init_cutu_and_read_dies): Add debugging printf.
3032 (init_cutu_and_read_dies_no_follow): Ditto.
3033 (process_psymtab_comp_unit_reader): Ditto.
3034
d3ce09f5
SS
30352012-07-02 Stan Shebs <stan@codesourcery.com>
3036
3037 Add target-side support for dynamic printf.
3038 * NEWS: Mention the additional style.
3039 * breakpoint.h (struct bp_target_info): New fields tcommands, persist.
3040 (struct bp_location): New field cmd_bytecode.
3041 * breakpoint.c: Include format.h.
3042 (disconnected_dprintf): New global.
3043 (parse_cmd_to_aexpr): New function.
3044 (build_target_command_list): New function.
3045 (insert_bp_location): Call it.
3046 (remove_breakpoints_pid): Skip dprintf breakpoints.
3047 (print_one_breakpoint_location): Ditto.
3048 (dprintf_style_agent): New global.
3049 (dprintf_style_enums): Add dprintf_style_agent.
3050 (update_dprintf_command_list): Add agent case.
3051 (agent_printf_command): New function.
3052 (_initialize_breakpoint): Add new commands.
3053 * common/ax.def (printf): New bytecode.
3054 * ax.h (ax_string): Declare.
3055 * ax-gdb.h (gen_printf): Declare.
3056 * ax-gdb.c: Include cli-utils.h, format.h.
3057 (gen_printf): New function.
3058 (maint_agent_print_command): New function.
3059 (_initialize_ax_gdb): Add maint agent-printf command.
3060 * ax-general.c (ax_string): New function.
3061 (ax_print): Add printf disassembly.
3062 * Makefile.in (SFILES): Add format.c
3063 (COMMON_OBS): Add format.o.
3064 * common/format.h: New file.
3065 * common/format.c: New file.
3066 * printcmd.c: Include format.h.
3067 (ui_printf): Call parse_format_string.
3068 * remote.c (remote_state): New field breakpoint_commands.
3069 (PACKET_BreakpointCommands): New enum.
3070 (remote_breakpoint_commands_feature): New function.
3071 (remote_protocol_features): Add new BreakpointCommands entry.
3072 (remote_can_run_breakpoint_commands): New function.
3073 (remote_add_target_side_commands): New function.
3074 (remote_insert_breakpoint): Call it.
3075 (remote_insert_hw_breakpoint): Ditto.
3076 (_initialize_remote): Add new packet configuration for
3077 target-side breakpoint commands.
3078 * target.h (struct target_ops): New field
3079 to_can_run_breakpoint_commands.
3080 (target_can_run_breakpoint_commands): New macro.
3081 * target.c (update_current_target): Handle
3082 to_can_run_breakpoint_commands.
3083
2d7b58e8
JK
30842012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3085
3086 Execute -ix and -iex only after system and user gdbinit files.
3087 * main.c (captured_main): Move CMDARG_INIT_FILE and CMDARG_INIT_COMMAND
3088 processing down after gdbinit files.
3089
8690e634
JK
30902012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3091
3092 Add fnmatch-gnu module.
3093 * gnulib/Makefile.in (aclocal_m4_deps): Add new files and remove one.
3094 * gnulib/configure.ac (AC_INIT): Use now import/memmem.c.
3095 * gnulib/aclocal.m4: Regenerate.
3096 * gnulib/config.in: Regenerate.
3097 * gnulib/configure: Regenerate.
3098 * gnulib/import/dummy.c: Remove.
3099 * gnulib/import/Makefile.am: Regenerate.
3100 * gnulib/import/Makefile.in: Likewise.
3101 * gnulib/import/m4/gnulib-cache.m4: Likewise.
3102 * gnulib/import/m4/gnulib-comp.m4: Likewise.
3103 * gnulib/import/alloca.c: New file.
3104 * gnulib/import/alloca.in.h: Likewise.
3105 * gnulib/import/config.charset: Likewise.
3106 * gnulib/import/fnmatch.c: Likewise.
3107 * gnulib/import/fnmatch.in.h: Likewise.
3108 * gnulib/import/fnmatch_loop.c: Likewise.
3109 * gnulib/import/localcharset.c: Likewise.
3110 * gnulib/import/localcharset.h: Likewise.
3111 * gnulib/import/m4/alloca.m4: Likewise.
3112 * gnulib/import/m4/codeset.m4: Likewise.
3113 * gnulib/import/m4/configmake.m4: Likewise.
3114 * gnulib/import/m4/fcntl-o.m4: Likewise.
3115 * gnulib/import/m4/fnmatch.m4: Likewise.
3116 * gnulib/import/m4/glibc21.m4: Likewise.
3117 * gnulib/import/m4/localcharset.m4: Likewise.
3118 * gnulib/import/m4/locale-fr.m4: Likewise.
3119 * gnulib/import/m4/locale-ja.m4: Likewise.
3120 * gnulib/import/m4/locale-zh.m4: Likewise.
3121 * gnulib/import/m4/mbrtowc.m4: Likewise.
3122 * gnulib/import/m4/mbsinit.m4: Likewise.
3123 * gnulib/import/m4/mbsrtowcs.m4: Likewise.
3124 * gnulib/import/m4/mbstate_t.m4: Likewise.
3125 * gnulib/import/m4/stdbool.m4: Likewise.
3126 * gnulib/import/m4/wchar_h.m4: Likewise.
3127 * gnulib/import/m4/wctype_h.m4: Likewise.
3128 * gnulib/import/m4/wint_t.m4: Likewise.
3129 * gnulib/import/mbrtowc.c: Likewise.
3130 * gnulib/import/mbsinit.c: Likewise.
3131 * gnulib/import/mbsrtowcs-impl.h: Likewise.
3132 * gnulib/import/mbsrtowcs-state.c: Likewise.
3133 * gnulib/import/mbsrtowcs.c: Likewise.
3134 * gnulib/import/ref-add.sin: Likewise.
3135 * gnulib/import/ref-del.sin: Likewise.
3136 * gnulib/import/stdbool.in.h: Likewise.
3137 * gnulib/import/streq.h: Likewise.
3138 * gnulib/import/strnlen1.c: Likewise.
3139 * gnulib/import/strnlen1.h: Likewise.
3140 * gnulib/import/verify.h: Likewise.
3141 * gnulib/import/wchar.in.h: Likewise.
3142 * gnulib/import/wctype.in.h: Likewise.
3143
202cbf1c
JK
31442012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3145
3146 Support shell wildcards for 'set auto-load safe-path'.
3147 * auto-load.c: Include fnmatch.h.
3148 (filename_is_in_dir): Rename to ...
3149 (filename_is_in_pattern_1, filename_is_in_pattern): ... here and split
3150 it. Update function comment. Rename dir_len to pattern_len. New
3151 variables filename_len, pattern and filename. Add more DEBUG_AUTO_LOAD
3152 messages. Use gdb_filename_fnmatch.
3153 (filename_is_in_auto_load_safe_path_vec): Rename variable dir to
3154 pattern.
3155 (_initialize_auto_load): Extend the "set auto-load safe-path" help text.
3156 * defs.h (gdb_filename_fnmatch): New declaration.
3157 * utils.c: Include fnmatch.h.
3158 (gdb_filename_fnmatch): New function.
3159
fb7b5af4
SDJ
31602012-07-02 Sergio Durigan Junior <sergiodj@redhat.com>
3161
3162 * breakpoint.c (BREAK_ARGS_HELP): Include help message for the new
3163 `-probe' and `-probe-stap' options.
3164
72d0e2c5
YQ
31652012-07-01 Yao Qi <yao@codesourcery.com>
3166
3167 * breakpoint.c: Removed always_inserted_auto, always_inserted_on,
3168 always_inserted_off, and always_inserted_enums.
3169 Change always_inserted_mode's type to 'enum auto_boolean'.
3170 (show_always_inserted_mode, breakpoint_always_inserted_mode): Update
3171 callers.
3172 (_initialize_breakpoint): Call add_setshow_auto_boolean_cmd instead
3173 of add_setshow_enum_cmd.
3174 * infrun.c: Remove can_use_displaced_stepping_auto,
3175 can_use_displaced_stepping_on, can_use_displaced_stepping_off, and
3176 can_use_displaced_stepping_enum.
3177 Change can_use_displaced_stepping's type to 'enum auto_boolean'.
3178 (show_can_use_displaced_stepping, use_displaced_stepping): Update callers.
3179 (_initialize_infrun): Call add_setshow_auto_boolean_cmd instead of
3180 add_setshow_enum_cmd.
3181
42e7ad6c
DE
31822012-06-30 Doug Evans <dje@google.com>
3183
3184 * dwarf2read.c (signatured_type): Make "per_cu" member first.
3185 (init_cutu_and_read_dies): Handle rereading a DWO CU while it's
3186 currently being read. Propagate DW_AT_comp_dir to DWO DIE.
3187
39cf75f7
DE
31882012-06-29 Doug Evans <dje@google.com>
3189
3190 * linespec.c: #include "stack.h".
3191 (decode_line_with_current_source): Moved here from symtab.c and
3192 renamed from decode_line_spec. All callers updated.
3193 (decode_line_with_last_displayed): Moved here from breakpoint.c and
3194 renamed from decode_line_spec_1. All callers updated.
3195 * linespec.h (decode_line_with_current_source): Move declaration here
3196 from symtab.h and renamed from decode_line_spec.
3197 (decode_line_with_last_displayed): Move declaration here from symtab.h
3198 and renamed from decode_line_spec_1.
3199 * macrocmd.c: #include "linespec.h".
3200 * symtab.c: Remove #include "linespec.h".
3201
433df2d4
DE
32022012-06-28 Doug Evans <dje@google.com>
3203
1ce1cefd
DE
3204 * dwarf2read.c (get_cu_length): New function.
3205 (offset_in_cu_p, error_check_comp_unit_head): Call it.
3206 (create_debug_types_hash_table): Ditto.
3207 (init_cutu_and_read_dies): Ditto.
3208 (init_cutu_and_read_dies_no_follow): Ditto.
3209
3b80fe9b
DE
3210 * dwarf2read.c (dwarf2_find_base_address): Move definition.
3211
433df2d4
DE
3212 * dwarf2read.c (ABBREV_HASH_SIZE): Remove enclosing #ifndef/#endif.
3213 (struct abbrev_table): Define.
3214 (dwarf2_cu): Replace members dwarf2_abbrevs, abbrev_obstack with
3215 abbrev_table.
3216 (init_cutu_and_read_dies): Update.
3217 (abbrev_table_alloc_abbrev): New function. Replaces
3218 dwarf_alloc_abbrev. All callers updated.
3219 (abbrev_table_add_abbrev): New function.
3220 (abbrev_table_lookup_abbrev): New function. Replaces
3221 dwarf2_lookup_abbrev. All callers updated.
3222 (abbrev_table_read_table): New function. Contents moved here from
3223 dwarf2_read_abbrevs.
3224 (dwarf2_read_abbrevs): Call it.
3225 (abbrev_table_free): New function.
3226 (dwarf2_free_abbrev_table): Call it.
3227
71caed83
SS
32282012-06-28 Stan Shebs <stan@codesourcery.com>
3229
3230 * osdata.c (info_osdata_command): Filter out "Title" columns
3231 from non-MI uses.
3232 * common/linux-osdata.c (struct osdata_type): Add title field.
3233 (osdata_table): Add titles to each entry.
3234 (linux_command_xfer_osdata): Add a column for title data.
3235
37ce89eb
SS
32362012-06-28 Stan Shebs <stan@codesourcery.com>
3237
3238 Make logging work for MI.
3239 * NEWS: Mention it.
3240 * interps.h (interp_set_logging_ftype): New typedef.
3241 (struct interp_procs): New field set_logging_proc.
3242 (current_interp_set_logging): Declare.
3243 * interps.c (current_interp_set_logging): New function.
3244 * cli/cli-logging.c: Include interps.h.
3245 (set_logging_redirect): Call current_interp_set_logging.
3246 (pop_output_files): Ditto.
3247 (handle_redirections): Ditto, plus skip ui-out redirect if MI.
3248 * mi/mi-console.h (mi_console_set_raw): Declare.
3249 * mi/mi-console.c (mi_console_set_raw): New function.
3250 * mi/mi-interp.c (saved_raw_stdout): New global.
3251 (mi_set_logging): New function.
3252 (_initialize_mi_interp): Add it to interp procs.
3253
659c9f3a
DE
32542012-06-28 Doug Evans <dje@google.com>
3255
a743abeb
DE
3256 * symtab.c (lookup_symbol_aux_objfile): Use
3257 ALL_OBJFILE_PRIMARY_SYMTABS.
3258
659c9f3a
DE
3259 * gdbtypes.c (lookup_typename): Rename local variable "tmp" to "type".
3260
da2d6d3d
JK
32612012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3262
3263 * common/buffer.c: Include inttypes.h and stdint.h.
3264 (buffer_xml_printf): Use PRId64, PRIu64, PRIx64 and PRIo64.
3265
e5ef252a
PA
32662012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3267 Pedro Alves <palves@redhat.com>
3268
3269 * gdbthread.h (ALL_THREADS): New macro.
3270 (thread_list): Declare.
3271 * infrun.c (handle_inferior_event) <spurious signal>: Don't keep
3272 going, but instead fall through to the stepping handling.
3273 * linux-nat.c (resume_lwp): New parameter 'signo'. Resume with
3274 the passed in signal. Adjust debug output.
3275 (resume_callback): Rename to ...
3276 (linux_nat_resume_callback): ... this. Pass the thread's last
3277 stop signal, if in "pass" state.
3278 (linux_nat_resume): Adjust to rename.
3279 (stop_wait_callback): New assertion. Don't respawn signals;
3280 instead let the LWP remain with SIGNALLED set.
3281 (linux_nat_wait_1): Remove flushing of pending SIGSTOPs.
3282 * remote.c (append_pending_thread_resumptions): New.
3283 (remote_vcont_resume): Call it.
3284 * target.h (target_resume): Extend comment.
3285
1d7975eb
IS
32862012-06-28 Iain Sandoe <iain@codesourcery.com>
3287
3288 * auxv.c (fprint_target_auxv): Handle extended cache data tags.
3289
2e3cf129
DE
32902012-06-27 Doug Evans <dje@google.com>
3291
3292 * dwarf2read.c (dwarf2_cu): Add ranges_base.
3293 Delete have_addr_base, unused. All uses updated.
3294 (init_cutu_and_read_dies): Process DW_AT_GNU_ranges_base.
3295 (dwarf2_get_pc_bounds): Add ranges_base.
3296 (dwarf2_record_block_ranges): Ditto.
3297
1bb9788d
TT
32982012-06-27 Tom Tromey <tromey@redhat.com>
3299
3300 PR macros/7961:
3301 * varobj.c (varobj_create): Update.
3302 (varobj_set_value): Update.
3303 * tracepoint.c (validate_actionline): Update.
3304 (encode_actions_1): Update.
3305 * parse.c (parse_exp_1): Add 'pc' argument.
3306 (parse_exp_in_context): Add 'pc' argument. Change how
3307 expression_context_pc is set.
3308 (parse_expression): Update.
3309 (parse_field_expression): Update.
3310 * expression.h (parse_exp_1): Update.
3311 * eval.c (parse_to_comma_and_eval): Update.
3312 * breakpoint.c (set_breakpoint_condition): Update.
3313 (update_watchpoint): Update.
3314 (init_breakpoint_sal): Update
3315 (find_condition_and_thread): Update.
3316 (watch_command_1): Update.
3317 (update_breakpoint_locations): Update.
3318 * ada-lang.c (ada_read_renaming_var_value): Update.
3319 (create_excep_cond_exprs): Update.
3320
0bc3a05c
DE
33212012-06-27 Doug Evans <dje@google.com>
3322
3323 * dwarf2read.c (per_cu_header_read_in): Simplify, and handle
3324 type units.
3325
4bdcc0c1
DE
33262012-06-26 Doug Evans <dje@google.com>
3327
3328 * dwarf2read.c (read_and_check_comp_unit_head): Delete unnecessary
3329 prototype.
3330 (error_check_comp_unit_head): New arg abbrev_section. All callers
3331 updated.
3332 (read_and_check_comp_unit_head): Ditto.
3333 (read_and_check_type_unit_head): Ditto.
3334
ee0bf529
SCR
33352012-06-26 Siva Chandra Reddy <sivachandra@google.com>
3336
3337 New attribute 'last' for gdb.Symtab_and_line.
3338 * NEWS (Python Scripting): Add entry about the new attribute.
3339 * python/py-symtab.c (salpy_get_last): New function which
3340 implements the get method for the 'last' attribute of
3341 gdb.Symtab_and_line.
3342 (sal_object_getset): Add entry for the 'last' attribute.
3343
1c658ad5
DE
33442012-06-26 Doug Evans <dje@google.com>
3345
09262596
DE
3346 * dwarf2read.c (dwo_section_names): Add macinfo_dwo, macro_dwo.
3347 (dwo_sections): Add macinfo, macro.
3348 (dwarf2_locate_dwo_sections): Watch for macro sections.
3349 (dwarf_decode_macros): Remove args lh, abfd, section, section_name.
3350 All callers updated. Handle DWO files.
3351
45cfd468
DE
3352 * NEWS: Mention new options "set debug dwarf2-read" and
3353 "set debug symtab-create".
3354 * dwarf2read.c (dwarf2_read_debug): New static global.
3355 (dwarf2_build_psymtabs_hard): Add debugging printfs.
3356 (process_queue): Ditto.
3357 (process_full_comp_unit): Ditto.
3358 (_initialize_dwarf2_read): Add new option "set debug dwarf2-read".
3359 * elfread.c (elf_symfile_read): Add debugging printf.
3360 * minsyms.c (install_minimal_symbols): Ditto.
3361 * psymtab.c (allocate_psymtab): Ditto.
3362 * symfile.c (allocate_symtab): Ditto.
3363 * symtab.c (symtab_create_debug): New global.
3364 (_initialize_symtab): Add new option "set debug symtab-create".
3365 * symtab.h (symtab_create_debug): Declare.
3366
1c658ad5
DE
3367 * dwarf2read.c (lookup_dwo_comp_unit): Enhance comment.
3368 (lookup_dwo_type_unit): Ditto.
3369
6fea9e18
L
33702012-06-26 Roland McGrath <roland@hack.frob.com>
3371 H.J. Lu <hongjiu.lu@intel.com>
3372
3373 * amd64-linux-nat.c: Include <sys/user.h>.
3374 (ps_get_thread_area): Use PTRACE_PEEKUSER to get fs_base/gs_base
3375 if HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE or
3376 HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE is defined.
3377
3378 * configure.ac: Check if the fs_base and gs_base members of
3379 `struct user_regs_struct' exist.
3380 * config.in: Regenerated.
3381 * configure: Likewise.
3382
adb4fe3b
ME
33832012-06-25 Michael Eager <eager@eagercon.com>
3384
3385 PR python/14291
f782ad9b 3386 * python/python.c (gdbpy_write): Check for interrupted output.
adb4fe3b 3387
fc51cce1
MGD
33882012-06-25 Greta Yorsh <greta.yorsh@arm.com>
3389
3390 * arm-tdep.c (arm_in_function_epilogue_p): Recognize POP with a single
3391 register as a stack alignment in ARM mode.
3392
40a73391
JK
33932012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3394
3395 Update gnulib to GIT commit a39f53ccb70a613e647e1019fb4c63645220267e.
3396 * gnulib/config.in: Regenerate.
3397 * gnulib/configure: Likewise.
3398 * gnulib/import/m4/extensions.m4: Update it.
3399 * gnulib/import/m4/gnulib-common.m4: Likewise.
3400 * gnulib/import/m4/memmem.m4: Likewise.
3401 * gnulib/import/m4/mmap-anon.m4: Likewise.
3402 * gnulib/import/m4/multiarch.m4: Likewise.
3403 * gnulib/import/stdint.in.h: Likewise.
3404
972daa01
YQ
34052012-06-24 Yao Qi <yao@codesourcery.com>
3406
3407 * corefile.c (write_memory_with_notification): New.
3408 * gdbcore.h: Declare write_memory_with_notification.
3409 * ada-lang.c (ada_value_assign): Replace 'write_memory' and
3410 'observer_notify_memory_changed' with 'write_memory_with_notification'.
3411 * valops.c (value_assign): Likewise.
3412 * python/py-inferior.c (infpy_write_memory): Call
3413 'write_memory_with_notification'.
3414
8d6e0714
JK
34152012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3416
3417 * cc-with-index.sh: Use also -ex "set auto-load no".
3418
156942c7
DE
34192012-06-23 Doug Evans <dje@google.com>
3420
3421 PR 14125
3422 * NEWS: Document additions to .gdb_index.
3423 * dwarf2read.c: #include "gdb/gdb-index.h".
3424 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): New macro.
3425 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): New macro.
3426 (DW2_GDB_INDEX_CU_SET_VALUE): New macro.
3427 (dwarf2_read_index): Recognize version 7.
3428 (dw2_do_expand_symtabs_matching): New args want_specific_block,
3429 block_kind, domain): All callers updated.
3430 (dw2_find_symbol_file): Handle new index CU values.
3431 (dw2_expand_symtabs_matching): Match symbol kind if requested.
3432 (add_index_entry): New args is_static, kind. All callers updated.
3433 (offset_type_compare, uniquify_cu_indices): New functions
3434 (symbol_kind): New function.
3435 (write_psymtabs_to_index): Remove duplicate CU values.
3436 (write_psymtabs_to_index): Write .gdb_index version 7.
3437
352b3eda
JB
34382012-06-22 Joel Brobecker <brobecker@adacore.com>
3439
3440 * configure.ac (build_warnings): Add -Wdeclaration-after-statement.
3441 * configure: Regenerate.
3442
2678e2af
YQ
34432012-06-20 Yao Qi <yao@codesourcery.com>
3444
3445 * python/py-inferior.c: Update comments of infpy_read_memory
3446 and infpy_write_memory.
3447
95c391b6
TT
34482012-06-19 Tom Tromey <tromey@redhat.com>
3449
3450 PR exp/9514:
3451 * parser-defs.h (insert_type, insert_type_address_space): Declare.
3452 (push_type_address_space): Remove.
3453 * parse.c (insert_into_type_stack): New function.
3454 (insert_type): Likewise.
3455 (insert_type_address_space): Rename from push_type_address_space.
3456 Insert tp_space_identifier.
3457 * c-exp.y (ptr_operator): New production.
3458 (abs_decl): Use ptr_operator.
3459 (space_identifier): Call insert_type_address_space.
3460 (ptype): Don't use const_or_volatile_or_space_identifier.
3461 (const_or_volatile_noopt): Call insert_type.
3462 (conversion_type_id, conversion_declarator): New productions.
3463 (operator): Use conversion_type_id.
3464
6ac9ef80
DE
34652012-06-18 Doug Evans <dje@google.com>
3466
422d65e7
DE
3467 * symtab.h (minimal_symbol): New member created_by_gdb.
3468 * elfread.c (elf_symtab_read): Set created_by_gdb for @plt minsym
3469 created by gdb.
3470 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): New function.
3471 (search_symbols): Call it instead of lookup_symbol.
3472 Skip symbols created by gdb. Only scan minsyms if nfiles == 0.
3473
49f6c839
DE
3474 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_const_index.
3475 Adjust address for DW_OP_GNU_addr_index.
3476 * dwarf2expr.h (dwarf_expr_context): Update comment.
3477 * dwarf2loc.c (locexpr_describe_location_piece): New arg per_cu,
3478 all callers updated. Handle TLS vars described with
3479 DW_OP_GNU_const_index.
3480 (disassemble_dwarf_expression): Handle DW_OP_GNU_addr_index
3481 and DW_OP_GNU_const_index.
3482 * dwarf2read.c (decode_locdesc): Handle DW_OP_GNU_addr_index.
3483
6ac9ef80
DE
3484 * block.c (find_block_in_blockvector): Make explicit the fact that we
3485 ignore GLOBAL_BLOCK.
3486
4cd18215
TT
34872012-06-18 Tom Tromey <tromey@redhat.com>
3488
3489 * c-exp.y (operator): Remove trailing space after "delete" and
3490 "delete[]".
3491
a9b8d892
JK
34922012-06-18 Mark Kettenis <kettenis@gnu.org>
3493 Jan Kratochvil <jan.kratochvil@redhat.com>
3494
3495 Switch i386 and derived targets to ON_STACK.
3496 * amd64-dicos-tdep.c (amd64_dicos_push_dummy_code): Remove.
3497 (amd64_dicos_init_abi): Remove its installment.
3498 * dicos-tdep.c (dicos_init_abi): Remove the
3499 set_gdbarch_call_dummy_location call. Update the comment here.
3500 * i386-dicos-tdep.c (i386_dicos_push_dummy_code): Remove.
3501 (i386_dicos_init_abi): Remove its installment.
3502 * i386-tdep.c (i386_push_dummy_code): New function.
3503 (i386_gdbarch_init): Call set_gdbarch_call_dummy_location, install
3504 i386_push_dummy_code.
3505
e2e4d78b
JK
35062012-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
3507
3508 Remove stale dummy frames.
3509 * breakpoint.c: Include dummy-frame.h.
3510 (longjmp_breakpoint_ops): New variable.
3511 (update_breakpoints_after_exec, breakpoint_init_inferior): Delete also
3512 bp_longjmp_call_dummy.
3513 (bpstat_what, bptype_string, print_one_breakpoint_location)
3514 (init_bp_location): Support bp_longjmp_call_dummy.
3515 (set_longjmp_breakpoint): Use longjmp_breakpoint_ops. Comment why.
3516 (set_longjmp_breakpoint_for_call_dummy)
3517 (check_longjmp_breakpoint_for_call_dummy, longjmp_bkpt_dtor): New
3518 functions.
3519 (initialize_breakpoint_ops): Initialize longjmp_breakpoint_ops.
3520 * breakpoint.h (enum bptype): New item bp_longjmp_call_dummy. Delete
3521 FIXME comment and extend the other comment for bp_call_dummy.
3522 (set_longjmp_breakpoint_for_call_dummy)
3523 (check_longjmp_breakpoint_for_call_dummy): New declarations.
3524 * dummy-frame.c: Include gdbthread.h.
3525 (pop_dummy_frame_bpt): New function.
3526 (pop_dummy_frame): Call pop_dummy_frame_bpt.
3527 (dummy_frame_discard): New function.
3528 (cleanup_dummy_frames): Update the comment about longjmps.
3529 * dummy-frame.h (dummy_frame_discard): New declaration.
3530 * gdbthread.h (struct thread_info): Extend initiating_frame comment.
3531 * infcall.c (call_function_by_hand): New variable longjmp_b. Call
3532 set_longjmp_breakpoint_for_call_dummy. Chain its breakpoints with BPT.
3533 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>:
3534 Add case 4 comment. Call check_longjmp_breakpoint_for_call_dummy and
3535 keep_going if IS_LONGJMP and there is no other reason to stop.
3536
09d5912c
TT
35372012-06-18 Greta Yorsh <Greta.Yorsh@arm.com>
3538
3539 * remote-sim.c (sim_command_completer): Initialize
3540 variable 'result'.
3541
1788b2d3
JK
35422012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3543
3544 * dwarf2expr.c (execute_stack_op): Support DW_OP_GNU_parameter_ref.
3545 * dwarf2loc.c (call_site_parameter_matches): Support
3546 CALL_SITE_PARAMETER_PARAM_OFFSET.
3547 (needs_dwarf_reg_entry_value): Push stub value.
3548 * dwarf2read.c (read_call_site_scope): New variable origin. Support
3549 CALL_SITE_PARAMETER_PARAM_OFFSET and its DW_AT_abstract_origin.
3550 * gdbtypes.h (enum call_site_parameter_kind): New item
3551 CALL_SITE_PARAMETER_PARAM_OFFSET.
3552 (struct call_site.parameter.u): New field param_offset.
3553
24c5c679
JK
35542012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3555
3556 Code cleanup: Generalize call_site.parameter key.
3557 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_entry_value>: Remove
3558 variable dwarf_reg. New variable kind_u. Update parameters to
3559 push_dwarf_reg_entry_value.
3560 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
3561 * dwarf2expr.h (enum call_site_parameter_kind)
3562 (union call_site_parameter_u): Forward declarations.
3563 (struct dwarf_expr_context_funcs): Update parameters and their
3564 description for push_dwarf_reg_entry_value.
3565 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
3566 * dwarf2loc.c (call_site_parameter_matches): New function.
3567 (dwarf_expr_reg_to_entry_parameter): Update parameters and their
3568 description. Use call_site_parameter_matches.
3569 (dwarf_expr_push_dwarf_reg_entry_value, value_of_dwarf_reg_entry):
3570 Update parameters and their description.
3571 (value_of_dwarf_block_entry): Remove variables dwarf_reg and fb_offset.
3572 New variable kind_u. Adjust the caller for updated parameters.
3573 (needs_dwarf_reg_entry_value): Update parameters.
3574 * dwarf2read.c (read_call_site_scope): New variable loc. Use it
3575 instead of attr. Update for the changed fields of struct
3576 call_site_parameter.
3577 * gdbtypes.h: Include dwarf2expr.h.
3578 (enum call_site_parameter_kind): New.
3579 (struct call_site.parameter): New field kind. Wrap dwarf_reg and
3580 fb_offset into new union u.
3581
ac142d96
L
35822012-06-16 H.J. Lu <hongjiu.lu@intel.com>
3583
3584 * amd64-tdep.c (amd64_x32_analyze_stack_align): New function.
3585 (amd64_analyze_prologue): Call amd64_x32_analyze_stack_align
3586 for x32.
3587
ba224c70
L
35882012-06-16 H.J. Lu <hongjiu.lu@intel.com>
3589
3590 * amd64-linux-nat.c (compat_x32_clock_t): New.
3591 (compat_x32_siginfo_t): Likewise.
3592 (compat_x32_siginfo_from_siginfo): Likewise.
3593 (siginfo_from_compat_x32_siginfo): Likewise.
3594 (amd64_linux_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
3595 and siginfo_from_compat_x32_siginfo for x32.
3596
7ecbc825
HZ
35972012-06-15 Hui Zhu <hui_zhu@mentor.com>
3598
3599 * tracepoint.c (tfile_xfer_partial): Add a lseek.
3600
233dfcf0
L
36012012-06-15 H.J. Lu <hongjiu.lu@intel.com>
3602
3603 * amd64-linux-nat.c (ps_get_thread_area): Check bits_per_word
3604 instead of gdbarch_ptr_bit.
3605 * amd64-nat.c (amd64_native_gregset_reg_offset): Likewise.
3606 (amd64_supply_native_gregset): Likewise.
3607 (amd64_collect_native_gregset): Likewise.
3608 * amd64-tdep.c (amd64_supply_fxsave): Likewise.
3609 (amd64_supply_xsave): Likewise.
3610 (amd64_collect_fxsave): Likewise.
3611 (amd64_collect_xsave): Likewise.
3612
6da38f42
L
36132012-06-15 H.J. Lu <hongjiu.lu@intel.com>
3614
3615 * amd64-linux-nat.c (AMD64_LINUX_X32_DS): New.
3616 (amd64_linux_read_description): Check DS segment register for
3617 x32 process.
3618
663b969e
TT
36192012-06-15 Tom Tromey <tromey@redhat.com>
3620
3621 * dwarf2read.c (dw2_find_symbol_file): Unconditionally use
3622 init_cutu_and_read_dies.
3623
d6f05027
IS
36242012-06-15 Iain Sandoe <iain@codesourcery.com>
3625
3626 * MAINTAINERS (Write After Approval): Add myself to the list.
3627
6598ed07
TT
36282012-06-15 Tom Tromey <tromey@redhat.com>
3629
3630 * valops.c (value_find_oload_method_list): Now static.
3631 * value.h (value_find_oload_method_list): Don't declare.
3632
2b214ea6
TT
36332012-06-15 Tom Tromey <tromey@redhat.com>
3634
3635 * valops.c (find_overload_match): Use value_ind.
3636
a210c238
MR
36372012-06-15 Maciej W. Rozycki <macro@codesourcery.com>
3638
3639 * infrun.c (handle_inferior_event): Correct indentation.
3640
3771a44c
DE
36412012-06-14 Doug Evans <dje@google.com>
3642
3643 * dwarf2loc.c (debug_loc_kind): Add DEBUG_LOC_START_LENGTH.
3644 (DEBUG_LOC_START_END): Renamed from DEBUG_LOC_NORMAL.
3645 All uses updated.
3646 (decode_debug_loc_dwo_addresses): New arg "byte_order". All callers
3647 updated. Handle DEBUG_LOC_START_LENGTH.
3648 (dwarf2_find_location_expression): Handle DEBUG_LOC_START_LENGTH.
3649 (loclist_describe_location): Ditto.
3650
1c5a993e
MR
36512012-06-14 Maciej W. Rozycki <macro@codesourcery.com>
3652
3653 PR backtrace/13866
3654 * infrun.c (handle_inferior_event): Re-fetch frame and gdbarch
3655 after hiding inline functions.
3656
0b155465
JB
36572012-06-13 Joel Brobecker <brobecker@adacore.com>
3658
3659 * inf-ttrace.c (_initialize_hppa_hpux_nat): Rename into
3660 _initialize_inf_ttrace.
3661
45717bac
JB
36622012-06-13 Joel Brobecker <brobecker@adacore.com>
3663
3664 * ia64-hpux-nat.c (_initialize_ia64_hpux_nat): Renames
3665 _initialize_hppa_hpux_nat.
3666
34370865
JB
36672012-06-13 Joel Brobecker <brobecker@adacore.com>
3668
3669 * remote-sim.c (sim_command_completer): Change type of return
3670 value to "VEC (char_ptr) *". Adjust implementation accordingly.
3671
284c5a60
MK
36722012-06-13 Mark Kettenis <kettenis@gnu.org>
3673 Jan Kratochvil <jan.kratochvil@redhat.com>
3674
3675 PR tdep/14222
3676 * i386-tdep.c (i386_push_dummy_call): Unconditionally align the
3677 stack on a 16-byte boundary.
3678
2535757a
TT
36792012-06-13 Kaushik Srenevasan <kaushik@twitter.com>
3680
3681 * jit.c (finalize_symtab): Set function's return type to 'void' by
3682 default.
3683
fff4548b
MK
36842012-06-13 Mark Kettenis <kettenis@gnu.org>
3685 H.J. Lu <hongjiu.lu@intel.com>
3686
5a83521a
MK
3687 * amd64-linux-tdep.c (amd64_linux_init_abi_common): New function.
3688 Move bits common to both the classic LP64 and the new x32 ILP32
3689 ABI here.
3690 (amd64_linux_init_abi): Call amd64_linux_init_abi_common.
3691 (amd64_x32_linux_init_abi): New function.
3692 (_initialize_amd64_linux_tdep): Register osabi for bfd_mach_x64_32
3693 subtype.
3694
fff4548b
MK
3695 * i386-tdep.h (i386_pseudo_register_name): New prototype.
3696 * i386-tdep.c (i386_pseudo_register_name): Make public.
3697 * amd64-tdep.h (amd64_x32_init_abi): New prototype.
3698 * amd64-tdep.c (amd64_dword_names): Add "eip".
3699 (amd64_x32_pseudo_register_type): New function
3700 (amd64_x32_init_abi): New function.
3701
dd80ea3c
JK
37022012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3703
3704 PR build/14003
3705 * inferior.h (struct inferior_suspend_state): Comment out.
3706 (struct inferior): Comment out the field suspend.
3707 * infrun.c (struct infcall_suspend_state): Comment out the field
3708 inferior_suspend.
3709 (save_infcall_suspend_state, restore_infcall_suspend_state): Comment
3710 out its assignment.
3711
50af5481
JK
37122012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3713
3714 PR c++/14177 - Fix parsing TYPENAME:: in parentheses.
3715 * c-exp.y (classify_inner_name): Remove caller assumptions in the
3716 function comment. Return ERROR for unresolved cases. Implement
3717 returning proper NAME.
3718 (yylex): Accept also NAME from classify_inner_name.
3719 * cp-namespace.c (cp_lookup_nested_type): Rename to ...
3720 (cp_lookup_nested_symbol): ... here. Return any found symbol, not just
3721 LOC_TYPEDEF type.
3722 * cp-support.h (cp_lookup_nested_type): Update its declaration.
3723
d55637df
TT
37242012-06-13 Tom Tromey <tromey@redhat.com>
3725
3726 * breakpoint.c (condition_completer): New function.
3727 (_initialize_breakpoint): Use it.
3728 * value.c (complete_internalvar): New function.
3729 * value.h (complete_internalvar): Declare.
3730
49c4e619
TT
37312012-06-13 Tom Tromey <tromey@redhat.com>
3732
3733 * ada-lang.c (ada_make_symbol_completion_list): Return a VEC.
3734 * breakpoint.c (catch_syscall_completer): Return a VEC.
3735 * cli/cli-cmds.c (complete_command): Update.
3736 * cli/cli-decode.c (complete_on_cmdlist): Return a VEC.
3737 (complete_on_enum): Likewise.
3738 * command.h: Include gdb_vecs.h.
3739 (completer_ftype): Change return type.
3740 (complete_on_cmdlist, complete_on_enum): Likewise.
3741 * completer.c (noop_completer, filename_completer)
3742 (location_completer): Return a VEC.
3743 (add_struct_fields): Remove 'nextp' argument. Change 'output'
3744 to a VEC.
3745 (expression_completer, complete_line_internal, complete_line)
3746 (command_completer): Return a VEC.
3747 (gdb_completion_word_break_characters, line_completion_function):
3748 Update.
3749 * completer.h: Include gdb_vecs.h.
3750 (complete_line, noop_completer, filename_completer)
3751 (expression_completer, location_completer, command_completer):
3752 Update.
3753 * f-lang.c (f_word_break_characters): Return a VEC.
3754 * interps.c (interpreter_completer): Return a VEC.
3755 * language.h (struct language_defn)
3756 <la_make_symbol_completion_list>: Return a VEC.
3757 * python/py-cmd.c (cmdpy_completer): Return a VEC.
3758 * symtab.c (free_completion_list): Take a VEC.
3759 (return_val_size, return_val_index): Remove.
3760 (return_val): Now a VEC.
3761 (completion_list_add_name): Update.
3762 (default_make_symbol_completion_list_break_on)
3763 (default_make_symbol_completion_list, make_symbol_completion_list)
3764 (make_symbol_completion_list_fn, make_file_symbol_completion_list):
3765 Return a VEC.
3766 (add_filename_to_list): Update.
3767 (struct add_partial_filename_data) <list_used, list_alloced>: Remove.
3768 <list>: Now a VEC.
3769 (maybe_add_partial_symtab_filename): Update.
3770 (make_source_files_completion_list): Return a VEC.
3771 * symtab.h (default_make_symbol_completion_list_break_on)
3772 (default_make_symbol_completion_list, make_symbol_completion_list)
3773 (make_symbol_completion_list_fn, make_file_symbol_completion_list)
3774 (make_source_files_completion_list): Update.
3775
625e8578
TT
37762012-06-13 Tom Tromey <tromey@redhat.com>
3777
3778 * breakpoint.c (add_catch_command): Use completer_ftype.
3779 * breakpoint.h: Include command.h.
3780 (add_catch_command): Use completer_ftype.
3781 * cli/cli-decode.c (set_cmd_completer): Use completer_ftype.
3782 * cli/cli-decode.h (struct cmd_list_element) <completer>:
3783 Use completer_ftype.
3784 * command.h (completer_ftype): New typedef.
3785 (set_cmd_completer): Use it.
3786 * python/py-cmd.c (struct cmdpy_completer) <completer>: Use
3787 completer_ftype.
3788
5eb3b062
PA
37892012-06-13 Pedro Alves <palves@redhat.com>
3790
3791 Partial revert of previous change.
3792
3793 * serial.c (scb_base): New global.
3794 (serial_for_fd): New.
3795 (serial_open, serial_fdopen_ops): Link new serial in open serials
3796 chain.
3797 (do_serial_close): Unlink serial from the open serials chain.
3798
8b3ee56d
PA
37992012-06-12 Pedro Alves <palves@redhat.com>
3800
3801 * infrun.c (infrun_thread_stop_requested_callback): Don't switch
3802 threads here.
3803 (prepare_for_detach): No longer context switch here in non-stop
3804 mode.
3805 (fetch_inferior_event): Ditto.
3806 (handle_inferior_event) <STOP_QUIETLY || NO_STOP_QUIETLY>: Switch
3807 to the event thread before removing breakpoints. Switch to the
3808 event thread before inserting breakpoints and resuming.
3809 (handle_inferior_event) <TARGET_WAITKIND_SPURIOUS>: Switch to the
3810 event thread before resuming.
3811 (handle_inferior_event) <stepping_past_singlestep_breakpoint>:
3812 Switch to the event thread before removing breakpoints.
3813
5d60742e
EZ
38142012-06-12 Eli Zaretskii <eliz@gnu.org>
3815
3816 * infcmd.c (construct_inferior_arguments) [__MINGW32__]: Quote
3817 special characters correctly for the Windows shells. See
3818 http://sourceware.org/ml/gdb/2012-06/msg00047.html for the bug
3819 report.
3820 [!__MINGW32__]: Remove extra double quote character from special
3821 characters.
3822
a6feecf7
SS
38232012-06-11 Stan Shebs <stan@codesourcery.com>
3824
3825 * ui-out.h: Remove #if 0 declarations.
3826 * ui-out.c: Remove #if 0 functions.
3827
ddefb60f
PA
38282012-06-11 Pedro Alves <palves@redhat.com>
3829
3830 * ser-base.c (run_async_handler_and_reschedule): New.
3831 (fd_event, push_event): Use it.
3832 * serial.c (serial_open, serial_fdopen_ops): Set the initial
3833 reference count to 1.
3834 (do_serial_close): Set the bufp field to NULL. Use serial_unref
3835 instead of xfree.
3836 (serial_is_open, serial_ref, serial_unref): New.
3837 * serial.h (serial_open): Adjust comment.
3838 (serial_is_open): Declare.
3839 (serial_close): Adjust comment.
3840 (serial_ref, serial_unref) Declare.
3841 (struct serial): New field 'refcnt'.
3842
d5ad6aa5
PA
38432012-06-11 Pedro Alves <palves@redhat.com>
3844
3845 Remove #if 0'd "connect" command, and unnecessary associated
3846 refcounting and serial reuse bits.
3847
3848 * serial.h (struct serial): Remove fields 'next' and 'refcnt'.
3849 * serial.c (last_serial_opened): Delete.
3850 (scb_base): Delete.
3851 (serial_open): Adjust.
3852 (serial_for_fd): Delete.
3853 (serial_fdopen_ops, do_serial_close): Adjust.
3854 (serial_fdopen_ops): Adjust.
3855
318aa544
PA
38562012-06-11 Pedro Alves <palves@redhat.com>
3857
3858 * serial.c (do_serial_close): Remove early return when SCB is
3859 null.
3860
07261596
TT
38612012-06-11 Tom Tromey <tromey@redhat.com>
3862
3863 * dwarf2read.c (dw2_get_file_names_reader): Ignore partial units.
3864
cc80f267
JK
38652012-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3866
3867 Fix regression by the "ambiguous linespec" series.
3868 * breakpoint.c (parse_breakpoint_sals): New variable cursal. Use
3869 get_last_displayed_symtab and get_last_displayed_line and depending
3870 on CURSAL.
3871
356d9f9d
TT
38722012-06-11 Tom Tromey <tromey@redhat.com>
3873
3874 * dwarf2read.c (dw2_get_primary_filename_reader): New function.
3875 (dw2_find_symbol_file): Use it.
3876
232b8704
ME
38772012-06-11 Michael Eager <eager@eagercon.com>
3878
3879 * mips-linux-tdep.c (mips_gdb_signal_from_target): New
3880 * mips-linux-tdep.h (mips_signals): New
3881
e81a37f7
TT
38822012-06-11 Tom Tromey <tromey@redhat.com>
3883
3884 * infrun.c (handle_inferior_event)
3885 <BPSTAT_WHAT_SET_LONGJMP_RESUME>: Don't delete the step-resume
3886 breakpoint.
3887 <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>: Remove longjmp logic; use
3888 exception logic in all cases. Update comments.
3889 (insert_longjmp_resume_breakpoint): Set the exception resume
3890 breakpoint.
3891
2e81047f
MR
38922012-06-11 Maciej W. Rozycki <macro@codesourcery.com>
3893
3894 * mips-tdep.c (mips_push_dummy_code): Handle microMIPS code.
3895
4e32eda7
SCR
38962012-06-09 Siva Chandra Reddy <sivachandra@google.com>
3897
3898 * valarith.c (binop_types_user_defined_p): Fix a typo.
3899
18648a37 39002012-06-08 Yao Qi <yao@codesourcery.com>
f782ad9b 3901 Chung-Lin Tang <cltang@codesourcery.com>
18648a37
YQ
3902
3903 * arch-utils.c (default_return_in_first_hidden_param_p): New.
3904 * arch-utils.h: Declare.
3905 * gdbarch.sh: Add return_in_first_hidden_param_p.
3906 * gdbarch.c, gdbarch.h: Regenerated.
3907 * infcall.c (call_function_by_hand): Call
3908 gdbarch_return_in_first_hidden_param_p instead of
3909 language_pass_by_reference.
3910
3911 * m68k-tdep.c (m68k_return_in_first_hidden_param_p): New.
3912 (m68k_gdbarch_init): Install m68k_return_in_first_hidden_param_p.
3913 * sh-tdep.c (sh_return_in_first_hidden_param_p): New.
3914 (sh_gdbarch_init): Install sh_return_in_first_hidden_param_p.
3915 * tic6x-tdep.c (tic6x_push_dummy_call): Remove local variable
3916 `cplus_return_struct_by_reference'.
3917 (tic6x_return_value): Handle language cplusplus.
3918 (tic6x_return_in_first_hidden_param_p): New.
3919 (tic6x_gdbarch_init): Install tic6x_return_in_first_hidden_param_p.
3920
034e5797
DE
39212012-06-07 Doug Evans <dje@google.com>
3922
3923 * dwarf2read.c (dwarf2_cu): Add comment.
3924
6a00aa1e
MR
39252012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
3926
3927 * mips-tdep.c (mips_pseudo_register_type): Remove tdep local
3928 variable.
3929 (mips_eabi_push_dummy_call): Likewise.
3930 (mips_n32n64_push_dummy_call): Likewise.
3931 (mips_o32_push_dummy_call): Likewise.
3932 (mips_o64_push_dummy_call): Likewise.
3933
eaa05d59
MR
39342012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
3935
3936 * mips-tdep.c (mips_convert_register_p): Correct coding style.
3937
de13fcf2
MR
39382012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
3939
3940 * mips-tdep.c (mips_pseudo_register_type): Use
3941 mips_float_register_p.
3942
c3a01a22
PA
39432012-06-06 Pedro Alves <palves@redhat.com>
3944
3945 * infrun.c (handle_inferior_event): Remove calls to
3946 reinit_frame_cache that follow a context_switch call.
3947
d25f45d9
PA
39482012-06-06 Pedro Alves <palves@redhat.com>
3949
3950 * infrun.c (handle_inferior_event) <deferred_step_ptid>: Use
3951 context_switch and remove stale comment.
3952
359f5fe6
PA
39532012-06-06 Pedro Alves <palves@redhat.com>
3954
3955 * infrun.c (struct execution_control_state): Remove
3956 `new_thread_event' field.
3957 (handle_inferior_event): Simplify new threads handling; don't
3958 resume the inferior if we find a new thread.
3959
2d4c29c5
TS
39602012-06-06 Thomas Schwinge <thomas@codesourcery.com>
3961
3962 * NEWS: Document the deprecation of SH's 'regs' command.
3963 * inferior.h (all_registers_info): Add function declaration.
3964 * sh-tdep.c (sh_show_regs): Remove variable.
3965 (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs, sh2a_show_regs)
3966 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
3967 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs)
3968 (sh_show_regs_command): Remove functions.
3969 (sh_gdbarch_init): Don't set sh_show_regs.
3970 (_initialize_sh_tdep): Make the 'regs' command an deprecated alias to
3971 'info all-registers'.
3972 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs)
3973 (sh64_show_regs): Remove functions.
3974 * sh64-tdep.h (sh64_show_regs): Remove function declaration.
3975
f5f1cdb6
JK
39762012-06-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3977
3978 * configure.ac: Move development=true below AC_INIT.
3979 * configure: Regenerate.
3980
bf6309af
SS
39812012-06-05 Stan Shebs <stan@codesourcery.com>
3982
3983 * mi/mi-interp.c (mi_interpreter_init): Set raw_stdout from
3984 gdb_stdout.
3985
45aa4659
JK
39862012-06-05 Siddhesh Poyarekar <siddhesh@redhat.com>
3987
3988 * corefile.c (read_memory, read_stack, write_memory): Accept LEN
3989 argument as ssize_t.
3990 * gdbcore.h (read_memory, read_stack, write_memory): Likewise.
3991 * remote.c (remote_write_bytes_aux, remote_write_bytes): Likewise.
3992 * target.c (target_read_stack, target_write_memory)
3993 (target_write_raw_memory): Likewise.
3994 * target.h (target_read_stack, target_write_memory)
3995 (target_write_raw_memory): Likewise.
3996
1b162304
JK
39972012-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3998
3999 * symfile-mem.c: Change gdb_static_assert to ssize_t.
4000 (target_read_memory_bfd): Cast gdb_assert LEN to ssize_t.
4001 * target.c (target_read_memory): Change LEN to ssize_t.
4002 * target.h (target_read_memory): Change LEN to ssize_t.
4003
8556afb4
PA
40042012-06-05 Pedro Alves <palves@redhat.com>
4005
4006 PR backtrace/13866
4007
4008 * breakpoint.c (until_break_command): Only fetch the selected
4009 frame after decode_line_1.
4010
fb139f32
PA
40112012-06-05 Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
4012
4013 * solib-svr4.c (enable_break): Don't fallback to setting the solib
4014 event breakpoint at _start, __start or main if a program
4015 interpreter is not found.
4016
a8e1bb34
JB
40172012-06-05 Joel Brobecker <brobecker@adacore.com>
4018
4019 * windows-tdep.h (windows_iterate_over_objfiles_in_search_order):
4020 Add declaration.
4021 * windows-tdep.c: #include "objfiles.h".
4022 (windows_iterate_over_objfiles_in_search_order): New function.
4023 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
4024 iterate_over_objfiles_in_search_order gdbarch method to
4025 windows_iterate_over_objfiles_in_search_order.
4026 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
4027
19630284
JB
40282012-06-05 Joel Brobecker <brobecker@adacore.com>
4029
4030 * gdbarch.sh: Add generation of
4031 "iterate_over_objfiles_in_search_order_cb_ftype" typedef in
4032 gdbarch.h. Add include of "objfiles.h" in gdbarch.c.
4033 (iterate_over_objfiles_in_search_order): New gdbarch method.
4034 * gdbarch.h, gdbarch.c: Regenerate.
4035 * objfiles.h (default_iterate_over_objfiles_in_search_order):
4036 Add declaration.
4037 * objfiles.c (default_iterate_over_objfiles_in_search_order):
4038 New function.
4039 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
4040 out of lookup_symbol_aux_symtabs.
4041 (lookup_symbol_aux_symtabs): Replace extracted-out code by
4042 call to lookup_symbol_aux_objfile.
4043 (struct global_sym_lookup_data): New type.
4044 (lookup_symbol_global_iterator_cb): New function.
4045 (lookup_symbol_global): Search for symbol using
4046 gdbarch_iterate_over_objfiles_in_search_order and
4047 lookup_symbol_global_iterator_cb.
4048 * findvar.c (struct minsym_lookup_data): New type.
4049 (minsym_lookup_iterator_cb): New function.
4050 (default_read_var_value) [case LOC_UNRESOLVED]: Resolve the
4051 symbol's address via gdbarch_iterate_over_objfiles_in_search_order
4052 and minsym_lookup_iterator_cb.
4053
67ff19f7
JB
40542012-06-05 Joel Brobecker <brobecker@adacore.com>
4055
4056 Revert the following patch:
4057 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
4058 try locating the symbol in the symbol's own objfile first, before
4059 extending the search to all objfiles.
4060 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
4061 out of lookup_symbol_aux_symtabs.
4062 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
4063 Replace extracted-out code by call to lookup_symbol_aux_objfile.
4064 Do not search EXCLUDE_OBJFILE.
4065 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
4066 (lookup_symbol_global): Search for matches in the block's objfile
4067 first, before searching all other objfiles.
4068
ccab2054
JB
40692012-06-05 Joel Brobecker <brobecker@adacore.com>
4070
4071 * breakpoint.c (find_condition_and_thread): Stop parsing
4072 as soon as the first invalid keyword is found.
4073
e23d4a9c
JB
40742012-06-05 Joel Brobecker <brobecker@adacore.com>
4075
4076 * copyright.py (EXCLUDE_LIST): Add 'gdb/CONTRIBUTE' to list.
4077
70160166
JB
40782012-06-05 Joel Brobecker <brobecker@adacore.com>
4079
4080 * config/djgpp/djcheck.sh: Add copyright header.
4081
399501a5
JB
40822012-06-05 Joel Brobecker <brobecker@adacore.com>
4083
4084 * copyright.py (update_files, main): Fix path to update-copyright
4085 script.
4086
3770a159
JB
40872012-06-05 Joel Brobecker <brobecker@adacore.com>
4088
4089 * copyright.py (MULTIPLE_COPYRIGHT_HEADERS): New constant.
4090 (main): Add MULTIPLE_COPYRIGHT_HEADERS to the list of files
4091 for which a reminder to update by hand is printed.
4092
4aad0dfc
DE
40932012-06-04 Doug Evans <dje@google.com>
4094
4095 * buildsym.c (make_blockvector): Add comment.
4096
1f8cf220
PA
40972012-06-04 Pedro Alves <palves@redhat.com>
4098
4099 * arch-utils.c (default_gdb_signal_from_target): Delete.
4100 * arch-utils.h (default_gdb_signal_from_target): Delete.
4101 * corelow.c (core_open) <signal mapping>: Extended comment. Check
4102 gdbarch_gdb_signal_from_target_p.
4103 * gdbarch.sh (gdb_signal_from_target): Make it an M method (with
4104 predicate).
4105 * gdbarch.h: Regenerate.
4106 * gdbarch.c: Regenerate.
4107
86b49880
PA
41082012-06-04 Pedro Alves <palves@redhat.com>
4109
4110 * gdbarch.sh (gdb_signal_from_target): Mention that the
4111 implementation of the method must be host independent.
4112 * gdbarch.h: Regenerate.
4113
fe78531d
JK
41142012-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4115
4116 * symfile-mem.c: 3 new gdb_static_assert for target_read_memory_bfd
4117 parameters.
4118 (target_read_memory_bfd): New function.
4119 (symbol_file_add_from_memory): Use it.
4120
d790cf0a
DE
41212012-06-03 Doug Evans <dje@google.com>
4122
78e5175a
DE
4123 * symtab.c (lookup_global_symbol_from_objfile): Only scan blockvector
4124 of primary symtab.
4125 (basic_lookup_transparent_type): Ditto.
4126
d790cf0a
DE
4127 * objfiles.h (ALL_OBJFILE_PRIMARY_SYMTABS): New macro.
4128 (ALL_PRIMARY_SYMTABS): Use it.
4129 (ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
4130 * dwarf2read.c (dw2_find_symbol_file): Ditto.
4131 * linespec.c (iterate_over_all_matching_symtabs): Ditto.
4132 * symtab.c (lookup_symbol_aux_objfile): Ditto.
4133 (basic_lookup_transparent_type): Ditto.
4134
c6e5ee5e
SDJ
41352012-06-02 Sergio Durigan Junior <sergiodj@redhat.com>
4136
4137 * symtab.c (symbol_demangled_name): New variable `dem_name'. Use
4138 it to optimize resolution of demangled name.
4139
a68ffae9
JK
41402012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4141
4142 * configure.ac (development): Define new variable.
4143 Call AC_CHECK_LIB for mcheck if $development.
4144 (ERROR_ON_WARNING): Enable it by default only if $development.
4145 * config.in: Regenerate.
4146 * configure: Regenerate.
4147
5299c1c4
JK
41482012-06-01 Siddhesh Poyarekar <siddhesh@redhat.com>
4149
4150 * target.c (target_read_memory): Make LEN argument as size_t.
4151 * target.h (target_read_memory): Likewise.
4152
41532012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
7c71816c
JK
4154
4155 * tilegx-linux-tdep.c (tilegx_l): Use ULL for 64-bit values.
4156
0c56f59b
EBM
41572012-05-31 Edjunior Machado <emachado@linux.vnet.ibm.com>
4158
4159 * ppc-linux-nat.c (have_ptrace_booke_interface): Disable ptrace
4160 BookE interface for PowerPC server processors if not available
4161 in the Linux Kernel.
4162
71bdabee
KS
41632012-05-31 Keith Seitz <keiths@redhat.com>
4164
4165 * linespec.c (decode_objc): Add cleanup to free
4166 INFO.FILE_SYMTABS.
4167 (find_linespec_symbols): Add cleanup to free CLASSES.
4168 * symfile.c (find_separate_debug_file_by_debuglink): Add
4169 cleanup to free DEBUGLINK.
4170 * ui-out.c (clear_header_list): No need to check if
4171 HEADER_NEXT.COLHDR is NULL.
4172 Free HEADER_NEXT.COL_NAME.
4173
acbd605d
MGD
41742012-05-31 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
4175
4176 * ada-lang.c (standard_lookup): Prevent uninitialized variable
4177 warning.
4178
65662cde
PA
41792012-05-30 Jeff Kenton <jkenton@tilera.com>
4180
4181 * configure.host (gdb_host_cpu): Handle tilegx*.
4182 (gdb_host): Handle tilegx-*-linux*.
4183 * tilegx-linux-nat.c: New file.
4184 * config/tilegx/linux.mh: New file.
4185
ade64f0e
PA
41862012-05-30 Jeff Kenton <jkenton@tilera.com>
4187
4188 * Makefile.in (ALL_TARGET_OBJS): Add tilegx-tdep.o and
4189 tilegx-linux-tdep.o.
4190 (ALLDEPFILES): Add tilegx-linux-nat.c, tilegx-tdep.c and
4191 tilegx-linux-tdep.c.
4192 * configure.tgt: Handle tilegx-*-linux*.
4193 * tilegx-tdep.h: New file.
4194 * tilegx-tdep.c: New file.
4195 * tilegx-linux-tdep.c: New file.
4196 * regformats/reg-tilegx.dat: New file.
4197
bb08bdbd
EBM
41982012-05-30 Edjunior Machado <emachado@linux.vnet.ibm.com>
4199
4200 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): fix
4201 accounting of hw watchpoints on ppc.
4202
ebd86fb5
TJB
42032012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
4204
4205 * source.c (openp): Expand tilde in path entries.
4206
0a0edcd5
DE
42072012-05-29 Doug Evans <dje@google.com>
4208
98cc87bd
DE
4209 * buildsym.c (block_compar): Fix comment.
4210 (end_symtab): Fix and clarify some comments.
4211
0a0edcd5
DE
4212 * stabsread.h (cleanup_undefined_stabs_types): Renamed from
4213 cleanup_undefined_types.
4214 * stabsread.c (cleanup_undefined_stabs_types): Ditto.
4215 All callers updated.
4216
6f0c7050
TT
42172012-05-29 Tom Tromey <tromey@redhat.com>
4218
4219 * symfile.c (symfile_bfd_open): Don't close desc if bfd_fopen
4220 fails.
4221 * solib.c (solib_bfd_fopen): Don't close fd if bfd_fopen fails.
4222 * exec.c (exec_file_attach): Don't close scratch_chan if bfd_fopen
4223 fails.
4224 * dwarf2read.c (try_open_dwo_file): Don't close fd if bfd_fopen
4225 fails.
4226
ec95993c
TG
42272012-05-29 Tristan Gingold <gingold@adacore.com>
4228
4229 * solib-darwin.c (dyld_all_image_addr, dyld_all_image): Move into...
4230 (struct darwin_info): ... New struct.
4231 (solib_darwin_pspace_data): New variable.
4232 (darwin_pspace_data_cleanup): New function.
4233 (get_darwin_info): Likewise.
4234 (darwin_dyld_version_ok, darwin_load_image_infos)
4235 (darwin_solib_get_all_image_info_addr_at_init)
4236 (darwin_solib_read_all_image_info_addr): Add info argument.
4237 Adjust code.
4238 (darwin_current_sos): Use per pspace structure.
4239 (darwin_solib_create_inferior_hook): Likewise.
4240 (darwin_clear_solib): Likewise.
4241 (_initialize_darwin_solib): Initialize solib_darwin_pspace_data.
4242
ae25568b
PA
42432012-05-28 Pedro Alves <palves@redhat.com>
4244
4245 * infrun.c (wait_for_inferior): Move ecss and ecs locals to the
4246 block that uses them. Clear ecss before handling each event.
4247
0c5bf5a9
JK
42482012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4249
4250 * solib-svr4.c (svr4_current_sos): New comment on
4251 svr4_current_sos_via_xfer_libraries fall back.
4252
bfb05775
JK
42532012-05-24 Jan Kratochvil <jan.kratochvil@redhat.com>
4254
4255 * psymtab.c (lookup_symbol_aux_psymtabs): New variable stab_best. Use
4256 it as a fallback for TYPE_IS_OPAQUE.
4257 * symfile.h (struct quick_symbol_functions): Mention TYPE_OPAQUE
4258 symbols for lookup_symbol.
4259
685b1105
JK
42602012-05-24 John Steele Scott <toojays@toojays.net>
4261
4262 PR symtab/13277: Resolving opaque structures in ICC generated binaries.
4263 * dwarf2read.c (struct dwarf2_cu) <producer_is_icc>: New field.
4264 (producer_is_gxx_lt_4_6): Move the checking and caching to...
4265 (check_producer): ... this new function, which also checks for ICC
4266 and caches the result.
4267 (producer_is_icc): New function.
4268 (read_structure_type): Don't set TYPE_STUB_SUPPORTED if the
4269 producer was ICC.
4270
22203bbf
PA
42712012-05-24 Pedro Alves <palves@redhat.com>
4272
4273 PR gdb/7205
4274
4275 * arch-utils.c (default_gdb_signal_to_host): Rename to ...
4276 (default_gdb_signal_to_target): ... this. Add comment.
4277 (default_gdb_signal_from_host): Rename to ...
4278 (default_gdb_signal_from_target): ... this. Add comment.
4279 * arch-utils.h (default_gdb_signal_to_host): Rename to ...
4280 (default_gdb_signal_to_target): ... this.
4281 (default_gdb_signal_from_host): Rename to ...
4282 (default_gdb_signal_from_target): ... this.
4283 * corelow.c (core_open): Adjust to naming change. Replace comment.
4284 * gdbarch.sh (gdb_signal_from_host): Rename to ...
4285 (gdb_signal_from_target): ... this. Adjust to
4286 default_gdb_signal_from_host naming change. Extend comment.
4287 (gdb_signal_to_host): Rename to ...
4288 (gdb_signal_to_target): ... this. Adjust to
4289 default_gdb_signal_to_host naming change.
4290 * gdbarch.h, gdbarch.c: Renegerate.
4291
a493e3e2
PA
42922012-05-24 Pedro Alves <palves@redhat.com>
4293
4294 PR gdb/7205
4295
f782ad9b 4296 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
a493e3e2 4297
2ea28649
PA
42982012-05-24 Pedro Alves <palves@redhat.com>
4299
4300 PR gdb/7205
4301
4302 Replace target_signal with gdb_signal throughout.
4303
b09846a9
PA
43042012-05-24 Pedro Alves <palves@redhat.com>
4305
4306 PR tui/14159
4307
4308 * tui/tui-hooks.c (tui_query_hook): Pre-compute the question
4309 string, instead of reusing the va_list argument.
4310
e77c107e
TT
43112012-05-24 Tom Tromey <tromey@redhat.com>
4312
4313 * cp-support.h (cp_finalize_namespace, cp_initialize_namespace):
4314 Remove.
4315
9fccedf7
DE
43162012-05-23 Doug Evans <dje@google.com>
4317
d50bd42b
DE
4318 * symtab.c (search_symbols): Formatting fixes.
4319 (print_symbol_info): Formatting fixes.
4320
9fccedf7
DE
4321 * dwarf2-frame.c (execute_cfa_program): Update to handle long long ->
4322 int64_t change to leb128 API.
4323 (read_encoded_value, decode_frame_entry_1): Ditto.
4324 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Ditto.
4325 (dwarf_block_to_dwarf_reg, dwarf_block_to_dwarf_reg_deref): Ditto.
4326 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
4327 (execute_stack_op): Ditto.
4328 * dwarf2expr.h (gdb_read_uleb128, gdb_read_sleb128): Ditto.
4329 (safe_read_uleb128, safe_read_sleb128): Ditto.
4330 * dwarf2loc.c (decode_debug_loc_dwo_addresses): Ditto.
4331 (dwarf2_compile_expr_to_ax): Ditto.
4332 (locexpr_describe_location_piece): Ditto.
4333 (disassemble_dwarf_expression): Ditto.
4334 (locexpr_describe_location_1): Ditto.
4335
f3e0e960
SS
43362012-05-23 Stan Shebs <stan@codesourcery.com>
4337 Kwok Cheung Yeung <kcy@codesourcery.com>
4338
4339 * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-info.o.
4340 (SUBDIR_MI_SRCS): Add mi-cmd-info.c.
4341 (mi-cmd-info.o): New rule.
4342 * osdata.h (info_osdata_command): New declaration.
4343 * osdata.c (info_osdata_command): Change to non-static.
4344 * mi/mi-cmds.h (mi_cmd_info_os): New declaration.
4345 * mi/mi-cmds.c (mi_cmds): Add -info-os MI command.
4346 * mi/mi-cmd-info.c: New file.
4347
c51fe631
DE
43482012-05-23 Doug Evans <dje@google.com>
4349
71cddcc1
DE
4350 * symtab.c (search_symbols): Pass NULL for file_matcher to
4351 expand_symtabs_matching if there are no files to match.
4352
c51fe631
DE
4353 * gdbtypes.c (lookup_typename): Simplify.
4354
a79378d4
PA
43552012-05-23 Pedro Alves <palves@redhat.com>
4356
4357 * arch-utils.h (default_target_signal_to_host): Delete.
4358 * arch-utils.c (default_target_signal_to_host): Delete.
4359 * gdbarch.sh (target_signal_to_host): Remove.
4360 * gdbarch.h, gdbarch.c: Regenerate.
4361
f664829e
DE
43622012-05-22 Doug Evans <dje@google.com>
4363
4364 * dwarf2-frame.c (struct dwarf2_cie): Make initial_instructions, end
4365 "const gdb_byte *".
4366 (struct dwarf2_fde): Make instructions, end "const gdb_byte *".
4367 (execute_cfa_program): Update to match API of leb128 functions.
4368 (read_1_byte, read_4_bytes, read_8_bytes): Make buf parameter
4369 "const gdb_byte *".
4370 (read_unsigned_leb128, read_signed_leb128): Delete.
4371 (read_initial_length): Change type of buf argument to
4372 "const gdb_byte *".
4373 (read_encoded_value): Update to match API of leb128 functions.
4374 (decode_frame_entry): Change result to "const gdb_byte *", and
4375 similarly for "start" parameter.
4376 (decode_frame_entry_1): Ditto. Use new leb128 reader functions.
4377 (dwarf2_build_frame_info): Change local frame_ptr to
4378 "const gdb_byte *".
4379 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Replaces
4380 read_uleb128, read_sleb128. All callers updated.
4381 (safe_skip_leb128): New function.
4382 (dwarf_block_to_dwarf_reg): Update to match API of leb128 functions.
4383 Call gdb_read_uleb128, gdb_skip_leb128 instead of read_uleb128.
4384 (dwarf_block_to_dwarf_reg_deref): Update to match API of leb128
4385 functions. Call gdb_read_uleb128, gdb_read_sleb128 instead of
4386 read_uleb128, read_sleb128.
4387 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
4388 (execute_stack_op): Update to match API of leb128 functions.
4389 * dwarf2expr.h: #include "leb128.h".
4390 (read_uleb128, read_sleb128): Delete.
4391 (gdb_read_uleb128, gdb_read_sleb128, gdb_skip_leb128): New functions.
4392 (safe_read_uleb128, safe_read_sleb128, safe_skip_leb128): Declare.
4393 * dwarf2loc.c (debug_loc_kind): New enum.
4394 (decode_debug_loc_addresses): New function.
4395 (decode_debug_loc_dwo_addresses): New function.
4396 (dwarf2_find_location_expression): Rewrite.
4397 (dwarf2_compile_expr_to_ax): Update to match API of leb128 functions.
4398 (locexpr_describe_location_piece): Ditto.
4399 (disassemble_dwarf_expression): Ditto.
4400 (locexpr_describe_location_1): Ditto.
4401 (loclist_describe_location): Rewrite.
4402 * dwarf2loc.h (dwarf2_loclist_baton): New member "from_dwo".
4403 * dwarf2read.c (die_reader_specs): New member "buffer_end".
4404 (dwarf2_section_buffer_overflow_complaint): Renamed from
4405 dwarf2_macros_too_long_complaint. All callers updated.
4406 (skip_leb128): Delete.
4407 (init_cu_die_reader): Initialize reader->buffer_end.
4408 (skip_one_die): Replace call to skip_leb128 with safe_skip_leb128.
4409 (skip_form_bytes): New arg buffer_end. All callers updated.
4410 Replace call to skip_leb128 with gdb_skip_leb128.
4411 (skip_unknown_opcode): New arg mac_end. All callers updated.
4412 (fill_in_loclist_baton): Initialize baton->from_dwo.
4413
837a1b32
MR
44142012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
4415
4416 * mips-linux-nat.c (mips_linux_read_description): Use a more
4417 verbose error message.
4418
d0e64392
MR
44192012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
4420
4421 * NEWS: Add MIPS/Linux DSP support.
4422 * mips-linux-tdep.c: Document post-2.6.12 o32 sigcontext layout.
4423 (SIGCONTEXT_DSPCTL): New macro.
4424 (SIGCONTEXT_HI1, SIGCONTEXT_LO1): Likewise.
4425 (SIGCONTEXT_HI2, SIGCONTEXT_LO2): Likewise.
4426 (SIGCONTEXT_HI3, SIGCONTEXT_LO3): Likewise.
4427 (N64_SIGCONTEXT_HI1, N64_SIGCONTEXT_HI2): Likewise.
4428 (N64_SIGCONTEXT_HI3): Likewise.
4429 (N64_SIGCONTEXT_LO1, N64_SIGCONTEXT_LO2): Likewise.
4430 (N64_SIGCONTEXT_LO3): Likewise.
4431 (N64_SIGCONTEXT_DSPCTL): Likewise.
4432 (N64_SIGCONTEXT_FPCSR): Clarify definition.
4433 (mips_linux_o32_sigframe_init): Handle DSP registers.
4434 (mips_linux_n32n64_sigframe_init): Likewise.
4435
8bea7ed1
PM
44362012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
4437
4438 * common/buffer.c (buffer_grow): ARI fix: Remove unneeded
4439 call to abort.
4440
dab06dbe
PA
44412012-05-22 Pedro Alves <palves@redhat.com>
4442
4443 * target.h (store_waitstatus): Move declaration ...
4444 * inf-child.h (store_waitstatus): ... here.
4445 * target.c: Move inclusion of gdb_wait.h, and ...
4446 (store_waitstatus): ... this ...
4447 * inf-child.c: ... here.
4448 * linux-nat.c: Include inf-child.h.
4449 * rs6000-nat.c: Include inf-child.h.
4450 * spu-linux-nat.c: Include inf-child.h.
4451
43011e52
PM
44522012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
4453
4454 * tracepoint.c (start_tracing): Add missing i18n markup.
4455 (stop_tracing, set_trace_user): Ditto.
4456 (set_trace_notes, set_trace_stop_notes): Ditto.
4457
b1af9e97
TT
44582012-05-21 Tom Tromey <tromey@redhat.com>
4459
4460 PR c++/7173:
4461 * gnu-v3-abi.c (gnuv3_baseclass_offset): Return early for Java
4462 types.
4463 * value.h (value_cast_pointers): Update.
4464 * valops.c (value_cast_pointers): Add 'subclass_check' argument.
4465 (value_cast): Update.
4466 (update_search_result): New function.
4467 (do_search_struct_field): New, from search_struct_field. Check
4468 for ambiguous results.
4469 (search_struct_field): Rewrite.
4470 * infcall.c (value_arg_coerce): Update.
4471 * eval.c (evaluate_subexp_standard) <STRUCTOP_MEMBER>: Use
4472 value_cast_pointers.
4473 * ada-lang.c (ada_convert_actual): Update.
4474
e9e5e6b3
TT
44752012-05-21 Tom Tromey <tromey@redhat.com>
4476
4477 * macroexp.c (macro_stringify): Terminate the string.
4478
1564a261
JK
44792012-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4480
4481 * NEWS (--with-auto-load-dir): Prepend $debugdir to the default path.
4482 Describe it.
4483 * auto-load.c (auto_load_expand_dir_vars): New function.
4484 (auto_load_safe_path_vec_update): Use it, remove the
4485 substitute_path_component call thanks to it.
4486 (auto_load_objfile_script): Remove the debug_file_directory processing.
4487 Use auto_load_expand_dir_vars, remove the substitute_path_component
4488 call thanks to it.
4489 * configure: Regenerate.
4490 * configure.ac (--with-auto-load-dir): Prepend $debugdir to the default
4491 path. Escape $ also for $debugdir.
4492 (--with_auto_load_safe_path): Escape $ also for $debugdir.
4493 * utils.c (substitute_path_component): Accept also DIRNAME_SEPARATOR.
4494
a3ec0bb1
DE
44952012-05-20 Doug Evans <dje@google.com>
4496
4497 * dwarf2read.c (recursively_find_pc_sect_symtab): Initialize "s"
4498 before use. Check for symtab->includes == NULL before scanning it.
4499
d467df4e
MR
45002012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
4501
4502 * mips-tdep.c (mips_reg3_to_reg): Optimize storage.
4503
4cc0665f
MR
45042012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
4505
4506 * NEWS: Add microMIPS support and "set mips compression",
4507 "show mips compression" commands.
4508 * mips-tdep.h (mips_isa): New enum.
4509 (gdbarch_tdep): Add mips_isa.
4510 (mips_pc_is_mips16): Update prototype.
4511 (mips_pc_is_mips, mips_pc_is_micromips): New prototypes.
4512 * mips-tdep.c (mips_compression_mips16): New variable.
4513 (mips_compression_micromips): Likewise.
4514 (mips_compression_strings): Likewise.
4515 (mips_compression_string): Likewise.
4516 (is_mips16_isa, is_micromips_isa): New functions.
4517 (is_mips16_addr): Rename to...
4518 (is_compact_addr): ... this.
4519 (unmake_mips16_addr): Likewise to...
4520 (unmake_compact_addr): ... this.
4521 (make_mips16_addr): Likewise to...
4522 (make_compact_addr): ... this.
4523 (is_mips_addr, is_mips16_addr, is_micromips_addr): New
4524 functions.
4525 (mips_elf_make_msymbol_special): Handle microMIPS code.
4526 (msymbol_is_special): Rename to...
4527 (msymbol_is_mips16): ... this.
4528 (mips_make_symbol_special, mips_pc_is_mips16): Update
4529 accordingly.
4530 (msymbol_is_mips, msymbol_is_micromips): New functions.
4531 (mips16_to_32_reg): Rename to...
4532 (mips_reg3_to_reg): ... this.
4533 (mips_pc_is_mips, mips_pc_is_micromips): New functions.
4534 (mips_pc_isa): Likewise.
4535 (mips_read_pc, mips_unwind_pc, mips_write_pc): Handle microMIPS
4536 code.
4537 (mips_fetch_instruction): Pass return status instead of printing
4538 an error message if requested. Handle microMIPS code. Bail out
4539 on an invalid ISA.
4540 (micromips_op): New macro.
4541 (b0s4_imm, b0s5_imm, b0s5_reg, b0s7_imm, b0s10_imm): Likewise.
4542 (b1s9_imm, b2s3_cc, b4s2_regl, b5s5_op, b5s5_reg): Likewise.
4543 (b6s4_op, b7s3_reg): Likewise.
4544 (b0s6_op, b0s11_op, b0s12_imm, b0s16_imm, b0s26_imm): Likewise.
4545 (b6s10_ext, b11s5_reg, b12s4_op): Likewise.
4546 (mips_insn_size): New function.
4547 (mips32_next_pc): Update mips_fetch_instruction call.
4548 (micromips_relative_offset7): New function.
4549 (micromips_relative_offset10): Likewise.
4550 (micromips_relative_offset16): Likewise.
4551 (micromips_pc_insn_size): Likewise.
4552 (micromips_bc1_pc): Likewise.
4553 (micromips_next_pc): Likewise.
4554 (unpack_mips16): Update mips_fetch_instruction call.
4555 (extended_mips16_next_pc): Update according to change to
4556 mips16_to_32_reg.
4557 (mips_next_pc): Update mips_pc_is_mips16 call. Handle microMIPS
4558 code.
4559 (mips16_scan_prologue): Update mips_fetch_instruction call.
4560 Update according to change to mips16_to_32_reg.
4561 (mips_insn16_frame_sniffer): Update mips_pc_is_mips16 call.
4562 (mips_insn16_frame_base_sniffer): Likewise.
4563 (micromips_decode_imm9): New function.
4564 (micromips_scan_prologue): Likewise.
4565 (mips_micro_frame_cache): Likewise.
4566 (mips_micro_frame_this_id): Likewise.
4567 (mips_micro_frame_prev_register): Likewise.
4568 (mips_micro_frame_sniffer): Likewise.
4569 (mips_micro_frame_unwind): New variable.
4570 (mips_micro_frame_base_address): New function.
4571 (mips_micro_frame_base): New variable.
4572 (mips_micro_frame_base_sniffer): New function.
4573 (mips32_scan_prologue): Update mips_fetch_instruction call.
4574 (mips_insn32_frame_sniffer): Check for the standard MIPS ISA
4575 rather than for MIPS16.
4576 (mips_insn32_frame_base_sniffer): Likewise.
4577 (mips_addr_bits_remove): Handle microMIPS code.
4578 (deal_with_atomic_sequence): Rename to...
4579 (mips_deal_with_atomic_sequence): ... this. Update the type
4580 of the variable used to hold an instruction. Remove the ISA bit
4581 check. Update mips_fetch_instruction call.
4582 (micromips_deal_with_atomic_sequence): New function.
4583 (deal_with_atomic_sequence): Likewise.
4584 (mips_about_to_return): Handle microMIPS code. Update
4585 mips_fetch_instruction call.
4586 (heuristic_proc_start): Check for the standard MIPS ISA rather
4587 than for MIPS16. Update mips_pc_is_mips16 and
4588 mips_fetch_instruction calls. Handle microMIPS code.
4589 (mips_push_dummy_code): Handle microMIPS code.
4590 (mips_eabi_push_dummy_call): Likewise.
4591 (mips_o32_return_value): Update mips_pc_is_mips16 call.
4592 (mips_o64_push_dummy_call): Handle microMIPS code.
4593 (mips_o64_return_value): Update mips_pc_is_mips16 call.
4594 (is_delayed): Remove function.
4595 (mips_single_step_through_delay): Replace the call to is_delayed
4596 with mips32_instruction_has_delay_slot. Correct MIPS16 handling.
4597 Handle microMIPS code.
4598 (mips_skip_prologue): Update mips_pc_is_mips16 call. Handle
4599 microMIPS code.
4600 (mips32_in_function_epilogue_p): Update mips_fetch_instruction
4601 call.
4602 (micromips_in_function_epilogue_p): New function.
4603 (mips16_in_function_epilogue_p): Update mips_fetch_instruction
4604 call.
4605 (mips_in_function_epilogue_p): Update mips_pc_is_mips16 call.
4606 Handle microMIPS.
4607 (gdb_print_insn_mips): Likewise.
4608 (mips_breakpoint_from_pc): Likewise.
4609 (mips_remote_breakpoint_from_pc): New function.
4610 (mips32_instruction_has_delay_slot): Simplify making use of the
4611 updated mips_fetch_instruction interface.
4612 (micromips_instruction_has_delay_slot): New function.
4613 (mips16_instruction_has_delay_slot): Simplify making use of the
4614 updated mips_fetch_instruction interface.
4615 (mips_adjust_breakpoint_address): Check for the standard MIPS
f782ad9b 4616 ISA rather than for MIPS16 ISA. Update for unmake_compact_addr
4cc0665f
MR
4617 calls. Handle microMIPS code.
4618 (mips_get_mips16_fn_stub_pc): Update mips_fetch_instruction call.
4619 (mips_skip_trampoline_code): Handle microMIPS code.
4620 (global_mips_compression): New function.
4621 (mips_gdbarch_init): Handle the compressed ISA setting from ELF
4622 file flags. Register the microMIPS remote breakpoint handler
4623 and heuristic frame unwinder.
4624 (show_mips_compression): New function.
4625 (_initialize_mips_tdep): Add the "set mips compression" and
4626 "show mips compression" commands.
4627
22e048c9
SDJ
46282012-05-18 Sergio Durigan Junior <sergiodj@redhat.com>
4629
4630 * ada-lang.c:
4631 * ada-tasks.c:
4632 * ada-varobj.c:
4633 * amd64-darwin-tdep.c:
4634 * arm-symbian-tdep.c:
4635 * arm-tdep.c:
4636 * avr-tdep.c:
4637 * ax-gdb.c:
4638 * bfin-linux-tdep.c:
4639 * breakpoint.c:
4640 * c-valprint.c:
4641 * cli/cli-cmds.c:
4642 * coffread.c:
4643 * cp-support.c:
4644 * cris-tdep.c:
4645 * dwarf2-frame-tailcall.c:
4646 * dwarf2-frame.c:
4647 * dwarf2expr.c:
4648 * dwarf2loc.c:
4649 * dwarf2read.c:
4650 * elfread.c:
4651 * eval.c:
4652 * expprint.c:
4653 * f-valprint.c:
4654 * frv-tdep.c:
4655 * h8300-tdep.c:
4656 * hppa-hpux-tdep.c:
4657 * hppa-tdep.c:
4658 * hppanbsd-tdep.c:
4659 * i386-nto-tdep.c:
4660 * i386-tdep.c:
4661 * i387-tdep.c:
4662 * ia64-tdep.c:
4663 * jit.c:
4664 * linespec.c:
4665 * linux-tdep.c:
4666 * lm32-tdep.c:
4667 * m2-valprint.c:
4668 * m32c-tdep.c:
4669 * m32r-rom.c:
4670 * m32r-tdep.c:
4671 * m68k-tdep.c:
4672 * m68klinux-tdep.c:
4673 * mi/mi-main.c:
4674 * microblaze-tdep.c:
4675 * mips-linux-tdep.c:
4676 * mips-tdep.c:
4677 * mn10300-tdep.c:
4678 * p-valprint.c:
4679 * parse.c:
4680 * ppc-linux-tdep.c:
4681 * ppc-sysv-tdep.c:
4682 * printcmd.c:
4683 * python/py-finishbreakpoint.c:
4684 * python/py-inferior.c:
4685 * python/py-infthread.c:
4686 * python/py-type.c:
4687 * python/python.c:
4688 * remote-fileio.c:
4689 * remote-m32r-sdi.c:
4690 * remote-mips.c:
4691 * reverse.c:
4692 * rl78-tdep.c:
4693 * rs6000-aix-tdep.c:
4694 * rs6000-tdep.c:
4695 * s390-tdep.c:
4696 * score-tdep.c:
4697 * sh64-tdep.c:
4698 * skip.c:
4699 * solib-darwin.c:
4700 * solib-dsbt.c:
4701 * solib-frv.c:
4702 * sparc-tdep.c:
4703 * spu-multiarch.c:
4704 * spu-tdep.c:
4705 * stack.c:
4706 * symfile.c:
4707 * symtab.c:
4708 * tic6x-tdep.c:
4709 * tracepoint.c:
4710 * v850-tdep.c:
4711 * valarith.c:
4712 * valprint.c:
4713 * value.c:
4714 * xcoffread.c:
4715 * xtensa-tdep.c:
4716 * ada-lang.c:
4717 * ada-tasks.c:
4718 * ada-varobj.c:
4719 * amd64-darwin-tdep.c:
4720 * arm-symbian-tdep.c:
4721 * arm-tdep.c: Delete unused variables.
4722
aff139ff
JK
47232012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4724
4725 Rename $ddir to $datadir.
4726 * NEWS (--with-auto-load-dir): Rename $ddir to $datadir.
4727 * auto-load.c (auto_load_safe_path_vec_update)
4728 (auto_load_gdb_datadir_changed, auto_load_objfile_script): Likewise.
4729 * configure: Regenerate.
4730 * configure.ac (--with-auto-load-dir, --with-auto-load-safe-path):
4731 Likewise. Remove the 'use $ddir' help string.
4732
f7bfa992
JK
47332012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4734
4735 * auto-load.c (show_auto_load_safe_path): Accept any combination of
4736 DIRNAME_SEPARATOR and IS_DIR_SEPARATOR for wild-match.
4737
9cb709b6
TT
47382012-05-18 Tom Tromey <tromey@redhat.com>
4739
4740 PR exp/13907:
4741 * valprint.h (struct value_print_options) <symbol_print>: New
4742 field.
4743 * valprint.c (user_print_options): Add default for symbol_print.
4744 (show_symbol_print): New function.
4745 (generic_val_print): Respect symbol_print.
4746 (_initialize_valprint): Add "print symbol" setting.
4747 * f-valprint.c (f_val_print): Respect symbol_print.
4748 * c-valprint.c (c_val_print): Respect symbol_print.
4749 * NEWS: Update.
4750 * printcmd.c (print_address_symbolic): Return int. Ignore some
4751 zero-size symbols.
4752 (print_address_demangle): Return int.
4753 * defs.h: (print_address_symbolic): Return int.
4754 * value.h (print_address_demangle): Return int.
4755
b012acdd
TT
47562012-05-18 Tom Tromey <tromey@redhat.com>
4757
4758 * valprint.c (val_print_string): Don't print leading space.
4759 * p-valprint.c (pascal_val_print) <TYPE_CODE_PTR>: Optionally
4760 print space before string or vtbl.
4761 * m2-valprint.c (print_unpacked_pointer): Optionally print space
4762 before string.
4763 * jv-valprint.c (java_value_print): Print space before string.
4764 * go-valprint.c (print_go_string): Print space before string.
4765 * f-valprint.c (f_val_print) <TYPE_CODE_PTR>: Optionally print
4766 space before string.
4767 * c-valprint.c (c_val_print) <TYPE_CODE_PTR>: Optionally print
4768 space before string or vtbl.
4769 * auxv.c (fprint_target_auxv): Print space after address.
4770
1d51a733
TT
47712012-05-18 Tom Tromey <tromey@redhat.com>
4772
4773 * printcmd.c (print_address_demangle): Remove special case for 0.
4774
edf0c1b7
TT
47752012-05-18 Tom Tromey <tromey@redhat.com>
4776
4777 * printcmd.c (print_address_demangle): Add 'opts' argument.
4778 * p-valprint.c (pascal_val_print): Update.
4779 * jv-valprint.c (java_val_print): Update.
4780 * value.h: Update.
4781 * valprint.c (generic_val_print): Update.
4782 (print_function_pointer_address): Add 'options' argument. Remove
4783 'addressprint' argument. Update.
4784 * m2-valprint.c (print_unpacked_pointer): Update.
4785 * gnu-v3-abi.c (print_one_vtable): Update.
4786 (gnuv3_print_method_ptr): Update.
4787 * f-valprint.c (f_val_print): Update.
4788 * cp-valprint.c (cp_print_value_fields): Update.
4789 * valprint.h (print_function_pointer_address): Update.
4790 * c-valprint.c (c_val_print): Update.
4791
9703b513
TT
47922012-05-18 Tom Tromey <tromey@redhat.com>
4793
4794 * psymtab.c (find_pc_sect_symtab_from_partial): Return the symtab
4795 directly corresponding to the found psymtab.
4796 * dwarf2read.c (recursively_find_pc_sect_symtab): New function.
4797 (dw2_find_pc_sect_symtab): Use it.
4798 * block.h (blockvector_contains_pc): Declare.
4799 * block.c (find_block_in_blockvector): New function.
4800 (blockvector_for_pc_sect): Use it.
4801 (blockvector_contains_pc): New function.
4802
5a439849
MR
48032012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
4804
4805 * mips-tdep.h (mips_write_pc): New prototype.
4806 * mips-tdep.c (mips_write_pc): Make external, add description.
4807 * mips-linux-tdep.c (mips_linux_write_pc): Use mips_write_pc,
4808 add description.
4809
8376de04
MR
48102012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
4811
4812 * mips-tdep.c (mips_read_pc): Use gdbarch_pc_regnum instead of
4813 mips_regnum->pc.
4814 (mips_unwind_pc, mips_write_pc): Likewise.
4815 (mips_gdbarch_init): Remove a comment on gdbarch_pc_regnum and
4816 gdbarch_read_pc.
4817
d3581e61
JB
48182012-05-17 Joel Brobecker <brobecker@adacore.com>
4819
4820 * procfs.c (procfs_find_new_threads, procfs_pid_to_str,
4821 proc_warn, proc_error, proc_get_status, proc_flags,
4822 proc_why, proc_what, proc_nsysarg, proc_sysargs,
4823 proc_set_run_on_last_close, proc_unset_run_on_last_close,
4824 proc_unset_inherit_on_fork, proc_set_async, proc_unset_async,
4825 proc_stop_process, proc_wait_for_stop, proc_run_process,
4826 proc_set_traced_signals, proc_set_traced_faults,
4827 proc_set_traced_sysentry, proc_set_traced_sysexit,
4828 proc_set_held_signals, proc_get_held_signals,
4829 proc_get_traced_signals, proc_get_traced_faults,
4830 proc_get_traced_sysentry, proc_get_traced_sysexit,
4831 proc_clear_current_fault, proc_set_current_signal,
4832 proc_clear_current_signal, proc_get_gregs, proc_get_fpregs,
4833 proc_set_gregs, proc_set_fpregs, proc_kill, proc_parent_pid,
4834 proc_get_nthreads, proc_get_nthreads, proc_get_nthreads,
4835 proc_get_current_thread, proc_get_current_thread,
4836 proc_get_current_thread, proc_update_threads,
4837 proc_update_threads, proc_update_threads, proc_update_threads,
4838 proc_iterate_over_threads, procfs_find_new_threads,
4839 procfs_pid_to_str): Make static. Remove advance declaration.
4840 (proc_cursig): Make static. Conditionalized defintion on
4841 PROCFS_DONT_PIOCSSIG_CURSIG being defined.
4842 (proc_syscall, proc_set_kill_on_last_close,
4843 proc_unset_kill_on_last_close, proc_set_inherit_on_fork,
4844 proc_get_pending_signals, proc_get_signal_actions,
4845 proc_trace_signal, proc_ignore_signal): Delete.
4846
81b9b86e
SDJ
48472012-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
4848
4849 * coffread.c (cs_section_address): Passing proper argument for
4850 `bfd_get_section_vma'.
4851 * dwarf2read.c (dwarf2_locate_sections): Likewise, for
4852 `bfd_get_section_flags'.
4853 * remote.c (remote_trace_set_readonly_regions): Likewise, for
4854 `bfd_get_section_vma'.
4855
abc9d0dc
TT
48562012-05-16 Tom Tromey <tromey@redhat.com>
4857
4858 PR macros/13205:
4859 * macrotab.h: (macro_define_special): Declare.
4860 (enum macro_special_kind): New.
4861 (struct macro_definition) <argc, replacement>: Update comments.
4862 * macrotab.c (new_macro_definition): Unconditionally set 'argc'.
4863 (macro_define_object_internal): New function.
4864 (macro_define_object): Use it.
4865 (macro_define_special): New function.
4866 (fixup_definition): New function.
4867 (macro_lookup_definition, foreach_macro_in_scope)
4868 (foreach_macro): Use fixup_definition.
4869 * macroexp.h (macro_stringify): Declare.
4870 * macroexp.c (free_buffer_return_text): New function.
4871 (stringify): Constify "arg".
4872 (macro_stringify): New function.
4873 * dwarf2read.c (macro_start_file): Call macro_define_special.
4874
6a3a010b 48752012-05-16 Maciej W. Rozycki <macro@codesourcery.com>
f782ad9b 4876 Maciej W. Rozycki <macro@mips.com>
6a3a010b
MR
4877
4878 * breakpoint.h (bp_location): Add related_address member.
4879 * inferior.h (get_return_value): Take a pointer to struct value
4880 instead of struct type for the function requested.
4881 * value.h (using_struct_return): Likewise.
4882 * gdbarch.sh (return_value): Take a pointer to struct value
4883 instead of struct type for the function requested.
4884 * breakpoint.c (set_breakpoint_location_function): Initialize
4885 related_address for bp_gnu_ifunc_resolver breakpoints.
4886 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the
4887 requested function's address to gdbarch_return_value.
4888 * eval.c (evaluate_subexp_standard): Pass the requested
4889 function's address to using_struct_return.
4890 * infcall.c (call_function_by_hand): Pass the requested
4891 function's address to using_struct_return and
4892 gdbarch_return_value.
4893 * infcmd.c (get_return_value): Take a pointer to struct value
4894 instead of struct type for the function requested.
4895 (print_return_value): Update accordingly.
4896 (finish_command_continuation): Likewise.
4897 * stack.c (return_command): Pass the requested function's
4898 address to using_struct_return and gdbarch_return_value.
4899 * value.c (using_struct_return): Take a pointer to struct value
4900 instead of struct type for the function requested. Pass the
4901 requested function's address to gdbarch_return_value.
4902 * python/py-finishbreakpoint.c (finish_breakpoint_object):
4903 New function_value member, replacing function_type.
4904 (bpfinishpy_dealloc): Update accordingly.
4905 (bpfinishpy_pre_stop_hook): Likewise.
4906 (bpfinishpy_init): Likewise. Record the requested function's
4907 address.
4908 * mips-tdep.c (mips_fval_reg): New enum.
4909 (mips_o32_push_dummy_call): For MIPS16 FP doubles do not swap
4910 words put in GP registers.
4911 (mips_o64_push_dummy_call): Update a comment.
4912 (mips_o32_return_value): Take a pointer to struct value instead
4913 of struct type for the function requested and use it to check if
4914 using the MIPS16 calling convention. Return the designated
4915 general purpose registers for floating-point values returned in
4916 MIPS16 mode.
4917 (mips_o64_return_value): Likewise.
4918 * ppc-tdep.h (ppc_sysv_abi_return_value): Update prototype.
4919 (ppc_sysv_abi_broken_return_value): Likewise.
4920 (ppc64_sysv_abi_return_value): Likewise.
4921 * alpha-tdep.c (alpha_return_value): Take a pointer to struct
4922 value instead of struct type for the function requested.
4923 * amd64-tdep.c (amd64_return_value): Likewise.
4924 * amd64-windows-tdep.c (amd64_windows_return_value): Likewise.
4925 * arm-tdep.c (arm_return_value): Likewise.
4926 * avr-tdep.c (avr_return_value): Likewise.
4927 * bfin-tdep.c (bfin_return_value): Likewise.
4928 * cris-tdep.c (cris_return_value): Likewise.
4929 * frv-tdep.c (frv_return_value): Likewise.
4930 * h8300-tdep.c (h8300_return_value): Likewise.
4931 (h8300h_return_value): Likewise.
4932 * hppa-tdep.c (hppa32_return_value): Likewise.
4933 (hppa64_return_value): Likewise.
4934 * i386-tdep.c (i386_return_value): Likewise.
4935 * ia64-tdep.c (ia64_return_value): Likewise.
4936 * iq2000-tdep.c (iq2000_return_value): Likewise.
4937 * lm32-tdep.c (lm32_return_value): Likewise.
4938 * m32c-tdep.c (m32c_return_value): Likewise.
4939 * m32r-tdep.c (m32r_return_value): Likewise.
4940 * m68hc11-tdep.c (m68hc11_return_value): Likewise.
4941 * m68k-tdep.c (m68k_return_value): Likewise.
4942 (m68k_svr4_return_value): Likewise.
4943 * m88k-tdep.c (m88k_return_value): Likewise.
4944 * mep-tdep.c (mep_return_value): Likewise.
4945 * microblaze-tdep.c (microblaze_return_value): Likewise.
4946 * mn10300-tdep.c (mn10300_return_value): Likewise.
4947 * moxie-tdep.c (moxie_return_value): Likewise.
4948 * mt-tdep.c (mt_return_value): Likewise.
4949 * ppc-linux-tdep.c (ppc_linux_return_value): Likewise.
4950 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Likewise.
4951 (ppc_sysv_abi_broken_return_value): Likewise.
4952 (ppc64_sysv_abi_return_value): Likewise.
4953 * ppcnbsd-tdep.c (ppcnbsd_return_value): Likewise.
4954 * rl78-tdep.c (rl78_return_value): Likewise.
4955 * rs6000-aix-tdep.c (rs6000_return_value): Likewise.
4956 * rx-tdep.c (rx_return_value): Likewise.
4957 * s390-tdep.c (s390_return_value): Likewise.
4958 * score-tdep.c (score_return_value): Likewise.
4959 * sh-tdep.c (sh_return_value_nofpu): Likewise.
4960 (sh_return_value_fpu): Likewise.
4961 * sh64-tdep.c (sh64_return_value): Likewise.
4962 * sparc-tdep.c (sparc32_return_value): Likewise.
4963 * sparc64-tdep.c (sparc64_return_value): Likewise.
4964 * spu-tdep.c (spu_return_value): Likewise.
4965 * tic6x-tdep.c (tic6x_return_value): Likewise.
4966 * v850-tdep.c (v850_return_value): Likewise.
4967 * vax-tdep.c (vax_return_value): Likewise.
4968 * xstormy16-tdep.c (xstormy16_return_value): Likewise.
4969 * xtensa-tdep.c (xtensa_return_value): Likewise.
4970 * gdbarch.c: Regenerate.
4971 * gdbarch.h: Regenerate.
4972
29ca12b3
TT
49732012-05-15 Tom Tromey <tromey@redhat.com>
4974
4975 * python/python.c (gdbpy_find_pc_line): Use gdb_py_ulongest.
4976
588ae58c
JB
49772012-05-15 Joel Brobecker <brobecker@adacore.com>
4978
4979 * breakpoint.c (init_breakpoint_sal): Add quotes around part
4980 of command in two error message.
4981
855a6e68
JB
49822012-05-15 Joel Brobecker <brobecker@adacore.com>
4983
4984 * breakpoint.c (init_breakpoint_sal): Remove trailing spaces.
4985
d634f2de
JB
49862012-05-15 Joel Brobecker <brobecker@adacore.com>
4987
4988 * breakpoint.c (find_condition_and_thread): Minor reformatting.
4989
9cc815f5
JK
49902012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
4991
4992 * NEWS (show auto-load scripts-directory): Add forgotten command.
4993
6a609e58
JK
49942012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
4995
4996 * spu-tdep.c (spu_catch_start): Update create_breakpoint caller
4997 parameters.
4998
ac1438b5
L
49992012-05-14 H.J. Lu <hongjiu.lu@intel.com>
5000
5001 * amd64-tdep.c: Include features/i386/x32.c and
5002 features/i386/x32-avx.c.
5003 (_initialize_amd64_tdep): Call initialize_tdesc_x32 and
5004 initialize_tdesc_x32_avx.
5005
e7e0cddf
SS
50062012-05-14 Stan Shebs <stan@codesourcery.com>
5007
5008 Add dynamic printf.
5009 * breakpoint.h (enum bptype): New type bp_dprintf.
5010 (struct breakpoint): New field extra_string.
5011 (struct breakpoint_ops): Add arg to create_breakpoints_sal.
5012 (create_breakpoint): Add extra_string arg.
5013 * breakpoint.c (dprintf_breakpoint_ops): New.
5014 (is_breakpoint): Add bp_dprintf.
5015 (bpstat_what): Add dprintf case.
5016 (bptype_string): Ditto.
5017 (print_one_breakpoint_location): Ditto.
5018 (init_bp_location): Ditto.
5019 (bkpt_print_mention): Ditto.
5020 (dprintf_style_enums): New array.
5021 (dprintf_style): New global.
5022 (dprintf_function): New global.
5023 (dprintf_channel): New global.
5024 (update_dprintf_command_list): New function.
5025 (update_dprintf_commands): New function.
5026 (init_breakpoint_sal): Add extra_string argument, handle it.
5027 (create_breakpoint_sal): Add extra_string argument.
5028 (create_breakpoints_sal): Add extra_string argument, update callers.
5029 (find_condition_and_thread): Add extra argument.
5030 (create_breakpoint): Add extra_string argument, record it.
5031 (dprintf_command): New function.
5032 (break_command_1): Add arg to create_breakpoint call.
5033 (handle_gnu_v3_exceptions): Ditto.
5034 (trace_command): Ditto.
5035 (ftrace_command): Ditto.
5036 (strace_command): Ditto.
5037 (bkpt_print_mention): Add dprintf case.
5038 (create_breakpoint_sal_default): Add extra_string argument.
5039 (_initialize_breakpoint): Add new commands.
5040 * mi/mi-cmd-break.c (mi_cmd_break_insert): Add arg to call.
5041 * python/py-breakpoint.c (bppy_init): Ditto.
5042 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
5043
8ae38c14
MR
50442012-05-14 Maciej W. Rozycki <macro@codesourcery.com>
5045
5046 * mips-tdep.c (mips_push_dummy_code): Correct description typo.
5047
9f676e66
SCR
50482012-05-14 Siva Chandra Reddy <sivachandra@google.com>
5049
5050 * python/python.c (gdbpy_find_pc_line): Use ULONGEST instead of
5051 unsigned long long.
5052
7efc75aa
SCR
50532012-05-13 Siva Chandra Reddy <sivachandra@google.com>
5054
5055 Add a new function gdb.find_pc_line to the Python API.
5056 * NEWS (Python Scripting): Add entry about the new function.
5057 * python/python.c (gdbpy_find_pc_line): New function which
5058 implements gdb.find_pc_line.
5059 (GdbMethods): Add entry for the new function.
5060
70af3797
PA
50612012-05-12 Pedro Alves <palves@redhat.com>
5062
5063 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Call
5064 initialize_tdesc_x32_linux and initialize_tdesc_x32_avx_linux.
5065
06da564e
EZ
50662012-05-12 Eli Zaretskii <eliz@gnu.org>
5067
5068 * inferior.c: Include completer.h
5069 (initialize_inferiors): Set completer of add-inferior to
5070 filename_completer.
5071
0288cee2
L
50722012-05-11 H.J. Lu <hongjiu.lu@intel.com>
5073
5074 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
5075 gdbarch_ptr_bit for x32 core dump.
5076
f6537a2c
L
50772012-05-11 H.J. Lu <hongjiu.lu@intel.com>
5078
5079 * amd64-linux-tdep.c: Include features/i386/x32-linux.c
5080 and features/i386/x32-avx-linux.c.
5081
85d4a676
SS
50822012-05-11 Stan Shebs <stan@codesourcery.com>
5083 Kwok Cheung Yeung <kcy@codesourcery.com>
5084
5085 * NEWS: Describe new info os commands.
5086 * common/linux-osdata.c (PID_T, TIME_T): Define.
5087 (MAX_PID_T_STRLEN): New.
5088 (linux_common_core_of_thread): Add comment. Change to use PID_T and
5089 MAX_PID_T_STRLEN.
5090 (command_from_pid): Add comment. Change to use PID_T.
5091 (commandline_from_pid): Change to use PID_T.
5092 (user_from_pid): Add comment.
5093 (get_process_owner): Add comment. Change to use PID_T and
5094 MAX_PID_T_STRLEN.
5095 (get_number_of_cpu_cores): Add comment.
5096 (get_cores_used_by_process): Add comment. Change to use PID_T and
5097 MAX_PID_T_STRLEN.
5098 (linux_xfer_osdata_processes): Change to use PID_T and
5099 MAX_PID_T_STRLEN.
5100 (compare_processes): New function.
5101 (linux_xfer_osdata_processgroups): New function.
5102 (linux_xfer_osdata_threads): Change to use PID_T.
5103 (linux_xfer_osdata_fds): New function.
5104 (format_socket_state, print_sockets): New functions.
5105 (union socket_addr): New union.
5106 (linux_xfer_osdata_isockets): New function.
5107 (time_from_time_t, group_from_gid): New functions.
5108 (linux_xfer_osdata_shm): New function.
5109 (linux_xfer_osdata_sem): New function.
5110 (linux_xfer_osdata_msg): New function.
5111 (linux_xfer_osdata_modules): New function.
5112 (osdata_table): Add new entries.
5113 * common/buffer.c (buffer_xml_printf): Add support for long and
5114 long long format specifiers.
5115
f24afd6d
L
51162012-05-11 H.J. Lu <hongjiu.lu@intel.com>
5117
5118 * amd64-linux-tdep.h (tdesc_x32_linux): New.
5119 (tdesc_x32_avx_linux): Likewise.
5120
7349ff92
JK
51212012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5122
5123 Implement multi-component --with-auto-load-dir.
5124 * NEWS (set auto-load scripts-directory, --with-auto-load-dir): New
5125 entries.
5126 (--with-auto-load-safe-path): Update the default value description.
5127 * auto-load.c (auto_load_dir, set_auto_load_dir, show_auto_load_dir):
5128 New.
5129 (auto_load_objfile_script): Add DEBUG_AUTO_LOAD output. Remove
5130 GDB_DATADIR NULL check. Replace GDB_DATADIR/auto-load by
5131 AUTO_LOAD_DIR. Support $ddir and multiple components in it.
5132 (_initialize_auto_load): Initialize also auto_load_dir. Install new
5133 "set auto-load scripts-directory".
5134 * config.in: Regenerate.
5135 * configure: Regenerate.
5136 * configure.ac (--with-auto-load-dir): New configure option.
5137 (--auto-load-safe-path): Change the default to --with-auto-load-dir.
5138
6dea1fbd
JK
51392012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5140
5141 Provide $ddir substitution for --with-auto-load-safe-path.
5142 * NEWS (--with-auto-load-safe-path, --without-auto-load-safe-path): New
5143 entries.
5144 * auto-load.c: Include observer.h.
5145 (auto_load_safe_path_vec_update): Call substitute_path_component for
5146 each component. New variable ddir_subst.
5147 (auto_load_gdb_datadir_changed): New function.
5148 (set_auto_load_safe_path): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
5149 AUTO_LOAD_SAFE_PATH. New comment.
5150 (_initialize_auto_load): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
5151 AUTO_LOAD_SAFE_PATH. Install auto_load_gdb_datadir_changed.
5152 * config.in: Regenerate.
5153 * configure: Regenerate.
5154 * configure.ac (--auto-load-safe-path): Rename
5155 DEFAULT_AUTO_LOAD_SAFE_PATH to AUTO_LOAD_SAFE_PATH. Default to
5156 GDB_DATADIR/auto-load.
5157 * defs.h (substitute_path_component): New declaration.
5158 * top.c: Include observer.h.
5159 (set_gdb_datadir): New function.
5160 (init_main): Install it for "set data-directory".
5161 * utils.c (substitute_path_component): New function.
5162
b09aca3a
JK
51632012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5164
5165 Make auto-load handle multiple components of DEBUG_FILE_DIRECTORY.
5166 * auto-load.c (auto_load_objfile_script): Remove check for NULL
5167 DEBUG_FILE_DIRECTORY. Handle multiple components of
5168 DEBUG_FILE_DIRECTORY.
5169
95554aad
TT
51702012-05-10 Tom Tromey <tromey@redhat.com>
5171
5172 * dwarf2read.c (recursively_write_psymbols): New function.
5173 (write_psymtabs_to_index): Use it.
5174
5175 * dwarf2read.c (struct dwarf2_queue_item) <pretend_language>: New
5176 field.
5177 (load_cu, dw2_do_instantiate_symtab, process_psymtab_comp_unit)
5178 (load_partial_comp_unit): Update.
5179 (queue_comp_unit): Add argument 'pretend_language'.
5180 (process_queue): Update.
5181 (psymtab_to_symtab_1): Skip dependencies that have a user.
5182 (load_partial_comp_unit_reader): Give meaning to the 'data'
5183 argument.
5184 (load_full_comp_unit): Add 'pretend_language' argument.
5185 (process_full_comp_unit): Add 'pretend_language' argument. Set
5186 language on CU.
5187 (process_imported_unit_die, read_file_scope, read_type_unit_scope):
5188 Update.
5189 (maybe_queue_comp_unit): Add 'pretend_language' argument.
5190 (follow_die_offset, follow_die_sig, read_signatured_type_reader):
5191 Update.
5192 (prepare_one_comp_unit): Add 'pretend_language' argument.
5193
5194 * dwarf2read.c: (dwarf2_per_cu_ptr): New typedef.
5195 (struct dwarf2_per_objfile) <just_read_cus>: New field.
5196 (struct dwarf2_per_cu_data) <imported_symtabs>: New field.
5197 (dw2_do_instantiate_symtab): Check whether symtab was read in
5198 before queueing.
5199 (dw2_instantiate_symtab): Add assertion. Call
5200 process_cu_includes.
5201 (process_psymtab_comp_unit): Compute 'dependencies' for psymtab.
5202 (partial_symtab_p): New typedef.
5203 (set_partial_user): New function.
5204 (dwarf2_build_psymtabs_hard): Use set_partial_user.
5205 (scan_partial_symbols): Add imported CU to imported_symtabs.
5206 (dwarf2_psymtab_to_symtab): Call process_cu_includes.
5207 (psymtab_to_symtab_1): Do nothing if psymtab is readin.
5208 (get_symtab, recursively_compute_inclusions)
5209 (compute_symtab_includes, process_cu_includes)
5210 (process_imported_unit_die): New functions.
5211 (process_die) <DW_TAG_imported_unit>: New case.
5212 (dwarf2_per_objfile_free): Free 'imported_symtabs'.
5213
5214 * dwarf2read.c (struct dwarf2_per_cu_data) <psymtab>: Update
5215 comment.
5216 (struct partial_die_info) <locdesc>: Remove.
5217 <d>: New field.
5218 (process_psymtab_comp_unit): Add 'read_partial' argument.
5219 Update.
5220 (process_type_comp_unit, dwarf2_build_psymtabs_hard): Update.
5221 (scan_partial_symbols): Handle DW_TAG_imported_unit.
5222 (add_partial_symbol): Update.
5223 (process_die): Handle DW_TAG_partial_unit.
5224 (read_file_scope): Update comment.
5225 (load_partial_dies): Handle DW_TAG_imported_unit.
5226 (read_partial_die): Handle DW_TAG_partial_unit, DW_AT_import.
5227 (determine_prefix, dwarf2_name): Handle DW_TAG_partial_unit.
5228
e871fbb9
TT
52292012-05-10 Tom Tromey <tromey@redhat.com>
5230
5231 * cc-with-dwz.sh: New file.
5232
b5b04b5b
TT
52332012-05-10 Tom Tromey <tromey@redhat.com>
5234
5235 * symtab.h (struct symtab) <includes, user>: New fields.
5236 * block.h (struct block_iterator) <d, idx, which>: New fields.
5237 * block.c (initialize_block_iterator, find_iterator_symtab)
5238 (block_iterator_step, block_iter_name_step)
5239 (block_iter_match_step): New functions.
5240 (block_iterator_first, block_iterator_next)
5241 (block_iter_name_first, block_iter_name_next)
5242 (block_iter_match_first, block_iter_match_next): Rewrite.
5243 (get_block_symtab): New function.
5244
84a146c9
TT
52452012-05-10 Tom Tromey <tromey@redhat.com>
5246
5247 * jv-lang.c (get_java_class_symtab): Use allocate_global_block,
5248 set_block_symtab.
5249 * jit.c (finalize_symtab): Use allocate_global_block,
5250 set_block_symtab.
5251 * buildsym.c (finish_block_internal): New function, from old
5252 finish_block.
5253 (finish_block): Rewrite.
5254 (end_symtab): Use finish_block_internal, set_block_symtab.
5255 * block.h (struct global_block): New.
5256 (allocate_global_block, set_block_symtab): Declare.
5257 * block.c (allocate_global_block, set_block_symtab): New
5258 functions.
5259
9439a077
TT
52602012-05-10 Tom Tromey <tromey@redhat.com>
5261
5262 * psymtab.c (partial_map_expand_apply): Add assertion.
5263 (partial_map_symtabs_matching_filename): Skip included psymtabs.
5264 (psymtab_to_symtab): Find unshared psymtab.
5265 (dump_psymtab): Print including psymtabs.
5266 (recursively_search_psymtabs): New function.
5267 (expand_symtabs_matching_via_partial): Use it.
5268 * psympriv.h (struct partial_symtab) <user, searched_flag>: New
5269 fields.
5270 (enum psymtab_search_status): New.
5271
8157b174
TT
52722012-05-10 Tom Tromey <tromey@redhat.com>
5273
5274 * tracepoint.c (scope_info): Update.
5275 * symtab.c (lookup_block_symbol, iterate_over_symbols)
5276 (find_pc_sect_symtab, search_symbols)
5277 (default_make_symbol_completion_list_break_on)
5278 (make_file_symbol_completion_list): Update.
5279 * symmisc.c (dump_symtab_1): Update.
5280 * stack.c (print_frame_args, iterate_over_block_locals)
5281 (print_frame_labels, iterate_over_block_arg_vars): Update.
5282 * python/py-block.c (block_object) <dict>: Remove.
5283 <block>: New field.
5284 <iter>: Change type.
5285 (blpy_iter): Update.
5286 (blpy_block_syms_iternext): Update.
5287 * psymtab.c (map_block): Use block iterators.
5288 * objfiles.c (objfile_relocate1): Use ALL_DICT_SYMBOLS.
5289 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
5290 * mdebugread.c (parse_symbol, mylookup_symbol): Update.
5291 * infrun.c (check_exception_resume): Update.
5292 * cp-support.c (make_symbol_overload_list_block): Update.
5293 * coffread.c (patch_opaque_types): Update.
5294 * buildsym.c (finish_block, end_symtab): Use ALL_DICT_SYMBOLS.
5295 * block.h (struct block_iterator): New.
5296 (block_iterator_first, block_iterator_next, block_iter_name_first)
5297 (block_iter_name_next, block_iter_match_first)
5298 (block_iter_match_next): Declare.
5299 (ALL_BLOCK_SYMBOLS): Redefine.
5300 * block.c (block_iterator_first, block_iterator_next)
5301 (block_iter_name_first, block_iter_name_next)
5302 (block_iter_match_first, block_iter_match_next): New functions.
5303 * ada-lang.c (ada_add_block_symbols)
5304 (ada_make_symbol_completion_list): Use block iterator.
5305
a2ca7a52
TT
53062012-05-10 Tom Tromey <tromey@redhat.com>
5307
5308 * psymtab.c (PSYMTAB_TO_SYMTAB): Remove.
5309 (find_pc_sect_symtab_from_partial, lookup_symbol_aux_psymtabs)
5310 (lookup_partial_symbol, find_last_source_symtab_from_partial)
5311 (read_psymtabs_with_filename, map_matching_symbols_psymtab)
5312 (expand_symtabs_matching_via_partial, maintenance_check_symtabs):
5313 Update.
5314
64ea88dc
JB
53152012-05-10 Joel Brobecker <brobecker@adacore.com>
5316
5317 * config/djgpp/fnchange.lst: Add entries for print-file-var-lib1.c,
5318 print-file-var-lib2.c, print-file-var-main.c and
5319 print-file-var.exp (located in gdb/testsuite/gdb.base).
5320
99a547d6
JB
53212012-05-10 Joel Brobecker <brobecker@adacore.com>
5322
5323 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
5324 try locating the symbol in the symbol's own objfile first, before
5325 extending the search to all objfiles.
5326 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
5327 out of lookup_symbol_aux_symtabs.
5328 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
5329 Replace extracted-out code by call to lookup_symbol_aux_objfile.
5330 Do not search EXCLUDE_OBJFILE.
5331 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
5332 (lookup_symbol_global): Search for matches in the block's objfile
5333 first, before searching all other objfiles.
5334
0ece64fd
TG
53352012-05-10 Tristan Gingold <gingold@adacore.com>
5336
5337 * printcmd.c (set_command): Add pre/post inc/dec.
5338
3d16a105
FCE
53392012-05-09 Frank Ch. Eigler <fche@redhat.com>
5340
5341 * gdb.1: Document -ex option.
5342
2efbc0f7
JB
53432012-05-09 Joel Brobecker <brobecker@adacore.com>
5344
5345 * infcall.c (call_function_by_hand): Remove AT_SYMBOL handling.
5346 * inferior.h (AT_SYMBOL): Delete.
5347
2c76a0c7
JB
53482012-05-09 Joel Brobecker <brobecker@adacore.com>
5349
5350 * mips-tdep.c (mips_push_dummy_code): New function.
5351 (mips_gdbarch_init): Set the gdbarch call_dummy_location to
5352 ON_STACK and install mips_push_dummy_code as our gdbarch
5353 push_dummy_code routine.
5354
9401a810
PA
53552012-05-09 Pedro Alves <palves@redhat.com>
5356
5357 * target.c (set_maintenance_target_async_permitted): Rename to ...
5358 (set_target_async_command): ... this.
5359 (show_maintenance_target_async_permitted): Rename to ...
5360 (show_target_async_command): ... this.
5361 (initialize_targets): Adjust.
5362
3929b321
DE
53632012-05-08 Doug Evans <dje@google.com>
5364
5365 * go-exp.y (classify_name): Add missing assignment of fields of
5366 yylval.ssym.
5367
c41535fd
EZ
53682012-05-08 Eli Zaretskii <eliz@gnu.org>
5369
5370 Display the ">" prompt in interactive mode while reading canned
5371 commands, even when the current interpreter is MI.
5372
5373 * interps.c (interp_set_temp): New function.
5374
5375 * interps.h (interp_set_temp): Add prototype.
5376
5377 * cli/cli-script.c (restore_interp): New cleanup function.
5378 (read_command_lines): Temporarily override the current interpreter
5379 with CLI and arrange for restoring the original one.
5380
c0749c4d
JS
53812012-05-12 Joel Sherrill <joel.sherrill@oarcorp.com>
5382
5383 * microblaze-rom.c (_initialize_picobug_rom): Add prototype.
5384
d7333987
SDJ
53852012-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
5386
5387 * probe.c (parse_probes): Move conditional to check for
5388 debuginfo files from here...
5389 * stap-probe.c (stap_get_probes): ... to here.
5390
649e6d92
MK
53912012-05-07 Mark Kettenis <kettenis@gnu.org>
5392 H.J. Lu <hongjiu.lu@intel.com>
5393
5394 * amd64-tdep.c (amd64_analyze_prologue): Additionally check for
5395 `movl %esp, %ebp' for the X32 ABI.
5396
f39c6ffd
TT
53972012-05-07 Tom Tromey <tromey@redhat.com>
5398
5399 * dwarf2read.c (dwarf_tag_name): Return const char *. Use
5400 get_DW_TAG_name.
5401 (dwarf_attr_name): Return const char *. Use get_DW_AT_name.
5402 (dwarf_form_name): Return const char *. Use get_DW_FORM_name.
5403 (dwarf_stack_op_name): Remove.
5404 (dwarf_cfi_name): Return const char *. Use get_DW_ATE_name.
5405 (decode_locdesc): Use get_DW_OP_name.
5406 * dwarf2loc.c (unimplemented): Use get_DW_OP_name.
5407 (dwarf2_compile_expr_to_ax): Likewise.
5408 (disassemble_dwarf_expression): Likewise.
5409 * dwarf2expr.h: (dwarf_stack_op_name): Remove.
5410
1e1f6591
CLT
54112012-05-07 Chung-Lin Tang <cltang@codesourcery.com>
5412
5413 * sh-linux-tdep.c: Include trad-frame.h and tramp-frame.h.
5414 (sh_linux_sigtramp_cache): New function.
5415 (sh_linux_sigreturn_init): New function.
5416 (sh_linux_rt_sigreturn_init): New function.
5417 (SH_MOVW,SH_TRAP,SH_OR_R0_R0): New symbols for instruction
5418 patterns.
5419 (SH_NR_SIGRETURN,SH_NR_RT_SIGRETURN): New symbols for sigreturn
5420 syscall codes.
5421 (sh_linux_sigreturn_tramp_frame): New tramp_frame definition.
5422 (sh_linux_rt_sigreturn_tramp_frame): Likewise.
5423 (sh_linux_init_abi): Add init calls to register new tramp_frame
5424 definitions under 32-bit SH, update comments.
5425
545c08b4
PA
54262012-05-07 Pedro Alves <palves@redhat.com>
5427
daac165e
PA
5428 PR gdb/10952
5429
545c08b4
PA
5430 * amd64-linux-tdep.c: Include glibc-tdep.h.
5431 (amd64_linux_init_abi): Install glibc_skip_solib_resolver as
5432 gdbarch_skip_solib_resolver callback.
5433
af2c1515
JK
54342012-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5435
5436 * auto-load.c (set_auto_load_safe_path): Reset AUTO_LOAD_SAFE_PATH
5437 back to DEFAULT_AUTO_LOAD_SAFE_PATH if it is being set to "".
5438 (show_auto_load_safe_path): Check any-directory by comparison with "/".
5439 (add_auto_load_safe_path): Change the error message.
5440 (_initialize_auto_load): Change the "safe-path" help text.
5441 * configure: Regenerate
5442 * configure.ac (--without-auto-load-safe-path): Set
5443 WITH_AUTO_LOAD_SAFE_PATH to /.
5444
1067f998
SDJ
54452012-05-05 Sergio Durigan Junior <sergiodj@redhat.com>
5446
5447 * stap-probe.h: Do not include unecessary `probe.h'.
5448
45dfa85a
AM
54492012-05-05 Alan Modra <amodra@gmail.com>
5450
5451 * elfread.c (elf_symtab_read): Use bfd_abs_section_ptr and
5452 bfd_und_section_ptr.
5453 * machoread.c (macho_symtab_add_minsym): Use bfd_abs_section_ptr
5454 and bfd_com_section_ptr.
5455
cf093994
JB
54562012-05-04 Joel Brobecker <brobecker@adacore.com>
5457
762ebb75 5458 * MAINTAINERS (Past Maintainers): Add Chris Faylor.
cf093994 5459
d40dc7a8
JB
54602012-05-04 Joel Brobecker <brobecker@adacore.com>
5461
5462 * windows-nat.h (segment_register_p_ftype): New typedef.
5463 (windows_set_segment_register_p): Add declaration.
5464 * windows-nat.c (segment_register_p): New static global.
5465 (windows_set_segment_register_p): New function.
5466 (do_windows_fetch_inferior_registers): Add special handling
5467 for segment registers.
5468 * amd64-windows-nat.c: #include "amd64-tdep.h".
5469 (amd64_windows_segment_register_p): New function.
5470 (_initialize_amd64_windows_nat): Call windows_set_segment_register_p.
5471 * i386-windows-nat.c: #include "i386-tdep.h".
5472 (i386_windows_segment_register_p): New function.
5473 (_initialize_i386_windows_nat): Call windows_set_segment_register_p.
5474
52b3699b
TG
54752012-05-04 Tristan Gingold <gingold@adacore.com>
5476
5477 * printcmd.c (set_command): Emit a warning if the expression is not
5478 an assignment.
5479
94c74239
JB
54802012-05-03 Joel Brobecker <brobecker@adacore.com>
5481
5482 * nto-procfs.c (procfs_find_new_threads, procfs_pid_to_str):
5483 Make static.
5484
fcf57f19
SDJ
54852012-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
5486
5487 * stap-probe.c (stap_is_operator): Change declaration.
5488 (stap_get_opcode): Change return value.
5489 (stap_parse_argument_1): Update calls to `stap_get_opcode' and
5490 `stap_parse_argument_1'.
5491
27d2932e
PA
54922012-05-03 Pedro Alves <pedro@codesourcery.com>
5493
5494 * infrun.c (displaced_step_fixup): Add "displaced:" prefix to
5495 debug log.
5496
a20ee7a4
SCR
54972012-05-03 Siva Chandra Reddy <sivachandra@google.com>
5498
5499 Add two new methods global_block and static_block to gdb.Symtab
5500 objects.
5501 * NEWS (Python scripting): Add entry about the new methods.
5502 * python/py-symtab.c (stpy_global_block): New function which
5503 implements the gdb.Symtab.global_block() method.
5504 (stpy_static_block): New function which implements the
5505 gdb.Symtab.static_block() method.
5506 (symtab_object_methods): Add entries for the two new methods.
5507
943cb756
DE
55082012-05-03 Doug Evans <dje@google.com>
5509
5510 * dwarf2read.c (dw2_find_symbol_file): Don't crash if there are no
5511 files.
5512
f4644a3f
YQ
55132012-05-03 Yao Qi <yao@codesourcery.com>
5514
5515 * i386-tdep.c (i386_fetch_pointer_argument): Remove extra
5516 space.
5517 (i386_process_record): Ditto.
5518
ef61f180
JB
55192012-05-02 Joel Brobecker <brobecker@adacore.com>
5520
5521 * infcall.c (unwind_on_signal_p): Make static.
5522
02f1df11
JB
55232012-05-02 Joel Brobecker <brobecker@adacore.com>
5524
5525 * sol-thread.c (solaris_pid_to_str): Make static.
5526 (_initialize_sol_thread): Add prototype.
5527
39023530
JB
55282012-05-02 Joel Brobecker <brobecker@adacore.com>
5529
5530 * sol-thread.c (procfs_pid_to_str): Delete extern declaration.
5531
c6b0c501
CF
55322012-05-02 Christopher Faylor <me.cygwin2012@cgf.cx>
5533
5534 * MAINTAINERS: Remove myself.
5535
1ef71717
JK
55362012-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5537
5538 Fix --without-auto-load-safe-path for MS-Windows host platform.
5539 * auto-load.c (filename_is_in_dir): Return 1 for DIR_LEN 0.
5540
b31b86a7
EZ
55412012-05-02 Eli Zaretskii <eliz@gnu.org>
5542
5543 * gdb_curses.h: Undefine KEY_EVENT before including curses
5544 headers. Move "#undef MOUSE_MOVED" before any curses header
5545 inclusion.
5546
777532fc
SDJ
55472012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
5548
5549 * features/i386/i386-mmx-linux.c: Regenerate.
5550 * features/rs6000/powerpc-32.c: Likewise.
5551 * features/rs6000/powerpc-32l.c: Likewise.
5552 * features/rs6000/powerpc-403.c: Likewise.
5553 * features/rs6000/powerpc-403gc.c: Likewise.
5554 * features/rs6000/powerpc-405.c: Likewise.
5555 * features/rs6000/powerpc-505.c: Likewise.
5556 * features/rs6000/powerpc-601.c: Likewise.
5557 * features/rs6000/powerpc-602.c: Likewise.
5558 * features/rs6000/powerpc-603.c: Likewise.
5559 * features/rs6000/powerpc-604.c: Likewise.
5560 * features/rs6000/powerpc-64.c: Likewise.
5561 * features/rs6000/powerpc-64l.c: Likewise.
5562 * features/rs6000/powerpc-750.c: Likewise.
5563 * features/rs6000/powerpc-860.c: Likewise.
5564 * features/rs6000/powerpc-e500.c: Likewise.
5565 * features/rs6000/powerpc-e500l.c: Likewise.
5566 * features/rs6000/powerpc-isa205-32l.c: Likewise.
5567 * features/rs6000/powerpc-isa205-64l.c: Likewise.
5568 * features/rs6000/rs6000.c: Likewise.
5569
d71871bc
SDJ
55702012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
5571
5572 * i386-tdep.c (i386_stap_parse_special_token) <s>: Remove unused
5573 variable.
5574 * stap-probe.c (stap_parse_single_operand) <reg_suffix,
5575 reg_ind_suffix, reg_suffix_len, reg_ind_suffix_len>: Likewise.
5576 (stap_parse_argument) <e>: Likewise.
5577 (handle_stap_probe) <byte_order>: Likewise.
5578
fd820528
DE
55792012-04-30 Doug Evans <dje@google.com>
5580
5581 * dwarf2read.c (init_cutu_and_read_dies): Renamed from
5582 init_and_read_dies_worker. All callers updated.
5583 (init_cu_and_read_dies, init_tu_and_read_dies): Delete. All calls
5584 replaced with init_cutu_and_read_dies.
5585 (load_partial_comp_unit): Pass 1 for use_existing_cu.
5586 (find_partial_die): Remove FIXME. Don't free current CU.
5587
ec3f619d 55882012-04-30 Sterling Augustine <saugustine@google.com>
be36f02d
SA
5589
5590 * contrib: New directory.
5591 * contrib/test_pubnames_and_indexes.py: New file.
5592
fceca515
DE
55932012-04-30 Doug Evans <dje@google.com>
5594
5595 * dwarf2read.c (dwarf_decode_macros): New arg section_name.
5596 All callers updated.
5597 (init_cu_die_reader): Verify the section is non-empty.
5598 (dwarf_decode_line_header): Don't dereference section->asection
5599 until we know the section is present.
5600
311fe7e1
SDJ
56012012-04-29 Sergio Durigan Junior <sergiodj@redhat.com>
5602
5603 * tracepoint.c (start_tracing, stop_tracing): Checking for NULL
5604 probes.
5605
5977971a
YQ
56062012-04-29 Yao Qi <yao@codesourcery.com>
5607
5608 * gdb-code-style.el: New hook gdb-markup-hook
5609 and gdb-comment-hook.
5610
dee91e82
DE
56112012-04-28 Doug Evans <dje@google.com>
5612
3019eac3
DE
5613 Initial support for Fission. http://gcc.gnu.org/wiki/DebugFission
5614 * symfile.c (default_symfile_relocate): Use sectp->owner instead of
5615 objfile->obfd.
5616 * symfile.h (dwarf2_debug_sections): New member addr.
5617 * dwarf2expr.c (execute_stack_op): New case DW_OP_GNU_addr_index.
5618 (ctx_no_get_addr_index): New function.
5619 * dwarf2expr.h (dwarf_expr_context_funcs): New member get_addr_index.
5620 (ctx_no_get_addr_index): Declare.
5621 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Update.
5622 * dwarf2loc.c (dwarf_expr_get_addr_index): New function.
5623 (dwarf_expr_ctx_funcs): Update.
5624 (needs_get_addr_index): New function.
5625 (needs_frame_ctx_funcs): Update.
5626 * dwarf2loc.h (dwarf2_read_addr_index): Declare.
5627 * dwarf2read.c: #include "gdbcore.h".
5628 (dwarf2_per_objfile): New members addr, dwo_files.
5629 (dwarf2_elf_names): Add entry for addr.
5630 (struct dwo_section_names): New type.
5631 (dwo_section_names): New static global.
5632 (dwarf2_cu): New members dwo_unit, addr_base, have_addr_base.
5633 (dwarf2_per_cu_data): New member is_debug_types, all boolean uses of
5634 old debug_types_section member updated to use this.
5635 Rename member debug_types_section to info_or_types_section,
5636 all uses updated.
5637 (signatured_type): Rename member type_offset to type_offset_in_tu,
5638 all uses updated. New member type_offset_in_section.
5639 (struct dwo_sections): New type.
5640 (struct dwo_unit): New type.
5641 (struct dwo_file): New type.
5642 (die_reader_specs): New member dwo_file.
5643 (dwarf2_locate_sections): Watch for .debug_addr.
5644 (zlib_decompress_section): Use sectp->owner instead of objfile->obfd.
5645 (dwarf2_read_section): Get bfd of section from bfd's asection,
5646 instead of objfile.
5647 (create_cus_from_index): Initialize the_cu->info_or_types_section.
5648 (create_signatured_type_table_from_index): Initialize
5649 sig_type->info_or_types_section.
5650 (dw2_get_file_names): Statement lists for type units with DWO files
5651 live in the DWO file.
5652 (create_debug_types_hash_table): New function.
5653 (create_all_type_units): Rewrite.
5654 (init_cu_die_reader): New arg dwo_file, all callers updated.
5655 (init_and_read_dies_worker): Get section from
5656 this_cu->info_or_types_section. Set sig_type->type_offset_in_section.
5657 Watch for DW_AT_GNU_dwo_name and if present lookup the file and
5658 continue reading the CU/TU from there.
5659 (init_cutu_and_read_dies_no_follow): New arg dwo_file, all callers
5660 updated. Get section from this_cu->info_or_types_section.
5661 (create_all_comp_units): Initialize this_cu->info_or_types_section.
5662 (skip_one_die): New cases DW_FORM_GNU_addr_index,
5663 DW_FORM_GNU_str_index.
5664 (hash_dwo_file, eq_dwo_file): New functions.
5665 (allocate_dwo_file_hash_table): New function.
5666 (hash_dwo_unit, eq_dwo_unit): New functions.
5667 (allocate_dwo_unit_table): New function.
5668 (dwarf2_locate_dwo_sections): New function.
5669 (struct create_dwo_info_table_data): New type.
5670 (create_debug_info_hash_table_reader): New function.
5671 (create_debug_info_hash_table): New function.
5672 (try_open_dwo_file, open_dwo_file, init_dwo_file): New function.
5673 (lookup_dwo_file): New function.
5674 (lookup_dwo_comp_unit, lookup_dwo_type_unit): New functions.
5675 (free_dwo_file, free_dwo_file_cleanup): New functions.
5676 (free_dwo_file_from_slot, free_dwo_files): New functions.
5677 (dwarf2_get_pc_bounds): Handle DW_FORM_GNU_addr_index.
5678 (dwarf2_record_block_ranges): Ditto.
5679 (read_partial_die): Ditto.
5680 (process_enumeration_scope): Update to use type_offset_in_section.
5681 (read_full_die_1): New function.
5682 (read_full_die): Rewrite.
5683 (read_attribute_value): New cases DW_FORM_GNU_addr_index,
5684 DW_FORM_GNU_str_index.
5685 (read_addr_index_1, read_addr_index): New functions.
5686 (read_addr_index_from_leb128): New function.
5687 (struct dwarf2_read_addr_index_data): New type.
5688 (dwarf2_read_addr_index_reader): New function.
5689 (dwarf2_read_addr_index): New function.
5690 (read_str_index): New function.
5691 (leb128_size): New function.
5692 (dwarf_decode_line_header): Delete arg abfd, all callers updated.
5693 If processing a type unit from a DWO file, get the line section
5694 from the DWO file.
5695 (var_decode_location): Watch for DW_OP_GNU_addr_index.
5696 (dwarf2_const_value_attr): New cases DW_FORM_GNU_addr_index,
5697 DW_FORM_GNU_str_index.
5698 (lookup_die_type): Check whether section offset of type's die is
5699 known before looking it up. Remove assert. Condition can
5700 legimately happen for inter-cu type references.
5701 (dwarf_attr_name): Handle Fission attributes.
5702 (dwarf_form_name): Handle Fission forms.
5703 (dump_die_shallow): New cases DW_FORM_GNU_addr_index,
5704 DW_FORM_GNU_str_index.
5705 (follow_die_sig): Update to use type_offset_in_section.
5706 (decode_locdesc): New case DW_OP_GNU_addr_index.
5707 (skip_form_bytes): New cases DW_FORM_GNU_addr_index,
5708 DW_FORM_GNU_str_index.
5709 (cu_debug_loc_section): New function.
5710 (fill_in_loclist_baton, dwarf2_symbol_mark_computed): Call it.
5711 (dwarf2_per_objfile_free): Unmap .debug_addr section.
5712 Free DWO files if present.
5713 * xcoffread.c (dwarf2_xcoff_names): Add .debug_addr.
5714
dee91e82
DE
5715 Refactor DIE reading.
5716 * dwarf2read.c (dwarf2_per_objfile): Replace members
5717 debug_info_type_hash and debug_types_type_hash with die_type_hash.
5718 (die_reader_specs): New member "die_section". Temporarily make
5719 member "buffer" non-const, pending constifying all info_ptr uses.
5720 (die_reader_func_ftype): New typedef.
5721 (dw2_get_file_names_reader): New function.
5722 (dw2_get_file_names): Rewrite.
5723 (read_and_check_type_unit_head): Rename arg type_offset to
5724 type_offset_in_tu.
5725 (create_all_type_units): Improve debugging message.
5726 Improve dummy type unit check.
5727 (init_cu_die_reader): New arg "section". All callers updated.
5728 (init_and_read_dies_worker): New function.
5729 (init_cu_and_read_dies, init_tu_and_read_dies): New functions.
5730 (init_cutu_and_read_dies_no_follow): New function.
5731 (init_cutu_and_read_dies_simple): New function.
5732 (process_psymtab_comp_unit_reader): New function.
5733 (process_psymtab_comp_unit): Delete args section,
5734 is_debug_types_section. Rewrite. All callers updated.
5735 (process_psymtab_type_unit): Renamed from process_type_comp_unit.
5736 All callers updated. Rewrite.
5737 (load_partial_comp_unit_reader): New function.
5738 (load_partial_comp_unit): Rewrite.
5739 (skip_children): New arg reader. Delete args buffer, cu.
5740 All callers updated.
5741 (skip_one_die): New arg reader. Delete args buffer, cu.
5742 All callers updated.
5743 (locate_pdi_sibling): New arg reader. Delete args buffer, abfd, cu.
5744 All callers updated.
5745 (load_full_comp_unit_reader): New function.
5746 (load_full_comp_unit): Rewrite.
5747 (read_comp_unit): Delete.
5748 (read_die_and_children_1): Delete, contents moved ...
5749 (read_die_and_children): ... here.
5750 (dwarf2_read_abbrevs): New arg abbrev_section. All callers updated.
5751 (load_partial_dies): New arg reader. Delete args abfd, buffer, cu.
5752 All callers updated.
5753 (read_partial_die): New arg reader. Delete args abfd, buffer, cu.
5754 All callers updated.
5755 (find_partial_die): Rewrite load_all_dies support.
5756 (read_attribute_value): New arg reader. Delete args abfd, cu.
5757 All callers updated.
5758 (read_attribute): New arg reader. Delete args abfd, cu.
5759 All callers updated.
5760 (load_full_type_unit): Add assert.
5761 (read_signatured_type_reader): New function.
5762 (read_signatured_type): Rewrite.
5763 (free_stack_comp_unit): Remove call to age_cached_comp_units.
5764 (free_one_cached_comp_unit): Change target_cu arg to target_per_cu.
5765 All callers updated. Set per_cu->cu = NULL after freeing it.
5766 (dwarf2_per_cu_offset_and_type): Renamed from dwarf2_offset_and_type.
5767 (per_cu_offset_and_type_hash): Renamed from offset_and_type_hash.
5768 (per_cu_offset_and_type_eq): Renamed from offset_and_type_eq.
5769 (set_die_type): Update.
5770 (get_die_type_at_offset): Update.
5771 (read_file_scope): Call prepare_one_comp_unit.
5772 (read_type_unit_scope): Ditto.
5773 (prepare_one_comp_unit): Set producer if present.
5774
72d59e0d
SDJ
57752012-04-28 Sergio Durigan Junior <sergiodj@redhat.com>
5776
5777 * probe.c (compile_rx_or_error): Silence ARI warning about missing
5778 gettext function on `error'.
5779
0fefef59
DE
57802012-04-27 Doug Evans <dje@google.com>
5781
5782 * dwarf2read.c (dwarf2_read_index): Don't use index if symbol table
5783 is empty.
5784
28106bc2
SDJ
57852012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
5786 Tom Tromey <tromey@redhat.com>
5787
5788 * breakpoint.c (struct breakpoint_objfile_data)
5789 <longjmp_searched>,<longjmp_probes>,<exception_searched>,
5790 <exception_probes>: New fields.
5791 (free_breakpoint_probes): New function.
5792 (create_longjmp_master_breakpoint): Prefer SystemTap probe over
5793 `_Unwind_DebugHook'.
5794 (create_exception_master_breakpoint): Likewise.
5795 (_initialize_breakpoint): Registering cleanup for SystemTap probes.
5796 * infrun.c: Including necessary header files for handling SystemTap
5797 probes.
5798 (handle_inferior_event): Handling longjmp breakpoint and exceptions
5799 via SystemTap probes.
5800 (check_exception_resume): Remove `func' argument. Handle exception
5801 unwinding breakpoint set via a SystemTap probe.
5802 (insert_exception_resume_from_probe): New function.
5803
55aa24fb
SDJ
58042012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
5805 Tom Tromey <tromey@redhat.com>
5806 Jan Kratochvil <jan.kratochvil@redhat.com>
5807
5808 * Makefile.in (SFILES): Add `probe' and `stap-probe'.
5809 (COMMON_OBS): Likewise.
5810 (HFILES_NO_SRCDIR): Add `probe'.
5811 * NEWS: Mention support for static and SystemTap probes.
5812 * amd64-tdep.c (amd64_init_abi): Initializing proper fields used by
5813 SystemTap probes' arguments parser.
5814 * arm-linux-tdep.c: Including headers needed to perform the parsing
5815 of SystemTap probes' arguments.
5816 (arm_stap_is_single_operand): New function.
5817 (arm_stap_parse_special_token): Likewise.
5818 (arm_linux_init_abi): Initializing proper fields used by SystemTap
5819 probes' arguments parser.
5820 * ax-gdb.c (require_rvalue): Removing static declaration.
5821 (gen_expr): Likewise.
5822 * ax-gdb.h (gen_expr): Declaring function.
5823 (require_rvalue): Likewise.
5824 * breakpoint.c: Include `gdb_regex.h' and `probe.h'.
5825 (bkpt_probe_breakpoint_ops): New variable.
5826 (momentary_breakpoint_from_master): Set the `probe' value.
5827 (add_location_to_breakpoint): Likewise.
5828 (break_command_1): Using proper breakpoint_ops according to the
5829 argument passed by the user in the command line.
5830 (bkpt_probe_insert_location): New function.
5831 (bkpt_probe_remove_location): Likewise.
5832 (bkpt_probe_create_sals_from_address): Likewise.
5833 (bkpt_probe_decode_linespec): Likewise.
5834 (tracepoint_probe_create_sals_from_address): Likewise.
5835 (tracepoint_probe_decode_linespec): Likewise.
5836 (tracepoint_probe_breakpoint_ops): New variable.
5837 (trace_command): Using proper breakpoint_ops according to the
5838 argument passed by the user in the command line.
5839 (initialize_breakpoint_ops): Initializing breakpoint_ops for
5840 static probes on breakpoints and tracepoints.
5841 * breakpoint.h (struct bp_location) <probe>: New field.
5842 * cli-utils.c (skip_spaces_const): New function.
5843 (extract_arg): Likewise.
5844 * cli-utils.h (skip_spaces_const): Likewise.
5845 (extract_arg): Likewise.
5846 * coffread.c (coff_sym_fns): Add `sym_probe_fns' value.
5847 * configure.ac: Append `stap-probe.o' to be generated when ELF
5848 support is present.
5849 * configure: Regenerate.
5850 * dbxread.c (aout_sym_fns): Add `sym_probe_fns' value.
5851 * elfread.c: Include `probe.h' and `arch-utils.h'.
5852 (probe_key): New variable.
5853 (elf_get_probes): New function.
5854 (elf_get_probe_argument_count): Likewise.
5855 (elf_evaluate_probe_argument): Likewise.
5856 (elf_compile_to_ax): Likewise.
5857 (elf_symfile_relocate_probe): Likewise.
5858 (stap_probe_key_free): Likewise.
5859 (elf_probe_fns): New variable.
5860 (elf_sym_fns): Add `sym_probe_fns' value.
5861 (elf_sym_fns_lazy_psyms): Likewise.
5862 (elf_sym_fns_gdb_index): Likewise.
5863 (_initialize_elfread): Initialize objfile cache for static
5864 probes.
5865 * gdb_vecs.h (struct probe): New forward declaration.
5866 (probe_p): New VEC declaration.
5867 * gdbarch.c: Regenerate.
5868 * gdbarch.h: Regenerate.
5869 * gdbarch.sh (stap_integer_prefix): New variable.
5870 (stap_integer_suffix): Likewise.
5871 (stap_register_prefix): Likewise.
5872 (stap_register_suffix): Likewise.
5873 (stap_register_indirection_prefix): Likewise.
5874 (stap_register_indirection_suffix): Likewise.
5875 (stap_gdb_register_prefix): Likewise.
5876 (stap_gdb_register_suffix): Likewise.
5877 (stap_is_single_operand): New function.
5878 (stap_parse_special_token): Likewise.
5879 (struct stap_parse_info): Forward declaration.
5880 * i386-tdep.c: Including headers needed to perform the parsing
5881 of SystemTap probes' arguments.
5882 (i386_stap_is_single_operand): New function.
5883 (i386_stap_parse_special_token): Likewise.
5884 (i386_elf_init_abi): Initializing proper fields used by SystemTap
5885 probes' arguments parser.
5886 * i386-tdep.h (i386_stap_is_single_operand): New function.
5887 (i386_stap_parse_special_token): Likewise.
5888 * machoread.c (macho_sym_fns): Add `sym_probe_fns' value.
5889 * mipsread.c (ecoff_sym_fns): Likewise.
5890 * objfiles.c (objfile_relocate1): Support relocation for static
5891 probes.
5892 * parse.c (prefixify_expression): Remove static declaration.
5893 (initialize_expout): Likewise.
5894 (reallocate_expout): Likewise.
5895 * parser-defs.h (initialize_expout): Declare function.
5896 (reallocate_expout): Likewise.
5897 (prefixify_expression): Likewise.
5898 * ppc-linux-tdep.c: Including headers needed to perform the parsing
5899 of SystemTap probes' arguments.
5900 (ppc_stap_is_single_operand): New function.
5901 (ppc_stap_parse_special_token): Likewise.
5902 (ppc_linux_init_abi): Initializing proper fields used by SystemTap
5903 probes' arguments parser.
5904 * probe.c: New file, for generic statically defined probe support.
5905 * probe.h: Likewise.
5906 * s390-tdep.c: Including headers needed to perform the parsing of
5907 SystemTap probes' arguments.
5908 (s390_stap_is_single_operand): New function.
5909 (s390_gdbarch_init): Initializing proper fields used by SystemTap
5910 probes' arguments parser.
5911 * somread.c (som_sym_fns): Add `sym_probe_fns' value.
5912 * stap-probe.c: New file, for SystemTap probe support.
5913 * stap-probe.h: Likewise.
5914 * symfile.h: Include `gdb_vecs.h'.
5915 (struct sym_probe_fns): New struct.
5916 (struct sym_fns) <sym_probe_fns>: New field.
5917 * symtab.c (init_sal): Initialize `probe' field.
5918 * symtab.h (struct probe): Forward declaration.
5919 (struct symtab_and_line) <probe>: New field.
5920 * tracepoint.c (start_tracing): Adjust semaphore on breakpoints
5921 locations.
5922 (stop_tracing): Likewise.
5923 * xcoffread.c (xcoff_sym_fns): Add `sym_probe_fns' value.
5924
22d2b532
SDJ
59252012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
5926 Tom Tromey <tromey@redhat.com>
5927
5928 * ax-gdb.c (gen_expr): Clean up code to handle internal variables
5929 and to compile agent expressions.
5930 * infrun.c (siginfo_make_value): New argument `ignore'.
5931 (siginfo_funcs): New struct.
5932 (_initialize_infrun): New argument when calling
5933 `create_internalvar_type_lazy'.
5934 * thread.c (thread_id_make_value): New argument `ignore'.
5935 (thread_funcs): New struct.
5936 (_initialize_thread): New argument when calling
5937 `create_internalvar_type_lazy'.
5938 * tracepoint.c (sdata_make_value): New argument `ignore'.
5939 (sdata_funcs): New struct.
5940 (_initialize_tracepoint): New argument when calling
5941 `create_internalvar_type_lazy'.
5942 * value.c (make_value): New struct.
5943 (create_internalvar_type_lazy): New argument `data'.
5944 (compile_internalvar_to_ax): New function.
5945 (value_of_internalvar): Properly handling `make_value' case.
5946 (clear_internalvar): Likewise.
5947 (show_convenience): Adding `TRY_CATCH' block.
5948 * value.h (internalvar_make_value): Delete, replace by...
5949 (struct internalvar_funcs): ... this.
5950 (create_internalvar_type_lazy) <fun>: Delete argument.
5951 (create_internalvar_type_lazy) <funcs>, <data>: New arguments.
5952 (compile_internalvar_to_ax): New function.
5953 * windows-tdep.c (tlb_make_value): New argument `ignore'.
5954 (tlb_funcs): New struct.
5955 (_initialize_windows_tdep): New argument when calling
5956 `create_internalvar_type_lazy'.
5957
91da1414
MW
59582012-04-27 Mark Wielaard <mjw@redhat.com>
5959
5960 * dwarf2read.c (dwarf2_get_pc_bounds): Check DW_AT_high_pc form to
5961 see whether it is an address or a constant offset from DW_AT_low_pc.
5962 (dwarf2_record_block_ranges): Likewise.
5963 (read_partial_die): Likewise.
5964
4ab9d8ec
MW
59652012-04-26 Mark Wielaard <mjw@redhat.com>
5966
5967 * MAINTAINERS (Write After Approval): Add myself to the list.
5968
a0911fd0
MR
59692012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
5970
5971 * proc-utils.h (proc_prettyprint_signalset): New prototype.
5972 (proc_prettyprint_signal): Likewise.
5973 (proc_prettyprint_faultset): Likewise.
5974 (proc_prettyprint_fault): Likewise.
5975 (proc_prettyprint_actionset): Likewise.
5976 (proc_prettyprint_flags): Move to new proc-flags.c section.
5977 (proc_prettyfprint_flags): New prototype.
5978 * procfs.c (proc_nsysarg, proc_sysargs): Add prototypes.
5979 (proc_syscall, proc_cursig): Likewise.
5980 (proc_set_kill_on_last_close): Likewise.
5981 (proc_unset_kill_on_last_close): Likewise.
5982 (proc_set_watchpoint): Make static.
5983 (proc_delete_dead_threads): Likewise.
5984 (procfs_set_watchpoint): Likewise.
5985 (_initialize_procfs): Add prototype.
5986 * proc-events.c: Include proc-utils.h.
5987 (init_syscall_table): Make static.
5988 * proc-api.c (_initialize_proc_api): Add prototype.
5989 * proc-flags.c: Include proc-utils.h.
5990
9009e1ae
MR
59912012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
5992
5993 * configure.ac: Add AC_ARG_PROGRAM.
5994 * configure: Regenerate.
5995
4fae6e18
JK
59962012-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
5997
5998 Fix DW_AT_lower_bound defaults for DWARF-4+.
5999 * dwarf2read.c (read_subrange_type): Remove initialization of low and
6000 high. New variable low_default_is_valid. Implement DWARF-4+
6001 DW_AT_lower_bound defaults. Print complaint for DW_AT_lower_bound with
6002 no default by the DWARF standard.
6003
14132e89 60042012-04-26 Maciej W. Rozycki <macro@mips.com>
f782ad9b 6005 Maciej W. Rozycki <macro@codesourcery.com>
14132e89
MR
6006
6007 * infrun.c (handle_inferior_event): Move the check for return
6008 trampolines ahead of the check for function trampolines.
6009 * mips-tdep.h (MIPS_S2_REGNUM, MIPS_GP_REGNUM): New macros.
6010 * mips-tdep.c (mips_str_mips16_call_stub): New variable.
6011 (mips_str_mips16_ret_stub): Likewise.
6012 (mips_str_call_fp_stub): Likewise.
6013 (mips_str_call_stub): Likewise.
6014 (mips_str_fn_stub): Likewise.
6015 (mips_str_pic): Likewise.
6016 (mips_in_frame_stub): New function.
6017 (mips_unwind_pc): Return the return address rather than the PC
6018 if the PC of an intermediate frame is inside a call thunk.
6019 (mips_is_stub_suffix): New function.
6020 (mips_is_stub_mode): Likewise.
6021 (mips_get_mips16_fn_stub_pc): Likewise.
6022 (mips_skip_mips16_trampoline_code): Update to handle all the
6023 currently generated stub types. Don't recurse into __fn_stub
6024 thunks. Remove heuristics to handle stubs beyond etext/_etext.
6025 Use cooked register accesses.
6026 (mips_in_return_stub): Reintroduce function.
6027 (mips_skip_trampoline_code): Traverse trampolines recursively.
6028 (mips_gdbarch_init): Handle MIPS16 return trampolines.
6029
518f0db5 60302012-04-26 Joel Brobecker <brobecker@adacore.com>
6031
6032 GDB 7.4.1 released.
6033
3184d3f9
JL
60342012-04-26 Jonathan Larmour <jifl@eCosCentric.com>
6035
6036 * arm-tdep.h (VFP_REGISTER_SIZE): Define.
6037 * features/arm-with-m-vfp-d16.xml: New file. Describes
6038 Cortex-M with VFPv4-sp-d16 FPU register layout.
6039 * features/Makefile (WHICH): Add arm-with-m-vfp-d16.
6040 * features/arm-with-m-vfp-d16.c: New. Generated from above.
6041 * arm-tdep.c: Include arm-with-m-vfp-d16.c.
6042 (arm-register_g_packet_guesses): Add vfp-d16 guess.
6043 (_initialise_arm_tdep): Initialize arm-with-m-vfp-d16 tdesc.
6044
b6201d44
DE
60452012-04-25 Doug Evans <dje@google.com>
6046
6047 * cli/cli-decode.c (print_doc_line): Use stream instead of
6048 current_uiout.
6049
4e2f8df6
SDJ
60502012-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
6051
6052 * features/arm-with-iwmmxt.c: Regenerate.
6053 * features/arm-with-m-fpa-layout.c: Likewise.
6054 * features/arm-with-m.c: Likewise.
6055 * features/arm-with-neon.c: Likewise.
6056 * features/arm-with-vfpv2.c: Likewise.
6057 * features/arm-with-vfpv3.c: Likewise.
6058 * features/mips-dsp-linux.c: Likewise.
6059 * features/mips-linux.c: Likewise.
6060 * features/mips64-dsp-linux.c: Likewise.
6061 * features/mips64-linux.c: Likewise.
6062 * features/s390-linux32.c: Likewise.
6063 * features/s390-linux32v1.c: Likewise.
6064 * features/s390-linux32v2.c: Likewise.
6065 * features/s390-linux64.c: Likewise.
6066 * features/s390-linux64v1.c: Likewise.
6067 * features/s390-linux64v2.c: Likewise.
6068 * features/s390x-linux64.c: Likewise.
6069 * features/s390x-linux64v1.c: Likewise.
6070 * features/s390x-linux64v2.c: Likewise.
6071 * features/tic6x-c62x-linux.c: Likewise.
6072 * features/tic6x-c62x.c: Likewise.
6073 * features/tic6x-c64x-linux.c: Likewise.
6074 * features/tic6x-c64x.c: Likewise.
6075 * features/tic6x-c64xp-linux.c: Likewise.
6076 * features/tic6x-c64xp.c: Likewise.
6077 * target-descriptions.c: Only generate `field_type' and `type'
6078 variables when needed.
6079
2def3e66
JB
60802012-04-25 Fredrik Hederstierna <fredrikh.hederstierna@securitas-direct.com>
6081
6082 * cli/cli-cmds.c (cd_command): Use memmove instead of strcpy.
6083
a766d390
DE
60842012-04-25 Doug Evans <dje@google.com>
6085
6086 Initial pass at Go language support.
6087 * NEWS: Mention Go.
6088 * Makefile.in (SFILES): Add go-exp.y, go-lang.c, go-typeprint.c,
6089 go-valprint.c.
6090 (COMMON_OBS): Add go-lang.o, go-val.print.o, go-typeprint.o.
6091 (YYFILES): Add go-exp.c.
6092 (YYOBJ): Add go-exp.o.
6093 (local-maintainer-clean): Delete go-exp.c.
6094 * defs.h (enum language): Add language_go.
6095 * dwarf2read.c: #include "go-lang.h".
6096 (fixup_go_packaging): New function.
6097 (process_full_comp_unit): Call it when processing Go CUs.
6098 (dwarf2_physname): Add Go support.
6099 (read_file_scope): Handle missing language spec for GNU Go.
6100 (set_cu_language): Handle DW_LANG_Go.
6101 * go-exp.y: New file.
6102 * go-lang.h: New file.
6103 * go-lang.c: New file.
6104 * go-typeprint.c: New file.
6105 * go-valprint.c: New file.
6106 * symtab.c: #include "go-lang.h".
6107 (symbol_set_language): Handle language_go.
6108 (symbol_find_demangled_name, symbol_set_names): Ditto.
6109 (symbol_natural_name, demangle_for_lookup, find_main_name): Ditto.
6110
4e2af517
JM
61112012-04-24 Jim Meyering <meyering@redhat.com>
6112
6113 avoid a few strncpy-induced buffer overruns
6114 * procfs.c (procfs_make_note_section): Be sure to NUL-terminate
6115 fname and psargs before trying to concatenate.
6116 * tui/tui-stack.c (tui_get_function_from_frame): NUL-terminate
6117 "name" before applying strchr.
6118
b77b7f52
SCR
61192012-04-25 Siva Chandra Reddy <sivachandra@google.com>
6120
6121 * CONTRIBUTE: Use unified diff instead of context diff when
6122 generating patches.
6123
6321c22a
MR
61242012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
6125
6126 * mips-tdep.c (mips_about_to_return): Remove dead MIPS16 support
6127 code. Handle JR.HB correctly.
6128
742c84f6
MR
61292012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
6130
6131 * mips-tdep.c
6132 (is_mips16_addr, unmake_mips16_addr, make_mips16_addr): Group
6133 with the other MIPS16 helpers.
6134
7fc7e0c3
SDJ
61352012-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
6136
6137 * observer.sh: Conditionally declare `args', thus cleaning up
6138 unused instances of this variable.
6139
20388dd6
YQ
61402012-04-24 Yao Qi <yao@codesourcery.com>
6141
6142 Revert this patch to allow breakpoint always-inserted
6143 in record target.
6144 2011-12-05 Pedro Alves <pedro@codesourcery.com>
f782ad9b
AS
6145 * breakpoint.c: Include record.h.
6146 (breakpoints_always_inserted_mode): Return false when the record
6147 target is in use.
20388dd6
YQ
6148
6149 * breakpoint.c (iterate_over_bp_locations): New.
6150 * breakpoint.h: Declare.
6151 New typedef walk_bp_location_callback.
6152 * record.c (record_open): Call record_init_record_breakpoints.
6153 (record_sync_record_breakpoints): New.
6154 (record_init_record_breakpoints): New.
6155 * NEWS: Mention supporting breakpoint always-inserted mode in
6156 record target.
6157
4734f50e
MK
61582012-04-24 Marc Khouzam <marc.khouzam@ericsson.com>
6159
6160 * mi/mi-main.c (mi_cmd_execute): Choose a live thread not just
6161 any thread.
6162
c326b90e
YQ
61632012-04-24 Yao Qi <yao@codesourcery.com>
6164
6165 * breakpoint.c (ep_is_catchpoint): Renamed to ...
6166 (is_catchpoint): ... it.
6167 (print_one_breakpoint_location): Caller update.
6168 * breakpoint.h: Update declaration.
6169
d8fb5a1e
DM
61702012-04-23 David S. Miller <davem@davemloft.net>
6171
6172 * configure.tgt (sparc-*-linux*): Set build_gdbserver to yes.
6173
34431a2a
TT
61742012-04-23 Tom Tromey <tromey@redhat.com>
6175
6176 * buildsym.c (add_free_pendings): Remove.
6177 * buildsym.h (add_free_pendings): Remove.
6178
4568ecf9
DE
61792012-04-23 Doug Evans <dje@google.com>
6180
6181 * dwarf2read.c (partial_die_full_name): Record DW_FORM_ref_addr in
6182 attr.u.unsnd instead of attr.u.addr.
6183 (read_attribute_value) Ditto for cases DW_FORM_ref_addr,
6184 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4, DW_FORM_reg8,
6185 DW_FORM_ref_udata.
6186 (dump_die_shallow): Update cases DW_FORM_ref_addr,
6187 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4. Add cases DW_FORM_ref8,
6188 DW_FORM_ref_udata.
6189 (dwarf2_get_ref_die_offset): Use DW_UNSND for reference attributes.
6190
dca9aa3a
MR
61912012-04-23 Maciej W. Rozycki <macro@codesourcery.com>
6192
6193 * mips-tdep.c (mips_n32n64_return_value): Fix coding style.
6194 (mips_o32_return_value): Likewise.
6195 (mips_o64_return_value): Likewise.
6196
c8ea1972
PH
61972012-04-21 Paul Hilfinger <hilfinger@adacore.com>
6198
6199 * ada-lang.c (ada_evaluate_subexp): Add cases for
f782ad9b
AS
6200 TYPE_CODE_INTERNAL_FUNCTION and for TYPE_GNU_IFUNC, following
6201 their treatment in eval.c.
c8ea1972 6202
8d1b3521
DM
62032012-04-21 David S. Miller <davem@davemloft.net>
6204
6205 * sparc-tdep.c (X_DISP10): Define.
6206 (sparc_analyze_control_transfer): Handle compare-and-branch.
6207
03145bf4
JL
62082012-04-21 Jonathan Larmour <jifl@eCosCentric.com>
6209
6210 * features/Makefile (WHICH): Add arm-with-m and arm-with-m-fpa-layout.
6211 * arm-tdep.c (arm_register_g_packet_guesses): Fix comment.
6212
004159a2 62132012-04-20 Nigel Stephens <nigel@mips.com>
f782ad9b 6214 Maciej W. Rozycki <macro@codesourcery.com>
004159a2
MR
6215
6216 * mips-tdep.c (mips_float_register_p): New function.
6217 (mips_convert_register_float_case_p): Use mips_float_register_p.
6218 (mips_register_type): Likewise.
6219 (mips_print_register): Likewise.
6220 (print_gp_register_row): Likewise.
6221 (mips_print_registers_info): Likewise.
6222
7f0e6aae
MR
62232012-04-20 Shun-Yen Lu <dark.asparagus@gmail.com>
6224
6225 * mips-tdep.c (mips_elf_make_msymbol_special): Fix identification
6226 of mips16 symbols.
6227
bc17beea
AP
62282012-04-20 Andrew Pinski <apinski@cavium.com>
6229
6230 * MAINTAINERS (Write After Approval): Add myself to the list.
6231
1730a5a5
SDJ
62322012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
6233
6234 * MAINTAINERS: Update my e-mail address.
6235
38ea300a
PA
62362012-04-20 Pedro Alves <palves@redhat.com>
6237
6238 * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Handle absolute
6239 $srcdir.
6240 * configure: Regenerate.
6241
111dfaae
SDJ
62422012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
6243
6244 * cp-support.h: Include `gdb_vecs.h'. Delete `const_char_ptr' VEC
6245 declaration.
6246 * gdb_vecs.h: Declare `const_char_ptr' VEC.
6247
4fb2c64a
JK
62482012-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6249
6250 Fix compilation compatibility with python-2.4
6251 * python/py-type.c (convert_field): Cast ADDRSTRING for
6252 PyObject_SetAttrString as non-const. New comment.
6253
6328eb38
TT
62542012-04-19 Tom Tromey <tromey@redhat.com>
6255
6256 * top.c (quit_target): Use all_cleanups.
6257 * main.c (captured_command_loop): Use all_cleanups.
6258 * exceptions.c (throw_exception): Use all_cleanups.
6259
c971b7fa
PA
62602012-04-19 Pedro Alves <palves@redhat.com>
6261
6262 * Makefile.in (GNULIB_BUILDDIR): New.
6263 (LIBGNU, INCGNU, GNULIB_H): Adjust.
6264 (SUBDIRS): Add $(GNULIB_BUILDDIR).
6265 (CLEANDIRS). Remove gnulib/import.
6266 (REQUIRED_SUBDIRS): Replace gnulib/import with $(GNULIB_BUILDDIR).
6267 (all-lib): Ditto.
6268 (distclean): Remove the $(GNULIB_BUILDDIR) directory.
6269 (gnulib/import/Makefile): Replace gnulib/import with
6270 $(GNULIB_BUILDDIR). Set CONFIG_FILES to just Makefile.
6271 (ACLOCAL_AMFLAGS): Remove '-I gnulib/import/m4'.
6272 (aclocal_m4_deps): Remove the gnulib dependencies. Add
6273 acx_configure_dir.m4.
6274 * acinclude.m4: Include acx_configure_dir.m4.
6275 * acx_configure_dir.m4: New file.
6276 * aclocal.m4: Regenerate.
a09130f9
PA
6277 * configure.ac: Remove gl_EARLY, gl_INIT and AM_INIT_AUTOMAKE
6278 calls. Configure gnulib using ACX_CONFIGURE_DIR.
6279 (GNULIB): New variable.
6280 (GNULIB_STDINT_H): Adjust.
6281 (AC_OUTPUT): Don't output gnulib/Makefile.
6282 * gdb/defs.h: Include build-gnulib/config.h.
6283 * aclocal.m4: Regenerate.
6284 * config.in: Regenerate.
6285 * configure: Regenerate.
6286
6287 * gnulib/Makefile.in: New file.
6288 * gnulib/configure.ac: New file.
6289 * gnulib/aclocal.m4: New file.
6290 * gnulib/config.in: New file.
6291 * gnulib/configure: New file.
c971b7fa
PA
6292 * gnulib/: Re-run gnulib-tool to adjust.
6293
b10faa68
DE
62942012-04-19 Doug Evans <dje@google.com>
6295
6296 * cleanups.h (struct cleanup): Move to cleanups.c.
6297 (make_cleanup_dtor_ftype): New typedef.
6298 (make_cleanup_dtor): Use it.
6299 (ALL_CLEANUPS): Replace with ...
6300 (all_cleanups): ... this. Declare. All uses updated.
6301 * cleanups.c: #include "gdb_assert.h".
6302 (sentinel_cleanup): New static global.
6303 (SENTINEL_CLEANUP): Define.
6304 (cleanup_chain, final_cleanup_chain): Initialize to SENTINEL_CLEANUP.
6305 (make_my_cleanup2): Assert result is non-NULL.
6306 (all_cleanups): New function.
6307 (save_my_cleanups): Initialize new chain to SENTINEL_CLEANUP instead
6308 of NULL.
6309
d8c267cc
PA
63102012-04-19 Pedro Alves <palves@redhat.com>
6311
6312 * Makefile.in (HFILES_NO_SRCDIR): Remove gnulib/wchar.in.h.
6313 Adjust paths to gnulib imported files.
6314
809277f8
PA
63152012-04-19 Pedro Alves <palves@redhat.com>
6316
6317 * gnulib/: Move whole directory ...
6318 * gnulib/import/: ... here, and re-rerun gnulib-tool to adjust.
6319 * Makefile.in (LIBGNU, INCGNU, GNULIB_H, CLEANDIRS)
6320 (REQUIRED_SUBDIRS, all-lib, gnulib/Makefile, ACLOCAL_AMFLAGS)
6321 (aclocal_m4_deps): Adjust.
6322 * aclocal.m4: Regenerate.
6323 * configure: Regenerate.
6324 * configure.ac: Adjust AC_OUTPUT output.
6325
aad9eab9
YQ
63262012-04-19 Yao Qi <yao@codesourcery.com>
6327
6328 * Makefile.in (SFILES): Add common/vec.c and remove vec.c.
6329 (vec.o): New rule.
6330 * vec.c: Move it ...
6331 * common/vec.c: ... here.
6332 * vec.h: Move it ...
6333 * common/vec.h: ... here.
6334
48fe4669
YQ
63352012-04-19 Yao Qi <yao@codesourcery.com>
6336
6337 * gdb-code-style.el: New.
6338
770d76d7
PA
63392012-04-18 Pedro Alves <palves@redhat.com>
6340
6341 Update gnulib from latest git.
6342 (639ea5ae15e39fe48d43e04864b2997301e4b969)
6343
6344 * gnulib/Makefile.am: Update.
6345 * gnulib/dummy.c: Update.
6346 * gnulib/extra/arg-nonnull.h: Update.
6347 * gnulib/extra/c++defs.h: Update.
6348 * gnulib/extra/update-copyright: Update.
6349 * gnulib/extra/warn-on-use.h: Update.
6350 * gnulib/inttypes.in.h: Update.
6351 * gnulib/m4/00gnulib.m4: Update.
6352 * gnulib/m4/extensions.m4: Update.
6353 * gnulib/m4/gnulib-cache.m4: Update.
6354 * gnulib/m4/gnulib-common.m4: Update.
6355 * gnulib/m4/gnulib-comp.m4: Update.
6356 * gnulib/m4/gnulib-tool.m4: Update.
6357 * gnulib/m4/include_next.m4: Update.
6358 * gnulib/m4/inttypes-pri.m4: Update.
6359 * gnulib/m4/inttypes.m4: Update.
6360 * gnulib/m4/longlong.m4: Update.
6361 * gnulib/m4/memchr.m4: Update.
6362 * gnulib/m4/memmem.m4: Update.
6363 * gnulib/m4/mmap-anon.m4: Update.
6364 * gnulib/m4/multiarch.m4: Update.
6365 * gnulib/m4/onceonly.m4: Update.
6366 * gnulib/m4/stddef_h.m4: Update.
6367 * gnulib/m4/stdint.m4: Update.
6368 * gnulib/m4/string_h.m4: Update.
6369 * gnulib/m4/warn-on-use.m4: Update.
6370 * gnulib/m4/wchar_h.m4: Update.
6371 * gnulib/m4/wchar_t.m4: Update.
6372 * gnulib/m4/wint_t.m4: Update.
6373 * gnulib/memchr.c: Update.
6374 * gnulib/memmem.c: Update.
6375 * gnulib/stddef.in.h: Update.
6376 * gnulib/stdint.in.h: Update.
6377 * gnulib/str-two-way.h: Update.
6378 * gnulib/string.in.h: Update.
6379 * gnulib/wchar.in.h: Update.
6380
6381 * gnulib/extra/arg-nonnull.h: Delete.
6382 * gnulib/extra/c++defs.h: Delete.
6383 * gnulib/extra/warn-on-use.h: Delete.
6384 * gnulib/m4/wchar_h.m4: Delete.
6385 * gnulib/m4/wint_t.m4: Delete.
6386 * gnulib/wchar.in.h: Delete.
6387
6388 * gnulib/extra/snippets/arg-nonnull.h: New.
6389 * gnulib/extra/snippets/c++defs.h: New.
6390 * gnulib/extra/snippets/warn-on-use.h: New.
6391
6392 * aclocal.m4: Regenerate.
6393 * config.in: Regenerate.
6394 * configure: Regenerate.
6395 * gnulib/Makefile.in: Regenerate.
6396
174e088e
PA
63972012-04-18 Pedro Alves <palves@redhat.com>
6398
6399 Reimport the update-copyright module from gnulib
6400 (250b80067c1e1d8faa0c42fb572f721975b929c5).
6401
6402 * configure: Regenerate.
6403 * gnulib/Makefile.am: Update.
6404 * gnulib/Makefile.in: Regenerate.
6405 * gnulib/extra/update-copyright: Update.
6406 * gnulib/m4/gnulib-cache.m4: Update.
6407 * gnulib/m4/gnulib-comp.m4: Update.
6408
7f533142
JB
64092012-04-18 Tristan Gingold <gingold@adacore.com>
6410
6411 * configure.ac (aix): Put -lpthread into libs.
6412 * configure: Regenerate.
6413
001822aa
TT
64142012-04-18 Tom Tromey <tromey@redhat.com>
6415
6416 * linespec.c (convert_linespec_to_sals): Don't use
6417 SYMBOL_OBJ_SECTION.
6418 (compare_msymbols): Arguments are minsym_and_objfile, not
6419 minimal_symbol*. Don't use SYMBOL_OBJ_SECTION.
6420
db026a31
PA
64212012-04-18 Pedro Alves <palves@redhat.com>
6422
6423 Revert gnulib/ part of:
6424 2011-01-01 Joel Brobecker <brobecker@adacore.com>
6425 Copyright year update in most files (performed by copyright.sh).
6426
12df843f
JK
64272012-04-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6428
6429 Fix 64-bit constants on 32-bit hosts.
6430 * dwarf2read.c (read_unsigned_leb128): Change declaration return type
6431 from unsigned long to ULONGEST.
6432 (read_signed_leb128): Change declaration return type from long to
6433 LONGEST.
6434 (dwarf2_const_value_attr): Change declaration parameter value from long
6435 to LONGEST.
6436 (dwarf2_compute_name): Change variable value from long to LONGEST.
6437 (read_unsigned_leb128): Change return type, variable result and some
6438 casts from unsigned long to ULONGEST.
6439 (read_signed_leb128): Change return type, variable result and some
6440 casts from long to LONGEST.
6441 (dwarf2_const_value_data, dwarf2_const_value_attr): Change parameter
6442 value from long to LONGEST.
6443 (dwarf2_const_value): Change variable value from long to LONGEST.
6444 * symmisc.c (print_symbol): Change SYMBOL_VALUE format strings to use
6445 plongest and hex_string.
6446 * symtab.h (struct general_symbol_info): Change ivalue from long to
6447 LONGEST, remove the comment.
6448 * tracepoint.c (validate_actionline, collect_symbol, scope_info):
6449 Change SYMBOL_VALUE format strings to use plongest and hex_string.
6450
14e75d8e
JK
64512012-04-18 Siddhesh Poyarekar <siddhesh@redhat.com>
6452
6453 PR symtab/7259:
6454 * ada-exp.y (convert_char_literal): Use TYPE_FIELD_ENUMVAL.
6455 * ada-lang.c (ada_discrete_type_high_bound)
ac4ea3c2
JK
6456 (ada_discrete_type_low_bound): Fix function comment. Use
6457 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
14e75d8e
JK
6458 (ada_identical_enum_types_p): Use TYPE_FIELD_ENUMVAL.
6459 (pos_atr, value_val_atr): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6460 * ada-typeprint.c (print_enum_type): Change variable lastval to LONGEST.
6461 Use TYPE_FIELD_ENUMVAL.
6462 * ada-valprint.c (print_optional_low_bound, ada_print_scalar)
6463 (ada_val_print_1): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6464 * c-typeprint.c (c_type_print_base): Move variable lastval to inner
6465 block, change it to LONGEST. Use TYPE_FIELD_ENUMVAL for
6466 TYPE_CODE_ENUM.
6467 * coffread.c (coff_read_enum_type): Use SET_FIELD_ENUMVAL.
6468 * dwarf2read.c (process_enumeration_scope): Likewise.
6469 * gdb-gdb.py (TypeFlagsPrinter): Use field.enumval instead of
6470 field.bitpos.
6471 (class StructMainTypePrettyPrinter): Support also
6472 FIELD_LOC_KIND_ENUMVAL.
6473 * gdbtypes.c (get_discrete_bounds): Use TYPE_FIELD_ENUMVAL for
6474 TYPE_CODE_ENUM.
6475 (recursive_dump_type): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6476 (copy_type_recursive): Support also FIELD_LOC_KIND_ENUMVAL.
6477 * gdbtypes.h (enum field_loc_kind): New FIELD_LOC_KIND_ENUMVAL.
6478 (struct main_type.flds_bnds.fields.loc): Adjust bitpos comment. New
6479 field enumval.
6480 (struct main_type.flds_bnds.bields): Adjust loc_kind and bitsize to
6481 accommodate enumval.
6482 (struct call_site): Adjust loc_kind to accommodate enumval.
6483 (FIELD_ENUMVAL, FIELD_ENUMVAL_LVAL, SET_FIELD_ENUMVAL)
6484 (TYPE_FIELD_ENUMVAL): New macros.
6485 * m2-typeprint.c (m2_enum): Use TYPE_FIELD_ENUMVAL.
6486 * mdebugread.c (parse_symbol): Use TYPE_FIELD_ENUMVAL for
6487 TYPE_CODE_ENUM.
6488 * p-typeprint.c (pascal_type_print_base): Likewise.
6489 * python/lib/gdb/printing.py (class FlagEnumerationPrinter): Use
6490 enumval.
6491 * python/lib/gdb/types.py (make_enum_dict): Likewise.
6492 * python/py-type.c (convert_field): New variable addrstring. Use
6493 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6494 (check_types_equal): Support also FIELD_LOC_KIND_ENUMVAL.
6495 * stabsread.c (read_enum_type): Use SET_FIELD_ENUMVAL.
6496 * typepint.c (print_type_scalar): Use TYPE_FIELD_ENUMVAL for
6497 TYPE_CODE_ENUM.
6498 * valprint.c (generic_val_print): Likewise.
6499
380bca97
DE
65002012-04-17 Doug Evans <dje@google.com>
6501
dcc07052
DE
6502 * dwarf2read.c (lookup_signatured_type): Return NULL instead of 0.
6503
380bca97
DE
6504 * dwarf2read.c: Whitespace fixes.
6505 (lookup_signatured_type): Tweak comment.
6506 (get_die_type_at_offset): Fix comment.
6507
ec92004f
JB
65082012-04-17 Joel Brobecker <brobecker@adacore.com>
6509
6510 * xcoffread.c (xcoff_secnum_to_sections): New function.
6511 (secnum_to_section, secnum_to_bfd_section): Reimplement
6512 using xcoff_secnum_to_sections. Rename "secnum" parameter
6513 into "n_scnum".
6514 (RECORD_MINIMAL_SYMBOL): Delete.
6515 (record_minimal_symbol): New function.
6516 (scan_xcoff_symtab): Replace uses of RECORD_MINIMAL_SYMBOL
6517 by call to record_minimal_symbol and set misc_func_recorded
6518 to 1. Set last_csect_sec to the XCOFF section index instead
6519 of GDB's section_offset index. Update calls to
6520 prim_record_minimal_symbol_and_info to pass the BFD section
6521 as well.
6522
40301fb7
JB
65232012-04-17 Joel Brobecker <brobecker@adacore.com>
6524
6525 * xcoffread.c (read_xcoff_symtab): Delete variables
6526 last_csect_val and last_csect_sec and associated code.
6527
e0088cfd
DE
65282012-04-17 Doug Evans <dje@google.com>
6529
58d5e2c3
DE
6530 * cleanups.c (make_my_cleanup,make_my_cleanup2): Make static.
6531 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
6532 * cleanups.h (make_my_cleanup,make_my_cleanup2): Delete
6533 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Delete.
6534
c27f5738
DE
6535 * cleanups.h: New file.
6536 * cleanups.c: New file.
6537 * Makefile.in (SFILES): Add cleanups.c.
6538 (HFILES_NO_SRCDIR): Add cleanups.h.
6539 (COMMON_OBS): Add cleanups.o.
6540 * defs.h (struct cleanup): Moved to cleanups.h.
6541 (do_cleanups,do_final_cleanups): Ditto.
6542 (discard_cleanups,discard_final_cleanups): Ditto
6543 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
6544 (save_cleanups,save_final_cleanups): Ditto.
6545 (restore_cleanups,restore_final_cleanups): Ditto.
6546 (null_cleanup): Ditto.
6547 (make_my_cleanup,make_my_cleanup2): Ditto.
6548 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
6549 * utils.c (cleanup_chain,final_cleanup_chain): Moved to cleanups.c.
6550 (do_cleanups,do_final_cleanups): Ditto.
6551 (discard_cleanups,discard_final_cleanups): Ditto
6552 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
6553 (save_cleanups,save_final_cleanups): Ditto.
6554 (restore_cleanups,restore_final_cleanups): Ditto.
6555 (null_cleanup): Ditto.
6556 (make_my_cleanup,make_my_cleanup2): Ditto.
6557 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
6558
e0088cfd
DE
6559 * utils.c (make_cleanup_freeargv): Use make_cleanup instead of
6560 make_my_cleanup.
6561 (make_cleanup_dyn_string_delete): Ditto.
6562 (make_cleanup_ui_file_delete): Ditto.
6563 (make_cleanup_ui_out_redirect_pop): Ditto.
6564 (make_cleanup_free_section_addr_info): Ditto.
6565 (make_cleanup_restore_integer): Ditto.
6566 (make_cleanup_unpush_target): Ditto.
6567 (make_cleanup_value_free_to_mark): Ditto.
6568 (make_cleanup_value_free): Ditto.
6569 (make_cleanup_free_so): Ditto.
6570
4dc84fd1
JK
65712012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6572
6573 New option "set debug auto-load".
6574 * NEWS: New commands "set debug auto-load" and "show debug auto-load".
6575 * auto-load.c (debug_auto_load, show_debug_auto_load: New.
6576 (auto_load_safe_path_vec_update)
6577 (filename_is_in_auto_load_safe_path_vec): Call fprintf_unfiltered
6578 if DEBUG_AUTO_LOAD.
6579 (file_is_auto_load_safe): New parameters debug_fmt and ....
6580 Call fprintf_unfiltered if DEBUG_AUTO_LOAD.
6581 (source_gdb_script_for_objfile): Extend the file_is_auto_load_safe
6582 caller by explanatory string.
6583 (_initialize_auto_load): Register "set debug auto-load".
6584 * auto-load.h (file_is_auto_load_safe): New parameters debug_fmt
6585 and ....
6586 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
6587 (try_thread_db_load_from_dir): Extend the file_is_auto_load_safe caller
6588 by explanatory string.
6589 * main.c (captured_main): Likewise.
6590 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
6591 (source_section_scripts): Likewise.
6592
bccbefd2
JK
65932012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6594
6595 New option "set auto-load safe-path".
6596 * NEWS: New commands "set auto-load safe-path"
6597 and "show auto-load safe-path".
6598 * auto-load.c: Include gdb_vecs.h, readline/tilde.h and completer.h.
6599 (auto_load_safe_path, auto_load_safe_path_vec)
6600 (auto_load_safe_path_vec_update, set_auto_load_safe_path)
6601 (show_auto_load_safe_path, add_auto_load_safe_path, filename_is_in_dir)
6602 (filename_is_in_auto_load_safe_path_vec, file_is_auto_load_safe): New.
6603 (source_gdb_script_for_objfile): New variable is_safe. Call
6604 file_is_auto_load_safe. Return if it is not.
6605 (struct loaded_script): New field loaded.
6606 (maybe_add_script): Add parameter loaded. Initialize SLOT with it.
6607 (print_script): Use LOADED indicator instead of FULL_PATH. Change
6608 output "Missing" to "No".
6609 (_initialize_auto_load): New variable cmd. Initialize
6610 auto_load_safe_path. Register "set auto-load safe-path",
6611 "show auto-load safe-path" and "add-auto-load-safe-path".
6612 * auto-load.h (maybe_add_script): Add parameter loaded.
6613 (file_is_auto_load_safe): New declaration.
6614 * config.in: Regenerate.
6615 * configure: Regenerate.
6616 * configure.ac: New parameters --with-auto-load-safe-path
6617 and --without-auto-load-safe-path.
6618 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
6619 (try_thread_db_load_from_dir): Check file_is_auto_load_safe first.
6620 * main.c (captured_main): Check file_is_auto_load_safe for
6621 LOCAL_GDBINIT.
6622 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile): New
6623 variable is_safe. Call file_is_auto_load_safe. Return if it is not.
6624 (source_section_scripts): Call file_is_auto_load_safe. Return if it is
6625 not.
6626
bf88dd68
JK
66272012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6628
6629 auto-load: Implementation.
6630 * NEWS: New descriptions for "info auto-load",
6631 "info auto-load gdb-scripts", "info auto-load python-scripts",
6632 "info auto-load local-gdbinit" and "info auto-load libthread-db".
6633 Deprecate "info auto-load-scripts", "set auto-load-scripts on|off"
6634 and "show auto-load-scripts". New description for "set auto-load",
6635 "show auto-load", "set auto-load gdb-scripts",
6636 "show auto-load gdb-scripts", "set auto-load python-scripts",
6637 "show auto-load python-scripts", "set auto-load local-gdbinit",
6638 "show auto-load local-gdbinit", "set auto-load libthread-db" and
6639 "show auto-load libthread-db".
6640 * auto-load.c: Remove include python/python-internal.h. Add includes
6641 exceptions.h, cli/cli-script.h, gdbcmd.h, cli/cli-decode.h and
6642 cli/cli-setshow.h.
6643 (GDB_AUTO_FILE_NAME, source_gdb_script_for_objfile)
6644 (auto_load_gdb_scripts, show_auto_load_gdb_scripts): New.
6645 (gdbpy_global_auto_load): Rename to ...
6646 (global_auto_load): ... here.
6647 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
6648 (auto_load_local_gdbinit_loaded, show_auto_load_local_gdbinit)
6649 (script_language_gdb, source_gdb_script_for_objfile): New.
6650 (struct loaded_script): New field language.
6651 (hash_loaded_script_entry, eq_loaded_script_entry): Calculate also
6652 LANGUAGE.
6653 (maybe_add_script): Add parameter language. Drop redundant
6654 entry.full_path initialization. Initialize entry.language and
6655 (*slot)->language.
6656 (auto_load_objfile_script): Change parameter suffix to language.
6657 Remove the call of maybe_add_script.
6658 Call language->source_script_for_objfile.
6659 (load_auto_scripts_for_objfile, struct collect_matching_scripts_data):
6660 New.
6661 (collect_matching_scripts): Adjust it for
6662 struct collect_matching_scripts_data.
6663 (auto_load_info_scripts_pattern_nl): New variable.
6664 (info_auto_load_scripts): Rename to ...
6665 (auto_load_info_scripts): ... here, add parameter language. Adjust it
6666 for struct collect_matching_scripts_data.
6667 (info_auto_load_gdb_scripts, info_auto_load_local_gdbinit)
6668 (set_auto_load_cmd, auto_load_set_cmdlist_get, show_auto_load_cmd)
6669 (auto_load_show_cmdlist_get, info_auto_load_cmd)
6670 (auto_load_info_cmdlist_get): New.
6671 (_initialize_auto_load): Move add_info of "auto-load-scripts" to
6672 python/py-auto-load.c. New installment for "set auto-load gdb-scripts",
6673 "info auto-load gdb-scripts", "set auto-load local-gdbinit" and
6674 "info auto-load local-gdbinit".
6675 * auto-load.h (struct script_language): New.
6676 (gdbpy_global_auto_load): Rename to ...
6677 (global_auto_load): ... here.
6678 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
6679 (auto_load_local_gdbinit_loaded): New declarations.
6680 (maybe_add_script): New parameter language.
6681 (auto_load_objfile_script): Change parameter suffix to language.
6682 (load_auto_scripts_for_objfile, auto_load_info_scripts_pattern_nl)
6683 (auto_load_info_scripts, auto_load_set_cmdlist_get)
6684 (auto_load_show_cmdlist_get, auto_load_info_cmdlist_get): New
6685 declarations.
6686 * linux-thread-db.c: Include auto-load.h and ctype.h.
6687 (auto_load_thread_db, show_auto_load_thread_db): New.
6688 (struct thread_db_info): New field filename.
6689 (delete_thread_db_info): Call xfree for FILENAME.
6690 (try_thread_db_load): Initialize FILENAME.
6691 (try_thread_db_load_from_pdir, try_thread_db_load_from_dir): Return
6692 if !AUTO_LOAD_THREAD_DB.
6693 (info_auto_load_libthread_db_compare, info_auto_load_libthread_db): New.
6694 (_initialize_thread_db): Install auto_load_thread_db
6695 as "set auto-load libthread-db" and install info_auto_load_libthread_db
6696 as "info auto-load libthread-db".
6697 * main.c (captured_main): Rename gdbpy_global_auto_load to
6698 global_auto_load. Initialize AUTO_LOAD_LOCAL_GDBINIT_PATHNAME and
6699 AUTO_LOAD_LOCAL_GDBINIT_LOADED.
6700 (print_gdb_help): Extend the help for 'local init file'.
6701 * python/py-auto-load.c: Remove a comment about gdb scripts extension.
6702 (GDBPY_AUTO_SECTION_NAME): Extend the comment it is Python specific.
6703 (auto_load_scripts): Rename to ...
6704 (auto_load_python_scripts): ... here, update the comment.
6705 (gdbpy_load_auto_script_for_objfile): New declaration.
6706 (show_auto_load_python_scripts, script_language_python)
6707 (gdbpy_load_auto_script_for_objfile): New.
6708 (source_section_scripts): Refactor the code.
6709 (load_auto_scripts_for_objfile): Rename to ...
6710 (gdbpy_load_auto_scripts_for_objfile): ... here, update the
6711 auto_load_objfile_script caller, drop GDBPY_GLOBAL_AUTO_LOAD checking.
6712 (info_auto_load_python_scripts): New.
6713 (gdbpy_initialize_auto_load): New variables cmd and cmd_name.
6714 Rename "set auto-load-scripts" to "set auto-load python-scripts".
6715 Register "set auto-load-scripts" as its deprecated alias. Register
6716 "info auto-load python-scripts". Register "info auto-load-scripts" as
6717 its deprecated alias.
6718 (load_auto_scripts_for_objfile): Rename to ...
6719 (gdbpy_load_auto_scripts_for_objfile): ... here.
6720 * python/python.h (load_auto_scripts_for_objfile): Rename to ...
6721 (gdbpy_load_auto_scripts_for_objfile): ... here.
6722
e2207b9a
JK
67232012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6724
6725 auto-load: Move files.
6726 * Makefile.in (SFILES): Add auto-load.c.
6727 (HFILES_NO_SRCDIR): Add auto-load.h.
6728 (COMMON_OBS): Add auto-load.o.
6729 (distclean): Change .gdbinit for gdb-gdb.gdb.
6730 * auto-load.c: New file, with parts from python/py-auto-load.c.
6731 * auto-load.h: New file, with parts from python/python.h.
6732 * configure: Regenerate.
6733 * configure.ac (AC_OUTPUT): Change .gdbinit for gdb-gdb.gdb.
6734 * gdb-gdb.gdb.in: New file, renamed from gdbinit.in.
6735 * gdbinit.in: Remove file, rename it to gdb-gdb.gdb.in.
6736 * main.c: Include auto-load.h.
6737 * python/py-auto-load.c: Move include filenames.h, gdb_regex.h,
6738 command.h, observer.h and progspace.h to auto-load.c. Add include
6739 auto-load.h.
6740 (gdbpy_global_auto_load, struct auto_load_pspace_info)
6741 (struct loaded_script, auto_load_pspace_data)
6742 (auto_load_pspace_data_cleanup, get_auto_load_pspace_data)
6743 (hash_loaded_script_entry, eq_loaded_script_entry)
6744 (init_loaded_scripts_info, get_auto_load_pspace_data_for_loading)
6745 (maybe_add_script): Move to auto-load.c.
6746 (source_section_scripts): Change maybe_add_script parameters passing,
6747 use script_not_found_warning_print.
6748 (clear_section_scripts, auto_load_objfile_script)
6749 (auto_load_new_objfile, loaded_script_ptr)
6750 (DEF_VEC_P (loaded_script_ptr), collect_matching_scripts, print_script)
6751 (sort_scripts_by_name, info_auto_load_scripts): Move to auto-load.c.
6752 (gdbpy_initialize_auto_load): Move auto_load_pspace_data,
6753 auto_load_new_objfile and info_auto_load_scripts initizations to
6754 auto-load.c.
6755 * python/python.h (gdbpy_global_auto_load): Move to auto-load.h.
6756
e4ab2fad
JK
67572012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6758
6759 Code cleanup.
6760 * charset.c (find_charset_names): Remove variables ix and elt.
6761 Use free_char_ptr_vec.
6762 * elfread.c (build_id_to_debug_filename): New variables debugdir_vec,
6763 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
6764 debugdir_end. New variable debugdir_len.
6765 * gdb_vecs.h (free_char_ptr_vec, make_cleanup_free_char_ptr_vec)
6766 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): New
6767 declarations.
6768 * progspace.c (clear_program_space_solib_cache): Remove variables ix
6769 and elt. Use free_char_ptr_vec.
6770 * source.c (add_path): Remove variables argv, arg and argv_index.
6771 New variables dir_vec, back_to, ix and name.
6772 Use dirnames_to_char_ptr_vec_append. Use freeargv instead of
6773 make_cleanup_freeargv. Remove variable separator. Simplify the code
6774 no longer expecting DIRNAME_SEPARATOR.
6775 (openp): Remove variable p, p1 and len. New variables dir_vec,
6776 back_to, ix and dir. Use dirnames_to_char_ptr_vec. Simplify the code
6777 no longer expecting DIRNAME_SEPARATOR.
6778 * symfile.c (find_separate_debug_file): New variables debugdir_vec,
6779 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
6780 debugdir_end.
6781 * utils.c (free_char_ptr_vec, do_free_char_ptr_vec)
6782 (make_cleanup_free_char_ptr_vec, dirnames_to_char_ptr_vec_append)
6783 (dirnames_to_char_ptr_vec): New functions.
6784
5ee4ed9f
JK
67852012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6786
6787 Code cleanup.
6788 * source.c (add_path): Remove always true conditional 'p == 0' and
6789 unindent its code block.
6790
f41f5e61
PA
67912012-04-17 Pedro Alves <palves@redhat.com>
6792
6793 * gdbtypes.h (FIELD_BITPOS): Rename to ...
6794 (FIELD_BITPOS_LVAL): ... this.
6795 (FIELD_BITPOS): New.
6796 (SET_FIELD_BITPOS): Adjust to use FIELD_BITPOS_LVAL.
6797 * dwarf2read.c (dwarf2_add_field): Use SET_FIELD_BITPOS.
6798 * gdbtypes.c (append_composite_type_field_aligned): Adjust to use
6799 SET_FIELD_BITPOS.
6800 * gnu-v3-abi.c (build_gdb_vtable_type): Adjust to use
6801 SET_FIELD_BITPOS.
6802 * stabsread.c (read_cpp_abbrev, read_one_struct_field)
6803 (read_baseclasses): Adjust to use SET_FIELD_BITPOS.
6804 * target-descriptions.c (tdesc_gdb_type): Adjust to use
6805 SET_FIELD_BITPOS.
6806
945b3a32
JK
68072012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6808
6809 Do not rely on FIELD_LOC_KIND_BITPOS being zero.
6810 * ada-lang.c (ada_template_to_fixed_record_type_1): Replace
6811 TYPE_FIELD_BITPOS used as lvalue by SET_FIELD_BITPOS.
6812 * gdbtypes.c (append_flags_type_flag): Likewise, twice.
6813 * jv-lang.c (java_link_class_type): Likewise, once.
6814 * stabsread.c (read_enum_type): Likewise.
6815
42476b70
YQ
68162012-04-16 Yao Qi <yao@codesourcery.com>
6817
6818 * common/agent.c (agent_run_command): Add one more parameter `len'.
6819 Update callers.
6820 * common/agent.h: Update declaration.
6821 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
6822 Update.
6823 (linux_child_static_tracepoint_markers_by_strid): Ditto.
6824
8264ba82
AG
68252012-04-14 Anton Gorenkov <xgsa@yandex.ru>
6826
6827 PR mi/13393
6828 * value.c (value_actual_type): New function.
6829 * value.h (value_actual_type): New declaration.
6830 * varobj.c (update_type_if_necessary): New function.
6831 (varobj_create): Call value_actual_type instead of
6832 value_type.
6833 (install_dynamic_child): distinct changed and type changed MI variable
6834 objects.
6835 (update_dynamic_varobj_children): Updated for install_dynamic_child
6836 change. All callers updated.
a09130f9 6837 (varobj_update): Support for MI variable object type change if
8264ba82
AG
6838 the value changed and RTTI is used to determine the type.
6839 (create_child_with_value): Call value_actual_type instead of
6840 value_type.
a09130f9 6841 (adjust_value_for_child_access): Extended with a new parameter which
8264ba82
AG
6842 specify whether the given value should be casted to enclosing type.
6843 All callers updated.
6844
55a8c076
YQ
68452012-04-14 Yao Qi <yao@codesourcery.com>
6846
6847 Import gnulib module inttypes from git
6848 (250b80067c1e1d8faa0c42fb572f721975b929c5)
6849 * Makefile.in (HFILES_NO_SRCDIR): Add gnulib/inttypes.in.h.
a09130f9
PA
6850 (aclocal_m4_deps): Add gnulib/m4/inttypes.m4 and
6851 gnulib/m4/inttypes-pri.m4
55a8c076
YQ
6852 * aclocal.m4, config.in, configure: Regenerated.
6853 * gnulib/Makefile.am: Update.
6854 * gnulib/Makefile.in: Update.
6855 * gnulib/m4/gnulib-cache.m4: Update.
6856 * gnulib/m4/gnulib-comp.m4: Update.
6857 * gnulib/inttypes.in.h: New.
6858 * gnulib/m4/inttypes-pri.m4: New.
a09130f9 6859 * gnulib/m4/inttypes.m4: New.
55a8c076 6860
ca7781d2
LM
68612012-04-13 Luis Machado <lgustavo@codesourcery.com>
6862
6863 * infrun.c (resume): Update PC address to the real PC after
6864 preparing to do displaced stepping.
6865
e319fa28
DE
68662012-04-12 Doug Evans <dje@google.com>
6867
6868 * dwarf2read.c (lookup_signatured_type): Remove arg "objfile", unused.
6869 All callers updated.
6870
15add3f5
MK
68712012-04-12 Mark Kettenis <kettenis@gnu.org>
6872
6873 * i386bsd-nat.c (_initialize_i386bsd_nat): Add missing prototype.
6874
52dc124a
DE
68752012-04-12 Doug Evans <dje@google.com>
6876
0e50663e
DE
6877 * dwarf2read.c (create_all_type_units): Renamed from
6878 create_debug_types_hash_table. All callers updated.
6879
52dc124a
DE
6880 * dwarf2read.c (create_signatured_type_table_from_index): Rename
6881 local type_sig to sig_type, type_offset to type_offset_in_tu.
6882 (hash_signatured_type): Renamed from hash_type_signature,
6883 all callers updated.
6884 (eq_signatured_type): Renamed from eq_type_signature,
6885 all callers updated.
6886 (create_debug_types_hash_table): Rename local type_sig to sig_type.
6887 (process_enumeration_scope): Ditto.
6888 (lookup_signatured_type_at_offset): Ditto.
6889 (load_full_type_unit, read_signatured_type): Ditto.
6890
248fd3bf
YQ
68912012-04-12 Yao Qi <yao@codesourcery.com>
6892
6893 * remote.c (async_remote_interrupt): Correct function name in
6894 debug message.
6895 (async_remote_interrupt_twice): Ditto.
6896
bc3aa6c3
DE
68972012-04-11 Yuanhui Zhang <asmwarrior@gmail.com>
6898
6899 * source.c (find_and_open_source): Consistently pass resulting
6900 full path through xfullpath.
6901
9e529e1d
JK
69022012-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6903
6904 Provide more specific displaced-stepping memory error message.
6905 * infrun.c (displaced_step_prepare): New variable status. Call
6906 target_read_memory instead of read_memory, provide more specific
6907 error message.
6908
82e0cec1
TG
69092012-04-11 Tristan Gingold <gingold@adacore.com>
6910
6911 PR gdb/13901
6912 * darwin-nat.c (darwin_execvp): Revert previous patch.
6913
d987a266
TG
69142012-04-11 Tristan Gingold <gingold@adacore.com>
6915
6916 PR gdb/13901
6917 * darwin-nat.c (darwin_resume_thread): Call darwin_set_sstep only
6918 in case of change.
6919
016b7430
TG
69202012-04-11 Tristan Gingold <gingold@adacore.com>
6921
6922 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
6923 warning.
6924
06fc020f
SCR
69252012-04-11 Siva Chandra Reddy <sivachandra@google.com>
6926
6927 New command 'explore' which helps explore values and types in
6928 scope.
6929 * NEWS: Add an entry about the new 'explore' command.
6930 * data-directory/Makefile.in: Add gdb/command/explore.py
6931 * python/lib/gdb/command/explore.py: Implemention of the 'explore'
a09130f9 6932 command using the GDB Python API.
06fc020f 6933
de0919f8 69342012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
34b192ce
MR
6935
6936 * mips-tdep.c (mips_skip_pic_trampoline_code): Correct sign
6937 extension in jump target calculation.
6938
de0919f8 69392012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
9e8da49c
MR
6940
6941 * mips-tdep.c (mips32_next_pc): Handle JALX.
6942
2f26ef89
YQ
69432012-04-10 Yao Qi <yao@codesourcery.com>
6944
6945 * Makefile.in (gnulib/Makefile): Remove duplicated dependency.
6946
2e505b66
YQ
69472012-04-10 Yao Qi <yao@codesourcery.com>
6948
6949 * Makefile.in (aclocal_m4_deps): Add gnulib/m4/gnulib-cache.m4
6950 and gnulib/m4/gnulib-tool.m4.
6951
0d99eb77
DE
69522012-04-10 Doug Evans <dje@google.com>
6953
6954 * dwarf2read.c (dwarf2_per_cu_data). Clarify comment.
6955 (load_partial_dies): Clarify comment.
6956 (find_partial_die): Support rereading type units.
6957 Clarify CU handling, if we know offset is in CU, don't search for the
6958 containing CU. Add comment regarding memory waste.
6959
9a82b8ff
L
69602012-04-10 H.J. Lu <hongjiu.lu@intel.com>
6961
6962 * features/Makefile (WHICH): Add i386/x32, i386/x32-linux,
6963 i386/x32-avx and i386/x32-avx-linux.
6964 (i386/x32-expedite): New.
6965 (i386/x32-linux-expedite): Likewise.
6966 (i386/x32-avx-expedite): Likewise.
6967 (i386/x32-avx-linux-expedite): Likewise.
6968 ($(outdir)/i386/x32.dat): Likewise.
6969 ($(outdir)/i386/x32-linux.dat): Likewise.
6970 ($(outdir)/i386/x32-avx.dat): Likewise.
6971 ($(outdir)/i386/x32-avx-linux.dat): Likewise.
6972
6973 * features/i386/x32-avx-linux.xml: New file.
6974 * features/i386/x32-avx.xml: Likewise.
6975 * features/i386/x32-core.xml: Likewise.
6976 * features/i386/x32-linux.xml: Likewise.
6977 * features/i386/x32.xml: Likewise.
6978
6979 * features/i386/x32-avx-linux.c: New. Generated.
6980 * features/i386/x32-avx.c: Likewise.
6981 * features/i386/x32-linux.c: Likewise.
6982 * features/i386/x32.c: Likewise.
6983 * regformats/i386/x32-avx-linux.dat: Likewise.
6984 * regformats/i386/x32-avx.dat: Likewise.
6985 * regformats/i386/x32-linux.dat: Likewise.
6986 * regformats/i386/x32.dat: Likewise.
6987
ee41036f
TG
69882012-04-10 Tristan Gingold <gingold@adacore.com>
6989
6990 * darwin-nat.c (darwin_kill_inferior): Always use the no ptrace
6991 code to kill the inferior.
6992
a7aa5b8a
MK
69932012-04-09 Mark Kettenis <kettenis@gnu.org>
6994
6995 * ada-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
6996 defines.
6997 * c-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
6998 defines.
a09130f9 6999 * cp-name-parser.y (yyss, yysslim, yyssp, yystacksize, yyvs)
a7aa5b8a
MK
7000 (yyvsp): New defines.
7001 * f-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7002 defines.
7003 * jv-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7004 defines.
7005 * m2-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7006 defines.
7007 * objc-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7008 defines.
7009 * p-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7010 defines.
7011
fb57d452
MK
70122012-04-09 Mark Kettenis <kettenis@gnu.org>
7013
a09130f9 7014 * sparc64-tdep.c (sparc64_store_arguments)
fb57d452
MK
7015 (sparc64_store_arguments): Fix coding style.
7016
cdc7b32f
MK
70172012-04-07 Mark Kettenis <kettenis@gnu.org>
7018
7019 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
7020 complex floats, adjust some related comments and tighten a related
7021 assertion.
7022 (sparc64_extract_return_value): Handle complex floats.
7023
7adf1e79
DE
70242012-04-07 Doug Evans <dje@google.com>
7025
7026 * dwarf2read.c (load_partial_dies): Change condition to assert.
7027
50f1ae7b
DE
70282012-04-06 Doug Evans <dje@google.com>
7029
7030 * amd64-tdep.c (amd64_analyze_prologue): Recognize both variations of
7031 "mov %rsp,%rbp".
7032
55fa75c3
KB
70332012-04-05 Kevin Buettner <kevinb@redhat.com>
7034
7035 * v850-tdep.c (E_NUM_OF_V850_REGS, E_NUM_OF_V850E_REGS): Fix
7036 fencepost error.
7037 (v850_frame_cache): Use gdbarch_num_regs() instead of E_NUM_REGS.
7038 (v850_gdbarch_init): Set `num_regs' as appropriate for the
7039 architecture.
7040
40e084e1
KS
70412012-04-05 Keith Seitz <keiths@redhat.com>
7042
7043 * linespec.c (decode_compound): Remove.
7044 (enum offset_relative_sign): New enum.
7045 (struct line_offset): New struct.
7046 (struct linespec): New struct.
7047 (struct linespec_state): Move file_symtabs,
7048 user_filename, and user_function into struct linespec.
7049 Make result an anonymous struct holding vectors of
7050 symbolp and minsym_and_objfile_d.
7051 Add language member.
7052 (enum ls_token_type): New enum.
7053 (linespec_keywords): New array.
7054 (struct ls_token): New struct.
7055 (struct ls_parser): New struct.
7056 (linespec_lexer_lex_number): New function.
7057 (linespec_lexer_lex_keyword): New function.
7058 (is_ada_operator): New function.
7059 (skip_quote_char): New function.
7060 (copy_token_string): New function.
7061 (is_closing_quote_enclosed): New function.
7062 (find_parameter_list_end): New function.
7063 (linespec_lexer_lex_string): New function.
7064 (linespec_lexer_lex_one): New function.
7065 (linespec_lexer_consume_token): New function.
7066 (linespec_lexer_peek_token): New function.
7067 (cplusplus_error): Remove unused function.
7068 (find_methods): Update comment.
7069 (find_toplevel_char): Return const.
7070 (is_objc_method_format): Remove unused function.
7071 (find_toplevel_string): New function.
7072 (is_linespec_boundary): Remove.
7073 (symbol_not_found_error): New function.
7074 (find_method_overload_end): Remove function.
7075 (unexpected_linespec_error): New function.
7076 (keep_name_info): Remove.
7077 (linespec_parse_line_offset): New function.
7078 (linespec_parse_basic): New function.
7079 (canonicalize_linespec): New function.
7080 (decode_line_internal): Remove.
7081 (create_sals_line_offset): New function adapted from
7082 decode_all_digits.
7083 (convert_linespec_to_sals): New function.
7084 (parse_linespec): New function.
7085 (linespec_parser_new): New function.
7086 (linespec_state_destructor): Change parameter type to
7087 struct linespec_state *.
7088 Add language parameter.
7089 Remove freeing of moved members.
7090 (linespec_parser_delete): New function.
7091 (decode_line_full): Use parse_linespec and linespec_parser_new.
7092 (decode_line_1): Likewise.
7093 (decode_indirect): Rename to ...
7094 (linespec_expression_to_pc): ... this and rewrite
7095 to simply find CORE_ADDR, storing this result for later
7096 conversion to SALs.
7097 (locate_first_half): Remove.
7098 (deocde_objc): Add parameter LS.
7099 Initialize new struct collect_info members.
7100 Handle minimal symbols, too.
7101 (decode_compound): Delete.
7102 (lookup_prefix_sym): Rewrite.
7103 (compare_msymbols): New function.
7104 (find_method): Rewrite.
7105 Do not call cplusplus_error.
7106 (symtabs_from_filename): Rewrite.
7107 (collect_function_symbols): Delete.
7108 (find_function_symbols): Rewrite without ARGPTR-style
7109 processing.
7110 (decode_all_digits): Delete. (Rewritten as create_sals_line_offset.)
7111 (decode_dollar): Adapted and renamed to ...
7112 (linespec_parse_variable): ... this.
7113 (find_linespec_symbols): New function.
7114 (decode_label): Adapted and renamed to ...
7115 (find_label_symbols): ... this.
7116 (decode_digits_list_mode): Add and use LS argument.
7117 (decode_digits_ordinary): Likewise.
7118 (collect_symbols): Do not collect SALs, just symbols and msymbols.
7119 If in list mode, allow any symbol class. Otherwise, only
7120 permit LOC_BLOCK symbols.
7121 (minsym_found): Update comments.
7122 (search_minsyms_for_name): Do not convert the matching symbol
7123 into a SAL. Simply push the symbol and objfile into the
7124 result vector.
7125 (decode_variable): Delete. Contents adapted into
7126 find_linespec_symbols.
7127
7128 * cp-support.c (SKIP_SPACE): Remove.
7129 (operator_tokens): Remove unused global.
7130 (cp_validate_operator): Remove.
7131 * cp-support.h (cp_validate_operator): Remove declaration.
7132
a72c8f6a
JK
71332012-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7134
7135 * cp-valprint.c (cp_print_value_fields): Check valprint_check_validity
7136 for TYPE_VPTR_FIELDNO.
7137 * valprint.c (valprint_check_validity): Make it global, move the
7138 function comment ...
7139 * value.h (valprint_check_validity): ... to this new declaration.
7140
cf9bb588
TG
71412012-04-02 Tristan Gingold <gingold@adacore.com>
7142
7143 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Use
7144 the STATE32 api for i386 state.
7145 (i386_darwin_store_inferior_registers): Likewise.
7146
17092398
TG
71472012-04-02 Tristan Gingold <gingold@adacore.com>
7148
7149 * i386-darwin-tdep.c (i386_darwin_thread_state_reg_offset): Fix
7150 SS offset.
7151 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
7152 format_string.
7153
ece0061f
TG
71542012-04-02 Tristan Gingold <gingold@adacore.com>
7155
7156 PR gdb/13901
d987a266 7157 * darwin-nat.c (darwin_execvp): Set binary preference.
ece0061f 7158
cf65ecd3
JK
71592012-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7160
7161 * NEWS (set breakpoint condition-evaluation): Use imperative mood.
7162
9bc3523d
TT
71632012-03-30 Tom Tromey <tromey@redhat.com>
7164
7165 * python/python.c (gdbpy_decode_line): Move cleanup creation out
7166 of TRY_CATCH. Fix error handling.
7167 * python/py-value.c (convert_value_from_python): Move 'old'
7168 declaration to innermost scope.
7169
b1ed564a
JB
71702012-03-29 Joel Brobecker <brobecker@adacore.com>
7171 Andrey Smirnov <andrew.smirnov@gmail.com>
7172
7173 -Wshadow warning fix.
7174 * ada-lang.c (ada_make_symbol_completion_list): Rename parameters
7175 "wild_match" and "encoded" into "wild_match_p" and "encoded_p".
7176 Adjust code accordingly.
7177
cb8e9b97
JB
71782012-03-29 Joel Brobecker <brobecker@adacore.com>
7179
7180 * ada-lang.c (symbol_completion_add): Rename parameter
7181 "encoded" into "encoded_p". Ajust code and documentation
7182 accordingly.
7183
c0af1706
JB
71842012-03-29 Joel Brobecker <brobecker@adacore.com>
7185 Andrey Smirnov <andrew.smirnov@gmail.com>
7186
7187 -Wshadow warning fix.
7188 * ada-lang.c (symbol_completion_add): Rename parameter
7189 "wild_match" into wild_match_p. Update code and documentation
7190 accordingly.
7191
6ea35997
JB
71922012-03-29 Joel Brobecker <brobecker@adacore.com>
7193
7194 * ada-lang.c (symbol_completion_match): Rename parameter
7195 "encoded" into "encoded_p". Ajust code and documentation
7196 accordingly.
7197
e701b3c0
JB
71982012-03-29 Joel Brobecker <brobecker@adacore.com>
7199 Andrey Smirnov <andrew.smirnov@gmail.com>
7200
7201 -Wshadow warning fix.
7202 * ada-lang.c (symbol_completion_match): Rename parameter
7203 "wild_match" into "wild_match_p". Adjust code and function
7204 documentation accordingly.
7205
5e2336be
JB
72062012-03-29 Joel Brobecker <brobecker@adacore.com>
7207 Andrey Smirnov <andrew.smirnov@gmail.com>
7208
7209 -Wshadow warning fix.
7210 * ada-lang.c (ada_lookup_encoded_symbol): Rename parameter
7211 "symbol_info" into "info". Adjust code accordingly.
7212 (ada_lookup_symbol): Likewise.
7213
9f88c959
JB
72142012-03-29 Joel Brobecker <brobecker@adacore.com>
7215
7216 * ada-lang.c (ada_lookup_symbol_list): Minor reformatting
7217 of this function's documentation.
7218
82ccd55e
JB
72192012-03-29 Joel Brobecker <brobecker@adacore.com>
7220 Andrey Smirnov <andrew.smirnov@gmail.com>
7221
7222 -Wshadow warning fix.
7223 * ada-lang.c (ada_lookup_symbol_list): Rename "wild_match"
7224 variable into "wild_match_p". Adjust code accordingly.
7225
d0a8ab18
JB
72262012-03-29 Joel Brobecker <brobecker@adacore.com>
7227 Andrey Smirnov <andrew.smirnov@gmail.com>
7228
7229 -Wshadow warning fix.
7230 * ada-lang.c (ada_add_local_symbols): Rename "wild_match"
7231 parameter into "wild_match_p". Adjust code accordingly.
7232 Document this parameter in the function description.
7233
48b78332
JB
72342012-03-29 Joel Brobecker <brobecker@adacore.com>
7235 Andrey Smirnov <andrew.smirnov@gmail.com>
7236
7237 -Wshadow warning fix.
7238 * ada-lang.c (add_symbols_from_enclosing_procs): Rename
7239 "wild_match" parameter to "wild_match_p" (-Wshadow).
7240
2e6e0353
JB
72412012-03-29 Joel Brobecker <brobecker@adacore.com>
7242
7243 * ada-lang.c (ada_lookup_simple_minsym): Remove trailing spaces
7244 in function documentation.
7245
dc4024cd
JB
72462012-03-29 Joel Brobecker <brobecker@adacore.com>
7247 Andrey Smirnov <andrew.smirnov@gmail.com>
7248
7249 -Wshadow warning fix.
7250 * ada-lang.c (ada_lookup_simple_minsym): Rename wild_match local
7251 variable into wild_match_p. Adjust code accordingly.
7252
6c88661c
JB
72532012-03-29 Joel Brobecker <brobecker@adacore.com>
7254 Andrey Smirnov <andrew.smirnov@gmail.com>
7255
7256 * ada-valprint.c (ada_val_print_1): Move the code handling
7257 TYPE_CODE_ENUM inside its own lexical block. Declare
7258 variables len and val there, instead of in the function's
7259 top level block. Avoid declaring deref_val again in a way
7260 that shadows another variable of the same name declared
7261 in one of the up-level blocks. Just re-use the up-level
7262 variable instead.
7263
4e5c77fe
JB
72642012-03-29 Joel Brobecker <brobecker@adacore.com>
7265
7266 * ada-lang.c (ada_lookup_encoded_symbol): Now returns void.
7267 Replace block_found argument by symbol_info. Adjust
7268 implementation accordingly. Add function documentation.
7269 (ada_lookup_symbol): Adjust to new ada_lookup_encoded_symbol.
7270 Fix documentation.
7271 * ada-lang.h (ada_lookup_encoded_symbol): Update declaration.
7272 * ada-exp.y (write_object_renaming): Adjust to new
7273 ada_lookup_encoded_symbol API.
7274
1c0ac8c7
JB
72752012-03-29 Joel Brobecker <brobecker@adacore.com>
7276
7277 * ada-lang.h (struct ada_symbol_info): Reformat. Improve
7278 documentation.
7279
2aaed979
KB
72802012-03-28 Rathish C <rathish.c@kpitcummins.com>
7281
7282 * v850-tdep.c: Add the enum values for mpu and fpu registers.
7283 (v850_register_name): Add the mpu and fpu register names.
7284 (v850e_register_name): Add the mpu and fpu register names.
7285 (v850e2_register_name): New function.
a09130f9 7286 (v850_gdbarch_init): Add case for bfd_mach_v850e2 and
2aaed979
KB
7287 bfd_mach_v850e2v3.
7288
927fbba6
JB
72892012-03-28 Joel Brobecker <brobecker@adacore.com>
7290
7291 * NEWS: Add entry for Ada varobj support.
7292
d32cafc7
JB
72932012-03-28 Joel Brobecker <brobecker@adacore.com>
7294
7295 * varobj.c (default_value_is_changeable_p): New function,
7296 extracted from varobj_value_is_changeable_p. Add declaration.
7297 (ada_value_is_changeable_p): New function, extracted from
7298 varobj_value_is_changeable_p. Add declaration.
7299 (struct language_specific): New field "value_is_changeable_p".
7300 (languages): Add entries for new field.
7301 (varobj_create): Set language before calling install_new_value.
7302 (varobj_value_is_changeable_p): Reimplement to call the varobj's
7303 "value_is_changeable_p" language callback.
7304
181875a4
JB
73052012-03-28 Joel Brobecker <brobecker@adacore.com>
7306
7307 * ada-varobj.h, ada-varobj.c: New files.
7308 * Makefile.in (SFILES): Add ada-varobj.c.
7309 (HFILES_NO_SRCDIR): Add ada-varobj.h.
7310 (COMMON_OBS): Add ada-varobj.o.
7311
7a290c40
JB
73122012-03-28 Joel Brobecker <brobecker@adacore.com>
7313
7314 * varobj.c (ada_value_has_mutated): Add declaration. New function.
7315 (struct language_specific): New field "value_has_mutated".
7316 (languages): Set field "value_has_mutated" in each entry of array.
7317 (varobj_value_has_mutated): New function.
7318 (varobj_udpdate): Add handling of type mutation.
7319 (value_of_root): Add handling of type mutation.
7320 (ada_value_has_mutated): New function.
7321
ca9b8b9c
PA
73222012-03-28 Pedro Alves <palves@redhat.com>
7323
7324 * ia64-linux-nat.c (supply_fpregset, ia64_linux_fetch_register):
7325 Always supply $fr0 as 0.0 and $fr1 as 1.0.
7326
cc0265cd
TT
73272012-03-28 Tom Tromey <tromey@redhat.com>
7328
7329 * python/py-inferior.c (infpy_read_memory): Remove cleanups and
7330 explicitly free 'buffer' on exit paths. Decref 'membuf_object'
7331 before returning.
7332
3ad2ec6f
TT
73332012-03-28 Tom Tromey <tromey@redhat.com>
7334
7335 * .dir-locals.el: New file.
7336
4a6510ba
PA
73372012-03-28 Pedro Alves <palves@redhat.com>
7338
7339 * ia64-linux-nat.c (u_offsets): Map IA64_EC_REGNUM to PT_AR_EC.
7340
5a75128f
JB
73412012-03-28 Joel Brobecker <brobecker@adacore.com>
7342
7343 * ia64-linux-nat.c (ia64_linux_fetch_register): Add special
7344 handling for r0.
7345
f99d8bf4
PA
73462012-03-27 Pedro Alves <palves@redhat.com>
7347
7348 Eliminate struct ui_stream.
7349
7350 * ui-out.h (struct ui_stream): Delete.
7351 (ui_out_field_stream): Adjust prototype.
7352 (ui_out_stream_new, ui_out_stream_delete)
7353 (make_cleanup_ui_out_stream_delete): Delete declarations.
7354 * ui-out.c (ui_out_field_stream): Change prototype to take a
7355 ui_file instead of a ui_stream. Adjust.
7356 (ui_out_stream_new, ui_out_stream_delete, do_stream_delete)
7357 (make_cleanup_ui_out_stream_delete): Delete.
7358 * breakpoint.c (print_breakpoint_location)
7359 (print_one_detail_ranged_breakpoint, print_it_watchpoint): Use
7360 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
7361 * disasm.c (dump_insns): Ditto.
7362 (do_mixed_source_and_assembly, do_assembly_only): Adjust
7363 prototype.
7364 (gdb_disassembly): Use ui_file/mem_fileopen instead of
7365 ui_stream/ui_out_stream_new.
7366 * infcmd.c (print_return_value): Ditto.
7367 * osdata.c (info_osdata_command): Don't allocate a local
7368 ui_stream.
7369 * stack.c (print_frame_arg, print_frame_args, print_frame): Use
7370 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
7371 * tracepoint.c (print_one_static_tracepoint_marker): Don't
7372 allocate a local ui_stream.
7373 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_file/mem_fileopen
7374 instead of ui_stream/ui_out_stream_new.
7375 (list_args_or_locals): Don't allocate a local ui_stream.
7376 * mi/mi-main.c (get_register, mi_cmd_data_evaluate_expression)
7377 (mi_cmd_data_read_memory): Use ui_file/mem_fileopen instead of
7378 ui_stream/ui_out_stream_new.
7379 * cli/cli-setshow.c (do_setshow_command): Ditto.
7380
6350a066 73812012-03-27 Oza Pawandeep <oza.pawandeep@gmail.com>
72508ac0 7382
6350a066
PA
7383 * arm-linux-tdep.c (arm_linux_init_abi): Call
7384 set_gdbarch_process_record. Initialize `arm_swi_record' field.
7385 * arm-tdep.c (arm_process_record): New function.
7386 (deallocate_reg_mem): New function.
7387 (decode_insn): New function.
7388 (thumb_record_branch): New function.
7389 (thumb_record_ldm_stm_swi(): New function.
7390 (thumb_record_misc): New function.
7391 (thumb_record_ld_st_stack): New function.
7392 (thumb_record_ld_st_imm_offset): New function.
7393 (thumb_record_ld_st_reg_offset(): New function.
7394 (thumb_record_add_sub_cmp_mov): New function.
7395 (thumb_record_shift_add_sub): New function.
7396 (arm_record_coproc_data_proc): New function.
7397 (arm_record_coproc): New function.
7398 (arm_record_b_bl): New function.
7399 (arm_record_ld_st_multiple): New function.
7400 (arm_record_ld_st_reg_offset): New function.
7401 (arm_record_ld_st_imm_offset): New function.
7402 (arm_record_data_proc_imm): New function.
7403 (arm_record_data_proc_misc_ld_str): New function.
7404 (arm_record_extension_space): New function.
7405 (arm_record_strx): New function.
7406 (sbo_sbz): New function.
7407 (struct insn_decode_record): New structure for arm insn record.
7408 (REG_ALLOC): New macro for reg allocations.
7409 (MEM_ALLOC): New macro for memory allocations.
7410 * arm-tdep.h (struct gdbarch_tdep): New field 'arm_swi_record'.
72508ac0 7411
89e028e2
AS
74122012-03-27 Andreas Schwab <schwab@linux-m68k.org>
7413
7414 * m68klinux-nat.c (fetch_register): Fix strict-aliasing violation.
7415 (store_register): Likewise.
7416
6350a066 74172012-03-26 Oza Pawandeep <oza.pawandeep@gmail.com>
3d9a9eb0 7418
6350a066 7419 * MAINTAINERS (Write After Approval): Add myself to the list.
3d9a9eb0 7420
5b43fab2
JK
74212012-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7422
7423 * NEWS (set breakpoint condition-evaluation): Change "gdb" to "host".
7424 Describe also the option "auto".
7425
b5453b95
RH
74262012-03-22 Richard Henderson <rth@redhat.com>
7427
7428 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Fix prototype.
7429 * sparc-nat.c (sparc_xfer_wcookie): Make static.
7430
227ee7fc
RH
74312012-03-22 Richard Henderson <rth@redhat.com>
7432
7433 * jit.c (jit_read_code_entry): Compute alignment and offset of
7434 int64_t member before computing entry_size.
7435
7b282c5a
SCR
74362012-03-22 Siva Chandra Reddy <sivachandra@google.com>
7437
7438 Python scripting: Add new method Value.referenced_value to
7439 gdb.Value which can dereference pointer as well as reference
7440 values.
7441 * NEWS: Add entry under 'Python scripting' about the new method
7442 Value.referenced_value on gdb.Value objects.
7443 * python/py-value.c (valpy_referenced_value): New function
7444 defining a new method on gdb.Value objects which can dereference
7445 pointer and reference values.
7446
0c83539f
SCR
74472012-03-22 Siva Chandra Reddy <sivachandra@google.com>
7448
7449 * MAINTAINERS (Write After Approval): Add myself to the list.
7450
7ccffd7c
KB
74512012-03-21 Kevin Buettner <kevinb@redhat.com>
7452
7453 * symtab.c (skip_prologue_sal): Change test to check for "main()"
7454 in addition to "main".
7455
bd0b9f9e
JB
74562012-03-21 Joel Brobecker <brobecker@adacore.com>
7457
7458 * expression.h (op_name): Add declaration.
7459 * expprint.c (op_name): Remove declaration. Make non-static.
7460 * ax-gdb.c (gen_expr): Use op_name instead of op_string.
7461
a5362b9a
TS
74622012-03-21 Thomas Schwinge <thomas@codesourcery.com>
7463
7464 * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Use siginfo_t instead
7465 of struct siginfo.
7466 * arm-linux-nat.c (arm_linux_stopped_data_address): Likewise.
7467 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
7468 * linux-nat.c (linux_nat_siginfo_fixup, siginfo_fixup)
7469 (linux_xfer_siginfo, linux_nat_set_siginfo_fixup)
7470 (linux_nat_get_siginfo): Likewise.
7471 * linux-nat.h (struct lwp_info, linux_nat_set_siginfo_fixup)
7472 (linux_nat_get_siginfo): Likewise.
7473 * linux-tdep.c (linux_get_siginfo_type): Likewise.
7474 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Likewise.
7475 * procfs.c (gdb_siginfo_t): Likewise.
7476
adcadaab
MF
74772012-03-21 Mike Frysinger <vapier@gentoo.org>
7478
7479 * .gitignore: Ignore more files.
7480
e278ad5b
PA
74812012-03-20 Pedro Alves <palves@redhat.com>
7482
7483 * remote.c (remote_start_remote): Clear `rs->starting_up' on early
7484 returns.
7485
741e63d7
YQ
74862012-03-20 Yao Qi <yao@codesourcery.com>
7487
7488 * amd64-tdep.c (amd64_displaced_step_copy_insn): Complete missing "}" in
7489 comment.
7490
b64f50a1
JK
74912012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7492
7493 Code cleanupp: Use cu_offset and sect_offset compile time type checking.
7494 * dwarf2expr.c (add_piece, dwarf_get_base_type, execute_stack_op)
7495 (ctx_no_dwarf_call, ctx_no_get_base_type): Use cu_offset and
7496 sect_offset.
7497 * dwarf2expr.h (cu_offset, sect_offset): New types.
7498 (struct dwarf_expr_context_funcs) <dwarf_call>
7499 (struct dwarf_expr_context_funcs) <get_base_type>: Use cu_offset and
7500 sect_offset.
7501 (struct dwarf_expr_context) <len>: Improve the comment.
7502 (struct dwarf_expr_piece, ctx_no_dwarf_call, ctx_no_get_base_type): Use
7503 cu_offset and sect_offset.
7504 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call)
7505 (dwarf_expr_get_base_type, needs_frame_dwarf_call)
7506 (dwarf2_compile_expr_to_ax, disassemble_dwarf_expression): Likewise.
7507 * dwarf2loc.h: Include dwarf2expr.h.
7508 (dwarf2_fetch_die_location_block, dwarf2_get_die_type): Use cu_offset
7509 and sect_offset.
7510 * dwarf2read.c (struct dwarf2_per_objfile) <debug_types_type_hash>:
7511 Improve the comment.
7512 (struct comp_unit_head, struct dwarf2_cu, struct dwarf2_per_cu_data)
7513 (struct signatured_type, struct line_header, struct partial_die_info)
7514 (struct die_info, find_partial_die, dwarf2_get_ref_die_offset)
7515 (lookup_signatured_type_at_offset, dwarf2_find_containing_comp_unit)
7516 (get_die_type_at_offset, create_cus_from_index)
7517 (create_signatured_type_table_from_index, dw2_get_file_names)
7518 (offset_in_cu_p, read_comp_unit_head, error_check_comp_unit_head)
7519 (read_and_check_comp_unit_head, read_and_check_type_unit_head)
7520 (create_debug_types_hash_table, process_psymtab_comp_unit)
7521 (load_partial_comp_unit, create_all_comp_units)
7522 (partial_die_parent_scope, partial_die_full_name, skip_one_die)
7523 (load_full_comp_unit, dwarf2_physname, read_import_statement)
7524 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
7525 (dwarf2_add_member_fn, process_enumeration_scope, read_module_type)
7526 (read_typedef, die_hash, die_eq, read_full_die, dwarf2_read_abbrevs)
7527 (load_partial_dies, read_partial_die, find_partial_die_in_comp_unit)
7528 (find_partial_die, read_attribute_value, lookup_die_type)
7529 (dump_die_shallow, store_in_ref_table): Use cu_offset and sect_offset.
7530 (is_ref_attr): New function comment.
7531 (dwarf2_get_ref_die_offset): New function comment, new variable retval.
7532 Use cu_offset and sect_offset.
7533 (follow_die_offset, follow_die_ref, dwarf2_fetch_die_location_block)
7534 (dwarf2_get_die_type, follow_die_sig, lookup_signatured_type_at_offset)
7535 (load_full_type_unit, read_signatured_type, per_cu_header_read_in)
7536 (dwarf2_find_containing_comp_unit, struct dwarf2_offset_and_type)
7537 (offset_and_type_hash, offset_and_type_eq, set_die_type)
7538 (get_die_type_at_offset, partial_die_hash, partial_die_eq)
7539 (write_one_signatured_type, write_psymtabs_to_index): Use cu_offset and
7540 sect_offset.
7541
e97a38f7
JK
75422012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7543
7544 Code cleanup.
7545 * python/py-auto-load.c (source_section_scripts): New variable back_to.
7546 Turn fclose and xfree calls into make_cleanup_fclose and make_cleanup
7547 with xfree.
7548 (auto_load_objfile_script): Turn fclose into make_cleanup_fclose.
7549
8320cc4f
JK
75502012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7551
7552 * NEWS: Describe new options --init-command=FILE, -ix and
7553 --init-eval-command=COMMAND, -iex.
7554 * main.c (struct cmdarg): New enum items CMDARG_INIT_FILE and
7555 CMDARG_INIT_COMMAND.
7556 (captured_main): New enum items OPT_IX and OPT_IEX. Add
7557 "init-command", "init-eval-command", "ix" and "iex" to the variable
7558 long_options. Handle OPT_IX and OPT_IEX. Process them from CMDARG_VEC.
7559 New comment for CMDARG_FILE and CMDARG_COMMAND processing.
7560 (print_gdb_help): Describe --init-command=FILE, -ix and
7561 --init-eval-command=COMMAND, -iex.
7562
26743505
JK
75632012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7564
7565 Code cleanup.
7566 * main.c (struct cmdarg): Move it here from main. Add more comments.
7567 (cmdarg_s, VEC (cmdarg_s)): New.
7568 (main): Move struct cmdarg from here. New variables cmdarg_vec and
7569 cmdarg_p. Remove variables cmdsize and ncmd and their initialization.
7570 Install cleanup for cmdarg_vec. Update filling for options 'x' and
7571 'X'. Replace cmdarg processing by cmdarg_vec processing. Remove xfree
7572 of CMDARG.
7573
5ff5c7b4
TT
75742012-03-19 Tom Tromey <tromey@redhat.com>
7575
7576 * gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'.
7577
ab260dad
JK
75782012-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7579
7580 PR symtab/13777
7581 * dwarf2read.c (process_full_comp_unit): Set LOCATIONS_VALID only for
7582 GCC >=4.5.
7583
c366c1f0
TT
75842012-03-16 Chris January <chris.january@allinea.com>
7585
7586 * tui-tui.win.c (tui_resize_all): Use erase and clearok instead
7587 of clear.
7588
e16edb45
TT
75892012-03-16 Chris January <chris.january@allinea.com>
7590
7591 * source.c (add_path): Use memmove instead of strcpy because the
7592 strings overlap.
7593
53ba8333
JB
75942012-03-16 Joel Brobecker <brobecker@adacore.com>
7595
7596 * value.h (set_value_parent): Add declaration.
7597 * value.c (set_value_parent): New function.
7598 (value_address): If VALUE->PARENT is not NULL, then use it as
7599 the base address instead of VALUE->LOCATION.address.
7600 * ada-lang.c (ada_value_primitive_packed_val): Keep V's address
7601 the same as OBJ's address. Adjust V's offset accordingly.
7602 Set V's parent.
7603
481860b3
GB
76042012-03-16 Gary Benson <gbenson@redhat.com>
7605
7606 PR breakpoints/10738
7607 * dwarf2read.c (use_deprecated_index_sections): New global.
7608 (struct partial_die_info): New member may_be_inlined.
7609 (read_partial_die): Set may_be_inlined where appropriate.
7610 (add_partial_subprogram): Add partial symbols for partial
7611 DIEs that may be inlined.
7612 (new_symbol_full): Add inlined subroutines to the current
7613 scope.
7614 (write_psymtabs_to_index): Bump version number.
7615 (dwarf2_read_index): Read only version 6 indices unless
7616 use_deprecated_index_sections is set.
7617 * linespec.c (symbol_and_data_callback): New structure.
7618 (iterate_inline_only): New function.
7619 (iterate_over_all_matching_symtabs): New argument
7620 "include_inline". If nonzero, also call the callback for
7621 symbols representing inlined subroutines.
7622 (lookup_prefix_sym): Pass extra argument to the above.
7623 (find_function_symbols): Likewise.
7624 (add_matching_symbols_to_info): Likewise.
7625 * NEWS: Mention that GDB can now set breakpoints on inlined
7626 functions.
7627
d0e7e15a
PM
76282012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
7629
7630 * p-typeprint.c (pascal_type_print_method_args):
7631 Fix display of parameter of methods.
7632
3d354654
PM
76332012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
7634
7635 * amd64-windows-nat.c (_initialize_amd64_windows_nat):
7636 Add missing prototype.
7637
cafe75b0
JK
76382012-03-16 Yao Qi <yao@codesourcery.com>
7639 Jan Kratochvil <jan.kratochvil@redhat.com>
7640
7641 Fix false compilation warning.
7642 * gnu-v3-abi.c (print_one_vtable): Initialize ADDR.
7643
25f8c692
JL
76442012-03-15 Jonathan Larmour <jifl@eCosCentric.com>
7645 Pedro Alves <pedro@codesourcery.com>
7646
7647 * arm-tdep.c: Include "remote.h" and "features/arm-with-m-fpa-layout.c".
7648 (arm_register_g_packet_guesses): New function.
7649 (arm_gdbarch_init): Don't force a target description with
7650 registers when the executable is detected as M-profile. Instead
7651 set gdbarch->tdep->is_m. Register `g' packet guesses.
7652 (_initialize_arm_tdep): Initialize the new target description.
7653 * features/arm-with-m-fpa-layout.xml: New description.
7654 * features/arm-with-m-fpa-layout.c: New, generated.
7655
35c63cd8
JB
76562012-03-15 Joel Brobecker <brobecker@adacore.com>
7657
7658 * breakpoint.c (breakpoint_xfer_memory): Add assertion.
7659 Update function description.
7660 (insert_bp_location): Do not wipe bl->target_info out.
7661 * mem-break.c: #include "gdb_string.h".
7662 (default_memory_insert_breakpoint): Do not call target_read_memory
7663 with a pointer to the breakpoint's shadow_contents buffer. Use
7664 a local buffer instead.
7665 * m32r-tdep.c (m32r_memory_insert_breakpoint): Ditto.
7666
57651221
TT
76672012-03-15 Tom Tromey <tromey@redhat.com>
7668
7669 * NEWS: Mention "info vtbl", not "info vtable".
7670 * cp-support.c (info_vtbl_command): Fix comment.
7671 (_initialize_cp_support): Fix text.
7672
410528f0
TT
76732012-03-15 Tom Tromey <tromey@redhat.com>
7674
7675 * cp-valprint.c (cp_print_value_fields): Use
7676 print_function_pointer_address for vtable slot.
7677
c4aeac85
TT
76782012-03-15 Tom Tromey <tromey@redhat.com>
7679
7680 * gnu-v3-abi.c (struct value_and_voffset): New.
7681 (hash_value_and_voffset, eq_value_and_voffset)
7682 (compare_value_and_voffset, compute_vtable_size)
7683 (print_one_vtable, gnuv3_print_vtable): New functions.
7684 (init_gnuv3_ops): Initialize 'print_vtable' field.
7685 * cp-support.c (info_vtbl_command): New function.
7686 (_initialize_cp_support): Add "info vtbl".
7687 * cp-abi.h (cplus_print_vtable): Declare.
7688 (struct cp_abi_ops) <print_vtable>: New field.
7689 * cp-abi.c (cplus_print_vtable): New function.
7690 * NEWS: Update.
7691
95cbceff
TT
76922012-03-15 Tom Tromey <tromey@redhat.com>
7693
7694 * d-lang.c (d_language_defn) <la_iterate_over_symbols>: Set to
7695 iterate_over_symbols.
7696
589b4a32
DE
76972012-03-14 Doug Evans <dje@google.com>
7698
7699 * dwarf2read.c (dwarf_stack_op_name): Add DW_OP_GNU_encoded_addr,
7700 DW_OP_GNU_parameter_ref.
7701
e837f12a
JK
77022012-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7703
7704 Fix double prompt of 'interpreter-exec mi'.
7705 * mi/mi-interp.c (mi_execute_command_input_handler): New prototype.
7706 (mi_interpreter_resume): use it.
7707 (mi_execute_command_input_handler): New function.
7708 * mi/mi-main.c (mi_execute_command): Move prompt printing to
7709 mi_execute_command_input_handler.
7710
ff1e4526 77112012-03-13 Josh Matthews <josh@joshmatthews.net> (tiny change)
c381a3f6
JB
7712
7713 * darwin-nat-info.c (_initialize_darwin_info_commands): Add
7714 prototype.
7715 (darwin_debug_port_info): Make static.
7716 * darwin-nat.c (_initialize_darwin_inferior): Add prototype.
7717 * machoread.c (_initialize_machoread): Add prototype.
7718 * i386-darwin-nat.c (i386_darwin_dr_set, i386_darwin_dr_get)
7719 (i386_darwin_set_control, i386_darwin_get_control)
7720 i386_darwin_dr_set_addr, i386_darwin_get_addr)
7721 i386_darwin_get_status, i386_darwin_get_control):
7722 Comment out with HW_WATCHPOINT_NOT_YET_ENABLED macro.
7723
d8a5d6ee
JB
77242012-03-13 Joel Brobecker <brobecker@adacore.com>
7725
7726 * ax-gdb.c (gen_usual_unary): Remove special handling of
7727 enum and bool types.
7728
af381b8c
JB
77292012-03-13 Joel Brobecker <brobecker@adacore.com>
7730
7731 * ax-gdb.c (gen_fetch): Add handling for TYPE_CODE_RANGE types.
7732
786c562f
JB
77332012-03-13 Joel Brobecker <brobecker@adacore.com>
7734
7735 * aix-thread.c (supply_fprs): Make more consistent with fill_fprs.
7736
e3ebf1bb
JB
77372012-03-13 Chris January <chris.january@allinea.com>
7738
7739 * aix-thread.c (fill_sprs): Store the floating point registers
7740 at the correct offsets into vals.
7741
c5b7e1cb
DE
77422012-03-13 Doug Evans <dje@google.com>
7743
16899756
DE
7744 * NEWS: Mention symbol-reloading has been deleted.
7745 * symfile.c (symbol_reloading): Delete.
7746 (show_symbol_reloading): Delete.
7747 (_initialize_symfile): Delete set/show symbol-reloading.
7748
c5b7e1cb
DE
7749 * dwarf2read.c (load_partial_comp_unit): Defer adding cu to
7750 read_in_chain until we have successfully read it in.
7751 (load_full_comp_unit): Ditto.
7752 (read_signatured_type): Add comment.
7753
46cb6474
JB
77542012-03-13 Chris January <chris.january@allinea.com>
7755
7756 * stabsread.c (fix_common_block): Change type of valu argument
7757 to CORE_ADDR.
7758
76219d77
JB
77592012-03-13 Chris January <chris.january@allinea.com>
7760
7761 * rs6000-tdep.c (skip_prologue): Support the oril r29, r1, 0x0
7762 instruction.
7763
87b0bb13
JK
77642012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7765
7766 * common/linux-procfs.c (linux_proc_get_int): New, from
7767 linux_proc_get_tgid, change its LWPID type to pid_t, add parameter
7768 field.
7769 (linux_proc_get_tgid): Only call linux_proc_get_int.
7770 (linux_proc_get_tracerpid): New.
7771 (linux_proc_pid_has_state): New, from linux_proc_pid_is_zombie.
7772 (linux_proc_pid_is_stopped, linux_proc_pid_is_zombie): Only call
7773 linux_proc_pid_has_state.
7774 * common/linux-procfs.h (linux_proc_get_tracerpid): New declaration.
7775 * common/linux-ptrace.c: Include linux-procfs.h and buffer.h.
7776 (linux_ptrace_attach_warnings): New.
7777 * common/linux-ptrace.h (struct buffer, linux_ptrace_attach_warnings):
7778 New declaration.
7779 * linux-nat.c: Include exceptions.h, linux-ptrace.h and buffer.h.
7780 (linux_nat_attach): New variables ex, buffer, message and message_s.
7781 Wrap to_attach by TRY_CATCH and call linux_ptrace_attach_warnings.
7782
5f572dec
JK
77832012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7784
7785 * Makefile.in (linux-ptrace.o): New.
7786 * common/linux-procfs.c (linux_proc_pid_is_zombie): New,
7787 from linux-nat.c.
7788 * common/linux-procfs.h (linux_proc_pid_is_zombie): New declaration.
7789 * common/linux-ptrace.c: New file.
7790 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-ptrace.o.
7791 * config/arm/linux.mh: Likewise.
7792 * config/i386/linux.mh: Likewise.
7793 * config/i386/linux64.mh: Likewise.
7794 * config/ia64/linux.mh: Likewise.
7795 * config/m32r/linux.mh: Likewise.
7796 * config/m68k/linux.mh: Likewise.
7797 * config/mips/linux.mh: Likewise.
7798 * config/pa/linux.mh: Likewise.
7799 * config/powerpc/linux.mh: Likewise.
7800 * config/powerpc/ppc64-linux.mh: Likewise.
7801 * config/powerpc/spu-linux.mh: Likewise.
7802 * config/s390/s390.mh: Likewise.
7803 * config/sparc/linux.mh: Likewise.
7804 * config/sparc/linux64.mh: Likewise.
7805 * config/xtensa/linux.mh: Likewise.
7806 * linux-nat.c (linux_lwp_is_zombie): Remove, move it to
7807 common/linux-procfs.c.
7808 (wait_lwp): Rename linux_lwp_is_zombie to linux_proc_pid_is_zombie.
7809
44f238bb
PA
78102012-03-13 Hui Zhu <teawater@gmail.com>
7811 Pedro Alves <palves@redhat.com>
7812
7813 * breakpoint.c (init_breakpoint_sal): New flags parameter. Handle
7814 CREATE_BREAKPOINT_FLAGS_INSERTED.
7815 (create_breakpoint_sal, create_breakpoints_sal)
7816 (base_breakpoint_create_breakpoints_sal)
7817 (tracepoint_create_breakpoints_sal)
7818 (strace_marker_create_breakpoints_sal): New flags parameter. Pass
7819 down.
7820 (break_command_1, handle_gnu_v3_exceptions, trace_command)
7821 (ftrace_command, strace_command): Adjust.
7822 (create_tracepoint_from_upload): Pass
7823 CREATE_BREAKPOINT_FLAGS_INSERTED.
7824 * breakpoint.h (enum breakpoint_create_flags): New.
7825 (create_breakpoint): New flags parameter.
7826 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
7827 * python/py-breakpoint.c (bppy_init): Adjust.
7828 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust.
7829 * spu-tdep.c (spu_catch_start): Adjust.
7830
1e51243a
PA
78312012-03-13 Pedro Alves <palves@redhat.com>
7832 Hui Zhu <teawater@gmail.com>
7833 Yao Qi <yao@codesourcery.com>
7834
7835 * remote.c (struct remote_state): New field `starting_up'.
7836 (remote_start_remote): Set and clear it.
7837 (remote_can_download_tracepoint): If starting up, return false.
7838
fa3064dd
YQ
78392012-03-13 Yao Qi <yao@codesourcery.com>
7840
7841 * inferior.h (struct inferior): Remove fields any_syscall_count,
7842 syscalls_counts and total_syscalls_count. Move them to new
7843 struct catch_syscall_inferior_data in breakpoint.c.
7844 * breakpoint.c: Call DEF_VEC_I(int).
7845 (struct catch_syscall_inferior_data): New.
7846 (get_catch_syscall_inferior_data): New.
7847 (catch_syscall_inferior_data_cleanup): New.
7848 (insert_catch_syscall): Update to access data in
7849 struct catch_syscall_inferior_data.
7850 (insert_catch_syscall): Likewise.
7851 (remove_catch_syscall): Likewise.
7852 (remove_catch_syscall): Likewise.
7853 (is_syscall_catchpoint_enabled): Likewise.
7854 (add_catch_command): Likewise.
7855 (_initialize_breakpoint): Register cleanup.
7856 * breakpoint.h: Removed DEF_VEC_I(int).
7857 * dwarf2loc.c: Call DEF_VEC_I(int).
7858 * mi/mi-main.c: Likewise.
7859
460fac3c
MK
78602012-03-12 Mark Kettenis <kettenis@gnu.org>
7861
7862 * inf-ptrace.c (inf_ptrace_post_attach): Make static.
7863
e1aca11e
JB
78642012-03-12 Chris January <chris.january@allinea.com>
7865
7866 * aix-thread.c (_initialize_aix_thread): Add prototype.
7867 * rs6000-nat.c (_initialize_rs6000_nat): Ditto.
7868 * xcoffsolib.c (_initialize_xcoffsolib): Ditto.
7869
649c7061
JB
78702012-03-12 Joel Brobecker <brobecker@adacore.com>
7871
7872 * amd64bsd-nat.c: Move #include of "amd64bsd-nat.h" after
7873 include of "amd64-nat.h".
7874
0b49e518
TT
78752012-03-12 Tom Tromey <tromey@redhat.com>
7876
7877 * buildsym.c (record_pending_block): Now static.
7878 * buildsym.h: (record_pending_block): Remove.
7879
fd24fa94
AT
78802012-03-12 Andreas Tobler <andreast@fgznet.ch>
7881
7882 * amd64bsd-nat.c: Include amd64bsd-nat.h.
7883
ba919b58
TT
78842012-03-09 Tom Tromey <tromey@redhat.com>
7885
7886 * dwarf2read.c (struct dwarf2_cu) <checked_producer,
7887 producer_is_gxx_lt_4_6>: New fields.
7888 (producer_is_gxx_lt_4_6): Use and update producer cache fields.
7889
a48e046c
TT
78902012-03-09 Tom Tromey <tromey@redhat.com>
7891
7892 * dwarf2read.c (dwarf2_attr): Avoid tail-recursive call.
7893
6f5e9362
JB
78942012-03-08 Joel Brobecker <brobecker@adacore.com>
7895
7896 * ravenscar-sparc-thread.c (_initialize_ravenscar_sparc): Add
7897 prototype.
7898
8d037db9
JB
78992012-03-08 Joel Brobecker <brobecker@adacore.com>
7900
7901 * ravenscar-thread.c (_initialize_ravenscar): Add prototype.
7902
4e841acf
JK
79032012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7904
7905 Fix -Wmissing-prototypes build.
7906 * arm-linux-nat.c (get_thread_id): Make it static.
7907 * xtensa-linux-nat.c (get_thread_id): Likewise.
7908
c6030312
JB
79092012-03-08 Joel Brobecker <brobecker@adacore.com>
7910
7911 * server.c (process_point_options): If a conditional expression
7912 is found, only print a message if remote_debug is nonzero.
7913
52323be9
LM
79142012-03-08 Luis Machado <lgustavo@codesourcery.com>
7915
7916 * ax-gdb.c (gen_fetch): Fail gracefully and use error instead
7917 of internal error for unknown/unsupported types.
7918
7fe25d9b
JK
79192012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7920
7921 Fix CU relative vs. absolute DIE offsets.
7922 * dwarf2loc.h (dwarf2_fetch_die_location_block): Rename parameter
7923 offset to offset_in_cu.
7924 * dwarf2read.c (process_enumeration_scope): Add CU offset to
7925 TYPE_OFFSET.
7926 (dwarf2_fetch_die_location_block): Rename parameter offset to
7927 offset_in_cu. New variable offset, add CU offset to OFFSET_IN_CU.
7928
05e7c244
JK
79292012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7930
7931 * libunwind-frame.c: Rename to ...
7932 * ia64-libunwind-tdep.c: ... here.
7933 * libunwind-frame.h: Rename to ...
7934 * ia64-libunwind-tdep.h: ... here.
7935 * Makefile.in (HFILES_NO_SRCDIR): Rename libunwind-frame.h to
7936 ia64-libunwind-tdep.h.
7937 (ALLDEPFILES): Rename libunwind-frame.c to ia64-libunwind-tdep.c.
7938 * README (--with-libunwind): Rename to ...
7939 (--with-libunwind-ia64): ... here, note it is ia64 specific now.
7940 * config.in: Regenerate.
7941 * configure: Regenerate.
7942 * configure.ac: New option --with-libunwind-ia64, make the
7943 AS_HELP_STRING ia64 specific. Deprecate option --with-libunwind.
7944 Remove AC_DEFINE for HAVE_LIBUNWIND.
7945 * ia64-libunwind-tdep.c: Make the file top comment ia64 specific.
7946 Rename libunwind-frame.h #include to ia64-libunwind-tdep.h.
7947 Rename libunwind-frame in the general comment.
7948 * ia64-libunwind-tdep.h: Make the file top comment ia64 specific.
7949 Rename symbol LIBUNWIND_FRAME_H to IA64_TDEP_LIBUNWIND_FRAME_H.
7950 Move forward declarations inside #ifndef. Rename libunwind-frame in
7951 the general comment.
7952 * ia64-tdep.c: Rename libunwind-frame.h #include to
7953 ia64-libunwind-tdep.h.
7954 (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum, ia64_is_fpreg)
7955 (ia64_libunwind_descr): Rename libunwind-frame to
7956 ia64-libunwind-tdep in these function comments.
7957 * ia64-tdep.h: Rename libunwind-frame.h #include to
7958 ia64-libunwind-tdep.h.
7959 * ia64-vms-tdep.c (ia64_vms_libunwind_descr): Rename libunwind-frame to
7960 ia64-libunwind-tdep in that data comment.
7961
3755cbfd
JK
79622012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7963
7964 * libunwind-frame.h (struct frame_unwind): New declaration.
7965
d1cda5d9
JB
79662012-03-08 Joel Brobecker <brobecker@adacore.com>
7967
7968 * breakpoint.c (_initialize_breakpoint): Fix error in help of
7969 "set breakpoint condition-evaluation" command.
7970
a0ba0aa2
TG
79712012-03-08 Tristan Gingold <gingold@adacore.com>
7972
7973 * sparc-stub.c: Move to stubs/
7974 * sh-stub.c: Likewise.
7975 * m68k-stub.c: Likewise.
7976 * m32r-stub.c: Likewise.
7977 * i386-stub.c: Likewise.
7978
7b8b6d6d
AS
79792012-03-08 Andreas Schwab <schwab@linux-m68k.org>
7980
007cafee
AS
7981 * m68klinux-tdep.c (m68k_linux_init_abi): Register
7982 linux_get_siginfo_type.
7983
7b8b6d6d
AS
7984 * m68klinux-nat.c: Include "gdb_proc_service.h".
7985 (PTRACE_GET_THREAD_AREA): Define.
7986 (ps_get_thread_area): New function.
7987
bba74b36
YQ
79882012-03-08 Yao Qi <yao@codesourcery.com>
7989
7990 * remote.c (remote_get_noisy_reply): Replace `sprintf' with
7991 `xsnprintf'.
7992 (remote_query_attached): Likewise.
7993 (remote_static_tracepoint_marker_at): Likewise.
7994 (remote_set_permissions): Likewise.
7995 (remote_detach_1, extended_remote_attach_1): Likewise.
7996 (send_g_packet, remote_vkill): Likewise.
7997 (extended_remote_disable_randomization): Likewise.
7998 (remote_add_target_side_condition): Likewise.
7999 (remote_insert_breakpoint): Likewise.
8000 (remote_remove_breakpoint): Likewise.
8001 (remote_insert_watchpoint): Likewise.
8002 (remote_remove_watchpoint): Likewise.
8003 (remote_insert_hw_breakpoint): Likewise.
8004 (remote_insert_hw_breakpoint): Likewise.
8005 (remote_remove_hw_breakpoint): Likewise.
8006 (remote_download_command_source): Likewise.
8007 (remote_download_tracepoint): Likewise.
8008 (remote_download_trace_state_variable): Likewise.
8009 (remote_disable_tracepoint): Likewise.
8010 (remote_trace_set_readonly_regions): Likewise.
8011 (remote_get_tracepoint_status): Likewise.
8012 (remote_trace_find): Likewise.
8013 (remote_get_trace_state_variable_value): Likewise.
8014 (remote_set_disconnected_tracing): Likewise.
8015 (remote_set_circular_trace_buffer): Likewise.
8016 (remote_get_min_fast_tracepoint_insn_len): Likewise.
8017 (remote_use_agent): Likewise.
8018 (remote_add_target_side_condition): Add one parameter BUF_SIZE.
8019 Update callers.
8020
9b224c5e
PA
80212012-03-07 Pedro Alves <palves@redhat.com>
8022
8023 * NEWS: Mention QProgramSignals.
8024 * inferior.h (update_signals_program_target): Declare.
8025 * infrun.c: (update_signals_program_target): New.
8026 (handle_command): Update the target of the new program signals
8027 array changes.
8028 * remote.c (PACKET_QProgramSignals): New enum.
8029 (last_program_signals_packet): New global.
8030 (remote_program_signals): New.
8031 (remote_start_remote): Update the target with the program signals
8032 list.
8033 (remote_protocol_features): Add entry for QPassSignals.
8034 (remote_open_1): Free anc clear last_program_signals_packet.
8035 (init_remote_ops): Install remote_program_signals.
8036 * target.c (update_current_target): Adjust.
8037 (target_program_signals): New.
8038 * target.h (struct target_ops) <to_program_signals>: New field.
8039 (target_program_signals): Declare.
8040
74c48cbb
PA
80412012-03-07 Pedro Alves <palves@redhat.com>
8042
8043 * NEWS: Add subtitle for new z0/z1 conditional breakpoint
8044 extensions.
8045
0c13fc49
AS
80462012-03-07 Andreas Schwab <schwab@linux-m68k.org>
8047
8048 * m68klinux-nat.c (getregs_supplies): Make static.
8049 (getfpregs_supplies): Likewise.
8050 (have_ptrace_getregs): Likewise.
8051
1281d2a3
JB
80522012-03-06 Joel Brobecker <brobecker@adacore.com>
8053
8054 * dwarf2read.c (dwarf2_get_die_type): Pass absolute offset
8055 in call to get_die_type_at_offset.
8056
2b03b41d
SS
80572012-03-06 Stan Shebs <stan@codesourcery.com>
8058
8059 * mi/mi-cmd-break.c: Enforce coding standards, fix comments.
8060 * mi/mi-cmd-disas.c: Ditto.
8061 * mi/mi-cmd-env.c: Ditto.
8062 * mi/mi-cmd-file.c: Ditto.
8063 * mi/mi-cmd-stack.c: Ditto.
8064 * mi/mi-cmd-target.c: Ditto.
8065 * mi/mi-cmd-var.c: Ditto.
8066 * mi/mi-cmds.c: Ditto.
8067 * mi/mi-cmds.h: Ditto.
8068 * mi/mi-console.c: Ditto.
8069 * mi/mi-getopt.c: Ditto.
8070 * mi/mi-getopt.h: Ditto.
8071 * mi/mi-interp.c: Ditto.
8072 * mi/mi-main.c: Ditto.
8073 * mi/mi-out.c: Ditto.
8074 * mi/mi-parse.c: Ditto.
8075 * mi/mi-parse.h: Ditto.
8076 * mi/mi-symbol-cmds.c: Ditto.
8077
8078 * mi/mi-getopt.h: Move mi_opt struct up.
8079 * mi/mi-main.c (captured_mi_execute_command): Remove redundant
8080 return.
8081 * mi/mi-out.c (_initialize_mi_out): Remove empty initialize.
8082
c988ad87
TT
80832012-03-06 Tom Tromey <tromey@redhat.com>
8084
8085 * proc-service.c (ps_pglobal_lookup): Set the current program
8086 space.
8087
1b7c1b10
PA
80882012-03-06 Pedro Alves <palves@redhat.com>
8089
8090 * gregset.h [HAVE_SYS_PROCFS_H]: Include <sys/procfs.h>.
8091
3c182069
JB
80922012-03-05 Joel Brobecker <brobecker@adacore.com>
8093
8094 * MAINTAINERS: List Maciej W. Rozycki as the mips maintainer.
8095
2e794194
JK
80962012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8097
8098 Code cleanup.
8099 * common/linux-osdata.c (linux_common_core_of_thread): New function
8100 comment.
8101 * linux-nat.c (linux_nat_wait_1): Replace linux_nat_core_of_thread_1
8102 call by linux_common_core_of_thread.
8103 (linux_nat_core_of_thread_1): Remove.
8104 * linux-nat.h (linux_nat_core_of_thread_1): Remove declaration.
8105 * linux-thread-db.c: Include linux-osdata.h.
8106 (update_thread_core): Replace linux_nat_core_of_thread_1 call by
8107 linux_common_core_of_thread.
8108
9f9f1f31
TT
81092012-03-05 Tom Tromey <tromey@redhat.com>
8110
8111 * value.c (value_primitive_field): Don't fetch contents for
8112 non-virtual bases.
8113
b7b189f3
TT
81142012-03-05 Tom Tromey <tromey@redhat.com>
8115
8116 * jv-valprint.c (java_value_print): Correctly compute 'obj_addr'.
8117
05b8a789 81182012-03-05 Andreas Arnez <arnez@linux.vnet.ibm.com>
5538f557 8119
5538f557
JB
8120 * s390-nat.c: Include "gregset.h".
8121
75528772
JK
81222012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8123
8124 * libunwind-frame.c (LIBUNWIND_SO): Change .7 to .8.
8125 [!LIBUNWIND_SO] (LIBUNWIND_SO_7): New #define.
8126 (libunwind_load): New variable so_error, use it for dlerror. Try to
8127 load also LIBUNWIND_SO_7.
8128
275418ae
PA
81292012-03-05 Pedro Alves <palves@redhat.com>
8130
8131 * i387-tdep.c (i387_supply_xsave): Assert the xsave section buffer
8132 is not NULL, and remove resulting dead code.
8133
5cbb9812
TS
81342012-03-05 Thomas Schwinge <thomas@codesourcery.com>
8135
8136 * sh-tdep.c (sh_skip_prologue): Provide an upper limit on the function
8137 prologue to sh_analyze_prologue.
8138 (sh_analyze_prologue): Make better use of such an upper limit, and
8139 generally be more cautious about accessing memory.
8140
541515ad
TT
81412012-03-05 Tom Tromey <tromey@redhat.com>
8142
8143 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from
8144 _initialize_ia64_hpux_tdep.
8145
b4d36fb8
PA
81462012-03-05 Pedro Alves <palves@redhat.com>
8147
24490249
PA
8148 PR gdb/13766
8149
b4d36fb8
PA
8150 * i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and
8151 the register state is clear, supply explicit zero, instead of
8152 marking the register unavailable.
8153
60c9a3c0
TG
81542012-03-05 Tristan Gingold <gingold@adacore.com>
8155
8156 * NEWS: Mention OpenVMS ia64 new target.
8157
696759ad
TG
81582012-03-05 Tristan Gingold <gingold@adacore.com>
8159
8160 * ia64-tdep.h: Include libunwind-frame.h and libunwind-ia64.h.
8161 (ia64_unw_accessors, ia64_unw_rse_accessors)
8162 (ia64_libunwind_descr): Declare.
8163 * ia64-vms-tdep.c: New file.
8164 * ia64-tdep.c (ia64_unw_accessors, ia64_unw_rse_accessors)
8165 (ia64_libunwind_descr): Make them public.
8166 * configure.tgt: Add ia64-*-*vms*.
8167 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-vms-tdep.o
8168 (ALLDEPFILES): Add ia64-vms-tdep.c
8169
34864976
TG
81702012-03-05 Tristan Gingold <gingold@adacore.com>
8171
169081d0
TG
8172 * target.h (target_object): Add TARGET_OBJECT_OPENVMS_UIB.
8173 * remote.c (PACKET_qXfer_uib): New enum value.
8174 (remote_protocol_features): Add entry for PACKET_qXfer_uib.
8175 (remote_xfer_partial): Handle TARGET_OBJECT_OPENVMS_UIB.
8176 (_initialize_remote): Call add_packet_config_cmd for
8177 xfer:uib packet.
8178
81792012-03-05 Tristan Gingold <gingold@adacore.com>
8180
8181 * osabi.c (gdb_osabi_names): Add OpenVMS.
8182 (generic_elf_osabi_sniffer): Likewise.
8183 * defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS.
34864976 8184
6597b100
JK
81852012-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
8186
8187 Removed unused code.
8188 * libunwind-frame.c (libunwind_frame_unwind)
8189 (libunwind_frame_base_address): Remove.
8190 * libunwind-frame.h (libunwind_frame_base_address): Remove declaration.
8191
87399aa1
YQ
81922012-03-04 Yao Qi <yao@codesourcery.com>
8193
8194 * common/agent.c (gdb_connect_sync_socket): Add _ markup and
8195 remove trailing new line.
8196 (agent_run_command, agent_run_command): Add _ markup.
8197 (agent_capability_check): Likewise.
8198
abf1152a
JK
81992012-03-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8200
8201 * breakpoint.c (set_condition_evaluation_mode): Set
8202 CONDITION_EVALUATION_MODE unconditionally.
8203
5808517f
YQ
82042012-03-03 Yao Qi <yao@codesourcery.com>
8205
8206 * common/agent.c (agent_look_up_symbols): Add one parameter 'arg'.
8207 * common/agent.h: Update declaration.
8208 * inf-child.c (inf_child_use_agent): New.
8209 (inf_child_can_use_agent): New.
8210 (inf_child_target): Initialize fields `to_use_agent'
8211 and `to_can_use_agent'.
8212 * agent.c (agent_new_objfile): New.
89b7509a 8213 (_initialize_agent): Add agent_new_objfile to new_objfile
5808517f
YQ
8214 observer.
8215
8216 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
8217 New.
89b7509a 8218 (linux_target_install_ops): Initialize field
5808517f
YQ
8219 `to_static_tracepoint_markers_by_strid'.
8220 * remote.c (free_current_marker): Move it to ...
8221 * tracepoint.c (free_current_marker): ... here. New.
8222 (cleanup_target_stop): New.
8223 * tracepoint.h: Declare free_current_marker.
8224 * NEWS: Add one entry about `info static-tracepoint-marker'.
8225
58b4daa5
YQ
82262012-03-03 Yao Qi <yao@codesourcery.com>
8227
8228 * common/agent.c (agent_loaded_p): New.
89b7509a 8229 (agent_look_up_symbols): New global.
58b4daa5
YQ
8230 * common/agent.h: Declare agent_loaded_p.
8231
8ffcbaaf
YQ
82322012-03-03 Yao Qi <yao@codesourcery.com>
8233
8234 * common/agent.c (struct ipa_sym_addresses) <addr_capability>: New.
8235 (agent_capability_check, agent_capability_invalidate): New.
8236 (symbol_list): New array element.
8237 * common/agent.h (enum agent_capa): New.
8238 * target.c (target_pre_inferior): Call agent_capability_invalidate.
8239
d1feda86
YQ
82402012-03-03 Yao Qi <yao@codesourcery.com>
8241
8242 * target.h (struct target_ops) <to_use_agent>: New field.
8243 (struct target_ops) <to_can_use_agent>: New field.
8244 (target_use_agent, target_can_use_agent): New macro.
8245 * target.c (update_current_target): Update.
8246 * remote.c: New enum `PACKET_QAgent'.
8247 (remote_protocol_features): Add a new element.
8248 (remote_use_agent, remote_can_use_agent): New.
8249 (init_remote_ops): Initialize field `can_use_agent' with
8250 remote_can_use_agent. Intiailize field `use_agent' with
8251 remote_use_agent.
8252 * common/agent.c (use_agent): New global.
8253 * common/agent.h: Declare it.
8254 * tracepoint.c (info_static_tracepoint_markers_command): Add
8255 comment.
8256 * Makefile.in (SFILES): Add common/agent.c and agent.c.
8257 (COMMON_OBS): Add common/agent.o and agent.o
8258 (common-agent.o): New rule.
8259 * agent.c: New.
8260
2fa291ac
YQ
82612012-03-03 Yao Qi <yao@codesourcery.com>
8262
8263 * common/agent.c: New.
8264 * common/agent.h: New.
8265 * configure.ac: Add `sys/socket.h' and `sys/un.h' to
8266 AC_CHECK_HEADERS.
8267 * configure, configh.in: Regenerated.
8268
9fc05685
KB
82692012-03-02 Kevin Buettner <kevinb@redhat.com>
8270
8271 * sh-tdep.c (sh_frame_cache): Don't fetch the FPSCR register
8272 unless it exists for this architecture.
8273
a5ee536b
JB
82742012-03-02 Joel Brobecker <brobecker@adacore.com>
8275
8276 * language.h (struct language_defn): New "method" la_read_var_value.
8277 * findvar.c: #include "language.h".
8278 (default_read_var_value): Renames read_var_value. Rewrite
8279 function description.
8280 (read_var_value): New function.
8281 * value.h (default_read_var_value): Add prototype.
8282 * ada-lang.c (ada_read_renaming_var_value, ada_read_var_value):
8283 New functions.
8284 (ada_language_defn): Add entry for la_read_var_value.
8285 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, language.c,
8286 * m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Update
8287 language_defn structures to add entry for new la_read_var_value
8288 field.
8289
f59f708a
PA
82902012-03-02 Tom Tromey <tromey@redhat.com>
8291 Pedro Alves <palves@redhat.com>
8292
8293 PR breakpoints/13776:
8294 * breakpoint.c (breakpoint_init_inferior): Delete step-resume
8295 breakpoints.
8296 (delete_longjmp_breakpoint_at_next_stop): New.
8297 * breakpoint.h (delete_longjmp_breakpoint_at_next_stop): Declare.
8298 * target.c (generic_mourn_inferior): Call mark_breakpoints_out
8299 before deleting the inferior. Add comments.
8300 * thread.c (clear_thread_inferior_resources): Don't delete lonjmp
8301 breakpoints immediately, but only on next stop. Move that code
8302 next to where we mark other breakpoints for deletion.
8303
44099a67
JB
83042012-03-02 Joel Brobecker <brobecker@adacore.com>
8305
8306 * mips-linux-nat.c (mips_linux_read_description): Add missing i18n
8307 marker.
8308 * mips-tdep.c (mips_linux_reg_names): Improve comment to avoid ARI
8309 violation.
8310
2a2ef594
PA
83112012-03-02 Pedro Alves <palves@redhat.com>
8312
8313 * linux-thread-db.c (attach_thread): Avoid in_thread_list call.
8314
b261e0c5
UW
83152012-03-02 Ulrich Weigand <uweigand@de.ibm.com>
8316
8317 Fix -Wmissing-prototypes build.
8318 * ppc-linux-nat.c (ppc_linux_get_hwcap): Make static.
8319 * remote-sim.c (gdbsim_has_all_memory): Likewise.
8320 (gdbsim_has_memory): Likewise.
8321
a95babbf
YQ
83222012-03-02 Yao Qi <yao@codesourcery.com>
8323
8324 Fix -Wmissing-prototypes build.
8325 * charset.c (phony_iconv_open): Make static.
8326 (phony_iconv_close, phony_iconv): Likewise.
8327 * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype.
8328 * i386-windows-nat.c (_initialize_i386_windows_nat): New
8329 prototype.
8330 * mingw-hdep.c (_initialize_mingw_hdep): New prototype.
8331 * ser-mingw.c (create_select_thread): Make static.
8332 * windows-termcap.c (tgetent): New prototype.
8333 (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
8334
d603d4b3
JK
83352012-03-02 Zhang Yuanhui <asmwarrior@gmail.com>
8336
8337 Fix -Wmissing-prototypes build.
8338 * windows-nat.c (dll_symbol_command, ctrl_c_handler): Make them static.
8339 (_initialize_windows_nat, _initialize_check_for_gdb_ini)
8340 (_initialize_loadable): New prototypes.
8341
7fb3ad1f
DE
83422012-03-02 Doug Evans <dje@google.com>
8343
8344 * dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
8345 abbrev table, read_comp_unit will do it.
8346
693be288
JK
83472012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8348
8349 Fix -Wmissing-prototypes build.
8350 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Make it static.
8351 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): New prototype.
8352 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Likewise.
8353 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code): Make it static.
8354 (_initialize_arm_symbian_tdep): New prototype.
8355 * arm-wince-tdep.c (arm_wince_skip_main_prologue): Make it static.
8356 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): New prototype.
8357 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Make it
8358 static.
8359 * lm32-tdep.c (_initialize_lm32_tdep): New prototype.
8360 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): New
8361 prototype.
8362 * microblaze-tdep.c (microblaze_debug, microblaze_fetch_instruction)
8363 (microblaze_skip_prologue, microblaze_frame_cache): Make them static.
8364 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Make it
8365 static.
8366 * moxie-tdep.c (moxie_process_record): Likewise.
8367 * remote-mips.c (mips_can_use_watchpoint, mips_insert_watchpoint)
8368 (mips_remove_watchpoint, mips_stopped_by_watchpoint): Make them static.
8369 * rl78-tdep.c (rl78_breakpoint_from_pc): Make it static.
8370 (_initialize_rl78_tdep): New prototype.
8371 * rx-tdep.c (rx_breakpoint_from_pc): Make it static.
8372 (_initialize_rx_tdep): New prototype.
8373 * solib-darwin.c (darwin_in_dynsym_resolve_code): Make it static.
8374 (_initialize_darwin_solib): New prototype.
8375 * solib-spu.c: Include solib-spu.h.
8376 (_initialize_spu_solib): New prototype.
8377 * spu-multiarch.c (_initialize_spu_multiarch): New prototype.
8378 * tic6x-tdep.c (tic6x_analyze_prologue, tic6x_skip_prologue)
8379 (tic6x_breakpoint_from_pc, tic6x_frame_unwind_cache)
8380 (tic6x_software_single_step): Make it static.
8381 (_initialize_tic6x_tdep): New prototype.
8382
638234e5
JK
83832012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8384
8385 Fix -Wmissing-prototypes build.
8386 * cris-tdep.c (cris_can_use_hardware_watchpoint)
8387 (cris_region_ok_for_watchpoint, cris_stopped_data_address): Remove.
8388
f4a6f16d
JK
83892012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
8390
8391 Fix -Wmissing-prototypes build.
8392 * frv-tdep.c (frv_check_watch_resources, frv_stopped_data_address)
8393 (frv_have_stopped_data_address): Remove.
8394
04dcf5fa
JK
83952012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
8396
8397 Fix -Wmissing-prototypes build.
8398 * Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h.
8399 * sh-tdep.c: Include sh64-tdep.h.
8400 * sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations.
8401 * sh64-tdep.c: Include sh64-tdep.h.
8402 * sh64-tdep.h: New file.
8403
19080931
MR
84042012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
8405
8406 * mips-tdep.c (mips32_scan_prologue): Correct indentation.
8407
9aac7884
MR
84082012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
8409
8410 * mips-tdep.c (mips_gdbarch_init): Only set pc_regnum and
8411 sp_regnum once the gdbarch_init_osabi hook has been called.
8412
a385295e
MR
84132012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
8414
8415 * mips-tdep.c (mips32_bc1_pc): New function.
8416 (mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T,
8417 BPOSGE32 and BPOSGE64 instructions.
8418 (deal_with_atomic_sequence): Likewise.
8419 (mips32_instruction_has_delay_slot): Likewise.
8420
1faeff08 84212012-03-01 Maciej W. Rozycki <macro@mips.com>
a09130f9
PA
8422 Chris Dearman <chris@mips.com>
8423 Maciej W. Rozycki <macro@codesourcery.com>
8424 Joseph Myers <joseph@codesourcery.com>
1faeff08
MR
8425
8426 * features/mips-dsp.xml: New file.
8427 * features/mips64-dsp.xml: New file.
8428 * features/mips-dsp-linux.xml: New file.
8429 * features/mips64-dsp-linux.xml: New file.
8430 * features/Makefile (WHICH): Add mips-dsp-linux and
8431 mips64-dsp-linux.
8432 (mips-dsp-expedite, mips64-dsp-expedite): New variables.
8433 * features/mips-dsp-linux.c: New file.
8434 * features/mips64-dsp-linux.c: New file.
8435 * regformats/mips-dsp-linux.dat: New file.
8436 * regformats/mips64-dsp-linux.dat: New file.
8437 * mips-linux-nat.c (mips_linux_register_addr): Handle DSP
8438 registers.
8439 (mips64_linux_register_addr): Likewise.
8440 (mips64_linux_regsets_fetch_registers): Likewise.
8441 (mips64_linux_regsets_store_registers): Likewise.
8442 (mips64_linux_fetch_registers): Update call to
8443 mips64_linux_regsets_fetch_registers.
8444 (mips64_linux_store_registers): Update call to
8445 mips64_linux_regsets_store_registers.
8446 (mips_linux_read_description): Probe for DSP registers.
8447 (_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux
8448 and initialize_tdesc_mips64_dsp_linux.
8449 * mips-linux-tdep.c (supply_gregset, mips64_supply_gregset):
8450 Remove padding of no longer used embedded register slots.
8451 * mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros.
8452 (MIPS_RESTART_REGNUM): Redefine enum value.
8453 * mips-tdep.c (mips_generic_reg_names): Remove trailing null
8454 strings.
8455 (mips_tx39_reg_names): Likewise.
8456 (mips_linux_reg_names): New array of register names for Linux
8457 targets.
8458 (mips_register_name): Check for a null pointer in
8459 mips_processor_reg_names and return an empty string.
8460 (mips_register_type): Exclude embedded registers for the IRIX
8461 and Linux ABIs.
8462 (mips_pseudo_register_type): Likewise. Use dynamic numbers to
8463 refer to FP registers, LO, HI, BadVAddr, Cause and PC. Handle
8464 DSP registers.
8465 (mips_stab_reg_to_regnum): Handle DSP accumulators.
8466 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
8467 (mips_gdbarch_init): Likewise. Initialize internal register
8468 indices for the Linux ABI. Use dynamic numbers to refer to
8469 registers, as applicable, while parsing the target description.
8470 * mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets.
8471
263689d8
JB
84722012-03-01 Joel Brobecker <brobecker@adacore.com>
8473
8474 * frame.h (read_frame_register_unsigned): Fix typo in function
8475 description.
8476
f3b4f45c
PA
84772012-03-01 Pedro Alves <palves@redhat.com>
8478
8479 * jit-reader.in [!__cplusplus]
8480 (GDB_DECLARE_GPL_COMPATIBLE_READER): Add missing backslash.
8481
b03a2011
PA
84822012-03-01 Pedro Alves <palves@redhat.com>
8483
8484 * configure.ac (build_warnings): Add -Wmissing-prototypes.
8485 * configure: Regenerate.
8486
70221824
PA
84872012-03-01 Pedro Alves <palves@redhat.com>
8488
8489 * amd64-linux-tdep.c (amd64_linux_record_signal): Make static.
8490 * breakpoint.c (create_exception_master_breakpoint, trace_command)
8491 (ftrace_command, strace_command): Make static.
8492 * d-lang.c (_initialize_d_language): Declare.
8493 * dwarf2expr.c (_initialize_dwarf2expr): Declare.
8494 * dwarf2loc.c (_initialize_dwarf2loc):
8495 * dwarf2read.c (process_psymtab_comp_unit): Make static.
8496 * exec.c (exec_get_section_table): Make static.
8497 * i386-linux-tdep.c (i386_linux_record_signal): Make static.
8498 * infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static.
8499 * inferior.c (remove_inferior_command, add_inferior_command)
8500 (clone_inferior_command): Make static.
8501 * linux-nat.c (linux_nat_thread_address_space)
8502 (linux_nat_core_of_thread): Make static.
8503 * linux-tdep.c (_initialize_linux_tdep): Declare.
8504 * objc-lang.c (_initialize_objc_lang): Declare.
8505 * opencl-lang.c (builtin_opencl_type, opencl_language_arch_info):
8506 Make static.
8507 (_initialize_opencl_language): Declare.
8508 * record.c (_initialize_record): Declare.
8509 * remote.c (demand_private_info, remote_get_tib_address)
8510 (remote_supports_cond_tracepoints)
8511 (remote_supports_fast_tracepoints, remote_get_tracepoint_status):
8512 Make static.
8513 * skip.c (_initialize_step_skip): Declare.
8514 * symtab.c (skip_prologue_using_lineinfo): Make static.
8515 * tracepoint.c (delete_trace_state_variable)
8516 (trace_variable_command, delete_trace_variable_command)
8517 (get_uploaded_tsv, find_matching_tracepoint_location)
8518 (find_matching_tsv, create_tsv_from_upload, get_traceframe_info):
8519 Make static.
8520 * value.c (pack_unsigned_long): Make static.
8521 * varobj.c (varobj_ensure_python_env): Make static.
8522 * windows-tdep.c (_initialize_windows_tdep): Declare.
8523 * xml-syscall.c (make_cleanup_free_syscalls_info): Make static.
8524
33fbcbee
PA
85252012-03-01 Pedro Alves <palves@redhat.com>
8526
8527 * linux-tdep.c (linux_has_shared_address_space): Make static. Add
8528 gdbarch parameter.
8529 (linux_init_abi): Install it as has_shared_address_space gdbarch
8530 callback.
8531
44d0cd3b
PA
85322012-03-01 Pedro Alves <palves@redhat.com>
8533
8534 * observer.c (observer_test_first_notification_function)
8535 (observer_test_second_notification_function)
8536 (observer_test_third_notification_function): Add declarations.
8537
ed01b82c
PA
85382012-03-01 Pedro Alves <palves@redhat.com>
8539
8540 * common/signals.c (default_target_signal_to_host)
8541 (default_target_signal_from_host): Move ...
8542 * arch-utils.c: ... here.
8543 * arch-utils.h (default_target_signal_to_host)
8544 (default_target_signal_from_host): Declare.
8545
8546 * common/signals.c (target_signal_from_command): Move ...
8547 * infrun.c: ... here.
8548 * inferior.h (target_signal_from_command): Declare.
8549 * target.h (target_signal_from_command)
8550 (default_target_signal_from_host, default_target_signal_to_host):
8551 Delete declarations.
8552
8553 * common/signals.c (_initialize_signals): Delete.
8554
c9b87335
PA
85552012-03-01 Pedro Alves <palves@redhat.com>
8556
8557 * jit-reader.in (plugin_is_GPL_compatible): Add declarations for
8558 both __cplusplus and !__cplusplus.
8559
9340a6c0
PA
85602012-03-01 Pedro Alves <palves@redhat.com>
8561
8562 * psymtab.c (find_and_open_source): Delete declaration.
8563 * source.c (find_and_open_source): Move comment ...
8564 * source.h (find_and_open_source): ... to this new declaration.
8565
e451c4a1
PA
85662012-03-01 Pedro Alves <palves@redhat.com>
8567
8568 * inline-frame.c: Include inline-frame.h.
8569
983fb104
PA
85702012-03-01 Pedro Alves <palves@redhat.com>
8571
8572 * tui/tui-data.c (set_gen_win_origin): Delete.
8573 * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration.
8574 * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete.
8575
5fbce5df
PA
85762012-03-01 Pedro Alves <palves@redhat.com>
8577
8578 * remote.c (encode_actions): Delete declaration.
8579 * tracepoint.c (encode_actions): Make extern.
8580 * tracepoint.h (encode_actions): Declare.
8581
49a8461d
PA
85822012-03-01 Pedro Alves <palves@redhat.com>
8583
8584 * python/py-breakpoint.c: Include python.h.
8585 * python/py-continueevent.c (create_continue_event_object): Make
8586 static.
8587 * python/py-lazy-string.c (stpy_get_type): Make static.
8588 * python/py-newobjfileevent.c (create_new_objfile_event_object):
8589 Make static.
8590 * python/py-utils.c (unicode_to_target_python_string): Make
8591 static.
8592 * python/py-value.c: Include python.h.
8593
9079102f
PA
85942012-03-01 Pedro Alves <palves@redhat.com>
8595
8596 * inferior.c (delete_threads_of_inferior): Delete.
8597
a298c5e8
PA
85982012-03-01 Pedro Alves <palves@redhat.com>
8599
8600 Import fallback definitions from glibc.
8601
8602 * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
8603 ps_prochandle): Forward declare.
8604 (ps_err_e): Use glibc's comments.
8605 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
8606 (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
8607 (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup)
8608 (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize)
8609 (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare.
8610 (struct ps_prochandle): Adjust comment.
8611
e3084549
PA
86122012-03-01 Pedro Alves <palves@redhat.com>
8613
8614 * ada-lang.c (ada_modulus_from_name): Delete.
8615 * ada-lex.l (lexer_init): Make static.
8616
ad5f7d6e
PA
86172012-03-01 Pedro Alves <palves@redhat.com>
8618
8619 PR gdb/13767
8620
8621 * frame.c (read_frame_register_unsigned): New.
8622 * frame.h (read_frame_register_unsigned): Declare.
8623 * i387-tdep.c (print_i387_status_word): New parameter `status_p'.
8624 Handle it.
8625 (print_i387_control_word): New parameter `control_p'. Handle it.
8626 (i387_print_float_info): Handle unavailable float registers.
8627
e0a4d108
KS
86282012-03-01 Keith Seitz <keiths@redhat.com>
8629
8630 * linespec.c (decode_line_2): Sort the list of methods
8631 alphabetically before presenting the user with a selection
8632 menu.
8633
122d1940
DE
86342012-03-01 Doug Evans <dje@google.com>
8635
8636 * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
8637 has_namespace_info.
8638 (dwarf2_read_abbrevs): Remove corresponding initialization.
8639
7d74f244
DE
86402012-03-01 Scott J. Goldman <scottjg@vmware.com>
8641
8642 * NEWS: Mention new python command class gdb.COMMAND_USER.
8643 * cli/cli-cmds.c (show_user): Print error when used on a python
8644 command.
8645 (init_cli_cmds): Update documentation strings for "show user" and
8646 "set/show max-user-call-depth" to clarify that it does not apply to
8647 python commands.
8648 * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in
8649 error check.
8650 (gdbpy_initialize_commands): Add COMMAND_USER as a constant in
8651 gdb python api.
8652 * top.c (execute_command): Only execute a user-defined command as a
8653 legacy macro if c->user_commands is set.
8654
e88acd96
TT
86552012-03-01 Tom Tromey <tromey@redhat.com>
8656
8657 * valprint.h (struct generic_val_print_decorations): New.
8658 (generic_val_print): Declare.
8659 * valprint.c (generic_val_print): New function.
8660 * p-valprint.c (p_decorations): New global.
8661 (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM,
8662 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT,
8663 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF,
8664 TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print.
8665 * m2-valprint.c (m2_decorations): New global.
8666 (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC,
8667 TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR,
8668 TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF,
8669 TYPE_CODE_ERROR>: Call generic_val_print.
8670 * f-valprint.c (f_decorations): New global.
8671 (f_val_print): Use print_function_pointer_address.
8672 <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS,
8673 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE,
8674 TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call
8675 generic_val_print.
8676 * c-valprint.c (c_decorations): New global.
8677 (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM,
8678 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL,
8679 TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT,
8680 TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR,
8681 TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print.
8682 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove
8683 case.
8684
d3eab38a
TT
86852012-03-01 Tom Tromey <tromey@redhat.com>
8686
8687 * valprint.c (val_print): Update.
8688 * p-valprint (pascal_val_print): Return void.
8689 * p-lang.h (pascal_val_print): Return void.
8690 * m2-valprint.c (m2_val_print): Return void.
8691 * m2-lang.h (m2_val_print): Return void.
8692 * language.h (struct language_defn) <la_val_print>: Return void.
8693 * language.c (unk_lang_val_print): Return void.
8694 * jv-valprint.c (java_val_print): Return void.
8695 * jv-lang.h (java_val_print): Return void.
8696 * f-valprint.c (f_val_print): Return void.
8697 * f-lang.h (f_val_print): Return void.
8698 * d-valprint.c (d_val_print): Return void.
8699 (dynamic_array_type): Update.
8700 * d-lang.h (d_val_print): Return void.
8701 * c-valprint.c (c_val_print): Return void.
8702 * c-lang.h (c_val_print): Return void.
8703 * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
8704 void.
8705 * ada-lang.h (ada_val_print): Return void.
8706
35c0084b
TT
87072012-03-01 Tom Tromey <tromey@redhat.com>
8708
8709 * value.h (val_print): Return void.
8710 * valprint.c (val_print): Return void.
8711
a1f5dd1b
TT
87122012-03-01 Tom Tromey <tromey@redhat.com>
8713
8714 * value.h (common_val_print): Return void.
8715 * valprint.c (common_val_print): Return void.
8716
8e069a98
TT
87172012-03-01 Tom Tromey <tromey@redhat.com>
8718
8719 * value.h (value_print): Return void.
8720 * valprint.c (value_print): Return void.
8721 * p-valprint.c (pascal_value_print): Return void.
8722 * p-lang.h (pascal_value_print): Return void.
8723 * language.h (struct language_defn) <la_value_print>: Return
8724 void.
8725 * language.c (unk_lang_value_print): Return void.
8726 * jv-valprint.c (java_value_print): Return void.
8727 * jv-lang.h (java_value_print): Return void.
8728 * f-valprint.c (c_value_print): Don't declare.
8729 Include c-lang.h.
8730 * c-valprint.c (c_value_print): Return void.
8731 * c-lang.h (c_value_print): Return void.
8732 * ada-valprint.c (ada_value_print): Return void.
8733 * ada-lang.h (ada_value_print): Return void.
8734
be335936
TT
87352012-03-01 Tom Tromey <tromey@redhat.com>
8736
8737 * value.c (value_primitive_field): Handle virtual base classes.
8738
b0db66a7
TT
87392012-03-01 Tom Tromey <tromey@redhat.com>
8740
8741 * gdbtypes.h (struct vbase): Remove.
8742
132c57b4
TT
87432012-03-01 Tom Tromey <tromey@redhat.com>
8744
8745 * c-valprint.c (print_function_pointer_address): Move...
8746 * valprint.c: ... here. Make non-static.
8747 * m2-valprint.c (print_function_pointer_address): Remove.
8748 * valprint.h (print_function_pointer_address): Declare.
8749
e41eec66
JB
87502012-03-01 Joel Brobecker <brobecker@adacore.com>
8751
8752 * NEWS: Document the fact that one can provide a condition when
8753 creating an Ada exception catchpoint.
8754
19c37f24
TT
87552012-03-01 Tom Tromey <tromey@redhat.com>
8756
8757 * valprint.c (val_print_type_code_flags): Fix placement of
8758 trailing brace.
8759
f0fed3a3
JB
87602012-03-01 Joel Brobecker <brobecker@adacore.com>
8761
8762 * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
8763 (update_files): Do not set MULTILINE_COMMENT_PREFIXES
8764 environment variable before calling update-copyright.
8765
8ba85d85
JB
87662012-03-01 Joel Brobecker <brobecker@adacore.com>
8767
8768 * gnulib/extra/update-copyright: Update to the latest from
8769 gnulib's git repository.
8770 * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
8771 variable to 2 instead of 1.
8772
8219b1e8
JB
87732012-02-29 Joel Brobecker <brobecker@adacore.com>
8774
8775 * varobj.c (c_value_of_variable): Remove dead code.
8776
718cb7da
JB
87772012-02-29 Joel Brobecker <brobecker@adacore.com>
8778
8779 * ada-lex.p (processId): Do not modify already encoded IDs.
8780 Update function documentation.
8781
739593e0
JB
87822012-02-29 Joel Brobecker <brobecker@adacore.com>
8783
8784 * ada-lang.h (ada_find_renaming_symbol): Replace parameter
8785 "name" with "struct symbol *name_sym".
8786 * ada-exp.y (write_var_or_type): Update call to
8787 ada_find_renaming_symbol.
8788 "name" with "struct symbol *name_sym". Adjust Implementation
8789 accordingly. Adjust the function documentation.
8790
852dff6c
JB
87912012-02-29 Joel Brobecker <brobecker@adacore.com>
8792
8793 * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
8794 * ada-lang.c (ada_find_any_type): Add advance declaration.
8795 Make static. Replace ada_find_any_symbol by
8796 ada_find_any_type_symbol.
8797 (ada_find_any_type_symbol): Renames ada_find_any_symbol.
8798 Improve function description. Make static.
8799 (ada_find_renaming_symbol, find_old_style_renaming_symbol):
8800 Replace ada_find_any_symbol by ada_find_any_type_symbol.
8801
1b611343
JB
88022012-02-29 Joel Brobecker <brobecker@adacore.com>
8803
8804 * ada-lang.c (struct tag_args): Delete.
8805 (ada_get_tsd_type): Function body moved up in source file.
8806 (ada_tag_name_1, ada_tag_name_2): Delete.
8807 (ada_get_tsd_from_tag): New function.
8808 (ada_tag_name_from_tsd): New function.
8809 (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
8810 to determine the tag name.
8811
41246937
JB
88122012-02-29 Joel Brobecker <brobecker@adacore.com>
8813
8814 * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
8815 declaration.
8816 * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
8817 function.
8818
ffde82bf
JB
88192012-02-29 Joel Brobecker <brobecker@adacore.com>
8820
8821 * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
8822
2ad01556
JB
88232012-02-29 Joel Brobecker <brobecker@adacore.com>
8824
8825 * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
8826 full searches.
8827
99b1c762
JB
88282012-02-29 Joel Brobecker <brobecker@adacore.com>
8829
8830 * ada-lang.c (constrained_packed_array_type): If there is a
8831 parallel XA type, use it to determine the array index type.
8832
2d4a02ee
JB
88332012-02-29 Joel Brobecker <brobecker@adacore.com>
8834
8835 * ada-valprint.c (ada_val_print_1): If our value is a reference
8836 to an array descriptor, dereference it before converting it
8837 to a simple array.
8838
c48db5ca
JB
88392012-02-29 Joel Brobecker <brobecker@adacore.com>
8840
8841 * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
8842 creating fixed value.
8843 (ada_value_ind, ada_coerce_ref, assign_component)
8844 (ada_evaluate_subexp): Remove call to unwrap_value before
8845 call to ada_to_fixed_value.
8846
2e6fda7d
JB
88472012-02-29 Joel Brobecker <brobecker@adacore.com>
8848
8849 * ada-lang.c (to_fixed_array_type): Set result's type name.
8850
5845583d
JB
88512012-02-29 Joel Brobecker <brobecker@adacore.com>
8852
8853 * ada-lang.c (catch_ada_exception_command_split): Add new
8854 argument cond_string. Add support for condition at end of
8855 "catch exception" commands.
8856 (ada_decode_exception_location): Add new argument cond_string.
8857 Update call to catch_ada_exception_command_split.
8858 (create_ada_exception_catchpoint): Add new argument cond_string.
8859 Set the breakpoint condition if needed.
8860 (catch_ada_exception_command): Update call to
8861 ada_decode_exception_location.
8862 (ada_decode_assert_location): Add function documentation.
8863 Add support for condition at end of "catch assert" command.
8864 (catch_assert_command): Update calls to ada_decode_assert_location
8865 and create_ada_exception_catchpoint.
8866
9a7f938f
JK
88672012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
8868
8869 Fix disp-step-syscall.exp: fork: single step over fork.
8870 * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
8871 (i386_linux_get_syscall_number_from_regcache): ... here, new function
8872 comment, change parameters gdbarch and ptid to regcache. Remove
8873 parameter regcache, initialize gdbarch from regcache here.
8874 (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
8875 New functions.
8876 (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
8877 instead.
8878 * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
8879 'syscall'. Make the 'int' check more strict.
8880
ffdf6de5
JK
88812012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
8882
8883 Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
8884 * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
8885 (i386_linux_intx80_sysenter_syscall_record): ... here.
8886 (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
8887 Use the renamed function name.
8888
c70a6932
JK
88892012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
8890
8891 * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
8892 * breakpoint.c (until_break_command): Likewise.
8893 * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
8894 * infcall.c (call_function_by_hand): Likewise.
8895 * infcmd.c (finish_forward): Likewise.
8896 * infrun.c (insert_exception_resume_breakpoint): Likewise.
8897
05b8a789 88982012-02-28 Tristan Gingold <gingold@adacore.com>
d4cd3da9 8899
d4cd3da9
JB
8900 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
8901 avoid variable assignments inside condition.
8902
6425366c
JK
89032012-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
8904
8905 Fix static analysis issue found by cppcheck.
8906 * microblaze-tdep.c (microblaze_extract_return_value): Fix
8907 uninitialized BUF for size 2.
8908
c8cef75f 89092012-02-27 Chris Dearman <chris@mips.com>
a09130f9
PA
8910 Nathan Froyd <froydnj@codesourcery.com>
8911 Maciej W. Rozycki <macro@codesourcery.com>
c8cef75f
MR
8912
8913 * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
8914 (mips16_instruction_has_delay_slot): Likewise.
8915 (mips_segment_boundary): Likewise.
8916 (mips_adjust_breakpoint_address): Likewise.
8917 (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
8918
473347ad 89192012-02-27 Maciej W. Rozycki <macro@mips.com>
a09130f9 8920 Maciej W. Rozycki <macro@codesourcery.com>
473347ad
MR
8921
8922 * infrun.c (handle_inferior_event): Don't proceed through
8923 shared library trampolines if stepping at the machine
8924 instruction level.
8925
cf233303
MR
89262012-02-27 Maciej W. Rozycki <macro@codesourcery.com>
8927
8928 * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
8929 too.
8930
cb2cf4ce
TS
89312012-02-27 Thomas Schwinge <thomas@codesourcery.com>
8932
8933 * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
8934 (sh_stub_unwind_sniffer): New functions.
8935 (sh_stub_unwind): New variable.
8936 (sh_gdbarch_init): Wire everything.
8937
644cebc9
PA
89382012-02-27 Pedro Alves <palves@redhat.com>
8939
8940 * linux-nat.c (pid_is_stopped): Delete, moved to common/.
8941 (linux_nat_post_attach_wait): Adjust to use
8942 linux_proc_pid_is_stopped.
8943 * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
8944 * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
8945 based on pid_is_stopped from both linux-nat.c and
8946 gdbserver/linux-low.c, and renamed.
8947
283002cf
MR
89482012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
8949
8950 * remote.c (remote_watchpoint_addr_within_range): New function.
8951 (init_remote_ops): Use it.
8952
9b3e86b1
MR
89532012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
8954
8955 * target.h (target_watchpoint_addr_within_range): Document macro.
8956
e36930bb
PA
89572012-02-24 Pedro Alves <palves@redhat.com>
8958
8959 * stack.c (set_last_displayed_sal): Issue internal_error instead
8960 of warning, and issue it after clearing the last displayed sal.
8961
883bc8d1
PA
89622012-02-24 Jan Kratochvil <jan.kratochvil@redhat.com>
8963 Pedro Alves <palves@redhat.com>
8964
8965 * breakpoint.c (until_break_command): Install breakpoints after
8966 all frame manipulations.
8967
b775012e
LM
89682012-02-24 Luis Machado <lgustavo@codesourcery.com>
8969
8970 * remote.c (remote_supports_cond_breakpoints): New forward
8971 declaration.
8972 (remote_add_target_side_condition): New function.
8973 (remote_insert_breakpoint): Add target-side breakpoint
8974 conditional if supported.
8975 (remote_insert_hw_breakpoint): Likewise.
8976 (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
8977 hook.
8978
8979 * target.c (update_current_target): Inherit
8980 to_supports_evaluation_of_breakpoint_conditions.
8981 Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
8982
8983 * target.h (struct target_ops)
8984 <to_supports_evaluation_of_breakpoint_conditions>: New field.
8985 (target_supports_evaluation_of_breakpoint_conditions): New #define.
8986
8987 * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
8988 (condition_evaluation_both, condition_evaluation_auto,
8989 condition_evaluation_host, condition_evaluation_target,
8990 condition_evaluation_enums, condition_evaluation_mode_1,
8991 condition_evaluation_mode): New static globals.
8992 (translate_condition_evaluation_mode): New function.
8993 (breakpoint_condition_evaluation_mode): New function.
8994 (gdb_evaluates_breakpoint_condition_p): New function.
8995 (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
8996 (mark_breakpoint_modified): New function.
8997 (mark_breakpoint_location_modified): New function.
8998 (set_condition_evaluation_mode): New function.
8999 (show_condition_evaluation_mode): New function.
9000 (bp_location_compare_addrs): New function.
9001 (get_first_location_gte_addr): New helper function.
9002 (set_breakpoint_condition): Free condition bytecode if locations
9003 has become unconditional. Call mark_breakpoint_modified (...).
9004 (condition_command): Call update_global_location_list (1) for
9005 breakpoints.
9006 (breakpoint_xfer_memory): Use is_breakpoint (...).
9007 (is_breakpoint): New function.
9008 (parse_cond_to_aexpr): New function.
9009 (build_target_condition_list): New function.
9010 (insert_bp_location): Handle target-side conditional
9011 breakpoints and call build_target_condition_list (...).
9012 (update_inserted_breakpoint_locations): New function.
9013 (insert_breakpoint_locations): Handle target-side conditional
9014 breakpoints.
9015 (bpstat_check_breakpoint_conditions): Add comment.
9016 (bp_condition_evaluator): New function.
9017 (bp_location_condition_evaluator): New function.
9018 (print_breakpoint_location): Print information on where the condition
9019 will be evaluated.
9020 (print_one_breakpoint_location): Likewise.
9021 (init_bp_location): Call mark_breakpoint_location_modified (...) for
9022 breakpoint location.
9023 (force_breakpoint_reinsertion): New functions.
9024 (update_global_location_list): Handle target-side breakpoint
9025 conditions.
9026 Reinsert locations that are already inserted if conditions have
9027 changed.
9028 (bp_location_dtor): Free agent expression bytecode.
9029 (disable_breakpoint): Call mark_breakpoint_modified (...).
9030 Call update_global_location_list (...) with parameter 1 for breakpoints.
9031 (disable_command): Call mark_breakpoint_location_modified (...).
9032 Call update_global_location_list (...) with parameter 1 for breakpoints.
9033 (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
9034 (enable_command): mark_breakpoint_location_modified (...).
9035 (_initialize_breakpoint): Update documentation and add
9036 condition-evaluation breakpoint subcommand.
9037
9038 * breakpoint.h: Include ax.h.
9039 (condition_list): New data structure.
9040 (condition_status): New enum.
9041 (bp_target_info) <cond_list>: New field.
9042 (bp_location) <condition_changed, cond_bytecode>: New fields.
9043 (is_breakpoint): New prototype.
9044
3788aec7
LM
90452012-02-24 Luis Machado <lgustavo@codesourcery.com>
9046
9047 * remote.c (remote_state) <cond_breakpoints>: New field.
9048 (PACKET_ConditionalBreakpoints): New enum.
9049 (remote_cond_breakpoint_feature): New function.
9050 (remote_protocol_features): Add new ConditionalBreakpoints entry.
9051 (remote_supports_cond_breakpoints): New function.
9052 (_initialize_remote): Add new packet configuration for
9053 target-side conditional breakpoints.
9054
72895ff6
LM
90552012-02-24 Luis Machado <lgustavo@codesourcery.com>
9056
9057 * NEWS: Mention target-side conditional breakpoint support,
9058 new condition-evaluation breakpoint subcommand and remote
9059 packet extensions.
9060
dea2aa5f
LM
90612012-02-24 Luis Machado <lgustavo@codesourcery.com>
9062
9063 * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
9064 number.
9065
8a8bc27f
TS
90662012-02-24 Thomas Schwinge <thomas@codesourcery.com>
9067
9068 * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
9069 (after_prologue): Remove.
9070
6b446fdf
TT
90712012-02-23 Tom Tromey <tromey@redhat.com>
9072
9073 * jv-valprint.c (java_val_print): Remove dead code.
9074
ef59abfb
TG
90752012-02-23 Tristan Gingold <gingold@adacore.com>
9076
a09130f9
PA
9077 * ada-tasks.c (struct ada_tasks_inferior_data): Add
9078 known_tasks_element and known_tasks_length fields.
9079 (read_known_tasks_array): Change argument type. Use pointer type
9080 and number of elements from DATA. Adjust.
9081 (read_known_tasks_list): Likewise.
9082 (get_known_tasks_addr): Remove.
9083 (ada_set_current_inferior_known_tasks_addr): Renamed to ...
9084 (ada_tasks_inferior_data_sniffer): ... this. Use symtab for element
9085 type and array length. Merge former get_known_tasks_addr code.
ef59abfb 9086
def166f6
JK
90872012-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
9088
9089 PR backtrace/13716
9090 * infcmd.c (finish_forward): New variable frame_id, initialize it, use
9091 it after set_momentary_breakpoint.
9092
aeaa2474
SA
90932012-02-22 Sterling Augustine <saugustine@google.com>
9094
9095 PR 13689:
9096 * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
9097
feea76c2
GB
90982012-02-22 Gary Benson <gbenson@redhat.com>
9099
9100 * dwarf2read.c (dwarf2_read_index): Correct misspelling.
9101 (find_slot_in_mapped_hash): Likewise.
9102
f06e05e0
JK
91032012-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9104
9105 PR build/13638
9106 * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
9107 (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
9108 * configure: Regenerate.
9109
b54a8fd7
PA
91102012-02-21 Tristan Gingold <gingold@adacore.com>
9111 Pedro Alves <palves@redhat.com>
9112
9113 * ia64-tdep.c: Do not include libunwind-ia64.h.
9114 * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
9115 Include libunwind-ia64.h instead of libunwind.h.
9116 * configure.ac (--with-libunwind, $enable_libunwind): Don't check
9117 for libunwind.h existence.
9118 * configure, config.in: Regenerate.
9119
dfcee124
AG
91202012-02-21 Anton Gorenkov <xgsa@yandex.ru>
9121
9122 * c-valprint.c (c_value_print): Use value_rtti_indirect_type
9123 instead of value_rtti_target_type.
9124 * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
9125 instead of value_rtti_target_type.
9126 * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
9127 value_rtti_target_type.
9128 * valops.c (value_ind): Extract function readjust_indirect_value_type.
9129 (value_rtti_target_type): Rename to ...
9130 (value_rtti_indirect_type): ... here and make it indirect. Update
9131 function comment.
9132 * value.c (readjust_indirect_value_type): New function.
9133 (coerce_ref): Support for enclosing type setting for references
9134 with readjust_indirect_value_type.
9135 * value.h (readjust_value_type): New declaration.
9136 (value_rtti_target_type): Rename to ...
9137 (value_rtti_indirect_type): ... here.
9138
02568277
AG
91392012-02-21 Anton Gorenkov <xgsa@yandex.ru>
9140
9141 * MAINTAINERS (Write After Approval): Add myself to the list.
9142
10c07b7e 91432012-02-20 Doug Evans <dje@google.com>
28ee876a 9144
d82ea6a8
DE
9145 * objfiles.c (add_to_objfile_sections): Remove outdated comments.
9146 Rename objfile_p_char parameter to objfilep.
9147 (build_objfile_section_table): Result is now void. All callers
9148 updated.
9149 * objfiles.h (struct objfile): Tweak comments, whitespace.
9150 (build_objfile_section_table): Update.
9151
28ee876a
DE
9152 * elfread.c (elf_symfile_segments): Fix warning text.
9153
24c79950
TT
91542012-02-20 Tom Tromey <tromey@redhat.com>
9155
9156 PR gdb/13498:
9157 * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
9158 particular set of file names once.
9159 (dw2_map_symbol_filenames): Likewise.
9160
3a9b40b6
JK
91612012-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9162
9163 Code cleanup.
9164 * main.c (write_files): Remove the declaration.
9165 (external_editor_command): Move the declaration ...
9166 [GDBTK] (external_editor_command): ... here. Fix the comment.
9167
4d0795ca
TT
91682012-02-20 Tom Tromey <tromey@redhat.com>
9169
9170 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
9171 extraneous block.
9172
637fd620
TG
91732012-02-20 Tristan Gingold <gingold@adacore.com>
9174
9175 * darwin-nat.h (enum darwin_msg_state): Add comments.
9176
6f124894
TG
91772012-02-20 Tristan Gingold <gingold@adacore.com>
9178
9179 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
9180 value.
9181
2e6e3d9c
JB
91822012-20-18 Joel Brobecker <brobecker@adacore.com>
9183
9184 * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
9185 between function description and implementation.
9186
2e8265fd
TT
91872012-02-17 Tom Tromey <tromey@redhat.com>
9188
9189 PR python/12070:
9190 * python/py-event.c (event_object_getset): New global.
9191 (event_object_type): Reference it.
9192 * python/py-type.c (field_object_getset): New global.
9193 (field_object_type): Reference it.
9194 * python/python-internal.h (gdb_py_generic_dict): Declare.
9195 * python/py-utils.c (gdb_py_generic_dict): New function.
9196
8544a150 91972012-02-17 Tristan Gingold <gingold@adacore.com>
6f124894 9198
8544a150 9199 * solib-darwin.c (darwin_current_sos): Check magic and filetype
6f124894 9200
ca193e27
TS
92012012-02-17 Thomas Schwinge <thomas@codesourcery.com>
9202
9203 * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
9204 TYPE_CALLING_CONVENTION annotation.
9205
e5586183
KB
92062012-02-16 Kevin Buettner <kevinb@redhat.com>
9207
9208 * MAINTAINERS: Add rx to target ISA section.
9209 * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
9210 (ALLDEPFILES): Add rx-tdep.c.
9211
7dcd53a0
TT
92122012-02-16 Tom Tromey <tromey@redhat.com>
9213
9214 * symfile.c (symbol_file_add_main_1): Use inferior's
9215 symfile_flags.
9216 * solib.c (solib_read_symbols): Use inferior's symfile_flags.
9217 * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
9218 inferior.
9219 * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
9220 inferior.
9221 (follow_exec): Use inferior's symfile_flags.
9222 * inferior.h (struct inferior) <symfile_flags>: New field.
9223
ddd60447
MF
92242012-02-16 Mike Frysinger <vapier@gentoo.org>
9225
9226 PR gdb/9734:
9227 * remote-sim.c (gdbsim_create_inferior): Call error() when
9228 sim_create_inferior() fails.
9229
b0d32fb6
TG
92302012-02-16 Josh Matthews <josh@joshmatthews.net>
9231
9232 * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
9233
9addecb9
TT
92342012-02-16 Tom Tromey <tromey@redhat.com>
9235
9236 PR c++/13653:
9237 * thread.c (struct current_thread_cleanup) <was_removable>: New
9238 field.
9239 (restore_current_thread_cleanup_dtor): Restore 'removable' field.
9240 (make_cleanup_restore_current_thread): Initialize new field.
9241
a58b110a
KB
92422012-02-15 Kevin Buettner <kevinb@redhat.com>
9243
9244 * MAINTAINERS: Add rl78 to target ISA section.
9245 * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
9246 (ALLDEPFILES): Add rl78-tdep.c.
9247 * NEWS: Mention rl78 as a new target.
9248
4cb6da1c
AR
92492012-02-15 Aleksandar Ristovski <aristovski@qnx.com>
9250
9251 * frame.c (find_frame_sal): Initialize sal->pspace field from frame
9252 data.
9253 * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
9254
3af2590d
TT
92552012-02-15 Tom Tromey <tromey@redhat.com>
9256
9257 PR gdb/12659:
9258 * infcmd.c (registers_info): Print just the current register's
9259 name.
9260
c6910659
TT
92612012-02-15 Tom Tromey <tromey@redhat.com>
9262
9263 * python/py-symbol.c (sympy_value): Use _().
9264
7cee1e54
PA
92652012-02-15 Pedro Alves <palves@redhat.com>
9266
9267 * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
9268 output to be like native targets'.
9269 (remote_pid_to_str): Special case the null ptid.
9270
816338b5
SS
92712012-02-14 Stan Shebs <stan@codesourcery.com>
9272
9273 * NEWS: Mention enable count command.
9274 * breakpoint.h (struct breakpoint): New field enable_count.
9275 * breakpoint.c (enable_breakpoint_disp): Add count argument.
9276 (enable_breakpoint): Add arg to call.
9277 (struct disp_data): New struct.
9278 (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
9279 (do_map_enable_once_breakpoint): Create a struct and pass it.
9280 (do_map_enable_delete_breakpoint): Ditto.
9281 (do_map_enable_count_breakpoint): New function.
9282 (enable_count_command): New function.
9283 (bpstat_stop_status): Decrement enable_count.
9284 (print_one_breakpoint_location): Report enable count.
9285 (_initialize_breakpoint): Add enable count command.
9286
c47a44f4
KB
92872012-02-14 Kevin Buettner <kevinb@redhat.com>
9288
9289 * rl78-tdep.c (reggroups.h): Include.
9290 (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
9291 (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
9292 (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
9293 (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
9294 (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
9295 (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
9296 (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
9297 (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
9298 (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
9299 (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
9300 (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
9301 (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
9302 (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
9303 (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
9304 (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
9305 (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
9306 beginning of register list.
9307 (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
9308 (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
9309 (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
9310 (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
9311 (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
9312 (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
9313 (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
9314 (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
9315 (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
9316 (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
9317 (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
9318 the pseudo registers. Rearrange other pseudo registers too so
9319 that the bank registers appear at the end.
9320 (rl78_register_type): Account for the fact that the byte sized
9321 bank registers are now pseudo-registers.
9322 (rl78_register_name): Rearrange the register name array. Make
9323 initial set of raw banked registers inaccessible.
9324 (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
9325 (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
9326 case for copying bytes back and forth between raw and pseudo
9327 versions of the banked registers. Update other cases to reflect
9328 the changed names.
9329 (rl78_return_value): Update to account for changed names of
9330 raw registers.
9331 (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
9332 rl78_register_sim_regno().
9333
e4569f1e
KB
93342012-02-14 Kevin Buettner <kevinb@redhat.com>
9335
9336 * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
9337 the name parameter being passed to find_pc_partial_function().
9338
7a05aae7
JK
93392012-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9340
9341 * MAINTAINERS: Step down from being ia64 target maintainer.
9342
11fde611
JK
93432012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
9344
9345 * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
9346 compilation warning.
9347
57008375
JK
93482012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
9349
9350 Fix crash on loaded shlibs without loaded exec_bfd.
9351 * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
9352 (set_section_command): Replace exec_bfd by p->bfd.
9353
ff3c9849
TT
93542012-02-10 Tom Tromey <tromey@redhat.com>
9355
9356 * linespec.c (decode_line_internal): Skip symtabs_from_filename
9357 when we have a C++ qualified name.
9358
db2b9fdd
PA
93592012-02-10 Pedro Alves <palves@redhat.com>
9360
9361 * inferior.c (inferior_pid_to_str): New.
9362 (print_inferior, inferior_command): Use it.
9363
12cd34f3
PA
93642012-02-10 Pedro Alves <palves@redhat.com>
9365
9366 * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
9367 the test CFLAGS.
9368 * configure: Regenerate.
9369
e871429d
JK
93702012-02-10 Jan Kratochvil <jan.kratochvil@redhat.com>
9371
9372 * linespec.c (decode_line_internal): Fix comment correctness.
9373
1916efaf
PA
93742012-02-09 Valery Khromov <valery.khromov@gmail.com>
9375
9376 PR gdb/12953
9377 * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
9378 * amd64bsd-nat.c: Add support for debug registers (adapted from
9379 i386bsd-nat.c).
9380 [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
9381 (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
9382 (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
9383 (amd64bsd_dr_get_control): New functions.
9384 * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
9385 * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
9386 [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
9387 watchpoints initialization.
9388 * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
9389
f4859d94
JK
93902012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9391
9392 * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
9393 flds_bnds.fields.
9394 (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
9395
c56a97f9
JK
93962012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9397
9398 * breakpoint.c (bp_location_compare): Fix comment. Reindent the code.
9399
1a119f36
JB
94002012-02-08 Joel Brobecker <brobecker@adacore.com>
9401
9402 * language.h (symbol_name_cmp_ftype): Renames
9403 symbol_name_match_p_ftype.
9404 (struct language_defn)[la_get_symbol_name_cmp]: Renames
9405 la_get_symbol_name_match_p.
9406 * ada-lang.c (ada_get_symbol_name_cmp): Renames
9407 ada_get_symbol_name_match_p. Update comment.
9408 (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
9409 * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
9410 Renames symbol_name_match_p. Update field type.
9411 (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
9412 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
9413 opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
9414 "la_get_symbol_name_cmp" in comments.
9415 * language.c: Likewise.
9416
c71bb1cf
RO
94172012-02-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9418
9419 * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
9420 %eflags offset.
9421 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
9422 (amd64_sol2_gregset32_reg_offs): Likewise.
9423
4b2d20a5
TG
94242012-02-08 Joel Brobecker <brobecker@adacore.com>
9425
9426 * solib-darwin.c (darwin_bfd_open): Make sure that the filename
9427 of the returned BFD is allocated by GDB.
9428
f0823d2c
TT
94292012-02-07 Tom Tromey <tromey@redhat.com>
9430
9431 PR python/12027:
9432 * python/python-internal.h (frame_object_type): Declare.
9433 * python/py-symbol.c (sympy_needs_frame): New function.
9434 (sympy_value): New function.
9435 (symbol_object_getset): Add "needs_frame".
9436 (symbol_object_methods): Add "value".
9437 * python/py-frame.c (frame_object_type): No longer static.
9438
64e7d9dd
TT
94392012-02-07 Tom Tromey <tromey@redhat.com>
9440
9441 PR python/13599:
9442 * python/py-symbol.c (sympy_line): New function.
9443 (symbol_object_getset): Add "line".
9444
1d6b2d2b
TT
94452012-02-07 Tom Tromey <tromey@redhat.com>
9446
9447 * charset.c (find_charset_names): Check 'in' against NULL.
9448
0d5cff50
DE
94492012-02-06 Doug Evans <dje@google.com>
9450
9451 * gdbtypes.h (struct main_type): Change type of name,tag_name,
9452 and fields.name members from char * to const char *. All uses updated.
9453 (struct cplus_struct_type): Change type of fn_fieldlists.name member
9454 from char * to const char *. All uses updated.
9455 (type_name_no_tag): Update.
9456 (lookup_unsigned_typename, lookup_signed_typename): Update.
9457 * gdbtypes.c (type_name_no_tag): Change result type
9458 from char * to const char *. All callers updated.
9459 (lookup_unsigned_typename, lookup_signed_typename): Change type of
9460 name parameter from char * to const char *.
9461 * symtab.h (struct cplus_specific): Change type of demangled_name
9462 member from char * to const char *. All uses updated.
9463 (struct general_symbol_info): Change type of name and
9464 mangled_lang.demangled_name members from char * to const char *.
9465 All uses updated.
9466 (symbol_get_demangled_name, symbol_natural_name): Update.
9467 (symbol_demangled_name, symbol_search_name): Update.
9468 * symtab.c (symbol_get_demangled_name): Change result type
9469 from char * to const char *. All callers updated.
9470 (symbol_natural_name, symbol_demangled_name): Ditto.
9471 (symbol_search_name): Ditto.
9472 (completion_list_add_name): Change type of symname,sym_text,
9473 text,word parameters from char * to const char *.
9474 (completion_list_objc_symbol): Change type of sym_text,
9475 text,word parameters from char * to const char *.
9476 * ada-lang.c (find_struct_field): Change type of name parameter
9477 from char * to const char *.
9478 (encoded_ordered_before): Similarly for N0,N1 parameters.
9479 (old_renaming_is_invisible): Similarly for function_name parameter.
9480 (ada_type_name): Change result type from char * to const char *.
9481 All callers updated.
9482 * ada-lang.h (ada_type_name): Update.
9483 * buildsym.c (hashname): Change type of name parameter
9484 from char * to const char *.
9485 * buildsym.h (hashname): Update.
9486 * dbxread.c (end_psymtab): Change type of include_list parameter
9487 from char ** to const char **.
9488 * dwarf2read.c (determine_prefix): Change result type
9489 from char * to const char *. All callers updated.
9490 * f-lang.c (find_common_for_function): Change type of name, funcname
9491 parameters from char * to const char *.
9492 * f-lang.c (find_common_for_function): Update.
9493 * f-valprint.c (list_all_visible_commons): Change type of funcname
9494 parameters from char * to const char *.
9495 * gdbarch.sh (static_transform_name): Change type of name parameter
9496 and result from char * to const char *.
9497 * gdbarch.c: Regenerate.
9498 * gdbarch.h: Regenerate.
9499 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
9500 of name parameter from char * to const char *.
9501 * jv-lang.c (java_primitive_type_from_name): Ditto.
9502 (java_demangled_signature_length): Similarly for signature parameter.
9503 (java_demangled_signature_copy): Ditto.
9504 (java_demangle_type_signature): Ditto.
9505 * jv-lang.h (java_primitive_type_from_name): Update.
9506 (java_demangle_type_signature): Update.
9507 * objc-lang.c (specialcmp): Change type of a,b parameters
9508 from char * to const char *.
9509 * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
9510 from char * to const char *. All callers updated.
9511 * p-lang.h (is_pascal_string_type): Update.
9512 * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
9513 of name parameter from char * to const char *.
9514 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
9515 * utils.c (fprintf_symbol_filtered): Ditto.
9516 * defs.h (fprintf_symbol_filtered): Update.
9517 * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
9518 * stabsread.h (end_psymtab): Update.
9519 * stack.c (find_frame_funname): Change type of funname parameter
9520 from char ** to const char **.
9521 * stack.h (find_frame_funname): Update.
9522 * typeprint.c (type_print): Change type of varstring parameter
9523 from char * to const char *.
9524 * value.h (type_print): Update.
9525 * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
9526 from char * to const char *. All callers updated.
9527 (xcoff_end_psymtab): Change type of include_list parameter
9528 from char ** to const char **. All callers updated.
9529 (swap_sym): Similarly for name parameter. All callers updated.
9530 * coffread.c (patch_type): Add (char*) cast to xfree parameter.
9531 Use xstrdup.
9532 (process_coff_symbol): Use xstrdup.
9533 * stabsread.c (stabs_method_name_from_physname): Renamed from
9534 update_method_name_from_physname. Change result type from void
9535 to char *. All callers updated.
9536 (read_member_functions): In has_destructor case, store name in objfile
9537 obstack instead of malloc space. In !has_stub case, fix mem leak.
9538
5579a92e
TT
95392012-02-06 Luca Pizzamiglio <luca.pizzamiglio@gmail.com>
9540
9541 * configure: Rebuild.
9542 * configure.ac: Put -L../bfd and -L../libiberty at the front of
9543 LDFLAGS.
9544
9058f767
KB
95452012-02-03 Kevin Buettner <kevinb@redhat.com>
9546
9547 * configure.tgt (rl78-*-elf): New target.
9548 * rl78-tdep.c: New file.
9549
5b37825d
PW
95502012-02-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9551
9552 * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
9553 and continue the loop. Add QUIT statement.
9554
e009ee71
TT
95552012-02-03 Tom Tromey <tromey@redhat.com>
9556
9557 PR gdb/13596:
9558 * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
9559 bfd_lookup_symbol_from_symtab.
9560 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
9561 gdb_bfd_lookup_symbol_from_symtab.
9562
f7e44f65
JB
95632012-02-03 Joel Brobecker <brobecker@adacore.com>
9564
9565 * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
9566 use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
9567 symbol. Add assertion that sym2 is never NULL.
9568
2c02bd72
DE
95692012-02-02 Doug Evans <dje@google.com>
9570
9571 * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
9572 "name" parameter to const char ** from char **. All callers updated.
9573 (find_pc_partial_function): Ditto.
9574 (cache_pc_function_name): Change type to const char * from char *.
9575 * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
9576 (find_pc_partial_function): Update.
9577 * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
9578 type of "name" parameter to const char * from char *.
9579 All uses updated.
9580 * arch-utils.c (generic_in_solib_return_trampoline): Change
9581 type of "name" parameter to const char * from char *.
9582 * arch-utils.h (generic_in_solib_return_trampoline): Update.
9583 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
9584 type of "name" parameter to const char * from char *.
9585 * gdbarch.sh (in_solib_return_trampoline): Ditto.
9586 * gdbarch.c: Regenerate.
9587 * gdbarch.h: Regenerate.
9588 * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
9589 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
9590 * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
9591 type of "name" parameter to const char * from char *.
9592 * skip.c (skip_function_pc): Ditto.
9593 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
9594 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
9595 * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
9596 * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
9597 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
9598 * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
9599 * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
9600 * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
9601 * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
9602
e886a173
PA
96032012-02-02 Pedro Alves <palves@redhat.com>
9604
9605 * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
9606 the current inferior has no execution. Make sure the current
9607 remote process matches gdb's current inferior.
9608
c709a7c2
TT
96092012-02-02 Tom Tromey <tromey@redhat.com>
9610
9611 PR gdb/13405:
9612 * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
9613 read-only memory.
9614
f149aabd
TT
96152012-02-02 Tom Tromey <tromey@redhat.com>
9616
9617 PR gdb/9307:
9618 * symtab.c (lookup_language_this): Set block_found.
9619
03bef283
TT
96202012-02-01 Tom Tromey <tromey@redhat.com>
9621
9622 PR gdb/13431:
9623 * jit.c (struct jit_inferior_data): Rewrite.
9624 (struct jit_objfile_data): New.
9625 (get_jit_objfile_data): New function.
9626 (add_objfile_entry): Update.
9627 (jit_read_descriptor): Return int. Replace descriptor_addr
9628 argument with inf_data. Update. Don't call error.
9629 (jit_breakpoint_re_set_internal): Reorder logic. Update. Look up
9630 descriptor here.
9631 (jit_inferior_init): Don't look up descriptor. Don't call error.
9632 (jit_reset_inferior_data_and_breakpoints)
9633 (jit_inferior_created_observer): Remove.
9634 (jit_inferior_exit_hook): Update.
9635 (jit_executable_changed_observer): Remove.
9636 (jit_event_handler): Update.
9637 (free_objfile_data): Reset inferior data if needed.
9638 (_initialize_jit): Update.
9639
f0bbc364
TT
96402012-02-01 Tom Tromey <tromey@redhat.com>
9641
9642 * jit.c (bfd_open_from_target_memory): Move higher in file.
9643
47c1316c
TG
96442012-02-01 Tristan Gingold <gingold@adacore.com>
9645
9646 * libunwind-frame.c (libunwind_load): Display message if dlopen
9647 failed.
9648
8e704927
GB
96492012-02-01 Gary Benson <gbenson@redhat.com>
9650
09c7a31f 9651 * symtab.h (symbol_found_callback_ftype): New typedef.
8e704927
GB
9652 (iterate_over_symbols): Use the above.
9653 * symtab.c (iterate_over_symbols): Likewise.
9654 * language.h (language_defn->la_iterate_over_symbols): Likewise.
9655 * ada-lang.c (ada_iterate_over_symbols): Likewise.
9656 * linespec.c (iterate_over_all_matching_symtabs): Likewise.
9657 (iterate_name_matcher): Document return values.
9658 (collect_one_symbol): Likewise.
9659 (collect_function_symbols): Likewise.
9660 (collect_symbols): Likewise.
9661
d9680e73
TT
96622012-02-01 Tom Tromey <tromey@redhat.com>
9663
9664 * ada-lang.c (resolve_subexp): Update.
9665 (ada_lookup_symbol_list): Add 'full_search' argument.
9666 (ada_iterate_over_symbols): Pass 0 as full_search argument to
9667 ada_lookup_symbol_list.
9668 (ada_lookup_encoded_symbol): Update.
9669 (get_var_value): Update.
9670 * ada-exp.y (block_lookup): Update.
9671 (write_var_or_type): Update.
9672 (write_name_assoc): Update.
9673 * ada-lang.h (ada_lookup_symbol_list): Update.
9674
72e1143f
TT
96752012-01-31 Tom Tromey <tromey@redhat.com>
9676
9677 * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
9678 comment.
9679
ab2d2ad3
DE
96802012-01-31 Doug Evans <dje@google.com>
9681
9682 * symtab.h: Remove outdated comment.
e9111bf7 9683 (SYMBOL_MATCHES_NATURAL_NAME): Delete.
ab2d2ad3 9684
bc884eba
JB
96852012-02-01 Josh Matthews <josh@joshmatthews.net> (tiny change)
9686
9687 Fix build error in Darwin port.
9688 * i386-darwin-nat.c: Include i386-nat.h.
9689
8fc3fc34
TT
96902012-01-30 Tom Tromey <tromey@redhat.com>
9691
9692 PR breakpoints/13568:
9693 * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
9694 argument. Check for recursive includes.
9695 (dwarf_decode_macros): Create an include hash.
9696
5d853008
ME
96972012-01-30 Michael Eager <eager@eagercon.com>
9698
9699 * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
9700 * ppc-linux-tdep.c: Include glibc-tdep.h.
ab2d2ad3 9701 (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
5d853008
ME
9702 (powerpc_linux_in_plt_stub): New function.
9703 (powerpc_linux_in_dynsym_resolve_code): New function.
9704 (ppc_skip_trampoline_code): New function.
9705 (ppc_linux_init_abi): Use PPC specific functions rather than generic.
9706 Use glibc_skip_solib_resolver.
9707
40478521
JK
97082012-01-28 Jan Kratochvil <jan.kratochvil@redhat.com>
9709
9710 Code cleanup: Make 1440 bytes of data segment read-only.
9711 * arch-utils.c (endian_enum): Make it const char *const [].
9712 * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
9713 Likewise.
9714 * breakpoint.c (always_inserted_enums): Likewise.
9715 * cli/cli-cmds.c (script_ext_enums): Likewise.
9716 * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
9717 enumlist parameter const char *const *.
9718 * cli/cli-decode.h (struct cmd_list_element): Make the enums field
9719 const char *const *.
9720 * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
9721 parameter const char *const *.
9722 * cris-tdep.c (cris_modes): Make it const char *const [].
9723 * filesystem.c (target_file_system_kinds): Likewise.
9724 * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
9725 * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
9726 (can_use_displaced_stepping_enum, scheduler_enums)
9727 (exec_direction_names): Likewise.
9728 * language.c (_initialize_language): Make the type_or_range_names and
9729 case_sensitive_names variables const char *const [].
9730 * mips-tdep.c (mips_abi_strings): Make it const char *const [].
9731 * python/python.c (python_excp_enums): Likewise.
9732 * remote.c (interrupt_sequence_modes): Likewise.
9733 * rs6000-tdep.c (powerpc_vector_strings): Likewise.
9734 * serial.c (logbase_enums): Likewise.
9735 * sh-tdep.c (sh_cc_enum): Likewise.
9736 * stack.c (print_frame_arguments_choices, print_entry_values_choices):
9737 Likewise.
9738 * symtab.c (multiple_symbols_modes): Likewise.
9739 * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
9740 Likewise.
9741 * utils.c (internal_problem_modes): Likewise.
9742
b3b8b934
JK
97432012-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
9744
9745 Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
9746 * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
9747 result.
9748
8c85a4e2
DE
97492012-01-27 Doug Evans <dje@google.com>
9750
9751 * configure.ac (with_python): Fix absolute path handling for win32.
9752 * configure: Regenerate.
9753
78d8b4d7
DE
97542012-01-26 Doug Evans <dje@google.com>
9755
eca864fe
DE
9756 * symtab.c: Whitespace cleanup, no code changes.
9757
7e082072
DE
9758 * symtab.c (lookup_symbol_in_language): Improve comment.
9759 (lookup_symbol_aux): Fix comment.
9760
7dc25483
DE
9761 * psymtab.c (add_psymbol_to_list): Result is now "void".
9762 * psympriv.h (add_psymbol_to_list): Update.
9763
78d8b4d7
DE
9764 * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
9765
4c63965b
JK
97662012-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
9767
9768 Do not open script filenames twice.
9769 * cli/cli-cmds.c (source_script_from_stream): Pass to
9770 source_python_script also STREAM.
9771 * python/py-auto-load.c (source_section_scripts): Pass to
9772 source_python_script_for_objfile also STREAM.
9773 (auto_load_objfile_script): Pass to source_python_script_for_objfile
9774 also INPUT.
9775 * python/python-internal.h (source_python_script_for_objfile): New
9776 parameter file, rename parameter file to filename.
9777 * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
9778 instead if !_WIN32. Update the function comment.
9779 (source_python_script, source_python_script_for_objfile)
9780 (source_python_script): New parameter file, rename parameter file to
9781 filename. Pass FILENAME to python_run_simple_file.
9782 * python/python.h (source_python_script): New parameter file, rename
9783 parameter file to filename.
9784
88f38a04
PA
97852012-01-26 Pedro Alves <palves@redhat.com>
9786
9787 * corelow.c (core_has_fake_pid): Delete.
9788 (core_close): Delete references to `core_has_fake_pid'.
9789 (add_to_thread_list): Adjust to mark the inferior's pid as fake.
9790 (core_open): Delete references to `core_has_fake_pid'.
9791 (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
9792 the removed global.
9793
e078317b
JB
97942012-01-26 Joel Brobecker <brobecker@adacore.com>
9795
9796 * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
9797 Remove language parameter from name_matcher. Adjust the comment.
9798 * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
9799 Remove language parameter.
9800 * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
9801 * linespec.c (iterate_name_matcher): Likewise.
9802 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
9803 name_matcher. Adjust call accordingly.
9804 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
9805 (maintenance_check_symtabs): Adjust type of parameter "fun".
9806 * psymtab.h (maintenance_check_symtabs): Likewise.
9807
74ccd7f5
JB
98082012-01-26 Joel Brobecker <brobecker@adacore.com>
9809
9810 * language.h (symbol_name_match_p_ftype): New typedef.
9811 (struct language_defn): Replace field la_symbol_name_compare
9812 by la_get_symbol_name_match_p.
9813 * ada-lang.c (ada_get_symbol_name_match_p): New function.
9814 (ada_language_defn): Use it.
9815 * linespec.c (struct symbol_matcher_data): New type.
9816 (iterate_name_matcher): Rewrite.
9817 (iterate_over_all_matching_symtabs): Pass a pointer to
9818 a symbol_matcher_data struct to expand_symtabs_matching
9819 instead of just the lookup name.
9820 * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
9821 opencl-lang.c, p-lang.c, language.c: Delete field
9822 la_symbol_name_compare, and replace by NULL for new field
9823 la_get_symbol_name_match_p.
9824 * symfile.h (struct quick_symbol_functions): Update comment.
9825
5d268276
TT
98262012-01-25 Tom Tromey <tromey@redhat.com>
9827
9828 * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
9829 dereferencing.
9830
edcc5120
TT
98312012-01-24 Tom Tromey <tromey@redhat.com>
9832
9833 PR symtab/12406:
9834 * solib.c (update_solib_list): Update the program space's
9835 added_solibs and deleted_solibs fields.
9836 * progspace.h (struct program_space) <added_solibs,
9837 deleted_solibs>: New fields.
9838 (clear_program_space_solib_cache): Declare.
9839 * progspace.c (release_program_space): Call
9840 clear_program_space_solib_cache.
9841 (clear_program_space_solib_cache): New function.
9842 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
9843 bpstat_stop_status. Use handle_solib_event.
9844 * breakpoint.c: Include gdb_regex.h.
9845 (print_solib_event): New function.
9846 (bpstat_print): Use print_solib_event.
9847 (bpstat_stop_status): Add special case for bp_shlib_event.
9848 (handle_solib_event): New function.
9849 (bpstat_what): Use handle_solib_event.
9850 (struct solib_catchpoint): New.
9851 (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
9852 (breakpoint_hit_catch_solib, check_status_catch_solib)
9853 (print_it_catch_solib, print_one_catch_solib)
9854 (print_mention_catch_solib, print_recreate_catch_solib): New
9855 functions.
9856 (catch_solib_breakpoint_ops): New global.
9857 (catch_load_or_unload, catch_load_command_1)
9858 (catch_unload_command_1): New functions.
9859 (internal_bkpt_check_status): Add special case for
9860 bp_shlib_event.
9861 (internal_bkpt_print_it): Use print_solib_event.
9862 (initialize_breakpoint_ops): Initialize
9863 catch_solib_breakpoint_ops.
9864 (_initialize_breakpoint): Register "catch load" and "catch
9865 unload".
9866 * breakpoint.h (handle_solib_event): Declare.
9867 * NEWS: Add entry for "catch load" and "catch unload".
9868
fa864999
TT
98692012-01-24 Tom Tromey <tromey@redhat.com>
9870
9871 * ada-lang.c: Include gdb_vecs.h.
9872 * charset.c: Include gdb_vecs.h.
9873 * tracepoint.h: Include gdb_vecs.h.
9874 * gdb_vecs.h: New file.
9875
f90263c1
TT
98762012-01-24 Pedro Alves <pedro@codesourcery.com>
9877
9878 * breakpoint.c (breakpoint_hit_catch_fork)
9879 (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
9880 (breakpoint_hit_catch_exec): Make use of the `ws' argument.
9881 * infrun.c (inferior_has_forked, inferior_has_vforked)
9882 (inferior_has_execd, inferior_has_called_syscall): Delete.
9883 (handle_syscall_event): Get syscall_number from the execution
9884 control state's wait status.
9885 (wait_for_inferior): Don't clear syscall_number.
9886
09ac7c10
TT
98872012-01-24 Pedro Alves <palves@redhat.com>
9888
9889 * breakpoint.c (bpstat_check_location, bpstat_stop_status,
9890 pc_at_non_inline_function): Add `ws' parameter, and pass it down.
9891 (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
9892 (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
9893 `ws' parameter.
9894 (breakpoint_hit_ranged_breakpoint): Add `ws' parameter. Return
9895 false for events other than TARGET_SIGNAL_TRAP.
9896 (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
9897 Add `ws' parameter.
9898 (bkpt_breakpoint_hit): Add `ws' parameter. Return false for
9899 events other than TARGET_SIGNAL_TRAP.
9900 (tracepoint_breakpoint_hit): Add `ws' parameter.
9901 * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
9902 parameter.
9903 (bpstat_stop_status): Same.
9904 (pc_at_non_inline_function): Same.
9905 * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
9906 to pass the current event's waitstatus to bpstat_stop_status
9907 and pc_at_non_inline_function.
9908
86eb7e95
JK
99092012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
9910
9911 Code cleanup.
9912 * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
9913 Update the function comment for it.
9914 (source_script_with_search): Call make_cleanup_fclose for STREAM.
9915 * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
9916 for STREAM.
9917
a9b3a50f
PA
99182012-01-24 Pedro Alves <palves@redhat.com>
9919
9920 * breakpoint.c (bpstat_stop_status): Moving clearing print_it
9921 outside `bs->stop' block.
9922 (bpstat_what): Rework bp_shlib_event handling.
9923 (internal_bkpt_check_status): If the breakpoint is a
9924 bp_shlib_event, then set bs->stop and bs->print if
9925 stop_on_solib_events is set.
9926
53fe1783
GB
99272012-01-24 Gary Benson <gbenson@redhat.com>
9928
9929 Delete #if 0'd out code.
9930 * stack.c (print_frame_label_vars): Remove.
9931 (catch_info): Likewise.
9932 (_initialize_stack): Remove "info catch" command.
9933 * NEWS: Mention the above.
9934
49c62f2e
PA
99352012-01-24 Pedro Alves <palves@redhat.com>
9936
9937 * remote.c (remote_add_inferior): New `fake_pid_p' parameter. Use
9938 it.
9939 (remote_notice_new_inferior): If the remote end doesn't support
9940 the multiprocess extensions, then the PID is fake.
9941 (add_current_inferior_and_thread): New.
9942 (remote_start_remote): Use it.
9943 (extended_remote_attach_1): Adjust.
9944 (extended_remote_create_inferior_1): Use
9945 add_current_inferior_and_thread.
9946
d0d8b0c6
JK
99472012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
9948
9949 Fix watchpoints to be specific for each inferior.
9950 * breakpoint.c (watchpoint_in_thread_scope): Verify also
9951 current_program_space.
9952 * i386-nat.c (i386_inferior_data_cleanup): New.
9953 (i386_inferior_data_get): Replace variable inf_data_local by an
9954 inferior_data call.
9955 (i386_use_watchpoints): Initialize i386_inferior_data.
9956 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
9957 specific iterate_over_lwps.
9958
4403d8e9
JK
99592012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
9960
9961 Fix watchpoints across inferior fork.
9962 * amd64-linux-nat.c (update_debug_registers_callback): Update the
9963 comment for linux_nat_iterate_watchpoint_lwps.
9964 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
9965 linux_nat_iterate_watchpoint_lwps.
9966 (amd64_linux_prepare_to_resume): New comment on Linux kernel.
9967 * i386-linux-nat.c (update_debug_registers_callback): Update the
9968 comment for linux_nat_iterate_watchpoint_lwps.
9969 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
9970 linux_nat_iterate_watchpoint_lwps.
9971 (i386_linux_prepare_to_resume): New comment on Linux kernel.
9972 * i386-nat.c: Include inferior.h.
9973 (dr_mirror): Remove.
9974 (i386_inferior_data, struct i386_inferior_data)
9975 (i386_inferior_data_get): New.
9976 (i386_debug_reg_state): Use i386_inferior_data_get.
9977 (i386_cleanup_dregs, i386_update_inferior_debug_regs)
9978 (i386_insert_watchpoint, i386_remove_watchpoint)
9979 (i386_stopped_data_address, i386_insert_hw_breakpoint)
9980 (i386_remove_hw_breakpoint): New variable state, use
9981 i386_debug_reg_state instead of DR_MIRROR.
9982 * linux-nat.c (delete_lwp): New declaration.
9983 (num_lwps): Move here from downwards.
9984 (delete_lwp_cleanup): New.
9985 (linux_child_follow_fork): Create new child_lp, call
9986 linux_nat_new_thread and linux_nat_prepare_to_resume before calling
9987 PTRACE_DETACH.
9988 (num_lwps): Move upwards.
9989 (linux_nat_iterate_watchpoint_lwps): New.
9990 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
9991 (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
9992
2992c9a7 99932012-01-24 Joel Brobecker <brobecker@adacore.com>
9994
9995 GDB 7.4 released.
9996
e360902b
PA
99972012-01-23 Pedro Alves <palves@redhat.com>
9998
9999 * top.c (caution): Rename to ...
10000 (confirm): ... this.
10001 (show_caution): Rename to ...
10002 (show_confirm): ... this.
10003 (quit_cover): Adjust.
10004 (init_main): Adjust.
10005 * top.h (caution): Rename to ...
10006 (confirm): ... this.
10007 * utils.c (internal_vproblem, defaulted_query): Adjust.
10008
050a2e1d
PA
100092012-01-23 Pedro Alves <palves@redhat.com>
10010
10011 * top.c (caution): Update comment.
10012 (execute_command): Don't consider the current value of `caution'.
10013
77a35dd8
JK
100142012-01-23 Jan Kratochvil <jan.kratochvil@redhat.com>
10015
10016 * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
10017
a71b5a38
UW
100182012-01-23 Ulrich Weigand <ulrich.weigand@linaro.org>
10019
10020 * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
10021 * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
10022 * target.c (target_fileio_pwrite): Remove buffer address from
10023 debug output.
10024 (target_fileio_pread): Likewise.
10025
d99bd577
UW
100262012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10027
10028 * NEWS: Document remote "info proc" and "generate-core-file".
10029
35c2fab7
UW
100302012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10031
10032 * gdbarch.sh (find_memory_regions): New callback.
10033 * gdbarch.c, gdbarch.h: Regenerate.
10034
10035 * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
10036 callback before falling back to target method.
10037
10038 * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
10039 (linux_target_install_ops): No longer install it.
10040
10041 * linux-tdep.c (linux_find_memory_regions): New function.
10042 (linux_init_abi): Install it.
10043
6432734d
UW
100442012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10045
10046 * gdbarch.sh (make_corefile_notes): New architecture callback.
10047 * gdbarch.c: Regenerate.
10048 * gdbarch.h: Likewise.
10049
10050 * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
10051 before target_make_corefile_notes. If NULL is returned, the
10052 target does not support core file generation.
10053
10054 * linux-nat.c: Include "linux-tdep.h".
10055 (find_signalled_thread, find_stop_signal): Remove.
10056 (linux_nat_do_thread_registers): Likewise.
10057 (struct linux_nat_corefile_thread_data): Likewise.
10058 (linux_nat_corefile_thread_callback): Likewise.
10059 (iterate_over_spus): Likewise.
10060 (struct linux_spu_corefile_data): Likewise.
10061 (linux_spu_corefile_callback): Likewise.
10062 (linux_spu_make_corefile_notes): Likewise.
10063 (linux_nat_collect_thread_registers): New function.
10064 (linux_nat_make_corefile_notes): Replace contents by call to
10065 linux_make_corefile_notes passing linux_nat_collect_thread_registers
10066 as native-only callback.
10067
10068 * linux-tdep.h: Include "bfd.h".
10069 (struct regcache): Add forward declaration.
10070 (linux_collect_thread_registers_ftype): New typedef.
10071 (linux_make_corefile_notes): Add prototype.
10072 * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
10073 "regset.h", and "elf-bfd.h".
10074 (find_signalled_thread, find_stop_signal): New functions.
10075 (linux_spu_make_corefile_notes): Likewise.
10076 (linux_collect_thread_registers): Likewise.
10077 (struct linux_corefile_thread_data): New data structure.
10078 (linux_corefile_thread_callback): New funcion.
10079 (linux_make_corefile_notes): Likewise.
10080 (linux_make_corefile_notes_1): Likewise.
10081 (linux_init_abi): Install it.
10082
3030c96e
UW
100832012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10084
10085 * gdbarch.sh (info_proc): New callback.
10086 * gdbarch.c, gdbarch.h: Regenerate.
10087
10088 * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
10089 before falling back to the target info_proc callback.
10090
10091 * linux-nat.c: Do not include "cli/cli-utils.h".
10092 (linux_nat_info_proc): Remove.
10093 (linux_target_install_ops): No longer install it.
10094
10095 * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
10096 (read_mapping): New function.
10097 (linux_info_proc): Likewise.
10098 (linux_init_abi): Install it.
10099
145b16a9
UW
101002012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10101
10102 * defs.h (enum info_proc_what): Moved here from linux-nat.c
10103 * infcmd.c: (info_proc_cmd_1): New function.
10104 (info_proc_cmd): New function, moved here from equivalent routine
10105 orignally in linux-nat.c.
10106 (info_proc_cmd_mappings): Likewise.
10107 (info_proc_cmd_stat): Likewise.
10108 (info_proc_cmd_status): Likewise.
10109 (info_proc_cmd_cwd): Likewise.
10110 (info_proc_cmd_cmdline): Likewise.
10111 (info_proc_cmd_exe): Likewise.
10112 (info_proc_cmd_all): Likewise.
10113 (_initialize_infcmd): Install "info proc" command and subcommands.
10114
10115 * target.h (struct target_ops): Add to_info_proc.
10116 (target_info_proc): Add prototype.
10117 * target.c (target_info_proc): New function.
10118
10119 * procfs.c (procfs_info_proc): Add prototype.
10120 (info_proc_cmd): Rename into ...
10121 (procfs_info_proc): ... this. Update argument types as appropriate
10122 for a to_info_proc implementation. Handle "what" argument.
10123 (procfs_target): Install procfs_info_proc.
10124 (_initialize_procfs): No longer install "info proc" command.
10125
10126 * linux-nat.c: (enum info_proc_what): Remove.
10127 (linux_nat_info_proc_cmd_1): Rename into ...
10128 (linux_nat_info_proc): ... this. Update argument types as appropriate
10129 for a to_info_proc implementation.
10130 (linux_nat_info_proc_cmd): Remove.
10131 (linux_nat_info_proc_cmd_mappings): Likewise.
10132 (linux_nat_info_proc_cmd_stat): Likewise.
10133 (linux_nat_info_proc_cmd_status): Likewise.
10134 (linux_nat_info_proc_cmd_cwd): Likewise.
10135 (linux_nat_info_proc_cmd_cmdline): Likewise.
10136 (linux_nat_info_proc_cmd_exe): Likewise.
10137 (linux_nat_info_proc_cmd_all): Likewise.
10138 (linux_target_install_ops): Install linux_nat_info_proc.
10139 (_initialize_linux_nat): No longer install "info proc" command
10140 and subcommands.
10141
b9e7b9c3
UW
101422012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10143
10144 * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
10145 * config.in, configure: Regenerate.
10146
10147 * target.h (struct target_ops): Add to_fileio_readlink.
10148 (target_fileio_readlink): Add prototype.
10149 * target.c (target_fileio_readlink): New function.
10150
10151 * inf-child.c: Conditionally include <sys/param.h>.
10152 (inf_child_fileio_readlink): New function.
10153 (inf_child_target): Install it.
10154
10155 * remote.c (PACKET_vFile_readlink): New enum value.
10156 (remote_hostio_readlink): New function.
10157 (init_remote_ops): Install it.
10158 (_initialize_remote): Handle vFile:readlink packet type.
10159
7313baad
UW
101602012-01-20 Pedro Alves <palves@redhat.com>
10161 Ulrich Weigand <ulrich.weigand@linaro.org>
10162
10163 * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
10164 * config.in, configure: Regenerate.
10165
10166 * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
10167 to_fileio_pread, to_fileio_close, to_fileio_unlink.
10168 (target_fileio_open): Add prototype.
10169 (target_fileio_pwrite): Likewise.
10170 (target_fileio_pread): Likewise.
10171 (target_fileio_close): Likewise.
10172 (target_fileio_unlink): Likewise.
10173 (target_fileio_read_alloc): Likewise.
10174 (target_fileio_read_stralloc): Likewise.
10175
10176 * target.c: Include "gdb/fileio.h".
10177 (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
10178 (default_fileio_target): New function.
10179 (target_fileio_open): Likewise.
10180 (target_fileio_pwrite): Likewise.
10181 (target_fileio_pread): Likewise.
10182 (target_fileio_close): Likewise.
10183 (target_fileio_unlink): Likewise.
10184 (target_fileio_close_cleanup): Likewise.
10185 (target_fileio_read_alloc_1): Likewise.
10186 (target_fileio_read_alloc): Likewise.
10187 (target_fileio_read_stralloc): Likewise.
10188
10189 * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
10190 <fcntl.h>, and <unistd.h>.
10191 (inf_child_fileio_open_flags_to_host): New function.
10192 (inf_child_errno_to_fileio_error): Likewise.
10193 (inf_child_fileio_open): Likewise.
10194 (inf_child_fileio_pwrite): Likewise.
10195 (inf_child_fileio_pread): Likewise.
10196 (inf_child_fileio_close): Likewise.
10197 (inf_child_fileio_unlink): Likewise.
10198 (inf_child_target): Install to_fileio routines.
10199
10200 * remote.c (init_remote_ops): Install to_fileio routines.
10201
901f9912
UW
102022012-01-20 Pedro Alves <palves@redhat.com>
10203 Ulrich Weigand <ulrich.weigand@linaro.org>
10204
10205 * remote.c (remote_multi_process_p): Only check for multi-process
10206 protocol feature, do not check for extended protocol.
10207 (remote_supports_multi_process): Check for extended protocol here.
10208 (set_general_process): Likewise.
10209 (extended_remote_kill): Likewise.
10210 (remote_pid_to_str): Likewise.
10211 (remote_query_supported): Always query multiprocess mode.
10212
e714e1bf
UW
102132012-01-20 Pedro Alves <palves@redhat.com>
10214 Ulrich Weigand <ulrich.weigand@linaro.org>
10215
10216 * inferior.h (struct inferior): Add fake_pid_p.
10217 * inferior.c (exit_inferior_1): Clear fake_pid_p.
10218 * remote.c (remote_start_remote): Set fake_pid_p if we have to use
10219 magic_null_ptid since the remote side doesn't provide a real PID.
10220
50897289
TT
102212012-01-19 Tom Tromey <tromey@redhat.com>
10222
10223 * NEWS: Combine the two Python sections.
10224
1afc2033
JK
102252012-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
10226
10227 * target.h (target_close): Update comment on the target's unpush state.
10228
305436e0
PA
102292012-01-19 Pedro Alves <palves@redhat.com>
10230
10231 * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
10232 linux_nat_async directly instead of going through the target
10233 vector.
10234 * target.c (unpush_target): Close target after unpushing it, not
10235 before.
10236
49323895
GB
102372012-01-19 Gary Benson <gbenson@redhat.com>
10238
10239 * mdebugread.c (sort_blocks): Replace integer constants with ones
10240 derived from FIRST_LOCAL_BLOCK.
10241
1db33378
PP
102422012-01-18 Paul Pluzhnikov <ppluzhnikov@google.com>
10243 Jan Kratochvil <jan.kratochvil@redhat.com>
10244
10245 PR gdb/9538
10246 * symfile.c (find_separate_debug_file): New function.
10247 (terminate_after_last_dir_separator): Likewise.
10248 (find_separate_debug_file_by_debuglink): Also try realpath.
10249 * configure.ac (AC_CHECK_FUNCS): Add lstat.
10250 * configure: Regenerate.
10251 * config.in: Regenerate.
10252
f83d8a90
DE
102532012-01-18 Doug Evans <dje@google.com>
10254
10255 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
10256 (main.o): Remove rule.
10257 * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
10258 (--with-sysroot): Rewrite.
10259 * configure: Regenerate.
10260 * config.in: Regenerate.
10261
2dbca4d6
SDJ
102622012-01-18 Sergio Durigan Junior <sergiodj@redhat.com>
10263
10264 * parse.c (initialize_expout): New function.
10265 (reallocate_expout): Likewise.
10266 (parse_exp_in_context): Use `initialize_expout' and
10267 `reallocate_expout' when appropriate.
10268
0695b514
PA
102692012-01-18 Pedro Alves <palves@redhat.com>
10270
10271 * record.c (struct record_breakpoint, record_breakpoint_p)
10272 (record_breakpoints): New.
10273 (record_insert_breakpoint, record_remove_breakpoint): Manage
10274 record breakpoints list. Only remove breakpoints from the
10275 inferior if they had been inserted there in the first place.
10276
136e1c30
DE
102772012-01-17 Doug Evans <dje@google.com>
10278
10279 * linespec.c (decode_line_internal): Don't call symtabs_from_filename
10280 if we know we don't have a file name to look for.
10281
c0bf857d
PA
102822012-01-17 Pedro Alves <palves@redhat.com>
10283
10284 * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
10285 the frame's stop reason is UNWIND_UNAVAILABLE.
10286
b486de60
JK
102872012-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
10288
10289 Fix compilation error.
10290 * m2-exp.y (yyerror): Use ANSI C prototype.
10291
d04550a6
SDJ
102922012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
10293
10294 * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
10295 (growbuf_by_size): Likewise.
10296 (yyerror): Likewise.
10297 * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
10298 (modblock): Remove variable (was #if 0'ed).
10299 (parse_number): Convert prototype from K&R to ANSI C.
10300 (yyerror): Likewise.
10301 * objc-exp.y (parse_number): Likewise.
10302 (yyerror): Likewise.
10303 (yylex): Remove #if 0'ed code.
10304 * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
10305 (yyerror): Likewise.
10306
4aac40c8
TT
103072012-01-16 Tom Tromey <tromey@redhat.com>
10308
10309 * NEWS: Add item.
10310 * symtab.h (compare_filenames_for_search): Declare.
10311 * symtab.c (compare_filenames_for_search): New function.
10312 (iterate_over_some_symtabs): Use it.
10313 * symfile.h (struct quick_symbol_functions)
10314 <map_symtabs_matching_filename>: Change spec.
10315 * psymtab.c (partial_map_symtabs_matching_filename): Use
10316 compare_filenames_for_search. Update for new spec.
10317 * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
10318 compare_filenames_for_search. Update for new spec.
10319 * breakpoint.c (clear_command): Use compare_filenames_for_search.
10320
cafec441
TT
103212012-01-16 Tom Tromey <tromey@redhat.com>
10322
10323 PR python/13281:
10324 * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
10325 (struct main_type) <flag_flag_enum>: New field.
10326 * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
10327 * NEWS: Add entries.
10328 * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
10329 enums.
10330 * python/lib/gdb/printing.py (_EnumInstance): New class.
10331 (FlagEnumerationPrinter): Likewise.
10332
983af33b
SDJ
103332012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
10334
10335 * breakpoint.c (create_sals_from_address_default): New function.
10336 (create_breakpoints_sal_default): Likewise.
10337 (decode_linespec_default): Likewise.
10338 (is_marker_spec): Removed.
10339 (strace_marker_p): New function.
10340 (init_breakpoint_sal): Using `strace_marker_p' instead of
10341 `is_marker_spec'.
10342 (create_breakpoint): Call method `create_sals_from_address' from
10343 breakpoint_ops, replacing code that created SALs conditionally
10344 on the type of the breakpoint. Call method `create_breakpoints_sal',
10345 replacing code that created breakpoints conditionally on the type
10346 wanted.
10347 (base_breakpoint_create_sals_from_address): New function.
10348 (base_breakpoint_create_breakpoints_sal): Likewise.
10349 (base_breakpoint_decode_linespec): Likewise.
10350 (base_breakpoint_ops): Add methods
10351 `base_breakpoint_create_sals_from_address',
10352 `base_breakpoint_create_breakpoints_sal' and
10353 `base_breakpoint_decode_linespec'.
10354 (bkpt_create_sals_from_address): New function.
10355 (bkpt_create_breakpoints_sal): Likewise.
10356 (bkpt_decode_linespec): Likewise.
10357 (tracepoint_create_sals_from_address): Likewise.
10358 (tracepoint_create_breakpoints_sal): Likewise.
10359 (tracepoint_decode_linespec): Likewise.
10360 (strace_marker_create_sals_from_address): Likewise.
10361 (strace_marker_create_breakpoints_sal): Likewise.
10362 (strace_marker_decode_linespec): Likewise.
10363 (strace_marker_breakpoint_ops): New variable.
10364 (addr_string_to_sals): Remove `marker_spec'. Call method
10365 `decode_linespec' from breakpoint_ops, replacing code that decoded
10366 an address string into a SAL. Use `strace_marker_p' instead of
10367 `marker_spec'.
10368 (strace_command): Decide whether we are dealing with a static
10369 tracepoint with marker or not. Use the appropriate breakpoint_ops.
10370 (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
10371 * breakpoint.h (linespec_result, linespec_sals): New forward
10372 declarations.
10373 (breakpoint_ops) <create_sals_from_address>,
10374 <create_breakpoints_sal>, <decode_linespec>: New methods.
10375
4795f398
DE
103762012-01-14 Doug Evans <dje@google.com>
10377
10378 * NEWS: Update text for "maint set python print-stack".
10379 It is deprecated in gdb 7.4 and deleted in 7.5.
10380
ee5106fe
EZ
103812012-01-13 Eli Zaretskii <eliz@gnu.org>
10382
10383 * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
10384 including curses.h.
10385
b161e06f
JK
103862012-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
10387
10388 * configure: Regenerate.
10389 * config.in: Regenerate.
10390
85254831
KS
103912012-01-12 Keith Seitz <keiths@redhat.com>
10392
10393 PR mi/10586
10394 * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
10395 (ANONYMOUS_UNION_NAME): Define.
10396 (is_path_expr_parent): New function.
10397 (get_path_expr_parent): New function.
10398 (is_anonymous_child): New function.
10399 (create_child_with_value): If the child is anonymous and without
10400 a name, assign an object name to it.
10401 (c_describe_child): Use get_path_expr_parent to determine
10402 the parent expression.
10403 If there field represents an anonymous struct or union and
10404 has no name, set an appropriate display name and expression.
10405 (cplus_describe_child): Likewise.
10406
620fa63a
PA
104072012-01-12 Pedro Alves <palves@redhat.com>
10408
10409 * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
10410 available when %ebp is found to be zero (outermost).
10411
2efa2c79
AT
104122012-01-11 Andreas Tobler <andreast@fgznet.ch>
10413
10414 * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
10415 an internal gdb_static_assert.
10416 * mi/mi-common.c: Rename static_assert to gdb_static_assert.
10417
88e7d25d
TT
104182012-01-11 Tom Tromey <tromey@redhat.com>
10419
10420 PR gdb/9598:
10421 * breakpoint.c (_initialize_breakpoint): Fix help for "catch
10422 catch" and "catch throw".
10423
72384ba3
PH
104242012-01-11 Paul Hilfinger <hilfingr@adacore.com>
10425
10426 * blockframe.c (block_innermost_frame): Start search from selected
10427 frame, if present, or otherwise the current frame.
10428
10429 * c-exp.y (variable): Update innermost_block for
10430 'block COLONCOLON NAME' clause.
10431 * m2-exp.y (variable): Ditto.
10432 * objc-exp.y (variable): Ditto.
10433
065a711f
TT
104342012-01-10 Tom Tromey <tromey@redhat.com>
10435
10436 PR python/13199:
10437 * python/python.c (finish_python_initialization): Set sys.argv.
10438
f3f5162e
DE
104392012-01-10 Doug Evans <dje@google.com>
10440
10441 * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd". New arg
10442 "want_line_info". All callers updated.
10443 (dwarf_decode_lines_1): New function.
10444 (handle_DW_AT_stmt_list): Add function comment.
10445 New arg "want_line_info". All callers updated.
10446 (read_file_scope,read_type_unit_scope): Move comment from
10447 handle_DW_AT_stmt_list to here.
10448
9934703b
JK
104492012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10450
10451 Fix regression after libiberty/ update for GCC PR 6057 and others.
10452 * c-exp.y (operator) <OPERATOR DELETE>
10453 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
10454 * cp-name-parser.y (fill_comp, make_operator, make_dtor)
10455 (make_builtin_type, make_name): New variable i, add gdb_assert.
10456 (operator) <OPERATOR NEW>: Update ARGS to 3.
10457 (operator) <OPERATOR DELETE>: Add trailing space.
10458 (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
10459 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
10460 * cp-support.c (cp_canonicalize_string): Check NULL from
10461 cp_comp_to_string, call warning and return.
10462
06b9f45f
JK
104632012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10464
10465 Fix duplicate .o files after omitting libbfd.a.
10466 * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
10467 (SFILES): Add corelow.c.
10468 (COMMON_OBS): Add corelow.o.
10469 (ALLDEPFILES): Remove corelow.c.
10470 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
10471 * config/alpha/alpha-osf3.mh: Likewise.
10472 * config/alpha/fbsd.mh: Likewise.
10473 * config/arm/nbsdaout.mh: Likewise.
10474 * config/arm/nbsdelf.mh: Likewise.
10475 * config/i386/i386gnu.mh: Likewise.
10476 * config/ia64/hpux.mh: Likewise.
10477 * config/ia64/linux.mh: Likewise.
10478 * config/m32r/linux.mh: Likewise.
10479 * config/m68k/linux.mh: Likewise.
10480 * config/mips/irix5.mh: Likewise.
10481 * config/mips/irix6.mh: Likewise.
10482 * config/pa/hpux.mh: Likewise.
10483 * config/pa/linux.mh: Likewise.
10484 * config/powerpc/aix.mh: Likewise.
10485 * config/sparc/linux.mh: Likewise.
10486 * config/sparc/linux64.mh: Likewise.
10487 * config/sparc/sol2.mh: Likewise.
10488 * config/vax/vax.mh: Likewise.
10489 * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
10490 (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
10491 (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
10492 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
10493 (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
10494 (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
10495 (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
10496 (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
10497 (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
10498 (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
10499 (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
10500 (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
10501 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
10502 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
10503 (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
10504 (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
10505 (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
10506 (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
10507 (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
10508 (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
10509 (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
10510 (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
10511 corelow.o from gdb_target_obs.
10512 * corefile.c (core_target): Update the comment on NULL value.
10513 (core_file_command): Replace error by gdb_assert on CORE_TARGET.
10514 * corelow.c (sniff_core_bfd): Call error instead of warning on zero
10515 MATCHES. Drop YUMMY set on NULL.
10516 (core_close): Do not call exit_inferior_silent on zero PID. Do not
10517 reclaim CORE_DATA if it is already NULL.
10518
34365054
DE
105192012-01-09 Doug Evans <dje@google.com>
10520
10521 * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
10522 * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
10523
696166a3
KS
105242012-01-09 Keith Seitz <keiths@redhat.com>
10525
10526 * breakpoint.c (wrapper.h): Don't include.
10527
8e7b59a5
KS
105282012-01-09 Keith Seitz <keiths@redhat.com>
10529
10530 * Makefile.in (SFILES): Remove wrapper.c.
10531 (HFILES_NO_SRCDIR): Remove wrapper.h.
10532 (COMMON_OBS): Remove wrapper.o.
10533 * cli/cli-interp.c: Don't inlude wrapper.h.
10534 * corelow.c: Likewise.
10535 (core_open): Replace gdb_target_find_new_threads with
10536 TRY_CATCH around target_find_new_threads.
10537 * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
10538 * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
10539 * varobj.c (varobj_create): Likewise for parse_exp_1 and
10540 evaluate_expression.
10541 (varobj_set_value): Likewise for evaluate_expression and
10542 value_assign.
10543 (install_new_variable): Likewise for value_fetch_lazy.
10544 (adjust_value_for_child_access): Likewise for value_ind.
10545 (c_describe_child): Likewise for value_subscript and
10546 value_ind.
10547 (c_value_of_root): Likewise for evaluate_expression.
10548 * wrapper.c: Remove.
10549 * wrapper.h: Remove.
10550
1a4eeb98
DE
105512012-01-09 Doug Evans <dje@google.com>
10552
9ff913ba
DE
10553 * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
10554 partial_read_comp_unit_head. Replace "buffer", "buffer_size" and
10555 "abfd" args with "section". All callers updated.
10556 Error checking code moved ...
10557 (error_check_comp_unit_head): ... here. New function.
10558 (read_and_check_type_unit_head): Renamed from read_type_unit_head.
10559 Delete arg "abfd". New arg "type_offset". All callers updated.
10560 (create_debug_types_hash_table): Simplify by using
10561 read_and_check_type_unit_head.
10562
1a4eeb98
DE
10563 * parser-defs.h (namecopy): Delete.
10564 * parse.c (namecopy, namecopy_size): Move into copy_name.
10565
2e6af8c0
JK
105662012-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10567
10568 Partially fix duplicate .o files after omitting libbfd.a.
10569 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
10570 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
10571 * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
10572 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
10573 * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
10574 * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
10575 * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
10576
9f2f828a
PA
105772012-01-09 Pedro Alves <palves@redhat.com>
10578
10579 * MAINTAINERS: Update my email address.
10580
4d72c0bc
DE
105812012-01-08 Doug Evans <dje@google.com>
10582
d467dd73
DE
10583 * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
10584 n_type_units. Rename type_comp_units to all_type_units.
10585 All uses updated.
10586 (add_signatured_type_cu_to_table): Renamed from
10587 add_signatured_type_cu_to_list. All callers updated.
10588
4d72c0bc
DE
10589 * gdbtypes.h (struct cplus_struct_type): Delete member
10590 nfn_fields_total. All uses removed.
10591
21b2bd31
DE
105922012-01-06 Doug Evans <dje@google.com>
10593
10594 * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
10595 to top of file.
10596 (dwarf2_find_comp_unit): Delete.
10597 (process_psymtab_comp_unit): Make result "void".
10598 Delete args buffer, info_ptr, buffer_size, and replace with
10599 "section". All callers updated.
10600 (dwarf2_build_psymtabs_hard): Simplify.
10601
bfd189b1
SDJ
106022012-01-06 Sergio Durigan Junior <sergiodj@redhat.com>
10603 Thiago Jung Bauermann <bauerman@br.ibm.com>
10604
10605 * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
10606 before `struct gdb_exception'.
10607 * breakpoint.c (update_global_location_list_nothrow)
10608 (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
10609 * cp-abi.c (value_rtti_type): Likewise.
10610 * cp-support.c (cp_validate_operator): Likewise.
10611 * infrun.c (insert_exception_resume_breakpoint)
10612 (check_exception_resume, keep_going): Likewise.
10613 * mi-interp.c (mi_breakpoint_created)
10614 (mi_breakpoint_modified): Likewise.
10615 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
10616 * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
10617 (ia64_hpux_handle_dld_breakpoint_1): Likewise.
10618
6b07635f
DE
106192012-01-05 Doug Evans <dje@google.com>
10620
0b30b85c
DE
10621 * dwarf2read.c (statement_prologue): Delete, unused.
10622
98714339
DE
10623 * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
10624 * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
10625
6b07635f
DE
10626 * dwarf2read.c (comp_unit_header): Delete, unused.
10627
761f4555
UW
106282012-01-05 Ulrich Weigand <uweigand@de.ibm.com>
10629
10630 * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
10631 * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
10632
2ca0b532
PA
106332012-01-05 Khoo Yit Phang <khooyp@cs.umd.edu>
10634
10635 * infrun.c (normal_stop): Don't skip calling the normal_stop
10636 observers if the thread was doing a multi-step, but stopped for
10637 some reason other than stepping.
10638
50aeff07
PA
106392012-01-05 Pedro Alves <alves.ped@gmail.com>
10640
10641 * cli/cli-decode.h: Add comments.
10642 (CMD_LIST_AMBIGUOUS): Moved to command.h
10643 (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
10644 (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
10645 (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
10646 (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
10647 (add_com, add_com_alias, add_info, add_info_alias)
10648 (complete_on_cmdlist, complete_on_enum, help_list): Remove
10649 declarations.
10650 * command.h: Add and adjust comments.
10651 (CMD_LIST_AMBIGUOUS): Moved here.
10652 (help_cmd, help_cmd_list): Delete declarations.
10653
5953832c
DE
106542012-01-04 Doug Evans <dje@google.com>
10655
e5fe5e75
DE
10656 * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
10657 All callers updated.
10658 (load_full_type_unit): Renamed from read_signatured_type_at_offset.
10659 Replace all arguments with "per_cu". All callers updated.
10660
28dee7f5
DE
10661 * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
10662
23745b47
DE
10663 * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
10664 New arg "per_cu". All callers updated.
10665
5953832c
DE
10666 Delete #if 0'd out code.
10667 * language.c (binop_result_type): Delete.
10668 (simple_type, ordered_type, same_type, integral_type): Delete.
10669 (numeric_type, character_type, string_type, boolean_type): Delete.
10670 (float_type, structured_type): Delete.
10671 * language.h: Update.
10672
0f5b7562
TT
106732012-01-04 Tom Tromey <tromey@redhat.com>
10674
10675 * python/py-value.c (valpy_binop): Initialize 'res_val'.
10676
78218f56
JB
106772012-01-04 Joel Brobecker <brobecker@adacore.com>
10678
10679 * corefile.c (close_exec_file): Delete.
10680 (reopen_exec_file): Remove commented out code that seems related
10681 to close_exec_file, which is being deleted here.
10682 * inferior.h (close_exec_file): Delete.
10683 * fork-child.c (fork_inferior): Remove call to fork_inferior.
10684
0fcd72ba
JB
106852012-01-04 Joel Brobecker <brobecker@adacore.com>
10686
10687 * ada-lang.c: #include "cli/cli-utils.h".
10688 (get_selections): Use skip_spaces.
10689 (ada_get_next_arg): Use skip_spaces and skip_to_space.
10690 (catch_ada_exception_command_split): Use skip_spaces.
10691 (ada_decode_assert_location): Likewise.
10692
1dabb4c4
JB
106932012-01-04 Joel Brobecker <brobecker@adacore.com>
10694
10695 * linespec.c (decode_line_internal): Check for C++ or Java
10696 compound constructs only if the current language is C, C++
10697 or Java.
10698
5931a2fa
JK
106992012-01-04 Jan Kratochvil <jan.kratochvil@redhat.com>
10700
10701 Revert:
10702 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10703 Joel Brobecker <brobecker@adacore.com>
10704 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
10705 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
10706 3 times.
10707 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
10708 fall through into AT_ENTRY_POINT.
10709 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
10710 DUMMY_ADDR with it.
10711 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
10712 PPC_INSN_SIZE skip to 3 times.
10713
1a2da5ee
JB
107142012-01-04 Joel Brobecker <brobecker@adacore.com>
10715
10716 * linespec.c (add_minsym): Preserve function descriptors.
10717
8645ff69
UW
107182012-01-04 Ulrich Weigand <uweigand@de.ibm.com>
10719
10720 * breakpoint.c (all_locations_are_pending): Consider locations
10721 in program spaces executing during startup pending as well.
10722
0b302171
JB
107232012-01-04 Joel Brobecker <brobecker@adacore.com>
10724
10725 Copyright year update in most files of the GDB Project.
10726
8ba098ad
JB
107272012-01-04 Joel Brobecker <brobecker@adacore.com>
10728
10729 * copyright.sh: Delete.
10730 * copyright.py: Rewrite.
10731
09c01c30
JB
107322012-01-04 Joel Brobecker <brobecker@adacore.com>
10733
10734 * gnulib/extra/update-copyright: New file, imported from gnulib.
10735
3c36c0af
JB
107362012-01-04 Joel Brobecker <brobecker@adacore.com>
10737
10738 * README (Copyright and License Notices): New section.
10739
888fe1e1
TT
107402012-01-03 Tom Tromey <tromey@redhat.com>
10741
10742 PR python/12533:
10743 * python/py-value.c (valpy_dereference, valpy_get_address
10744 valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
10745 (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
10746 (valpy_absolute, valpy_richcompare): Free intermediate values.
10747
6e681866
JB
107482011-01-03 Joel Brobecker <brobecker@adacore.com>
10749
10750 * ada-lang.c: Reformat the copyright notice.
10751
0cd09acb
JK
107522012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10753
10754 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
10755 * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
10756 (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
10757 (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
10758 Revert this part of:
10759 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10760 Build gdb directly from *.o files not using libgdb.a.
10761 * Makefile.in (COMMON_OBS): Remove solib-target.o.
10762
12c3e59c
JB
107632012-01-02 Joel Brobecker <brobecker@adacore.com>
10764
10765 * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
10766 gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
10767 Reformat the copyright header.
10768
11bf1490
JK
107692012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10770
10771 Revert this part of:
10772 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10773 Remove the gdbtui binary.
10774 * gdb.c (main): Remove args.interpreter_p initialization.
10775 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
10776 * main.h (struct captured_main_args): Remove interpreter_p.
10777
1fef196f
JB
107782012-01-02 Joel Brobecker <brobecker@adacore.com>
10779
10780 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
10781
67827812
JB
107822012-01-02 Joel Brobecker <brobecker@adacore.com>
10783
10784 * top.c (print_gdb_version): Update copyright year.
10785
a4d0b831
YQ
107862012-01-02 Yao Qi <yao@codesourcery.com>
10787
10788 * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
10789
b5914469
JK
107902012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10791 Joel Brobecker <brobecker@adacore.com>
10792
10793 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
10794 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
10795 3 times.
10796 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
10797 fall through into AT_ENTRY_POINT.
10798 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
10799 DUMMY_ADDR with it.
10800 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
10801 PPC_INSN_SIZE skip to 3 times.
10802
8da828f7
JK
108032012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10804
10805 * amd64-linux-nat.c (update_debug_registers_callback): New comment on
10806 the return value.
10807 * i386-linux-nat.c (update_debug_registers_callback): Likewise.
10808
8574e74b
JK
108092012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10810
10811 Build gdb directly from *.o files not using libgdb.a.
10812 * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
10813 (COMMON_OBS): Remove solib-target.o.
10814 (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
10815 (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
10816 (LIBGDB_OBS, libgdb.a): Move it above.
10817 * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
10818 (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
10819 (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
10820 (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
10821 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
10822 (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
10823 (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
10824 (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
10825 (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
10826 (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
10827 (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
10828 (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
10829 (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
10830 (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
10831 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
10832 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
10833 (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
10834 (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
10835 (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
10836 (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
10837 (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
10838 (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
10839 (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
10840 (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
10841 (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
10842 (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
10843 (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
10844
217bff3e
JK
108452012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10846
10847 Remove the gdbtui binary.
10848 * .gitignore (/gdbtui): Remove.
10849 * Makefile.in (TUI): Remove.
10850 (SUBDIR_TUI_OBS): Remove tui-main.o.
10851 (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
10852 (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
10853 (tui-main.o): Remove.
10854 (all_object_files): Remove tui-main.o.
10855 * NEWS: New note for the gdbtui removal.
10856 * configure: Rebuilt.
10857 * configure.ac: No longer add all-tui, clean-tui, install-tui and
10858 uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
10859 CONFIG_UNINSTALL respectively.
10860 * gdb.c (main): Remove args.interpreter_p initialization.
10861 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
10862 * main.h (struct captured_main_args): Remove interpreter_p.
10863 * tui/tui-main.c: Remove.
10864
9cdd5dbd
DE
108652012-01-01 Doug Evans <dje@google.com>
10866
bb5ed363
DE
10867 * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
10868 (dwarf2_physname, read_import_statement): Ditto.
10869 (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
10870 (process_structure_scope read_subroutine_type): Ditto.
10871 (read_typedef, load_partial_dies, read_partial_die): Ditto.
10872 (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
10873 (dwarf2_fetch_die_location_block): Ditto.
10874 (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
10875
a0f42c21
DE
10876 * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
10877 All callers updated.
10878 (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
10879 (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
10880 (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
10881
2dc860c0
DE
10882 * dwarf2read.c (load_cu): Move assert to more useful location.
10883
68dc6402
DE
10884 * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
10885 All callers updated.
10886
9cdd5dbd
DE
10887 * dwarf2read.c (dwarf2_per_objfile): Add comment.
10888 (dwarf2_elf_names): Minor reformat.
10889 (dwarf2_per_cu_data): Tweak comment.
10890 (dwarf2_read_section): Fix comment.
10891 (create_all_comp_units): Fix comment.
10892 (load_full_comp_unit): Fix comment.
10893 (process_full_comp_unit): Fix comment.
10894 (read_signatured_type): Fix comment.
10895
0c10e53e 10896For older changes see ChangeLog-2011.
c906108c
SS
10897\f
10898Local Variables:
10899mode: change-log
10900left-margin: 8
10901fill-column: 74
10902version-control: never
57da7796 10903coding: utf-8
c906108c 10904End:
This page took 1.914994 seconds and 4 git commands to generate.