http://sourceware.org/ml/gdb-patches/2012-10/msg00525.html
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
2f27adfe
AB
12012-10-31 Andrew Burgess <aburgess@broadcom.com>
2
3 PR cli/14772
4 * c-typeprint.c (c_print_type): Don't print a space for vector
5 types, this is handled within the suffix.
6 (c_type_print_varspec_suffix): Add a space to vector suffix.
7
144db827
PA
82012-10-26 Pedro Alves <palves@redhat.com>
9
10 * amd64-tdep.c (amd64_relocate_instruction): Use
11 store_unsigned_integer instead of memcpy.
12 * i386-tdep.c (i386_relocate_instruction): Ditto.
13
940c3c06
PA
142012-10-26 Pedro Alves <palves@redhat.com>
15
16 * infrun.c (handle_inferior_event): Merge handling of
17 TARGET_WAITKIND_EXITED and TARGET_WAITKIND_SIGNALLED into a single
18 switch case.
19
47b19065
PA
202012-10-26 Pedro Alves <palves@redhat.com>
21
22 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_SIGNALLED>:
23 Remove comment.
24
87d2d2a4
PA
252012-10-26 Pedro Alves <palves@redhat.com>
26
27 * target.c (target_waitstatus_to_string): Handle
28 TARGET_WAITKIND_VFORK_DONE.
29
fed708ed
PA
302012-10-26 Pedro Alves <palves@redhat.com>
31
32 * infrun.c (handle_inferior_event): Print TARGET_WAITKIND_VFORKED
33 as "TARGET_WAITKIND_VFORKED", not "TARGET_WAITKIND_FORKED".
34
2590b645
JB
352012-10-24 Tristan Gingold <gingold@adacore.com>
36
37 * ravenscar-sparc-thread.c (ravenscar_sparc_fetch_registers):
38 Add comments.
39
bed0c243
JB
402012-10-24 Joel Brobecker <brobecker@adacore.com>
41
42 * ravenscar-thread.c (ravenscar_wait): Only update the list
43 of threads and inferior_ptid if the inferior is still alive.
44
f69c91ad
JB
452012-10-24 Joel Brobecker <brobecker@adacore.com>
46
47 * ada-lang.c (is_known_support_routine): Use lbasename when
48 matching the symtab's filename against
49 known_runtime_file_name_patterns.
50
d99dcf51
JB
512012-10-24 Joel Brobecker <brobecker@adacore.com>
52
53 * ada-lang.c (ada_same_array_size_p): New function.
54 (ada_promote_array_of_integrals): New function.
55 (coerce_for_assign): Add handling of arrays where the elements
56 are integrals of a smaller size than the size of the target
57 array element type.
58
32560274
JB
592012-10-24 Joel Brobecker <brobecker@adacore.com>
60
61 * doublest.c (convert_doublest_to_floatformat): Fix comparison
62 against maximum exponent value.
63
5a04cc98
JB
642012-10-24 Joel Brobecker <brobecker@adacore.com>
65
66 * ada-lang.h (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Add entry for
67 "unwind-seh.c".
68
5ded5331
JB
692012-10-24 Joel Brobecker <brobecker@adacore.com>
70
71 * ada-lang.c (ada_template_to_fixed_record_type_1): Do not
72 strip typedef layer when computing the fixed type's field type,
73 only when computing its size.
74
2445fd7b
MK
752012-10-24 Mark Kettenis <kettenis@gnu.org>
76
77 PR gdb/12783
78 * i386-tdep.c (i386_return_value): Handle complex double and long
79 double.
80
8f205f9c
JB
812012-10-24 Joel Brobecker <brobecker@adacore.com>
82
83 * windows-nat.c (windows_create_inferior) [!__CYGWIN__]:
84 New local variable args_len.
85 Quote the name of the executable when computing the command line.
86
7f7930dd
MK
872012-10-23 Mark Kettenis <kettenis@gnu.org>
88
89 PR gdb/12796
90 PR gdb/12798
91 PR gdb/12800
92 * amd64-tdep.h (enum amd64_regnum): Add AMD64_ST1_REGNUM and
93 AMD64_FTAG_REGNUM.
94 * amd64-tdep.c (amd64_classify): Classify complex types.
95 (amd64_return_value): Handle the COMPLEX_X87 class.
96
38a69d0a
JB
972012-10-23 Joel Brobecker <brobecker@adacore.com>
98
99 * rs6000-aix-tdep.c (rs6000_aix_auto_wide_charset): New function.
100 (rs6000_aix_init_osabi): Set auto_wide_charset gdbarch method.
101
83ab93c6
JB
1022012-10-23 Joel Brobecker <brobecker@adacore.com>
103
104 * amd64-windows-tdep.c (amd64_windows_auto_wide_charset): New
105 function.
106 (amd64_windows_init_abi): Set auto_wide_charset gdbarch method
107 to amd64_windows_auto_wide_charset.
108
f6fbab7d
YQ
1092012-10-23 Yao Qi <yao@codesourcery.com>
110
111 * event-top.c (mark_async_signal_handler_wrapper): Remove.
112 * event-top.h: Remove its declaration.
113 (async_request_quit): Call mark_async_signal_handler instead of
114 mark_async_signal_handler_wrapper.
115 (async_do_nothing, async_disconnect): Likewise.
116 (async_stop_sig): Likewise.
117 * remote.c (handle_remote_sigint): Likewise.
118 (handle_remote_sigint_twice): Likewise.
119
05fa9251
YQ
1202012-10-23 Yao Qi <yao@codesourcery.com>
121
122 * event-top.c (sigint_token, sighup_token): Replace 'void *'
123 with 'static struct async_signal_handler *'.
124 (sighup_token, sigquit_token, sigstp_token): Likewise.
125
08af7a40
AA
1262012-10-22 Ali Anwar <ali_anwar@codesourcery.com>
127
128 * gdbarch.sh (function_list): Use 'pstring' when printing
129 a variable which could return NULL.
130 * gdbarch.c: Regenerate.
131
beb4b03c
JB
1322012-10-10 Joel Brobecker <brobecker@adacore.com>
133 Tom Tromey <tromey@redhat.com>
134
135 * rs6000-aix-tdep.c (rs6000_aix_osabi_sniffer): Replace
136 inneffective if condition by gdb assertion. Add function
137 description comment.
138
a5b12627
JB
1392012-10-19 Joel Brobecker <brobecker@adacore.com>
140
141 * parser-defs.h (struct exp_descriptor): Document constraint
142 on return value for "op_name" callbacks.
143
0b0865da
TT
1442012-10-18 Tom Tromey <tromey@redhat.com>
145
146 * tracepoint.c (print_one_static_tracepoint_marker): Constify.
147 * symtab.c (iterate_over_some_symtabs): Constify.
148 * source.h (symtab_to_fullname): Return 'const char *'.
149 * source.c (symtab_to_fullname): Return 'const char *'.
150 * python/py-symtab.c (stpy_fullname): Constify.
151 * cli/cli-cmds.c (edit_command): Constify.
152 * breakpoint.c (print_breakpoint_location)
153 (update_static_tracepoint): Constify.
154
94b0e70d
TT
1552012-10-18 Tom Tromey <tromey@redhat.com>
156
157 * breakpoint.c (compare_breakpoints): Fix comparison.
158
fff10684
TT
1592012-10-18 Tom Tromey <tromey@redhat.com>
160
161 * valprint.c (generic_emit_char, generic_printstr): Pass size of
162 gdb_wchar_t to convert_between_encodings.
163
8de0566d
YQ
1642012-10-17 Yao Qi <yao@codesourcery.com>
165
166 * breakpoint.c (invalidate_bp_value_on_memory_change): Add one
167 more parameter 'inferior'.
168 * corefile.c (write_memory_with_notification): Caller update.
169
170 * mi/mi-cmd-var.c: Include "mi-main.h".
171 (mi_cmd_var_assign): Set mi_suppress_notification.data_write_memory
172 to 1 and restore it later.
173 * mi/mi-cmds.c (mi_cmd mi_cmds): Update for "data-write-memory"
174 and "data-write-memory-bytes.
175 * mi/mi-interp.c: Include objfiles.h.
176 (mi_interpreter_init): Call observer_attach_memory_changed.
177 (mi_memory_changed): New.
178 * mi/mi-main.h (struct mi_suppress_notification) <memory>:
179 New field.
180
181 * NEWS: Mention new MI notification "memory-changed".
182
6235cdd1
JK
1832012-10-16 Jan Kratochvil <jan.kratochvil@redhat.com>
184
185 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Remove comment.
186
07540c15
DE
1872012-10-15 Doug Evans <dje@google.com>
188
189 New option -nh: inhibit loading of ~/.gdbinit.
190 * NEWS: Mention -nh.
191 * main.c (captured_main): Recognize and process -nh.
192 (print_gdb_help): Mention -nh.
193 * gdb.1: Mention -nh. Remove erroneous docs on -nx behavior.
194
eab09350
L
1952012-10-15 H.J. Lu <hongjiu.lu@intel.com>
196
197 PR backtrace/14646
198 PR gdb/14647
199 * i386-tdep.h (gdbarch_tdep): Remove sp_regnum_from_eax and
200 pc_regnum_from_eax.
201 * i386-tdep.c (i386_gdbarch_init): Don't use sp_regnum_from_eax
202 nor pc_regnum_from_eax.
203 * amd64-tdep.c (amd64_x32_init_abi): Don't set sp_regnum_from_eax
204 nor pc_regnum_from_eax.
205
9e3a7d65
JK
2062012-10-15 Jan Kratochvil <jan.kratochvil@redhat.com>
207
208 Fix entry values resolving in inlined frames.
209 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Move func_addr,
210 gdbarch and caller_frame initialization later. Skip INLINE_FRAME
211 entries of FRAME.
212
c83393b9
JB
2132012-10-15 Joel Brobecker <brobecker@adacore.com>
214
215 * configure.ac: Build with -DMS_WIN64 if building with Python
216 enabled using GCC on amd64-windows.
217 * configure: Regenerate.
218
801e4185
TT
2192012-10-15 Tom Tromey <tromey@redhat.com>
220
221 PR python/14635:
222 * python/py-symtab.c (del_objfile_sal): Set 'symtab' field
223 to Py_None.
224
74f910c8
TT
2252012-10-15 Tom Tromey <tromey@redhat.com>
226
227 PR python/14634:
228 * python/py-symbol.c (sympy_dealloc): Check for NULL symbol.
229
2a7c8fd5
AB
2302012-10-11 Andrew Burgess <aburgess@broadcom.com>
231
232 * remote-sim.c (gdbsim_create_inferior): Call init_thread_list to
233 reset thread numbering back to 1.
234
7c09e5a0
DE
2352012-10-11 Doug Evans <dje@google.com>
236
237 PR breakpoints/14643.
238 * linespec.c (struct ls_parser): New member keyword_ok.
239 (linespec_lexer_lex_string): Add comment.
240 (linespec_lexer_lex_one): Ignore keywords if it's the wrong place
241 for one.
242 (parse_linespec): Set keyword_ok.
243
a1855c1d
DE
2442012-10-10 Doug Evans <dje@google.com>
245
844226d6
DE
246 * dwarf2read.c (process_psymtab_comp_unit_reader): Remove duplicate
247 "0x" prefix on address in log message.
248
a1855c1d
DE
249 * dwarf2read.c (read_1_byte): Add const to buf parameter.
250 (read_1_signed_byte, read_2_bytes, read_2_signed_bytes): Ditto.
251 (read_4_bytes, read_4_signed_bytes, read_8_bytes): Ditto.
252 (lookup_dwo_file): Add const to dwo_name parameter.
253 (lookup_dwo_comp_unit, lookup_dwo_type_unit): Ditto.
254
2e24f4aa
JK
2552012-10-06 Jan Kratochvil <jan.kratochvil@redhat.com>
256
257 Fix crash during stepping on ppc32.
258 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Test NULL
259 SYM.
260
aa14df25
DE
2612012-10-03 Doug Evans <dje@google.com>
262
263 PR symtab/14601
264 * buildsym.c (buildsym_init): Reset using_directives to NULL.
265
3d468296
AB
2662012-10-02 Andrew Burgess <aburgess@broadcom.com>
267
268 * remote-sim.c (dump_mem): Always dump buffer contents, zero fill
269 output and use uint32_t not long to ensure 4 byte size.
270
8f0ee2eb
JB
2712012-10-02 Joel Brobecker <brobecker@adacore.com>
272
273 * rs6000-nat.c (add_vmap): Set "last" to "next" after having
274 unref'ed it.
275
b3dc46ff
AB
2762012-10-01 Andrew Burgess <aburgess@broadcom.com>
277
278 * target.c (simple_search_memory): Include access length in
279 warning message.
280
f712f01f
EBM
2812012-09-28 Nathan Miller <nathanm2@us.ibm.com>
282 Edjunior Machado <emachado@linux.vnet.ibm.com>
283
284 PR gdb/13989
285 * solib.c (solib_find): Prevent GDB from loading native libraries when
286 debugging a cross-target corefile.
287
39181896
PA
2882012-09-28 selven <pcthegreat@gmail.com>
289
290 Make definition match declaration.
291
292 * regcache.c (regcache_register_status): Change return type to
293 enum register_status.
294
4c2786ba
YQ
2952012-09-28 Yao Qi <yao@codesourcery.com>
296
297 * mi/mi-main.c (mi_cmd_data_write_memory): Call
298 write_memory_with_notification instead of write_memory.
299 (mi_cmd_data_write_memory_bytes): Call write_memory_with_notification
300 instead of target_write_memory.
301
1ae0c35e
YQ
3022012-09-28 Yao Qi <yao@codesourcery.com>
303
304 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Emit error
305 when the length of content is not an even number.
306
7977e5d2
TT
3072012-09-27 Tom Tromey <tromey@redhat.com>
308
309 Fix https://bugzilla.redhat.com/show_bug.cgi?id=849357
310 * cp-valprint.c (cp_print_value_fields): Use get_vptr_fieldno.
311
807160da
JB
3122012-09-27 Joel Brobecker <brobecker@adacore.com>
313
314 * sol-thread.c (sol_thread_fetch_registers)
315 (sol_thread_store_registers): Delete commented out code.
316
43c75337
JB
3172012-09-27 Joel Brobecker <brobecker@adacore.com>
318
319 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
320 Move these functions to sparc-sol-thread.c.
321 * sparc-sol-thread.c: New file.
322 * configure.ac: Add sparc-sol-thread.o to CONFIG_OBS and
323 sparc-sol-thread.c to CONFIG_SRCS for sparc-solaris native
324 configurations.
325 * configure: Regenerate.
326
d292a972
JB
3272012-09-27 Joel Brobecker <brobecker@adacore.com>
328
329 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
330 Remove commented-out code.
331
8c3da003
JB
3322012-09-27 Joel Brobecker <brobecker@adacore.com>
333
334 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
335 Enable this code for sparc hosts only.
336
f00482b6
JB
3372012-09-27 Joel Brobecker <brobecker@adacore.com>
338
339 * procfs.h (procfs_find_LDT_entry): Add declaration.
340 * sol-thread.c (ps_lgetLDT): Delete local declaration of
341 function procfs_find_LDT_entry.
342
337c776f
JB
3432012-09-27 Joel Brobecker <brobecker@adacore.com>
344
345 * procfs.c (proc_get_LDT_entry): Make static.
346
1a04d88f
JB
3472012-09-27 Joel Brobecker <brobecker@adacore.com>
348
349 * procfs.c (proc_find_memory_regions): Fix declaration.
350
bad43aa5
SP
3512012-09-27 Siddhesh Poyarekar <siddhesh@redhat.com>
352
353 * amd64-tdep.c (amd64_return_value): Revert previous change
354 that used TYPE_LENGTH directly.
355 * bfin-tdep.c (bfin_extract_return_value): Likewise.
356 (bfin_store_return_value): Likewise.
357 * cris-tdep.c (cris_store_return_value): Likewise.
358 (cris_extract_return_value): Likewise.
359 * h8300-tdep.c (h8300_extract_return_value): Likewise.
360 * hppa-tdep.c (hppa64_return_value): Likewise.
361 * lm32-tdep.c (lm32_store_return_value): Likewise.
362 * microblaze-tdep.c (microblaze_store_return_value): Likewise.
363 * spu-tdep.c (spu_value_from_register): Likewise.
364 * vax-tdep.c (vax_return_value): Likewise.
365
63375b74
SP
3662012-09-27 Siddhesh Poyarekar <siddhesh@redhat.com>
367
368 * gdbtypes.c (lookup_array_range_type): Expand parameters
369 LOW_BOUND and HIGH_BOUND to LONGEST.
370 (lookup_string_range_type): Likewise.
371 * gdbtypes.h (lookup_array_range_type): Likewise.
372 (lookup_string_range_type): Likewise.
373 * valops.c (value_cstring): Expand parameter LEN to ssize_t.
374 Expand HIGHBOUND to ssize_t.
375 (value_string): Likewise.
376 * value.h (value_cstring): Expand parameter LEN to ssize_t.
377 (value_string): Likewise.
378
19ca11c5
YQ
3792012-09-27 Yao Qi <yao@codesourcery.com>
380
381 PR breakpoints/13898
382 * breakpoint.h (tracepoint_breakpoint_ops): Forward declaration.
383 * mi/mi-cmd-break.c (mi_cmd_break_insert): Set breakpoint_ops
384 per breakpoint type.
385
92107356
PM
3862012-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
387
388 * procfs.c: Add gdb_bfd header.
389 * rs6000-nat.c: Likewise.
390 * solib-pa64.c: Likewise.
391 * spu-linux-nat.c: Likewise.
392 * windows-nat.c: Likewise.
393
9742094a
TT
3942012-09-26 Tom Tromey <tromey@redhat.com>
395
396 * f-lang.h (BLANK_COMMON_NAME_LOCAL): Remove.
397
0971de02
TT
3982012-09-26 Tom Tromey <tromey@redhat.com>
399
400 * dwarf2read.c (mark_common_block_symbol_computed): New function.
401 (read_common_block): Handle child DIEs with
402 DW_AT_data_member_location.
403 (new_symbol_full): Add special case for common blocks.
404
4357ac6c
TT
4052012-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
406 Tom Tromey <tromey@redhat.com>
407
408 * dwarf2read.c (read_common_block): Rewrite.
409 (new_symbol_full): Handle DW_TAG_common_block.
410 * f-lang.c (head_common_list, find_common_for_function):
411 Remove.
412 * f-lang.h (struct common_entry, struct saved_f77_common,
413 SAVED_F77_COMMON, SAVED_F77_COMMON_PTR, COMMON_ENTRY,
414 COMMON_ENTRY_PTR, head_common_list, find_common_for_function,
415 BLANK_COMMON_NAME_LOCAL): Remove.
416 (struct common_block): New.
417 * f-valprint.c (list_all_visible_commons): Remove.
418 (info_common_command_for_block): New function.
419 (info_common_command): Use it.
420 * stack.c (iterate_over_block_locals): Special case for
421 COMMON_BLOCK_DOMAIN.
422 * symtab.h (enum domain_enum_tag) <COMMON_BLOCK_DOMAIN>: New
423 constant.
424 (struct general_symbol_info) <value.common_block>: New field.
425 (SYMBOL_VALUE_COMMON_BLOCK): New define.
426
965f07a8
TT
4272012-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
428 Tom Tromey <tromey@redhat.com>
429
430 * f-lang.c (allocate_saved_bf_node,
431 allocate_saved_function_node, allocate_saved_f77_common_node,
432 allocate_common_entry_node, tail_common_list, current_common,
433 saved_bf_list, saved_bf_list_end, current_head_bf_list,
434 tmp_bf_ptr, add_common_block, add_common_entry,
435 find_first_common_named, patch_common_entries,
436 patch_all_commons_by_name, ADD_BF_SYMNUM, clear_bf_list,
437 global_remote_debug, get_bf_for_fcn, saved_function_list,
438 saved_function_list_end, clear_function_list, struct saved_fcn,
439 struct saved_bf_symnum, SAVED_FUNCTION, SAVED_FUNCTION_PTR,
440 SAVED_BF, SAVED_BF_PTR): Remove.
441 * f-lang.h (tail_common_list, current_common,
442 UNINITIALIZED_SECNUM, COMMON_NEEDS_PATCHING,
443 BLANK_COMMON_NAME_ORIGINAL, BLANK_COMMON_NAME_MF77,
444 DEFAULT_UPPER_BOUND, DEFAULT_LOWER_BOUND, real_main_name,
445 real_main_c_value): Remove.
446 * f-valprint.c (there_is_a_visible_common_named): Remove.
447
6f380991
AB
4482012-09-26 Andrew Burgess <aburgess@broadcom.com>
449
450 * breakpoint.c (update_global_location_list): Ignore previous
451 duplicate status of a breakpoint when starting a new scan for
452 duplicate breakpoints.
453
9ead7ae4 4542012-09-26 Karthik Bhat <kv.bhat@samsung.com>
8b3d5494 455 PR breakpoints/14419
2536b51c
YQ
456 * arm-tdep.c (arm_skip_prologue): Extending producer check to
457 support LLVM compiler.
9ead7ae4 458
8f8a23a2
SP
4592012-09-26 Siddhesh Poyarekar <siddhesh@redhat.com>
460
461 * amd64-tdep.c (amd64_return_value): Use TYPE_LENGTH directly.
462 * bfin-tdep.c (bfin_extract_return_value): Likewise.
463 (bfin_store_return_value): Likewise.
464 * cris-tdep.c (cris_store_return_value): Likewise.
465 (cris_extract_return_value): Likewise.
466 * h8300-tdep.c (h8300_extract_return_value): Likewise.
467 * hppa-tdep.c (hppa64_return_value): Likewise.
468 * lm32-tdep.c (lm32_store_return_value): Likewise.
469 * microblaze-tdep.c (microblaze_store_return_value): Likewise.
470 * spu-tdep.c (spu_value_from_register): Likewise.
471 * vax-tdep.c (vax_return_value): Likewise.
472
d7019589
SP
4732012-09-26 Siddhesh Poyarekar <siddhesh@redhat.com>
474
475 * breakpoint.c (invalidate_bp_value_on_memory_change): Expand
476 parameter LEN to ssize_t.
477
744a8059
SP
4782012-09-25 Siddhesh Poyarekar <siddhesh@redhat.com>
479
480 * ada-valprint.c (ada_val_print_1): Eliminate single-use
481 variable LEN.
482 * alpha-tdep.c (alpha_extract_return_value): Use TYPE_LENGTH
483 directly.
484 (alpha_store_return_value): Likewise.
485 * amd64-tdep.c (amd64_classify_aggregate): Likewise.
486 (amd64_push_arguments): Likewise.
487 * ax-gdb.c (gen_trace_static_fields): Likewise.
488 (gen_traced_pop): Likewise.
489 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
490 * breakpoint.c (update_watchpoint): Likewise.
491 * findcmd.c (parse_find_args): Use local variable for type
492 instead of length.
493 * findvar.c (default_read_var_value): Use TYPE_LENGTH directly.
494 * h8300-tdep.c (h8300h_extract_return_value): Likewise.
495 (h8300_store_return_value): Likewise.
496 * i386-darwin-tdep.c (i386_darwin_push_dummy_call): Likewise.
497 Use i386_darwin_arg_type_alignment directly.
498 * infcall.c (call_function_by_hand): Use TYPE_LENGTH directly.
499 * lm32-tdep.c (lm32_push_dummy_call): Likewise.
500 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
501 (m68hc11_extract_return_value): Likewise.
502 * mep-tdep.c (mep_push_dummy_call): Likewise.
503 * printcmd.c (float_type_from_length): Likewise.
504 * s390-tdep.c (s390_value_from_register): Likewise.
505 * stack.c (read_frame_arg): Likewise.
506 * tracepoint.c (encode_actions_1): Likewise.
507 * valops.c (value_fetch_lazy): Use local variable for type
508 instead of length. Use TYPE_LENGTH directly.
509 * value.c (value_contents_equal): Use TYPE_LENGTH directly.
510
a4b411d6
JB
5112012-09-25 Joel Brobecker <brobecker@adacore.com>
512
513 * symtab.c (skip_prologue_sal): Fix typo in comment.
514
11dba07a
JB
5152012-09-25 Joel Brobecker <brobecker@adacore.com>
516
517 * linespec.c (create_sals_line_offset): Fix typo in comment.
518
318102b9
SP
5192012-09-25 Siddhesh Poyarekar <siddhesh@redhat.com>
520
521 * c-typeprint.c (c_type_print_varspec_suffix): Remove cast and
522 use plongest to print the array size.
523
b4aa388a
SP
5242012-09-24 Siddhesh Poyarekar <siddhesh@redhat.com>
525
526 * m2-typeprint.c (m2_enum): Expand LASTVAL to LONGEST.
527 * p-valprint.c (pascal_type_print_base): Likewise.
528
84cebc4a
YQ
5292012-09-22 Yao Qi <yao@codesourcery.com>
530
531 * remote.c (remote_get_trace_status): Remove setting default
532 values of fields of 'ts'.
533
04e7407c
JK
5342012-09-21 Jan Kratochvil <jan.kratochvil@redhat.com>
535
536 Fix internal error on canonicalization of clang types.
537 * cp-name-parser.y (operator): New comment at make_operator call for
538 new, delete, new[] and delete[].
539 (exp): Use "sizeof ". Add new comment at make_operator call.
540
9bf4bce9
JK
5412012-09-21 Jan Kratochvil <jan.kratochvil@redhat.com>
542
543 Fix disassemble without parameters in tailcall frame.
544 * cli/cli-cmds.c (disassemble_current_function): Use
545 get_frame_address_in_block.
546
1c5b7826
TT
5472012-09-21 Tom Tromey <tromey@redhat.com>
548
549 * c-typeprint.c (c_type_print_base) <TYPE_CODE_STRUCT,
550 TYPE_CODE_UNION>: Unify, removing a goto.
551
62a49610
TT
5522012-09-21 Tom Tromey <tromey@redhat.com>
553
554 * c-typeprint.c (cp_type_print_derivation_info): Fix comment.
555
2603f7ee
AB
5562012-09-21 Andrew Burgess <aburgess@broadcom.com>
557
558 * findvar.c (read_frame_register_value): Mark the result value as
559 optimized out if any of the input registers have been optimized out.
560
810849a3
AS
5612012-09-21 Andreas Schwab <schwab@linux-m68k.org>
562
563 * python/python.c (finalize_python): Only define if HAVE_PYTHON.
564
0953dec1
SP
5652012-09-21 Siddhesh Poyarekar <siddhesh@redhat.com>
566
567 * eval.c (evaluate_subexp_standard): Eliminate single-use
568 variable LOWER.
569
82a90ccf
YQ
5702012-09-21 Yao Qi <yao@codesourcery.com>
571
572 * mi/mi-interp.c: Declare mi_record_changed.
573 (mi_interpreter_init): Call observer_attach_record_changed.
574 (mi_record_changed): New.
575 * record.c (record_open): Call observer_notify_record_changed.
576 (cmd_record_stop): Call observer_notify_record_changed.
577 * NEWS: Mention it.
578
d7de8e3c
TT
5792012-09-20 Tom Tromey <tromey@redhat.com>
580
581 * NEWS: Update.
582 * python/python.c (finalize_python): New function.
583 (_initialize_python): Make a final cleanup.
584
43c7c83d
DE
5852012-09-19 Doug Evans <dje@google.com>
586
587 * buildsym.h (param_symbols): Delete, unused.
588 (context_stack): Delete member "params", unused.
589 * buildsym.c (push_context): Update.
590 * dwarf2read.c (read_func_scope): Update.
591
aa9259cc
TS
5922012-09-19 Thomas Schwinge <thomas@codesourcery.com>
593
a6521d9a
TS
594 * sh-tdep.c (sh_register_convert_to_virtual)
595 (sh_register_convert_to_raw): Add a gdbarch parameter. Update
596 all callers. Just do a memcpy if not the little-endian case.
597
f92589cb
TS
598 * h8300-tdep.c (h8300_gdbarch_init): Invoke
599 set_gdbarch_double_format and set_gdbarch_long_double_format.
600 * m68hc11-tdep.c (m68hc11_gdbarch_init): Invoke
601 set_gdbarch_double_format.
602 * sh-tdep.c (sh_gdbarch_init): Likewise.
603
aa9259cc
TS
604 * NEWS: Document the removal of SH's 'regs' command.
605 * sh-tdep.c (_initialize_sh_tdep): Remove the deprecated 'regs'
606 command.
607
c1d780c2
SDJ
6082012-09-18 Sergio Durigan Junior <sergiodj@redhat.com>
609
610 * infcmd.c (_initialize_infcmd): Register `j' as an alias for
611 `jump'.
612
4ae24af0
JB
6132012-09-18 Joel Brobecker <brobecker@adacore.com>
614
615 * linespec.c (iterate_over_all_matching_symtabs): Use the correct
616 language when iterating over symbols.
617
bb25a15c
YQ
6182012-09-18 Yao Qi <yao@codesourcery.com>
619
620 * mi/mi-interp.c: Declare mi_tsv_created and mi_tsv_deleted.
621 (mi_interpreter_init): Call observer_attach_tsv_created and
622 observer_attach_tsv_deleted.
623 (mi_tsv_created, mi_tsv_deleted): New.
624 * tracepoint.c (delete_trace_state_variable): Call
625 observer_notify_tsv_deleted.
626 (trace_variable_command): Call observer_notify_tsv_created.
627 (delete_trace_variable_command): Call
628 observer_notify_tsv_deleted.
629 (create_tsv_from_upload): Call observer_notify_tsv_created.
630 * NEWS: Mention it.
631
201b4506
YQ
6322012-09-18 Yao Qi <yao@codesourcery.com>
633
634 * tracepoint.c (tfind_1): Call observer_notify_traceframe_changed
635 if traceframe changed.
636 * mi/mi-cmds.c (mi_cmd mi_cmds): Adjust for command
637 "trace-find".
638 * mi/mi-interp.c: Declare 'mi_traceframe_changed'.
639 (mi_interpreter_init): Hook mi_traceframe_changed to observer
640 'traceframe_changed'.
641 (mi_traceframe_changed): New.
642 * mi/mi-main.h (struct mi_suppress_notification) <traceframe>:
643 New field.
644 * NEWS: Mention the new MI notification.
645
eaeb12db
MW
6462012-09-17 Mike Wrighton <wrighton@codesourcery.com>
647
648 * MAINTAINERS (Write After Approval): Add "Mike Wrighton".
649
6e3c039e
JK
6502012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
651
652 * common/linux-ptrace.c: Change __i386__ to __i386__ || __x86_64__.
653 (linux_ptrace_test_ret_to_nx): Extend comment for x86_64. Change
654 __i386__ to __i386__ || __x86_64__. Extend code also for __x86_64__.
655 Extend code also for PaX support. Convert all gdb_assert to warning
656 calls.
657
9a950c7c
JK
6582012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
659
660 Implement auto-load user conveniences suggested by Doug Evans.
661 * auto-load.c: Include top.h.
662 (file_is_auto_load_safe): New variable advice_printed. Print advice.
663 (_initialize_auto_load): New variable scripts_directory_help. Mention
664 GDBPY_AUTO_FILE_NAME and GDB_AUTO_FILE_NAME for set auto-load
665 scripts-directory. Document in online help one can use also files for
666 set auto-load safe-path.
667 * python/py-auto-load.c: (GDBPY_AUTO_FILE_NAME): Move it from here ...
668 * python/python.h (GDBPY_AUTO_FILE_NAME): ... to here.
669
deec9a9d
SP
6702012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
671
672 * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused definition
673 of LEN.
674
354ecfd5
SP
6752012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
676
677 * m2-valprint.c (m2_print_array_contents): Eliminate variable
678 ELTLEN and use TYPE_LENGTH directly.
679 (m2_val_print): Likewise.
680 * m68k-tdep.c (m68k_svr4_extract_return_value): Eliminate
681 variable LEN and use TYPE_LENGTH directly.
682 (m68k_svr4_store_return_value): Likewise.
683 * mips-tdep.c (mips_o32_push_dummy_call): Eliminate variable
684 ARGLEN and use TYPE_LENGTH directly.
685 (mips_o64_push_dummy_call): Likewise.
686 * s390-tdep (s390_function_arg_pass_by_reference): Eliminate
687 variable LENGTH and use TYPE_LENGTH directly.
688 (s390_function_arg_float): Likewise.
689 (s390_function_arg_integer): Likewise.
690 (s390_push_dummy_call): Likewise.
691 (s390_return_value_convention): Likewise.
692 * spu-tdep.c (spu_push_dummy_call): Eliminate LEN and use
693 TYPE_LENGTH directly.
694
6fc1c773
YQ
6952012-09-17 Yao Qi <yao@codesourcery.com>
696
697 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): New.
698 Update comment to add_setshow_integer_cmd.
699 * cli/cli-setshow.c (do_set_command): Handle case
700 'var_zuinteger_unlimited'.
701 (do_show_command): Likewise.
702 * cli/cli-cmds.c (init_cmds): Call add_setshow_zuinteger_unlimited_cmd
703 for command 'remotetimeout'.
704 * command.h (enum var_types): New zuinteger_unlimited. Update comment
705 to var_integer.
706 * source.c (_initialize_source): Call add_setshow_zuinteger_unlimited_cmd
707 for command 'set listsize'.
708
6acef6cd
SP
7092012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
710
711 * infrun.c (restore_infcall_suspend_state): Eliminate single-use
712 variable LEN.
713
1ab3b62c
JK
7142012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
715
716 PR 14119
717 * frame.c (skip_inlined_frames): Skip also TAILCALL_FRAME frames.
718 (frame_pop): Drop also TAILCALL_FRAME frames.
719 * infcmd.c (finish_command): Ignore also TAILCALL_FRAME frames.
720
acf9414f
JK
7212012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
722 Pedro Alves <palves@redhat.com>
723
724 PR 14548
725 * infrun.c (handle_inferior_event): Do not reverse-continue back to the
726 function start if we are already at function start. Both for
727 reverse-next and for reverse-step into function without line number
728 info.
729
193facb3
JK
7302012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
731
732 Code cleanup - rename 'inline' depth to 'artificial' depth.
733 * breakpoint.c (set_momentary_breakpoint): Rename at a caller to
734 frame_id_artificial_p, extend the comment.
735 * dwarf2-frame-tailcall.c (tailcall_frame_this_id): Rename at a user.
736 * frame.c (fprint_frame_id): Rename at a user, change debug output
737 text to "artificial=".
738 (skip_inlined_frames): Rename to ...
739 (skip_artificial_frames): ... here. Extend the comment.
740 (get_stack_frame_id, frame_unwind_caller_id): Rename at a caller.
741 (frame_id_inlined_p): Rename to ...
742 (frame_id_artificial_p): ... here. Rename at a user.
743 (frame_id_eq, frame_id_inner, frame_unwind_caller_pc)
744 (frame_unwind_caller_pc_if_available, frame_unwind_caller_arch): Rename
745 at a user.
746 * frame.h (struct frame_id): Rename inline_depth to artificial_depth.
747 Extend the comment.
748 (frame_id_inlined_p): Rename to ...
749 (frame_id_artificial_p): ... here.
750 * inline-frame.c (inline_frame_this_id): Rename at a user.
751
42056501
AB
7522012-09-14 Andrew Burgess <aburgess@broadcom.com>
753
754 * c-typeprint.c (c_type_print_varspec_suffix): Display the size of
755 vector variables using vector_size syntax rather than array
756 syntax.
757
84c47588
SP
7582012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
759
760 * valarith.c (value_concat): Replace unsafe ALLOCA with
761 XMALLOC/XFREE.
762
f4045bcb
PA
7632012-09-14 Pedro Alves <palves@redhat.com>
764
765 * gdb.1 (SEE ALSO): Expand pointer to GDB's Texinfo manual.
766
63b46266
YPK
7672012-09-14 Khoo Yit Phang <khooyp@cs.umd.edu>
768
769 Point contrib/cc-with-tweaks.sh to the build-local data-directory.
770 * contrib/cc-with-tweaks.sh (GDB): Add -data-directory
771 data-directory as appropriate.
772
ddd7a8e7
SP
7732012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
774
775 * printcmd.c (ui_printf): Eliminate single-use variable
776 PARAM_LEN.
777
d649a38e
YQ
7782012-09-14 Yao Qi <yao@codesourcery.com>
779 Pedro Alves <palves@redhat.com>
780
781 * valops.c (value_assign): Move observer_notify_target_changed
782 below to replace reinit_frame_cache.
783
b9516fa1
YPK
7842012-09-13 Khoo Yit Phang <khooyp@cs.umd.edu>
785
786 Refactor Python "gdb" module into a proper Python package, by
787 introducing a new "_gdb" module for code implemented in C, and
788 using reload/__import__ instead of exec.
789 * python/lib/gdb/__init__.py: Import * from _gdb.
790 (GdbOutputFile, sys.stdout, GdbOutputErrorFile, sys.stderr,
791 prompt_hook, sys.argv): Moved from finish_python_initialization.
792 (pretty_printers, PYTHONDIR): Moved from _initialize_python.
793 (packages, auto_load_packages): New list and function replacing
794 module_dict and auto-loading code, using __file__ instead of
795 gdb.PYTHONDIR and reload/__import__ instead of exec.
796 (GdbSetPythonDirectory): Replacing function of the same name
797 from finish_python_initialization, using reload/__import__ instead
798 of exec, as well as call auto_load_packages.
799 * python/py-prettyprint.c (find_pretty_printer_from_gdb): Check
800 gdb_python_module and not gdb_module.
801 * python/python-internal.h (gdb_python_module): Declare.
802 * python/python.c (gdb_python_module): New global.
803 (before_prompt_hook): Check gdb_python_module and not gdb_module.
804 (_initialize_python): Rename gdb module to _gdb.
805 Move gdb.PYTHONDIR and gdb.pretty_printer to lib/gdb/__init__.py.
806 (finish_python_initialization): Move Python code to
807 lib/gdb/__init__.py; instead, set up sys.path and import gdb into
808 __main__.
809
aa0fbdd8
PA
8102012-09-13 Pedro Alves <palves@redhat.com>
811
812 * Makefile.in (COMMON_OBS): Add registry.o.
813 * registry.c: New file.
814 * registry.h (struct registry_container): Declare.
815 (registry_data_callback): New typedef.
816 (struct registry_data, struct registry_data_registration, struct
817 registry_data_registry): New type.
818 (register_data_with_cleanup, registry_alloc_data)
819 (registry_callback_adaptor, registry_clear_data)
820 (registry_container_free_data, registry_set_data, registry_data):
821 Declare.
822 (DEFINE_REGISTRY): Refactor structures and functions as shims over
823 the new common structures and functions.
824 (DECLARE_REGISTRY): Declare struct TAG ## _data. Use the tagged
825 callback typedefs.
826
42b5c53d
MW
8272012-09-12 Mike Wrighton <wrighton@codesourcery.com>
828
829 * remote.c (remote_insert_hw_breakpoint): Throw exception if
830 there is an error inserting hardware breakpoints and use the
831 error message from the target.
832
833 * breakpoint.c (insert_bp_location, insert_breakpoint_locations):
834 Catch this exception and print the error message contained within. Do not
835 print the default hardware error breakpoint message in this case.
836
a1b64ce1
DE
8372012-09-12 Doug Evans <dje@google.com>
838
839 * dwarf2read.c (dwarf2_read_addr_index): Fix handling the case where
840 cu == NULL.
841
83a788b8
DE
8422012-09-11 Doug Evans <dje@google.com>
843
844 * dwarf2read.c (dw2_do_expand_symtabs_matching): Don't examine
845 .gdb_index symbol attributes if there are none.
846
d9eaeb59
JB
8472012-09-11 Joel Brobecker <brobecker@adacore.com>
848
849 * symtab.h (struct minimal_symbol) [has_size]: New field.
850 (MSYMBOL_SIZE): Adjust to forbid macro from being used as lvalue.
851 (SET_MSYMBOL_SIZE, MSYMBOL_HAS_SIZE): New macros.
852 * printcmd.c (build_address_symbolic): Only filter out zero-sized
853 minimal symbols if the symbol's size is actually known.
854 * minsyms.c (prim_record_minimal_symbol_full): Adjust setting
855 of msymbol's size field. Add comment.
856 * elfread.c (elf_symtab_read, elf_rel_plt_read): Use
857 SET_MSYMBOL_SIZE to set the minimal symbol size.
858
a83e9154
JB
8592012-09-11 Joel Brobecker <brobecker@adacore.com>
860
861 * minsyms.c (install_minimal_symbols): Use memset to fill entire
862 minimal_symbol struct object, rather than setting some of its
863 fields one by one.
864
350b1b26
AB
8652012-09-11 Andrew Burgess <aburgess@broadcom.com>
866
867 * c-typeprint.c (c_type_print_varspec_prefix): Pass through the
868 passed_a_ptr flag when displaying typedef types.
869
2fa15f23
JB
8702012-09-10 Joel Brobecker <brobecker@adacore.com>
871
872 * ada-lang.c (coerce_unspec_val_to_type): Make sure that
873 the optimized_out flag is preserved.
874
5152ff90
AG
8752012-09-10 Anthony Green <green@moxielogic.com>
876
877 * moxie-tdep.c (moxie_analyze_prologue): Update for function
878 prologue changes in GCC.
879
5b4f6e25
KS
8802012-09-10 Keith Seitz <keiths@redhat.com>
881
882 PR gdb/13483
883 * gdbtypes.h (BOOL_PTR_CONVERSION_BADNESS): Rename to ...
884 (BOOL_CONVERSION_BADNESS): ... this.
885 * gdbtypes.c (BOOL_PTR_CONVERSION_BADNESS): Likewise.
886 (rank_one_type): Allow all boolean conversions
887 permitted by the standard.
888
f1070426
TT
8892012-09-06 Tom Tromey <tromey@redhat.com>
890
891 * python/py-newobjfileevent.c (create_new_objfile_event_object):
892 Don't decref py_objfile.
893
a8db4212
YPK
8942012-09-02 Khoo Yit Phang <khooyp@cs.umd.edu>
895
896 Do not enable -lmcheck by default when Python is enabled with
897 threading support.
898 * configure.ac: (python_has_threads) New variable, by testing
899 if WITH_THREAD is defined in Python.h.
900 Move --enable-lmcheck after --with-python.
901 Do not enable -lmcheck by default if python_has_threads=yes.
902 Warn if --enable-lmcheck and python_has_threads=yes.
903 * configure: Regenerate.
904
648beb2b
YQ
9052012-08-31 Yao Qi <yao@codesourcery.com>
906
907 * mi/mi-cmds.c (mi_cmds): New macros DEF_MI_CMD_CLI
908 DEF_MI_CMD_MI DEF_MI_CMD_CLI_1 and DEF_MI_CMD_CLI_1.
909 Update some commands.
910 * mi/mi-cmds.h (struct mi_cmd) <suppress_notification>: New field.
911 * mi/mi-main.c (mi_cmd_execute): Set '*parse->cmd->suppress_notification'
912 to 1.
913
ef07a9f7
YQ
9142012-08-31 Yao Qi <yao@codesourcery.com>
915
916 * mi/mi-cmds.c (mi_cmds): Add 'static'.
917
fda395cf
YPK
9182012-08-30 Khoo Yit Phang <khooyp@cs.umd.edu>
919
920 * MAINTAINERS (Write After Approval): Add "Khoo Yit Phang".
921
8efd8e78
DE
9222012-08-29 Doug Evans <dje@google.com>
923
924 * main.c (print_gdb_help): Remove reference to
925 --use-deprecated-index-sections.
926
883b9c6c
YQ
9272012-08-28 Yao Qi <yao@codesourcery.com>
928
929 * cli/cli-cmds.c (max_user_call_depth): Add 'unsigned'.
930 (init_cmds): Call add_setshow_uinteger_cmd for command
931 'max-user-call-depth'.
932 * cli/cli-script.c (execute_user_command): Add 'unsigned' to the
933 declaration of 'max_user_call_depth'.
934 * frame.c (backtrace_limit): Add 'unsigned'.
935 (_initialize_frame): Call add_setshow_uinteger_cmd for command
936 'limit'.
937 * remote.c (remoteaddresssize): Add 'unsigned'.
938 (remote_address_masked): Change local var 'address_size' to
939 'unsigned'.
940 (_initialize_remote): Call add_setshow_uinteger_cmd for
941 'remoteaddresssize'.
942 * top.c (history_size): Add 'unsigned'.
943 (show_commands): Change local variables to 'unsigned'.
944 (set_history_size_command): Don't check history_size is negative.
945 Adjust the condition to call unstifle_history and set history_size
946 to UNIT_MAX.
947
1292279a
PA
9482012-08-28 Pedro Alves <palves@redhat.com>
949
950 PR gdb/14428
951
952 * infcmd.c (default_print_one_register_info): New, factored out
953 from default_print_registers_info.
954 (default_print_registers_info): Use it. Mark value unavailable if
955 necessary.
956 (registers_info): Print user registers with
957 default_print_one_register_info.
958
f629cd75
L
9592010-08-27 H.J. Lu <hongjiu.lu@intel.com>
960
961 PR tui/14486
962 * tui/tui-source.c (tui_source_is_displayed): Check if TUI_SRC_WIN
963 is not NULL before referencing it.
964
1c8cdcb1
JK
9652012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
966
967 * breakpoint.c (parse_breakpoint_sals) <(*address) == NULL>: New
968 variable pc. Call find_pc_line instead of find_pc_overlay, restore
969 original PC for it.
970
e9687799
JK
9712012-08-27 Eli Zaretskii <eliz@gnu.org>
972 Jan Kratochvil <jan.kratochvil@redhat.com>
973
974 * auto-load.c (auto_load_objfile_script): Rename to ...
975 (auto_load_objfile_script_1): ... here, change variable realname to
976 parameter realname, document it, add return value, add variable retval.
977 (auto_load_objfile_script): New function.
978
7afa1642
JK
9792012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
980
981 * cli/cli-decode.c (print_doc_line): Keep skipping '.' and ',' not
982 followed by a whitespace.
983
dc7650b8
JK
9842012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
985
28e66c70 986 PR gdb/14494.
dc7650b8
JK
987 * dwarf2read.c (dwarf2_locate_sections): Move variable aflag here.
988 Move the SEC_HAS_CONTENTS check here - for any NAMES use.
989 (dwarf2_locate_sections) <eh_frame>: Move the variable and check from
990 here.
991
1591a1e8
PA
9922012-08-27 Wei-cheng Wang <cole945@gmail.com>
993
994 * memattr.c (create_mem_region): Fix memory region overlapping
995 checking.
996
ecfb0d68
SP
9972012-08-24 Siddhesh Poyarekar <siddhesh@redhat.com>
998
999 * h8300-tdep.c (h8300_push_dummy_call): Replace unsafe alloca
1000 with xmalloc/cleanup.
1001 * mt-tdep.c (mt_push_dummy_call): Likewise.
1002 * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
1003 * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
1004
8c56c1b9
YQ
10052012-08-24 Yao Qi <yao@codesourcery.com>
1006
1007 * jv-exp.y (push_expression_name): Add "." at the end of error
1008 message.
1009
e3480f4a
YPK
10102012-08-23 Khoo Yit Phang <khooyp@cs.umd.edu>
1011
1012 Document how to return from "python-interactive" to GDB.
e3480f4a
YPK
1013 * python/python.c (_initialize_python): Update documentation.
1014
dfbd5e7b
PA
10152012-08-23 Pedro Alves <palves@redhat.com>
1016
1017 * infrun.c (_initialize_infrun) <handle command help text>:
1018 Mention that multiple signals are supported.
1019
2edda2ff
PA
10202012-08-23 Pedro Alves <palves@redhat.com>
1021
1022 * infcmd.c (_initialize_infcmd) <signal command>: Fix typo in help
1023 string.
1024
8d735b87
YQ
10252012-08-23 Yao Qi <yao@codesourcery.com>
1026
1027 * tracepoint.c (disconnect_tracing): Call set_tracepoint_num.
1028 (tfind_1): Don't call registers_changed, set_traceframe_num,
1029 and clear_traceframe_info.
1030 Call set_current_traceframe.
1031 (set_current_traceframe): call set_traceframe_num.
1032
c5d9b215
SDJ
10332012-08-22 Sergio Durigan Junior <sergiodj@redhat.com>
1034
1035 * remote-sim.c (_initialize_remote_sim): Pass NULL argument to
1036 `register_inferior_data_with_cleanup', fixing regression on PowerPC64.
1037
037bbc8e
YPK
10382012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
1039
1040 Enable readline in Python in a GDB-specific way and block the
1041 standard Python readline module to prevent conflicts with GDB.
1042 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-gdb-readline.o.
1043 (SUBDIR_PYTHON_SRCS): Add python/py-gdb-readline.c.
1044 (py-gdb-readline.o): Add rule to compile python/py-gdb-readline.c.
1045 * python/py-gdb-readline.c: New file.
1046 * python/python-internal.h (gdbpy_initialize_gdb_readline): New
1047 prototype.
1048 * python/python.c (_initialize_python): Call
1049 gdbpy_initialize_gdb_readline.
1050
406b1477
KS
10512012-08-22 Keith Seitz <keiths@redhat.com>
1052
1053 * defs.h: Include build-gnulib/config.h
1054
6ca1b147
JM
10552012-08-22 Joseph Myers <joseph@codesourcery.com>
1056
1057 * arm-tdep.c (thumb_get_next_pc_raw): Mask off low bits for bx pc
1058 and blx pc.
1059
8315665e
YPK
10602012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
1061
1062 Add a new "python-interactive" command that starts a standard
1063 Python interactive prompt with "pi" as alias, and add "py" as
1064 an alias to "python".
1065 * NEWS: Mention the new commands.
8315665e
YPK
1066 * python/python.c (eval_python_command): New function.
1067 (python_interactive_command): For "python-interactive" with
1068 arguments, call eval_python_command. For "python-interactive"
1069 without arguments, call PyRun_InteractiveLoop.
1070 (_initialize_python): Add "python-interactive" command with
1071 "pi" as alias, and add "py" as an alias to "python".
1072
522002f9
TT
10732012-08-22 Tom Tromey <tromey@redhat.com>
1074
1075 * defs.h (quit_flag): Don't declare.
1076 (clear_quit_flag, check_quit_flag, set_quit_flag): Declare.
1077 (QUIT): Use new functions.
1078 * event-top.c (command_handler): Use clear_quit_flag.
1079 (handle_sigint): Use set_quit_flag.
1080 (async_request_quit): Use check_quit_flag. Don't check
1081 immediate_quit.
1082 * exceptions.c (throw_exception): Use clear_quit_flag.
1083 * main.c (captured_main): Use clear_quit_flag.
1084 * python/python.c (clear_quit_flag, set_quit_flag)
1085 (check_quit_flag): New functions.
1086 * remote-sim.c (gdb_os_poll_quit): Use check_quit_flag,
1087 clear_quit_flag.
1088 * remote.c (remote_wait_as): Use check_quit_flag,
1089 clear_quit_flag.
1090 (remote_start_remote): Call QUIT.
1091 * symfile.c (load_progress): Use check_quit_flag.
1092 * top.c (command_loop): Use clear_quit_flag.
1093 (command_line_input): Call QUIT.
1094 * utils.c (quit_flag): Conditionally define.
1095 (clear_quit_flag, check_quit_flag, set_quit_flag): New
1096 functions.
1097 (prompt_for_continue): Call QUIT. Use quit, not
1098 async_request_quit.
1099 * remote-mips.c (mips_expect_timeout): Call QUIT.
1100 * monitor.c (monitor_expect): Call QUIT.
1101
b583003e
TT
11022012-08-22 Tom Tromey <tromey@redhat.com>
1103
1104 * event-top.c (sigwinch_token, handle_sigwinch): Remove.
1105 (async_init_signals): Update.
1106 * utils.c (init_page_info): Don't use SIGWINCH_HANDLER.
1107 (SIGWINCH_HANDLER_BODY): Remove.
1108
e1507e95
TT
11092012-08-22 Tom Tromey <tromey@redhat.com>
1110
1111 * jit.c (jit_object_close_impl): Don't malloc the objfile
1112 name.
1113 * objfiles.c (allocate_objfile): Don't malloc the objfile
1114 name.
1115 (free_objfile): Don't free the objfile name.
1116 * objfiles.h (struct objfile) <name>: Update comment.
1117 * symfile.c (reread_symbols): Fix reference counting. Don't
1118 malloc objfile name.
1119
1c00ec6b
TT
11202012-08-22 Tom Tromey <tromey@redhat.com>
1121
1122 * windows-nat.c (windows_make_so): Use gdb_bfd_open.
1123 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_open.
1124 (symfile_bfd_open): Likewise.
1125 (generic_load): Likewise.
1126 * solib.c (solib_bfd_fopen): Use gdb_bfd_open.
1127 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
1128 gdb_bfd_open.
1129 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
1130 Use gdb_bfd_open.
1131 * rs6000-nat.c (add_vmap): Use gdb_bfd_open.
1132 * remote-mips.c (mips_load_srec): Use gdb_bfd_open.
1133 (pmon_load_fast): Likewise.
1134 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_open.
1135 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_open.
1136 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_open.
1137 (macho_check_dsym): Likewise.
1138 * m32r-rom.c (m32r_load): Use gdb_bfd_open.
1139 (m32r_upload_command): Likewise.
1140 * gdb_bfd.h (gdb_bfd_cache): Declare.
1141 * gdb_bfd.c (struct gdb_bfd_data): New.
1142 (gdb_bfd_cache): New global.
1143 (struct gdb_bfd_cache_search): New.
1144 (hash_bfd): New function.
1145 (eq_bfd): Likewise.
1146 (gdb_bfd_open): Likewise.
1147 (gdb_bfd_ref): Allocate a gdb_bfd_data and attach to the BFD.
1148 (gdb_bfd_unref): Remove closed BFD from cache. Update for
1149 gdb_bfd_data.
1150 * exec.c (exec_file_attach): Use gdb_bfd_open.
1151 * dsrec.c (load_srec): Use gdb_bfd_open.
1152
6532ff36
TT
11532012-08-22 Tom Tromey <tromey@redhat.com>
1154
1155 * dwarf2read.c (macro_start_file): Update.
1156 * objfiles.c (get_objfile_bfd_data): Initialize macro_cache.
1157 (free_objfile_per_bfd_storage): Destroy macro_cache.
1158 (allocate_objfile, free_objfile): Update.
1159 * objfiles.h (struct objfile_per_bfd_storage) <macro_cache>:
1160 New field.
1161 (struct objfile) <macro_cache>: Remove.
1162 * symfile.c (reread_symbols): Update.
1163 * symmisc.c (print_symbol_bcache_statistics): Update.
1164 (print_objfile_statistics): Update.
1165
706e3705
TT
11662012-08-22 Tom Tromey <tromey@redhat.com>
1167
1168 * elfread.c (elf_symtab_read): Update.
1169 * objfiles.c (objfiles_bfd_data): New global.
1170 (get_objfile_bfd_data, free_objfile_per_bfd_storage)
1171 (objfile_bfd_data_free, set_objfile_per_bfd): New functions.
1172 (allocate_objfile, free_objfile): Update.
1173 (_initialize_objfiles): Initialize objfiles_bfd_data.
1174 * objfiles.h (struct objfile_per_bfd_storage): New.
1175 (struct objfile) <per_bfd>: New field.
1176 <filename_cache>: Remove.
1177 (set_objfile_per_bfd): Declare.
1178 * symfile.c (reread_symbols): Update. Call
1179 set_objfile_per_bfd.
1180 (allocate_symtab): Update.
1181 * symmisc.c (print_symbol_bcache_statistics): Update.
1182 (print_objfile_statistics): Print the size of the BFD obstack.
1183
e992eda4
TT
11842012-08-22 Tom Tromey <tromey@redhat.com>
1185
1186 * gdb_bfd.h: Include registry.h. Use DECLARE_REGISTRY.
1187 * gdb_bfd.c: Use DEFINE_REGISTRY.
1188 (struct gdb_bfd_data): Add REGISTRY_FIELDS.
1189 (gdb_bfd_ref): Call bfd_alloc_data.
1190 (gdb_bfd_unref): Call bfd_free_data.
1191
6b81941e
TT
11922012-08-22 Tom Tromey <tromey@redhat.com>
1193
1194 * registry.h (struct registry_fields): New.
1195 (REGISTRY_FIELDS): Redefine.
1196 (REGISTRY_ACCESS_FIELD): New macro.
1197 (DEFINE_REGISTRY): Add ACCESS argument. Update defined
1198 functions.
1199
8e260fc0
TT
12002012-08-22 Tom Tromey <tromey@redhat.com>
1201
1202 * auto-load.c (_initialize_auto_load): Update.
1203 * solib-svr4.c (_initialize_svr4_solib): Update
1204 * solib-dsbt.c (_initialize_dsbt_solib): Update.
1205 * solib-darwin.c (_initialize_darwin_solib): Update.
1206 * registry.h: New file.
1207 * python/py-progspace.c (gdbpy_initialize_pspace): Update.
1208 * python/py-inferior.c (gdbpy_initialize_inferior): Update.
1209 * progspace.h: Include registry.h. Use DECLARE_REGISTRY.
1210 (register_program_space_data_with_cleanup)
1211 (register_program_space_data, program_space_alloc_data)
1212 (clear_program_space_data, set_program_space_data)
1213 (program_space_data): Don't declare.
1214 * progspace.c: Use DEFINE_REGISTRY.
1215 (struct program_space_data, struct
1216 program_space_data_registration, struct
1217 program_space_data_registry, program_space_data_registry)
1218 (register_program_space_data_with_cleanup)
1219 (register_program_space_data, program_space_alloc_data)
1220 (program_space_free_data, clear_program_space_data)
1221 (set_program_space_data, program_space_data): Remove.
1222 * objfiles.h: Include registry.h. Use DECLARE_REGISTRY.
1223 (struct objfile) <data, num_data>: Replace with REGISTRY_FIELDS.
1224 (register_objfile_data_with_cleanup, register_objfile_data)
1225 (clear_objfile_data, set_objfile_data, objfile_data): Don't
1226 declare.
1227 * objfiles.c: Use DEFINE_REGISTRY.
1228 (struct objfile_data, struct objfile_data_registration, struct
1229 objfile_data_registry, objfile_data_registry)
1230 (register_objfile_data_with_cleanup, register_objfile_data)
1231 (objfile_alloc_data, objfile_free_data, clear_objfile_data)
1232 (set_objfile_data, objfile_data): Remove.
1233 (_initialize_objfiles): Update.
1234 * jit.c (_initialize_jit): Update.
1235 * inflow.c (_initialize_inflow): Update.
1236 * inferior.h: Include registry.h. Use DECLARE_REGISTRY.
1237 (struct inferior) <data, num_data>: Replace with REGISTRY_FIELDS.
1238 (register_inferior_data_with_cleanup, register_inferior_data)
1239 (clear_inferior_data, set_inferior_data, inferior_data): Don't
1240 declare.
1241 * inferior.c: Use DEFINE_REGISTRY.
1242 (struct inferior_data, struct inferior_data_registration, struct
1243 inferior_data_registry, inferior_data_registry)
1244 (register_inferior_data_with_cleanup, register_inferior_data)
1245 (inferior_alloc_data, inferior_free_data clear_inferior_data)
1246 (set_inferior_data, inferior_data): Remove.
1247 * auxv.c (_initialize_auxv): Update.
1248 * ada-lang.c (_initialize_ada_language): Update.
1249 * breakpoint.c (_initialize_breakpoint): Update.
1250 * i386-nat.c (i386_use_watchpoints): Update.
1251
ed9eebaf
TT
12522012-08-22 Tom Tromey <tromey@redhat.com>
1253
1254 * exec.c (exec_close, exec_file_attach): Update.
1255 (add_to_section_table): Initialize 'key' field.
1256 (add_target_sections, remove_target_sections): Add 'key' argument.
1257 * exec.h (add_target_sections, remove_target_sections): Add
1258 'key' argument.
1259 * solib.c (solib_map_sections, update_solib_list, clear_solib)
1260 (reload_shared_libraries_1): Update.
1261 * target.h (struct target_section) <key>: New field.
1262
2f2e97fa
TT
12632012-08-22 Tom Tromey <tromey@redhat.com>
1264
1265 * cli/cli-cmds.c (filter_sals): Handle nelts == 0 case.
1266
b3dbbd6f
PM
12672012-08-21 Pierre Muller <muller@ics.u-strasbg.fr>
1268
1269 * symfile.c (allocate_symtab): Use host_address_to_string
1270 function instead of cast of pointer to long which is not
1271 compatible with x86_64-w64-mingw32 build.
1272
f94363d7
AP
12732012-08-19 Andrew Pinski <apinski@cavium.com>
1274
1275 * mips-tdep.c (is_octeon): New function.
1276 (is_octeon_bbit_op): New function.
1277 (mips32_next_pc): Handle Octeon's bbit instructions.
1278 (mips32_instruction_has_delay_slot): Likewise.
1279
78a59c2f
AP
12802012-08-19 Andrew Pinski <apinski@cavium.com>
1281
1282 * mips-tdep.c (mips32_next_pc): Fix line spacing of the comment
1283 before the function.
1284
4f5bcb50
AP
12852012-08-19 Andrew Pinski <apinski@cavium.com>
1286
1287 * mips-tdep.c (mips32_next_pc): Consolidate calls to itype_op.
1288
e5afdbd7
KS
12892012-08-19 Keith Seitz <keiths@redhat.com>
1290
1291 PR c++/14365
1292 * c-typeprint.c (c_type_print_varspec_prefix): Pass
1293 -1 for SHOW to c_type_print_base for METHODPTR and MEMBERPTR.
1294
13c9750e
EZ
12952012-08-18 Eli Zaretskii <eliz@gnu.org>
1296
1297 * Makefile.in (HFILES_NO_SRCDIR): Fix a typo: golang.h -> go-lang.h.
1298 The typo broke "make TAGS".
1299
db761810 13002012-08-17 Joel Brobecker <brobecker@adacore.com>
1301
1302 GDB 7.5 released.
1303
a451cb65
KS
13042012-08-17 Keith Seitz <keiths@redhat.com>
1305
1306 PR c++/13356
1307 * gdbtypes.c (strict_type_checking): New variable.
1308 (show_strict_type_checking): New function.
1309 (rank_one_type): Return NS_POINTER_INTEGER_CONVERSION_BADNESS
1310 if strict type checking is disabled.
1311 (_initialize_gdbtypes): Add "check type" subcommand.
1312 * gdbtypes.h (NS_INTEGER_POINTER_CONVERSION_BADNESS): New struct.
1313
13142012-08-17 Keith Seitz <keiths@redhat.com>
1315
1316 * language.h (type_mode): Remove.
1317 (type_check): Remove.
1318 (struct language_defn): Remove la_type_check.
1319 (STRICT_TYPE): Remove unused macro.
1320 (type_error): Remove.
1321 * language.c (set_type_range_case): Renamed to ...
1322 (set_range_case): ... this. Update all callers.
1323 Remove type_mode/type_check.
1324 (type_mode): Remove.
1325 (type_check): Remove.
1326 (show_type_command): Remove.
1327 (set_type_command): Remove.
1328 (language_info): Remove type checking output.
1329 (type_error): Remove unused function.
1330 (range_error): Update comment.
1331 (unknown_language_defn): Remove la_type_check.
1332 (auto_language_defn): Likewise.
1333 (local_language_defn): Likewise.
1334 (_initialize_language): Remove "check type" subcommand.
1335 * ada-lang.c (ada_language_defn): Remove la_type_check.
1336 * c-lang.c (c_language_defn): Likewise.
1337 (cplus_language_defn): Likewise.
1338 (asm_language_defn): Likewise.
1339 (minimal_language_defn): Likewise.
1340 * d-lang.c (d_language_defn): Likewise.
1341 * f-lang.c (f_language_defn): Likewise.
1342 * go-lang.c (go_language_defn): Likewise.
1343 * jv-lang.c (java_language_defn): Likewise.
1344 * m2-lang.c (m2_language_defn): Likewise.
1345 * objc-lang.c (objc_language_defn): Likewise.
1346 * opencl-lang.c (opencl_language_defn): Likewise.
1347 * p-lang.c (pascal_language_defn): Likewise.
1348
dbf6a605
MF
13492012-08-16 Mike Frysinger <vapier@gentoo.org>
1350
1351 * infcmd.c (_initialize_infcmd): Remove trailing ) in next help text.
1352
973e3cf7
JB
13532012-08-16 Joel Brobecker <brobecker@adacore.com>
1354
1355 * ia64-hpux-nat.c (ia64_hpux_get_register_from_save_state_t):
1356 New function.
1357 (ia64_hpux_xfer_memory): Check if inferior_ptid is known before
1358 using the regache. Use ia64_hpux_get_register_from_save_state_t
1359 to access the bsp and bspstore registers if not.
1360
d80ee84f
JB
13612012-08-16 Joel Brobecker <brobecker@adacore.com>
1362
1363 * breakpoint.h (detach_breakpoints): pid parameter is now a ptid.
1364 * breakpoint.c (detach_breakpoints): Change pid parameter into
1365 a ptid. Adjust code accordingly.
1366 * infrun.c (handle_inferior_event): Delete variable child_pid.
1367 Update call to detach_breakpoints to pass the child ptid for
1368 fork events.
1369 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Remove
1370 assert that inferior_ptid's lwp is zero.
1371 (linux_handle_extended_wait): Update call to detach_breakpoints.
1372 * inf-ttrace.c (inf_ttrace_follow_fork): Update call to
1373 detach_breakpoints.
1374
2dcc6086
JB
13752012-08-16 Joel Brobecker <brobecker@adacore.com>
1376
1377 * inf-ttrace.c (inf_ttrace_follow_fork): When following the
1378 parent, only call detach_breakpoints if tts.tts_event ==
1379 TTEVT_VFORK.
1380
0c92d8c1
JB
13812012-08-16 Joel Brobecker <brobecker@adacore.com>
1382
1383 * dwarf2-frame.c (dwarf2_frame_cache): Use
1384 get_frame_address_in_block instead of get_frame_pc as
1385 the bound for executing the frame's FDE.
1386
6b1755ce
YQ
13872012-08-16 Yao Qi <yao@codesourcery.com>
1388
1389 * gdbtypes.h (enum type_code): Define TYPE_CODE_BITSTRING -1.
1390 * arm-tdep.c (arm_type_align): Remove code handling TYPE_CODE_BITSTRING.
1391 * c-typeprint.c (c_type_print_varspec_prefix): Likewise.
1392 (c_type_print_varspec_suffix): Likewise.
1393 * eval.c (evaluate_subexp_standard): Likewise.
1394 * f-typeprint.c (f_type_print_varspec_prefix): Likewise.
1395 (f_type_print_varspec_suffix): Likewise.
1396 * gdbtypes.c (is_scalar_type): Likewise.
1397 (recursive_dump_type): Likewise.
1398 * infcall.c (value_arg_coerce): Likewise.
1399 * m2-valprint.c (m2_val_print): Likewise.
1400 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
1401 (pascal_type_print_varspec_suffix): Likewise.
1402 (pascal_type_print_base): Likewise.
1403 * p-valprint.c (pascal_val_print): Likewise.
1404 (pascal_val_print): Likewise.
1405 * valops.c (value_slice): Likewise.
1406 * valprint.c (scalar_type_p): Likewise.
1407 * valarith.c (value_bitstring_subscript): Remove.
1408 (value_concat): Remove code handling TYPE_CODE_BITSTRING.
1409 Remove comment on TYPE_CODE_BITSTRING.
1410
1411 * stabsread.c (read_type): Don't set TYPE_CODE (type) to
1412 TYPE_CODE_BITSTRING.
1413
1414 * python/py-type.c (pyty_codes): Move ENTRY (TYPE_CODE_BITSTRING) to
1415 slot 0.
1416
8acc4065
YQ
14172012-08-16 Yao Qi <yao@codesourcery.com>
1418
1419 * tracepoint.c (trace_find_none_command): Remove.
1420 (_initialize_tracepoint): Call add_alias_cmd for "tfind none".
1421
8128fd8e
YQ
14222012-08-16 Yao Qi <yao@codesourcery.com>
1423
1424 * remote.c (handle_notification): Remove parameter 'length'.
1425 (putpkt_binary, getpkt_or_notif_sane_1): Caller update.
1426
2873700e
KS
14272012-08-15 Keith Seitz <keiths@redhat.com>
1428
1429 * gdbtypes.c (opaque_type_resolution): Make static.
1430 Add missing comment.
1431 (overload_debug): Add missing comment.
1432 (show_opaque_type_resolution): Likewise.
1433 (show_overload_debug): Likewise.
1434 (print_bit_vector): Remove unnecessary forward declaration.
1435 (print_arg_types): Likewise.
1436 (dump_fn_fieldlists): Likewise.
1437 (print_cplus_stuff): Likewise.
1438
b82d08cd
TT
14392012-08-15 Tom Tromey <tromey@redhat.com>
1440
1441 * gdb_bfd.c (struct gdb_bfd_data) <archive_bfd>: New field.
1442 (gdb_bfd_ref): Initialize new field.
1443 (gdb_bfd_unref): Unref the archive BFD.
1444 (gdb_bfd_openr_next_archived_file): Acquire a reference to the
1445 parent archive.
1446
db6573d6
TT
14472012-08-15 Tom Tromey <tromey@redhat.com>
1448
1449 PR python/14387:
1450 * python/py-bpevent.c (create_breakpoint_event_object): Update
1451 comment.
1452 * python/py-event.c (evpy_add_attribute): Update comment.
1453 * python/py-exitedevent.c (create_exited_event_object): Fix
1454 reference counting and error handling.
1455 * python/py-newobjfileevent.c (create_new_objfile_event_object):
1456 Fix reference counting.
1457 * python/py-signalevent.c (create_signal_event_object): Fix
1458 reference counting and error handling.
1459 * python/py-stopevent.c (emit_stop_event): Fix reference
1460 counting.
1461 * python/py-threadevent.c (get_event_thread): Return a
1462 borrowed reference.
1463 * python/py-type.c (convert_field): Fix reference counting.
1464
a036ba48
TT
14652012-08-15 Tom Tromey <tromey@redhat.com>
1466
1467 * dwarf2read.c (dwarf_decode_macro_bytes)
1468 <DW_MACRO_GNU_transparent_include>: Use pointer to included data
1469 as hash key.
1470
486c7739
MF
14712012-08-14 Mike Frysinger <vapier@gentoo.org>
1472
1473 * infcmd.c (_initialize_infcmd): Update help text for the signal,
1474 stepi, nexti, finish, next, step, jump, and continue commands.
1475 * infrun.c (_initialize_infrun): Update help text for the handle
1476 command.
1477
4cf93a03
DE
14782012-08-14 Doug Evans <dje@google.com>
1479
70b099cf
DE
1480 * gdbtypes.c (struct extra): Delete, unused.
1481
5212577a
DE
1482 * gdbtypes.c: Whitespace cleanup.
1483 (address_space_name_to_int): Remove "extern" from definition.
1484 (_initialize_gdbtypes): Declare with initialize_file_ftype.
1485
4cf93a03
DE
1486 * gdbtypes.c (make_pointer_type): Remove redundant setting of
1487 TYPE_POINTER_TYPE (type).
1488
3756ef7e
GB
14892012-08-14 Gary Benson <gbenson@redhat.com>
1490
1491 * solib-svr4.c (svr4_free_library_list): Use free_so.
1492
40d72643
MF
14932012-08-13 Mike Frysinger <vapier@gentoo.org>
1494
1495 * .gitignore: Add go-exp.c.
1496
f47f77df
DE
14972012-08-13 Doug Evans <dje@google.com>
1498
1499 * value.c (show_convenience): Tweak comment.
1500 (_initialize_values): Mention convenience functions in the help text
1501 for "show convenience".
1502
7507c54a
YQ
15032012-08-13 Yao Qi <yao@codesourcery.com>
1504
1505 * std-operator.def: Remove TERNOP_SLICE_COUNT.
1506 * breakpoint.c (watchpoint_exp_is_const): Remove handling to
1507 TERNOP_SLICE_COUNT.
1508 * eval.c (evaluate_subexp_standard): Likewise.
1509 * expprint.c (print_subexp_standard): Likewise.
1510 (dump_subexp_body_standard): Likewise.
1511 * parse.c (operator_length_standard): Likewise.
1512
5cad9736
YQ
15132012-08-13 Yao Qi <yao@codesourcery.com>
1514
1515 * std-operator.def: Remove OP_BITSTRING.
1516 * breakpoint.c (watchpoint_exp_is_const): Update.
1517 * eval.c (evaluate_subexp_standard): Remove handling to
1518 OP_BITSTRING.
1519 * expprint.c (print_subexp_standard): Likewise.
1520 (dump_subexp_body_standard): Likewise.
1521 * parse.c (operator_length_standard): Likewise.
1522 * valops.c (value_bitstring): Remove.
1523 * value.h: Remove the declaration of 'value_bitstring'.
1524
bad7670a
SDJ
15252012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
1526
1527 * linespec.c (find_methods): Remove unused variables `i1' and
1528 `name_len'.
1529 (decode_line_full): Likewise for `arg_start'.
1530
d9dce7fa
SDJ
15312012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
1532
1533 * gdb_bfd.c (gdb_bfd_unref): Remove unused variable `slot'.
1534 (zlib_decompress_section): Likewise for `section_data'.
1535 (gdb_bfd_map_section): Likewise for `buf' and `retbuf'.
1536
a72c3253
DE
15372012-08-10 Doug Evans <dje@google.com>
1538
1539 Add $_memeq, $_regex, $_streq, $_strlen convenience functions.
1540 * NEWS: Document them.
1541 * data-directory/Makefile.in (PYTHON_FILES): Add function/__init__.py,
1542 function/strfns.py.
1543 * python/py-type.c (typy_array_1): New function.
1544 (typy_array): Call it.
1545 (typy_vector): New function.
1546 (type_object_methods): Add "vector".
1547 * python/lib/gdb/function/__init__.py: New file.
1548 * python/lib/gdb/function/strfns.py: New file.
1549
200bc880
SP
15502012-08-10 Siddhesh Poyarekar <siddhesh@redhat.com>
1551
1552 * python/py-type.c (convert_field): Use gdb_py_long_from_longest
1553 for TYPE_FIELD_BITPOS.
1554 (typy_get_sizeof): Likewise for TYPE_LENGTH.
1555
de0bea00
MF
15562012-08-10 Mike Frysinger <vapier@gentoo.org>
1557
1558 PR cli/10436:
1559 * common/vec.h (VEC_merge): Define.
1560 (DEF_VEC_ALLOC_FUNC_I): Add a merge helper.
1561 (DEF_VEC_ALLOC_FUNC_P): Likewise.
1562 (DEF_VEC_ALLOC_FUNC_O): Likewise.
1563 * completer.c: Include gdb_signals.h.
1564 (signal_completer): Define.
1565 * completer.h (signal_completer): Add prototype.
1566 * infcmd.c (_initialize_infcmd): Assign the command
1567 completer for "signal" to handle_completer.
1568 * infrun.c: Include completer.h.
1569 (handle_completer): Define.
1570 (_initialize_infrun): Declare a new local variable c. Store the
1571 result of add_com("handle") to it. Assign the command
1572 completer for "handle" to handle_completer.
1573
5b9afe8a
YQ
15742012-08-09 Yao Qi <yao@codesourcery.com>
1575
1576 * cli/cli-decode.c (set_cmd_prefix): New.
1577 (lookup_cmd_for_prefixlist): New.
1578 (add_prefix_cmd): Call set_cmd_prefix and update field 'prefix'
1579 of each cmd_list_element in *prefixlist.
1580 (add_setshow_cmd_full): set_cmd_prefix.
1581 (add_alias_cmd): Likewise.
1582 * cli/cli-decode.h (struct cmd_list_element) <prefix>: New field.
1583 Declare 'auto_boolean_enums'.
1584 * cli/cli-setshow.c: Include "observer.h".
1585 (notify_command_param_changed_p): New.
1586 (add_setshow_auto_boolean_cmd): Move auto_boolean_enums out.
1587 Remove 'static'.
1588 (do_setshow_command): Split it to ...
1589 (do_set_command, do_show_command): ... them. New.
1590 (do_set_command): Call observer_notify_command_param_changed if
1591 notify_command_param_changed_p returns true.
1592 (cmd_show_list): Caller update.
1593 * auto-load.c (set_auto_load_cmd): Likewise.
1594 * remote.c (show_remote_cmd): Likewise.
1595 * cli/cli-setshow.h: Update declarations.
1596 * top.c (execute_command): Call do_set_command and do_show_command.
1597
1598 * NEWS: Mention new MI notification.
1599 * mi/mi-interp.c: Declare mi_command_param_changed.
1600 (mi_interpreter_init): Attach mi_command_param_changed to
1601 observer command_param_changed.
1602 (mi_command_param_changed): New.
1603 Remove mi_suppress_breakpoint_notifications.
1604 Define global variable mi_suppress_notification.
1605 (mi_breakpoint_created): Update.
1606 (mi_breakpoint_deleted): Likewise.
1607 (mi_breakpoint_modified): Likewise.
1608 * mi/mi-main.c (mi_cmd_execute): Likewise. Check command
1609 'gdb-set' and set mi_suppress_notification.
1610 * mi/mi-main.h: (mi_suppress_notification): New struct.
1611
1969df89
JK
16122012-08-09 Andreas Tobler <andreast@fgznet.ch>
1613 Jan Kratochvil <jan.kratochvil@redhat.com>
1614
1615 * fbsd-nat.h (fbsd_find_memory_regions): Use find_memory_region_ftype.
1616
8bfd80db
YQ
16172012-08-09 Yao Qi <yao@codesourcery.com>
1618
1619 * cli/cli-cmds.c (enablebreaklist): Move it to breakpoint.c.
1620 (skiplist): Move it to skip.c.
1621 (init_cmd_lists): Remove code setting enablebreaklist and
1622 skiplist to NULL.
1623 * breakpoint.c (enablebreaklist): Moved from cli/cli-cmds.c.
1624 * cli/cli-cmds.h: Remove declaration of enablebreaklist and
1625 skiplist.
1626 * gdbcmd.h: Likewise.
1627 * skip.c (_initialize_step_skip): Move 'skiplist' from
1628 cli/cli-cmds.c.
1629
28578e6b
YQ
16302012-08-09 Yao Qi <yao@codesourcery.com>
1631
1632 * cli/cli-dump.c: Add 'static' to some cmd_list_element variables.
1633 * gnu-nat.c, symfile.c: Likewise.
1634
260c0b2a
DE
16352012-08-08 Aaron Gamble <agamble@google.com>
1636
1637 * utils.c (prompt_for_continue_wait_time): New static global.
1638 (make_command_stats_cleanup): Initialize it.
1639 (report_command_stats): Subtract time waiting for user.
1640 (prompt_for_continue): Track time waiting for user.
1641 (defaulted_query): Track time waiting for user.
1642
4f485ebc
DE
16432012-08-08 Doug Evans <dje@google.com>
1644
1645 * eval.c (evaluate_subexp_standard): Fix thinko in handling
1646 UNOP_MEMVAL_TYPE.
1647 * expprint.c (print_subexp_standard, case OP_TYPE): New.
1648 (print_subexp_standard, case UNOP_CAST_TYPE): Don't increment pos.
1649 (print_subexp_standard, case UNOP_DYNAMIC_CAST): Ditto.
1650 (print_subexp_standard, case UNOP_REINTERPRET_CAST): Ditto.
1651 (print_subexp_standard, case UNOP_MEMVAL_TYPE): Ditto.
1652 (dump_subexp_body_standard, case UNOP_DYNAMIC_CAST): Don't increment
1653 elt.
1654 (dump_subexp_body_standard, case UNOP_REINTERPRET_CAST): Ditto.
1655 (dump_subexp_body_standard, case UNOP_CAST_TYPE): Ditto.
1656 (dump_subexp_body_standard, case UNOP_MEMVAL_TYPE): Ditto.
1657 (dump_prefix_expression): Handle OP_TYPE.
1658
2acf2b39
KS
16592012-08-08 Keith Seitz <keiths@redhat.com>
1660
1661 * breakpoint.c (parse_breakpoint_sals): Remove unused variable
1662 addr_start.
1663
e6712ff1
DE
16642012-08-08 Doug Evans <dje@google.com>
1665
1666 * linux-thread-db.c: #include "gdb_vecs.h".
1667 (try_thread_db_load_from_pdir_1): New arg "subdir". All callers
1668 updated.
1669 (try_thread_db_load_from_pdir): New arg "subdir". All callers updated.
1670 (thread_db_load_search): Use a vector to iterate over path elements.
1671 Handle text appearing after "$pdir".
1672
1673 * gdb_string.h: Moved to ...
1674 * common/gdb_string.h: ... here.
1675 * common/vec.h: Remove #ifndef GDBSERVER conditional inclusion of
1676 gdb_string.h and gdb_assert.h.
1677
ab854e54
YQ
16782012-08-08 Yao Qi <yao@codesourcery.com>
1679
1680 * tic6x-tdep.c (tic6x_register_to_value): Remove.
1681 (tic6x_value_to_register): Likewise.
1682 (tic6x_gdbarch_init): Don't call set_gdbarch_register_to_value
1683 and set_gdbarch_value_to_register.
1684
4f69f4c2
JK
16852012-08-07 Jan Kratochvil <jan.kratochvil@redhat.com>
1686 Jean-Marc Saffroy <saffroy@gmail.com>
1687
1688 PR 11804
1689 * defs.h (find_memory_region_ftype): New comment. New arg modified.
1690 * fbsd-nat.c (fbsd_find_memory_regions): Add the passed modified value.
1691 * gcore.c (gcore_create_callback): New function comment. Add modified
1692 parameter. Only write modified regions. Set SEC_READONLY exactly
1693 according to MODIFIED.
1694 (objfile_find_memory_regions): Ignore separate debug info files. Ass
1695 the passed modified value to FUNC.
1696 * gnu-nat.c (gnu_find_memory_regions): Add the passed modified value.
1697 * linux-tdep.c (linux_find_memory_regions): Try to reads smaps file
1698 first. New variables modified and has_anonymous. Parse the lines of
1699 smaps file. Add the passed MODIFIED value to FUNC.
1700 * procfs.c (find_memory_regions_callback): Add the passed modified
1701 value.
1702
78ac5f83
TT
17032012-08-06 Tom Tromey <tromey@redhat.com>
1704
1705 * dwarf2-frame.c (clear_pointer_cleanup): New function.
1706 (dwarf2_frame_cache): Use it.
1707 * frame-unwind.h (frame_sniffer_ftype): Document prologue
1708 cache initialization constraint.
1709
2c12abee
TT
17102012-08-06 Tom Tromey <tromey@redhat.com>
1711
1712 PR python/14386:
1713 * varobj.c (update_dynamic_varobj_children): Don't call
1714 PyIter_Check.
1715
4979d7f0
TT
17162012-08-06 Tom Tromey <tromey@redhat.com>
1717
1718 PR cli/14392:
1719 * cli/cli-cmds.c (list_command): Filter 'sals_end'.
1720
f3c8a52a
JK
17212012-08-06 Nathaniel Flath <flat0103@gmail.com>
1722
1723 * NEWS: New entry for 'cd' default parameters.
1724 * cli/cli-cmds.c (cd_command): Replace error_no_arg by DIR assignment.
1725
5a1cf4d6
TT
17262012-08-03 Tom Tromey <tromey@redhat.com>
1727
1728 * dwarf2-frame.c (dwarf2_frame_cache): Call do_cleanups before
1729 return.
1730
7c3270ae
UW
17312012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
1732
1733 * inf-child.c (inf_child_fileio_pwrite): If pwrite fails, fall back
1734 to attempting lseek/write.
1735 (inf_child_fileio_pread): Likewise for pread.
1736
ccce17b0
YQ
17372012-08-02 Yao Qi <yao@codesourcery.com>
1738
1739 * dwarf2loc.c (entry_values_debug): Add 'unsigned'.
1740 (_initialize_dwarf2loc): Call add_setshow_zuinteger_cmd instead of
1741 add_setshow_zinteger_cmd.
1742 * dwarf2loc.h: Update the declaration of 'entry_values_debug'.
1743 * dwarf2read.c (dwarf2_die_debug): Add 'unsigned'.
1744 (_initialize_dwarf2_read): Call add_setshow_zuinteger_cmd
1745 instead of add_setshow_zinteger_cmd.
1746 * darwin-nat.c (dwarwin_debug_flag): Add 'unsigned'.
1747 (_initialize_darwin_inferior): Call add_setshow_zuinteger_cmd
1748 instead of add_setshow_zinteger_cmd.
1749 * frame.c (frame_debug): Add 'unsigned'.
1750 (_intialize_frame): Call add_setshow_zuinteger_cmd instead of
1751 add_setshow_zinteger_cmd.
1752 * frame.h: Update the declaration of 'frame_debug'.
1753 * gdbtypes.c (overload_debug): Add 'unsigned'.
1754 (_initialize_gdbtypes): Call add_setshow_zuinteger_cmd instead of
1755 add_setshow_zinteger_cmd.
1756 * inferior.h: Update declaration of 'debug_infrun'.
1757 * infrun.c (debug_infrun): Add 'unsigned'.
1758 (_initialize_infrun): Call add_setshow_zuinteger_cmd instead of
1759 add_setshow_zinteger_cmd.
1760 * jit.c (jit_debug): Add 'unsigned'.
1761 (_initialize_jit): Call add_setshow_zuinteger_cmd instead of
1762 add_setshow_zinteger_cmd.
1763 * linux-nat.c (debug_linux_nat): Add 'unsigned'.
1764 (_initialize_linux_nat): Call add_setshow_zuinteger_cmd
1765 instead of add_setshow_zinteger_cmd.
1766 * linux-thread-db.c (libthread_db_debug): Add 'unsigned'.
1767 (_initialize_thread_db): Call add_setshow_zuinteger_cmd instead of
1768 add_setshow_zinteger_cmd.
1769 * machoread.c (mach_o_debug_level): Add 'unsigned'.
1770 (_initialize_machoread): Call add_setshow_zuinteger_cmd
1771 instead of add_setshow_zinteger_cmd.
1772 * mi/mi-cmd-var.c: Update the declaration of 'varobjdebug'.
1773 * microblaze-tdep.c (microblaze_debug_flag): Add 'unsigned'.
1774 (_initialize_microblaze_tdep): Call add_setshow_zuinteger_cmd
1775 intead of add_setshow_zinteger_cmd.
1776 * mips-tdep.c (mips_debug): Add 'unsigned'.
1777 (_initialize_mips_tdep): Call add_setshow_zuinteger_cmd
1778 instead of add_setshow_zinteger_cmd.
1779 * monitor.c (monitor_debug): Add 'unsigned'.
1780 (_initialize_remote_monitors): Call add_setshow_zuinteger_cmd instead of
1781 add_setshow_zinteger_cmd.
1782 * observer.c (observer_debug): Add 'unsigned'.
1783 (_initialize_observer): Call add_setshow_zuinteger_cmd instead of
1784 add_setshow_zinteger_cmd.
1785 * parse.c (expressiondebug): Add 'unsigned'.
1786 (_initialize_parse): Call add_setshow_zuinteger_cmd instead of
1787 add_setshow_zinteger_cmd.
1788 * record.c (record_debug): Add 'unsigned'.
1789 (_initialize_record): Call add_setshow_zuinteger_cmd instead of
1790 add_setshow_zinteger_cmd.
1791 * record.h: Update the declaration of 'record_debug'.
1792 * stap-probe.c (stap_expression_debug): Add 'unsigned'.
1793 (_initialize_stap_probe): Call add_setshow_zuinteger_cmd instead of
1794 add_setshow_zinteger_cmd.
1795 * serial.c (global_serial_debug_p): Add 'unsigned'.
1796 (_initialize_serial): Call add_setshow_zuinteger_cmd instead of
1797 add_setshow_zinteger_cmd.
1798 * solib-dsbt.c (solib_dsbt_debug): Add 'unsigned'.
1799 (_initialize_dsbt_solib): Call add_setshow_zuinteger_cmd instead of
1800 add_setshow_zinteger_cmd.
1801 * solib-frv.c (solib_frv_debug): Add 'unsigned'.
1802 (_initialize_frv_solib): Call add_setshow_zuinteger_cmd instead of
1803 add_setshow_zinteger_cmd.
1804 * target.c (targetdebug): Add 'unsigned'.
1805 (initialize_targets): Call add_setshow_zuinteger_cmd instead of
1806 add_setshow_zinteger_cmd.
1807 * valops.c (overload_debug): Add 'unsigned'.
1808 * varobj.c (varobjdebug): Add 'unsigned'.
1809 (_initialize_varobj): Call add_setshow_zuinteger_cmd instead of
1810 add_setshow_zinteger_cmd.
1811 * xtensa-tdep.c (xtensa_debug_level): Add 'unsigned'.
1812 (_initialize_xtensa_tdep): Call add_setshow_zuinteger_cmd
1813 instead of add_setshow_zinteger_cmd.
1814
1815 * arch-utils.h: Remove the declaration of 'gdbarch_debug'.
1816 * gdbarch.sh (gdbarch_debug): Add 'unsigned'.
1817 (extern void _initialize_gdbarch): Call add_setshow_zuinteger_cmd
1818 instead of add_setshow_zinteger_cmd.
1819 * gdbarch.c, gdbarch.h: Re-generated.
1820
95b07c96
YQ
18212012-08-02 Yao Qi <yao@codesourcery.com>
1822
1823 * nto-tdep.c: Don't include cli/cli-decode.h and
1824 cli/cli-cmds.h.
1825 (_initialize_nto_tdep): Remove.
1826 * nto-tdep.h (struct nto_target_ops) <internal_debugging>:
1827 Remove field.
1828 Remove macro nto_internal_debugging.
1829
57295b0b
RH
18302012-08-01 Richard Henderson <rth@redhat.com>
1831
1832 * configure.tgt (m32c-*-*) [gdb_target_obs]: Remove prologue-value.o.
1833 (mep-*-*) [gdb_target_obs]: Likewise.
1834
f782ad9b
AS
18352012-07-31 Andreas Schwab <schwab@linux-m68k.org>
1836
1837 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
1838 linux_get_siginfo_type.
1839
a14dd77e
JK
18402012-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
1841
1842 * infcall.c (call_function_by_hand): Move BP_ADDR comment to
1843 AT_ENTRY_POINT.
1844 (call_function_by_hand) <ON_STACK>: Call write_memory with
1845 gdbarch_breakpoint_from_pc, if possible.
1846 (call_function_by_hand) <AT_ENTRY_POINT>: The BP_ADDR comment is moved
1847 here.
1848
1467929f
YQ
18492012-07-31 Yao Qi <yao@codesourcery.com>
1850
1851 * tracepoint.c: Add 'static' for some variables.
1852
70976b65
YQ
18532012-07-31 Yao Qi <yao@codesourcery.com>
1854
1855 * go32-nat.c: Declare _initialize_go32_nat.
1856 * ser-go32.c: Declare _initialize_ser_dos.
1857 * top.c (do_chdir_cleanup): Add 'static'.
1858
eff9c3e6
KS
18592012-07-30 Keith Seitz <keiths@redhat.com>
1860
1861 * linespec.c (linespec_lex_number): A number followed
1862 by quotes is a valid number, too.
1863
728400d7
TT
18642012-07-30 Tom Tromey <tromey@redhat.com>
1865
1866 * remote-sim.c (gdb_os_poll_quit): Don't check immediate_quit.
1867
fcf303ab
UW
18682012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
1869
1870 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Do not
1871 attempt to 4-byte-align HW breakpoint addresses for Thumb.
1872
4e969b4f
AB
18732012-07-30 Andrew Burgess <aburgess@broadcom.com>
1874
1875 * varobj.c (varobj_invalidate_iter): All varobj must be marked as
1876 invalid or reevaluated to prevent prevent references to possibly
1877 delete'd type objects being left in the varobj.
1878
c4bfde41
JK
18792012-07-27 Tom Tromey <tromey@redhat.com>
1880 Jan Kratochvil <jan.kratochvil@redhat.com>
1881
1882 * copying.awk: Print buffer-read-only and vi ro markers.
1883 * copying.c: Rebuild.
1884 * gdbarch.sh (copyright): Print buffer-read-only and vi ro markers.
1885 * gdbarch.c, gdbarch.h: Rebuild.
1886 * target-descriptions.c (maint_print_c_tdesc_cmd): Print
1887 buffer-read-only and vi ro markers.
1888 * features/arm-with-iwmmxt.c: Rebuild.
1889 * features/arm-with-m-fpa-layout.c: Rebuild.
1890 * features/arm-with-m-vfp-d16.c: Rebuild.
1891 * features/arm-with-m.c: Rebuild.
1892 * features/arm-with-neon.c: Rebuild.
1893 * features/arm-with-vfpv2.c: Rebuild.
1894 * features/arm-with-vfpv3.c: Rebuild.
1895 * features/i386/amd64-avx-linux.c: Rebuild.
1896 * features/i386/amd64-avx.c: Rebuild.
1897 * features/i386/amd64-linux.c: Rebuild.
1898 * features/i386/amd64.c: Rebuild.
1899 * features/i386/i386-avx-linux.c: Rebuild.
1900 * features/i386/i386-avx.c: Rebuild.
1901 * features/i386/i386-linux.c: Rebuild.
1902 * features/i386/i386-mmx-linux.c: Rebuild.
1903 * features/i386/i386-mmx.c: Rebuild.
1904 * features/i386/i386.c: Rebuild.
1905 * features/i386/x32-avx-linux.c: Rebuild.
1906 * features/i386/x32-avx.c: Rebuild.
1907 * features/i386/x32-linux.c: Rebuild.
1908 * features/i386/x32.c: Rebuild.
1909 * features/mips-dsp-linux.c: Rebuild.
1910 * features/mips-linux.c: Rebuild.
1911 * features/mips64-dsp-linux.c: Rebuild.
1912 * features/mips64-linux.c: Rebuild.
1913 * features/rs6000/powerpc-32.c: Rebuild.
1914 * features/rs6000/powerpc-32l.c: Rebuild.
1915 * features/rs6000/powerpc-403.c: Rebuild.
1916 * features/rs6000/powerpc-403gc.c: Rebuild.
1917 * features/rs6000/powerpc-405.c: Rebuild.
1918 * features/rs6000/powerpc-505.c: Rebuild.
1919 * features/rs6000/powerpc-601.c: Rebuild.
1920 * features/rs6000/powerpc-602.c: Rebuild.
1921 * features/rs6000/powerpc-603.c: Rebuild.
1922 * features/rs6000/powerpc-604.c: Rebuild.
1923 * features/rs6000/powerpc-64.c: Rebuild.
1924 * features/rs6000/powerpc-64l.c: Rebuild.
1925 * features/rs6000/powerpc-7400.c: Rebuild.
1926 * features/rs6000/powerpc-750.c: Rebuild.
1927 * features/rs6000/powerpc-860.c: Rebuild.
1928 * features/rs6000/powerpc-altivec32.c: Rebuild.
1929 * features/rs6000/powerpc-altivec32l.c: Rebuild.
1930 * features/rs6000/powerpc-altivec64.c: Rebuild.
1931 * features/rs6000/powerpc-altivec64l.c: Rebuild.
1932 * features/rs6000/powerpc-cell32l.c: Rebuild.
1933 * features/rs6000/powerpc-cell64l.c: Rebuild.
1934 * features/rs6000/powerpc-e500.c: Rebuild.
1935 * features/rs6000/powerpc-e500l.c: Rebuild.
1936 * features/rs6000/powerpc-isa205-32l.c: Rebuild.
1937 * features/rs6000/powerpc-isa205-64l.c: Rebuild.
1938 * features/rs6000/powerpc-isa205-altivec32l.c: Rebuild.
1939 * features/rs6000/powerpc-isa205-altivec64l.c: Rebuild.
1940 * features/rs6000/powerpc-isa205-vsx32l.c: Rebuild.
1941 * features/rs6000/powerpc-isa205-vsx64l.c: Rebuild.
1942 * features/rs6000/powerpc-vsx32.c: Rebuild.
1943 * features/rs6000/powerpc-vsx32l.c: Rebuild.
1944 * features/rs6000/powerpc-vsx64.c: Rebuild.
1945 * features/rs6000/powerpc-vsx64l.c: Rebuild.
1946 * features/rs6000/rs6000.c: Rebuild.
1947 * features/s390-linux32.c: Rebuild.
1948 * features/s390-linux32v1.c: Rebuild.
1949 * features/s390-linux32v2.c: Rebuild.
1950 * features/s390-linux64.c: Rebuild.
1951 * features/s390-linux64v1.c: Rebuild.
1952 * features/s390-linux64v2.c: Rebuild.
1953 * features/s390x-linux64.c: Rebuild.
1954 * features/s390x-linux64v1.c: Rebuild.
1955 * features/s390x-linux64v2.c: Rebuild.
1956 * features/tic6x-c62x-linux.c: Rebuild.
1957 * features/tic6x-c62x.c: Rebuild.
1958 * features/tic6x-c64x-linux.c: Rebuild.
1959 * features/tic6x-c64x.c: Rebuild.
1960 * features/tic6x-c64xp-linux.c: Rebuild.
1961 * features/tic6x-c64xp.c: Rebuild.
1962
826f0041
TT
19632012-07-27 Tom Tromey <tromey@redhat.com>
1964
1965 * c-exp.y (classify_name): Avoid assignment in condition.
1966
84552b16
PA
19672012-07-27 Roland Schwingel <roland.schwingel@onevision.com>
1968
1969 * amd64-windows-tdep.c: Include "frame.h".
1970 (amd64_windows_skip_trampoline_code): New function.
1971 (amd64_windows_init_abi): Add trampoline registration.
1972
a8a64aa8
YQ
19732012-07-27 Yao Qi <yao@codesourcery.com>
1974
1975 * tracepoint.c (cur_traceframe_number): Remove.
1976 (set_tfile_traceframe): Remove.
1977 (tfile_trace_find, tfile_fetch_registers): Update callers.
1978 (tfile_xfer_partial, tfile_get_trace_state_variable_value): Likewise.
1979 (tfile_open, tfile_trace_find): Likewise.
1980
d99067cb
YQ
19812012-07-27 Yao Qi <yao@codesourcery.com>
1982
1983 * thread.c (switch_to_thread): Don't call registers_changed.
1984
f2e8016f
TT
19852012-07-26 Tom Tromey <tromey@redhat.com>
1986
f782ad9b
AS
1987 * Makefile.in (SFILES): Remove objc-exp.y.
1988 (YYFILES): Remove objc-exp.c.
1989 (YYOBJ): Remove objc-exp.o.
1990 (local-maintainer-clean): Don't mention objc-exp.c.
1991 * c-exp.y: Include objc-lang.h.
1992 (%union) <class>: New field.
1993 (NSSTRING, SELECTOR, CLASSNAME, OBJC_LBRAC): New tokens.
1994 (exp): Clone subscript production for OBJC_LBRAC. Add various
1995 Objective C productions.
1996 (msglist, msgarglist, msgarg): New productions.
1997 (array_mod, func_mod, operator): Clone productions for
1998 OBJC_LBRAC.
1999 (parse_string_or_char): Handle '@' strings.
2000 (lex_one_token): Return OBJC_LBRAC. Recognize @selector.
2001 (classify_name): Check la_name_of_this. Recognize ObjC class
2002 names.
2003 * objc-exp.y: Remove.
2004 * objc-lang.c (objc_language_defn): Use c_parse, c_error.
2005 * objc-lang.h (objc_parse, objc_error): Don't declare.
f2e8016f 2006
f66713d2
JK
20072012-07-26 Markus Metzger <markus.t.metzger@intel.com>
2008
2009 * python/py-inferior.c (infpy_threads): Call update_thread_list ().
2010
7cfe01b4
JK
20112012-07-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2012
2013 * auto-load.c (auto_load_info_scripts): Remove immediate_quit increment
2014 and decrement.
2015
5ba19b4c
TT
20162012-07-26 Tom Tromey <tromey@redhat.com>
2017
2018 * copying.c: Rebuild.
2019 * copying.awk: Don't use immediate_quit. Use 'no_set_class', not
2020 'no_class'.
2021
27618ce4
TT
20222012-07-26 Tom Tromey <tromey@redhat.com>
2023
2024 * symmisc.c (print_symbol_bcache_statistics): Use QUIT, not
2025 immediate_quit.
2026 (print_objfile_statistics): Likewise.
2027 (maintenance_print_symbols): Likewise.
2028 (maintenance_print_msymbols): Likewise.
2029 (maintenance_print_objfiles): Likewise.
2030 * psymtab.c (print_partial_symbols): Call QUIT.
2031 (maintenance_print_psymbols): Likewise. Don't modify
2032 immediate_quit.
2033 * copying.c (show_copying_command): Don't modify immediate_quit.
2034 (show_warranty_command): Likewise.
2035 * cli/cli-cmds.c (show_version): Don't modify immediate_quit.
2036
dd3818c8
KS
20372012-07-26 Keith Seitz <keiths@redhat.com>
2038
2039 * linespec.c (linespec_lexer_lex_number): The input
2040 is also a valid number if the next character is a comma
2041 or colon.
2042
23a80689
JB
20432012-07-26 Joel Brobecker <brobecker@adacore.com>
2044
2045 * NEWS: Document new --enable-libmcheck/--disable-libmcheck
2046 configure options.
2047
29f77997
TG
20482012-07-26 Tristan Gingold <gingold@adacore.com>
2049
2050 * machoread.c: Include gdb_bfd.h.
2051
a55c1f32
TG
20522012-07-26 Tristan Gingold <gingold@adacore.com>
2053
2054 * dwarf2loc.c (locexpr_describe_location_piece): Use uint64_t for
2055 offset.
2056
56eb65bd
SP
20572012-07-26 Siddhesh Poyarekar <siddhesh@redhat.com>
2058
2059 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Expand parameter
2060 SIZE to size_t.
2061 (dwarf2_evaluate_loc_desc): Likewise.
2062 (dwarf2_loc_desc_needs_frame): Likewise.
2063 (locexpr_describe_location_1): Likewise.
2064 * dwarf2loc.h (struct dwarf2_locexpr_baton): Make SIZE as
2065 size_t.
2066 (struct dwarf2_loclist_baton): Likewise.
2067 * dwarf2read.c (struct dwarf_block): Likewise.
2068 (dump_die_shallow): Use pulongest to print dwarf_block.size.
2069 (decode_locdesc): Expand SIZE and I to size_t.
2070
aec8845c
JK
20712012-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
2072
2073 * contrib/cc-with-tweaks.sh: Put into comment path gdb/contrib/.
2074
33d7655b
JB
20752012-07-25 Joel Brobecker <brobecker@adacore.com>
2076
2077 * doublest.c (convert_doublest_to_floatformat): If the exponent
2078 is too small, treat the value as zero. If the exponent is too
2079 large, treat the value as infinity.
2080
a22d44ff
JB
20812012-07-25 Joel Brobecker <brobecker@adacore.com>
2082
2083 * configure.ac: Add --enable-lmcheck configure option.
2084 * configure: Regenerate.
2085
d6b28940
TT
20862012-07-25 Tom Tromey <tromey@redhat.com>
2087
f782ad9b
AS
2088 * NEWS: Mention maint info bfds.
2089 * gdb_bfd.c (all_bfds): New global.
2090 (gdb_bfd_ref, gdb_bfd_unref): Update all_bfds.
2091 (print_one_bfd, maintenance_info_bfds, _initialize_gdb_bfd):
2092 New functions.
d6b28940 2093
6e73ba20
RC
20942012-07-25 Ralf Corsépius <ralf.corsepius@rtems.org>
2095
2096 * configure.tgt: Add v850*-*-rtems*.
2097
d560eebd
TT
20982012-07-25 Tom Tromey <tromey@redhat.com>
2099
2100 * macrotab.c (macro_bcache_str): Remove cast.
2101
d7cbec71
HZ
21022012-07-25 Hui Zhu <hui_zhu@mentor.com>
2103
2104 * linespec.c (linespec_lexer_lex_number): Update comments,
2105 change the return and add check to make sure the input is
2106 the decimal numbers.
2107 (linespec_lexer_lex_one): If linespec_lexer_lex_number return
2108 false, call linespec_lexer_lex_string.
2109
882f447f
TT
21102012-07-24 Tom Tromey <tromey@redhat.com>
2111
2112 * symfile.c (symbol_file_add): Don't open BFD twice.
2113
53ab4066 21142012-07-24 Marc Khouzam <marc.khouzam@ericsson.com>
e12c7713
MK
2115
2116 * breakpoint.c (create_breakpoint): Store condition for pending
2117 breakpoints.
2118
108fb0f7
AS
21192012-07-24 Andreas Schwab <schwab@linux-m68k.org>
2120
2121 * m68k-tdep.c (m68k_reg_struct_return_p): Accept complex types.
2122 (m68k_return_value): Handle complex types like structures.
2123 (m68k_svr4_return_value): Likewise.
2124
1634dcbe
JK
21252012-07-24 Marcus Shawcroft <marcus.shawcroft@arm.com>
2126
2127 * gdb_bfd.c (zlib_decompress_section) <!HAVE_ZLIB_H>: Adjust
2128 parameters to bfd_get_section_name.
2129
e2d12c21
YQ
21302012-07-24 Yao Qi <yao@codesourcery.com>
2131
2132 * cli/cli-setshow.c: Handle case 'var_uinteger'
2133 and 'var_zuninteger' together. Handle case 'var_integer' and
2134 'var_zinteger' together.
2135
64b92e45
KS
21362012-07-23 Keith Seitz <keiths@redhat.com>
2137
2138 * linespec.c (convert_linespec_to_sal): Don't add
2139 any symbols to the result vector if symbol_to_sal
2140 returns zero.
2141
0f5f4ffe
KS
21422012-07-23 Keith Seitz <keiths@redhat.com>
2143
2144 * linespec.c (decode_objc): Record the function name
2145 in the linespec.
2146
da1cc82f
TT
21472012-07-23 Tom Tromey <tromey@redhat.com>
2148
2149 * rs6000-nat.c (add_vmap): Rewrite archive loop. Fix reference
2150 counting.
2151 * exec.c (exec_close_1): Unconditionally release vmap's BFD.
2152 (map_vmap): Acquire a reference to the BFD.
2153
6c18f3e0
SP
21542012-07-23 Siddhesh Poyarekar <siddhesh@redhat.com>
2155
2156 * p-valprint.c (pascal_object_print_value): Replace potentially
2157 unsafe alloca with xmalloc/xfree.
2158 * valops.c (search_struct_method): Likewise.
2159
695c3173
TT
21602012-07-23 Tom Tromey <tromey@redhat.com>
2161
2162 * solib-svr4.c (enable_break): Update.
2163 * bfd-target.h (target_bfd_reopen): Update documentation.
2164
08d2cd74
TT
21652012-07-23 Tom Tromey <tromey@redhat.com>
2166
2167 * symfile.c (separate_debug_file_exists): Update.
2168 (gdb_bfd_open_maybe_remote): Rename from bfd_open_maybe_remote.
2169 (reread_symbols): Update.
2170 * elfread.c (build_id_verify): Update.
2171 * symfile.h (gdb_bfd_open_maybe_remote): Rename from
2172 bfd_open_maybe_remote.
2173
596f7d67
TT
21742012-07-23 Tom Tromey <tromey@redhat.com>
2175
2176 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Fix comment.
2177
8ac244b4
TT
21782012-07-23 Tom Tromey <tromey@redhat.com>
2179
2180 * coffread.c (coff_symfile_read): Make a cleanup for 'debugfile'
2181 and 'abfd'.
2182 * elfread.c (elf_symfile_read): Make a cleanup for 'debugfile'
2183 and 'abfd'.
2184 * jit.c (jit_bfd_try_read_symtab): Make a cleanup for 'nbfd'.
2185 * machoread.c (macho_add_oso_symfile): Make a cleanup for
2186 'abfd'.
2187 (macho_symfile_read): Make a cleanup for 'dsym_bfd'.
2188 * objfiles.c (allocate_objfile): Acquire a new reference.
2189 * rs6000-nat.c (add_vmap): Don't acquire a BFD reference.
2190 * solib.c (solib_read_symbols): Don't acquire a BFD reference.
2191 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Make
2192 a cleanup for 'nbfd'.
2193 * symfile-mem.c (symbol_file_add_from_memory): Make a cleanup
2194 for 'nbfd'.
2195 * symfile.c (symbol_file_add_with_addrs_or_offsets): Don't
2196 make a cleanup for 'abfd'.
2197 (symbol_file_add): Make a BFD cleanup.
2198
64c31149
TT
21992012-07-23 Tom Tromey <tromey@redhat.com>
2200
2201 * cli/cli-dump.c (bfd_openr_with_cleanup): Use gdb_bfd_openr.
2202 (bfd_openw_with_cleanup): Use gdb_bfd_openw.
2203 * corelow.c (core_open): Use gdb_bfd_fopen.
2204 * dsrec.c (load_srec): Use gdb_bfd_openr.
2205 * exec.c (exec_file_attach): Use gdb_bfd_fopen.
2206 * gcore.c (gcore_memory_sections): Use gdb_bfd_openw.
2207 * gdb_bfd.c (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
2208 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
2209 (gdb_bfd_fdopenr): New functions.
2210 * gdb_bfd.h (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
2211 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
2212 (gdb_bfd_fdopenr): Declare.
2213 * jit.c (bfd_open_from_target_memory): Use gdb_bfd_openr_iovec.
2214 * m32-rom.c (m32r_load, m32r_upload_command): Use gdb_bfd_openr.
2215 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_openr,
2216 gdb_bfd_openr_next_archived_file.
2217 (macho_check_dsym): Use gdb_bfd_openr.
2218 (macho_add_oso_symfile): Don't call gdb_bfd_stash_filename.
2219 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_fdopenr.
2220 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_openr.
2221 * remote-mips.c (mips_load_srec, pmon_load_fast): Use
2222 gdb_bfd_openr.
2223 * remote.c (remote_bfd_open): Use gdb_bfd_openr_iovec.
2224 * rs6000-nat.c (add_vmap): Use gdb_bfd_openr, gdb_bfd_fdopenr,
2225 gdb_bfd_openr_next_archived_file.
2226 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2227 Use gdb_bfd_openr.
2228 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
2229 gdb_bfd_openr.
2230 * solib-spu.c (spu_bfd_fopen): Use gdb_bfd_openr_iovec.
2231 * solib.c (solib_bfd_fopen): Use gdb_bfd_fopen.
2232 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_openr_iovec.
2233 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_openr.
2234 (symfile_bfd_open): Use gdb_bfd_fopen.
2235 (generic_load): Use gdb_bfd_openr.
2236 * windows-nat.c (windows_make_so): Use gdb_bfd_openr.
2237
520b0001
TT
22382012-07-23 Tom Tromey <tromey@redhat.com>
2239
2240 * bfd-target.c (target_bfd_reopen): Update.
2241 * cli/cli-dump.c (bfd_openr_with_cleanup)
2242 (bfd_openw_with_cleanup): Update.
2243 * corelow.c (core_open): Update.
2244 * dsrec.c (load_srec): Update.
2245 * exec.c (exec_file_attach): Update.
2246 * gcore.c (create_gcore_bfd): Update.
2247 * gdb_bfd.c (gdb_bfd_ref): Return void.
2248 (gdb_bfd_open): Update.
2249 * gdb_bfd.h (gdb_bfd_ref): Return void.
2250 Update comments.
2251 * jit.c (jit_bfd_try_read_symtab): Update.
2252 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
2253 * machoread.c (macho_symfile_read_all_oso): Update.
2254 (macho_check_dsym): Update.
2255 * procfs.c (insert_dbx_link_bpt_in_file): Update.
2256 * remote-m32r-sdi.c (m32r_load): Update.
2257 * remote-mips.c (mips_load_srec, pmon_load_fast): Update.
2258 * rs6000-nat.c (add_vmap): Update.
2259 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2260 Update.
2261 * solib-pa64.c (pa64_solib_create_inferior_hook): Update.
2262 * solib-spu.c (spu_bfd_open): Update.
2263 * solib.c (solib_bfd_fopen, solib_read_symbols): Update.
2264 * spu-linux-nat.c (spu_bfd_open): Update.
2265 * symfile.c (bfd_open_maybe_remote, symfile_bfd_open)
2266 (generic_load): Update.
2267 * windows-nat.c (windows_make_so): Update.
2268
2322ff16
SP
22692012-07-22 Siddhesh Poyarekar <siddhesh@redhat.com>
2270
2271 * sh-tdep.c (sh_treat_as_flt_p): Remove unused variable LEN.
2272
3def0b36
PA
22732012-07-20 Jeff Kenton <jkenton@tilera.com>
2274
2275 * tilegx-linux-tdep.c (tilegx_linux_sigframe_init): Fix
2276 SIGTRAMP_FRAME unwinding.
2277
e615022a
DE
22782012-07-20 Doug Evans <dje@google.com>
2279
2280 * NEWS: Document new options "set/show use-deprecated-index-sections",
2281 and delete reference to --use-deprecated-index-sections.
2282 * symfile.h (use_deprecated_index_sections): Delete.
2283 * dwarf2read.c (use_deprecated_index_sections): Make static.
2284 (read_index_from_section): Update wording of how to load
2285 deprecated index sections.
2286 (_initialize_dwarf2_read): New options
2287 "set/show use-deprecated-index-sections".
2288 * main.c (captured_main): Delete --use-deprecated-index-sections.
2289
64776a0b
PA
22902012-07-20 Pedro Alves <palves@redhat.com>
2291
2292 PR threads/11692
2293 PR gdb/12203
2294
2295 * infrun.c (handle_inferior_event) <new thread>: Don't special
2296 case minus_one_ptid.
2297 <TARGET_WAITKIND_SPURIOUS>: Ditto.
2298 * linux-thread-db.c (thread_get_info_callback): Don't return early
2299 if the thread is zombie.
2300 (thread_from_lwp): Change return type to void. Rewrite stale
2301 comment.
2302 (attach_thread): Don't return early if the thread is zombie,
2303 instead set its "dying" flag.
2304 (thread_db_wait): Don't return TARGET_WAITKIND_SPURIOUS anymore.
2305 (find_new_threads_callback): Don't return early if the thread is
2306 zombie.
2307
09826ec5
PA
23082012-07-20 Pedro Alves <palves@redhat.com>
2309
2310 * linux-nat.c (linux_nat_wait): Dump the passed in target options.
2311 * target.c (target_wait): Likewise.
2312 (str_comma_list_concat_elem, do_option, target_options_to_string):
2313 New functions.
2314 * target.h (target_options_to_string): Declare.
2315
f7a35f02
TT
23162012-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2317 Tom Tromey <tromey@redhat.com>
2318
2319 * dwarf2read.c (dwarf_decode_macros)
2320 <DW_MACRO_GNU_define_indirect_alt, DW_MACRO_GNU_undef_indirect_alt,
2321 DW_MACRO_GNU_transparent_include_alt>: New cases.
2322 (dwarf_decode_macro_bytes) <DW_MACRO_GNU_define_indirect,
2323 DW_MACRO_GNU_undef_indirect>: Examine 'section_is_dwz'.
2324
b81e1ee0
TT
23252012-07-20 Tom Tromey <tromey@redhat.com>
2326
2327 * dwarf2read.c (try_open_dwo_file): Don't call
2328 gdb_bfd_stash_filename.
2329
99c1624c
PA
23302012-07-20 Pedro Alves <palves@redhat.com>
2331
2332 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
2333 (i386_record_lea_modrm, i386_record_push, i386_record_floats)
2334 (i386_process_record): Tweak description comments.
2335
4ffa4fc7
PA
23362012-07-20 Pedro Alves <palves@redhat.com>
2337
2338 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
2339 (i386_process_record): Use record_read_memory.
2340 * record.c (record_read_memory): New function.
2341 (record_arch_list_add_mem, record_exec_insn): Use
2342 record_read_memory.
2343 * record.h (record_read_memory): Declare.
2344
c24343e2
YQ
23452012-07-20 Yao Qi <yao@codesourcery.com>
2346
2347 * cli/cli-setshow.c (do_setshow_command): Don't check pointer is
2348 NULL for xfree.
2349
90f47860
PA
23502012-07-19 Pedro Alves <palves@redhat.com>
2351
2352 * record.c (record_resume): Ask the target beneath to report all
2353 signals.
2354
01093045
DE
23552012-07-19 Doug Evans <dje@google.com>
2356
2357 * dwarf2read.c (dwarf2_ranges_read): Ignore ranges starting at zero if
2358 there's no section at address zero.
2359 (dwarf2_record_block_ranges): Ditto.
2360
a7c3d162
YQ
23612012-07-19 Yao Qi <yao@codesourcery.com>
2362
2363 * command.h, remote.c: Fix a typo in comment.
2364
608b4967
TT
23652012-07-19 Tom Tromey <tromey@redhat.com>
2366
2367 PR exp/13206:
2368 * ax-gdb.c (gen_expr) <OP_TYPEOF, OP_DECLTYPE>: New cases.
2369 * breakpoint.c (watchpoint_exp_is_const) <OP_TYPEOF,
2370 OP_DECLTYPE>: New cases.
2371 * c-exp.y (TYPEOF, DECLTYPE): New tokens.
2372 (type_exp): Add new productions.
2373 (ident_tokens): Add __typeof__, typeof, __typeof, __decltype,
2374 and decltype.
2375 * eval.c (evaluate_subexp_standard) <OP_TYPEOF, OP_DECLTYPE>:
2376 New case.
2377 * expprint.c (dump_subexp_body_standard) <OP_TYPEOF,
2378 OP_DECLTYPE>: New case.
2379 * parse.c (operator_length_standard) <OP_TYPEOF, OP_DECLTYPE>:
2380 New case.
2381 * std-operator.def (OP_TYPEOF, OP_DECLTYPE): New constants.
2382 * varobj.c (varobj_create): Handle OP_TYPEOF, OP_DECLTYPE.
2383
274b54d7
TT
23842012-07-19 Tom Tromey <tromey@redhat.com>
2385
2386 * c-exp.y (enum token_flags): New.
2387 (struct token) <cxx_only>: Remove.
2388 <flags>: New field.
2389 (tokentab3, tokentab2, ident_tokens): Update.
2390 (lex_one_token): Update. Handle FLAG_SHADOW.
2391
9eaf6705
TT
23922012-07-19 Tom Tromey <tromey@redhat.com>
2393
2394 * ax-gdb.c (gen_expr): Handle UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE.
2395 * breakpoint.c (watchpoint_exp_is_const): Handle UNOP_CAST_TYPE,
2396 UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST.
2397 * c-exp.y (exp): Emit UNOP_MEMVAL_TYPE, UNOP_CAST_TYPE. Update
2398 for changes to UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST. Use
2399 type_exp production where appropriate.
2400 * eval.c (evaluate_subexp_standard) <UNOP_CAST_TYPE>: New case.
2401 <UNOP_DYNAMIC_CAST, UNOP_REINTERPRET_CAST>: Update.
2402 <UNOP_MEMVAL_TYPE>: New case.
2403 (evaluate_subexp_for_address) <UNOP_MEMVAL_TYPE>: New case.
2404 (evaluate_subexp_for_sizeof) <UNOP_MEMVAL_TYPE>: New case.
2405 * expprint.c (print_subexp_standard) <UNOP_CAST_TYPE>: New case.
2406 <UNOP_MEMVAL_TYPE>: New case.
2407 (dump_subexp_body_standard) <UNOP_DYNAMIC_CAST,
2408 UNOP_REINTERPRET_CAST>: Update.
2409 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
2410 * parse.c (operator_length_standard) <UNOP_DYNAMIC_CAST,
2411 UNOP_REINTERPRET_CAST>: Update.
2412 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
2413 * stack.c (return_command): Also check for UNOP_CAST_TYPE.
2414 * std-operator.def (UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE): New
2415 constants.
2416
6ace3df1
YQ
24172012-07-19 Yao Qi <yao@codesourcery.com>
2418 Jan Kratochvil <jan.kratochvil@redhat.com>
2419
2420 * cli/cli-setshow.c (do_setshow_command): Handle case 'var_filename'
2421 and case 'var_optional_filename' together.
2422 * infcmd.c (_initialize_infcmd): Call add_setshow_string_noescape_cmd
2423 instead of add_setshow_optional_filename_cmd for setshow command
2424 'args'. Set completer for 'set args'.
2425
48faced0
DE
24262012-07-18 Doug Evans <dje@google.com>
2427
2428 * common/gdb_vecs.h: Moved here from ./gdb_vecs.h.
2429 * common/gdb_vecs.c: New file, contents from utils.c.
2430 * common/host-defs.h: New file, contents from defs.h.
2431 * utils.h: New file, contents from defs.h.
2432 * defs.h: Move all declarations of objects defined in utils.c
2433 to utils.h (except QUIT() and related).
2434 #include "utils.h", "host-defs.h".
2435 * probe.h (probe_p): Move here from gdb_vecs.h.
2436 * symfile.c: #include "probe.h" instead of "gdb_vecs.h".
2437 * utils.c (free_char_ptr_vec): Moved to common/gdb_vecs.c.
2438 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): Ditto.
2439 * Makefile.in (SFILES): Add common/gdb_vecs.c.
2440 (HFILES_NO_SRCDIR): Add common/gdb_vecs.h, common/host-defs.h, utils.h.
2441 (COMMON_OBS): Add gdb_vecs.o.
2442 (gdb_vecs.o): New rule.
2443
66f1999b
KS
24442012-07-18 Keith Seitz <keiths@redhat.com>
2445
2446 * linespec.c (add_sal_to_sals): Add LITERAL_CANONICAL
2447 parameter. If non-zero, use SYMNAME as the canonical name
2448 for the SaL.
2449 Update all callers.
2450 (convert_linespec_to_sals): Use add_sal_to_sals for
2451 expressions, too.
2452 (decode_line_full): No need to "fill in missing canonical names"
2453 anymore. Simply make cleanups for the allocated names.
2454
5d94e27b
KS
24552012-07-18 Keith Seitz <keiths@redhat.com>
2456
2457 * linespec.c (struct linespec): Constify expression,
2458 source_filename, function_name, and label_name.
2459 (symbol_not_found_error): Make all parameters const.
2460 (linespec_parser_delete): No need to check for NULL
2461 when using xfree. Cast const char * to char * for xfree.
2462
af4908ba
KS
24632012-07-18 Keith Seitz <keiths@redhat.com>
2464
2465 * breakpoint.c (invalid_thread_id_error): New function.
2466 (find_condition_and_thread): Use invalid_thread_id_error.
2467 (watch_command_1): Likewise.
2468
853254db
TT
24692012-07-18 Tom Tromey <tromey@redhat.com>
2470
2471 * cc-with-index.sh, cc-with-dwz.sh: Remove.
2472 * contrib/cc-with-tweaks.sh: New file.
2473
2ec9a5e0
TT
24742012-07-18 Tom Tromey <tromey@redhat.com>
2475
2476 * dwarf2read.c (struct dwz_file) <gdb_index>: New field.
2477 (locate_dwz_sections): Recognize .gdb_index.
2478 (create_cus_from_index_list): New function.
2479 (create_cus_from_index): Use it. Handle .dwz data.
2480 (read_index_from_section): New function, extracted from
2481 dwarf2_read_index.
2482 (dwarf2_read_index): Use it. Read .gdb_index from dwz file,
2483 if needed.
2484
36586728
TT
24852012-07-18 Tom Tromey <tromey@redhat.com>
2486
2487 * dwarf2read.c (struct dwarf2_per_objfile) <dwz_file>: New field.
2488 (struct dwarf2_per_cu_data) <length>: No longer bitfield.
2489 <is_dwz>: New field.
2490 (struct dwz_file): New.
2491 (struct partial_die_info) <is_dwz, spec_is_dwz>: New fields.
2492 (locate_dwz_sections, dwarf2_get_dwz_file)
2493 (get_abbrev_section_for_cu): New functions.
2494 (error_check_comp_unit_head, read_and_check_comp_unit_head)
2495 (read_and_check_type_unit_head): Add abbrev_section argument.
2496 (create_debug_types_hash_table): Update.
2497 (init_cutu_and_read_dies): Use proper abbrev section.
2498 (init_cutu_and_read_dies_no_follow): Likewise.
2499 (set_partial_user): Do nothing if PST==NULL.
2500 (read_comp_units_from_section): New function.
2501 (create_all_comp_units): Use it.
2502 (scan_partial_symbols, partial_die_parent_scope): Update.
2503 (skip_one_die): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
2504 (process_imported_unit_die, read_partial_die): Handle .dwz files.
2505 (find_partial_die): Add offset_in_dwz argument. Update.
2506 (guess_partial_die_structure_name, fixup_partial_die): Update.
2507 (read_attribute_value): Handle DW_FORM_GNU_ref_alt,
2508 DW_FORM_GNU_strp_alt.
2509 (read_indirect_string_from_dwz): New function.
2510 (dwarf2_const_value_attr): Handle DW_FORM_GNU_strp_alt.
2511 (dump_die_shallow): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
2512 (is_ref_attr): Handle DW_FORM_GNU_ref_alt.
2513 (follow_die_offset): Add offset_in_dwz argument.
2514 (follow_die_ref, dwarf2_fetch_die_location_block): Update.
2515 (skip_form_bytes): Handle DW_FORM_GNU_strp_alt.
2516 (dwarf_decode_macro_bytes): Add section_is_dwz argument.
2517 Handle new macro forms.
2518 (dwarf_decode_macros): Update.
2519 (dwarf2_find_containing_comp_unit): Add offset_in_dwz argument.
2520 (dwarf2_per_objfile_free): Unref dwz_bfd, if it exists
2521 (lookup_die_type): Handle DW_FORM_GNU_ref_alt.
2522 (create_debug_types_hash_table): Use correct abbrev section.
2523 (get_debug_line_section): New function.
2524 (dwarf_decode_line_header, dwarf_decode_lines_1): Use it.
2525 (process_full_comp_unit): Pass 'required' argument to
2526 end_symtab_get_static_block.
2527 * buildsym.h (end_symtab_get_static_block): Update.
2528 * buildsym.c (end_symtab_get_static_block): Add 'required'
2529 argument.
2530 (end_symtab, end_expandable_symtab): Update.
2531
4bf44c1c
TT
25322012-07-18 Tom Tromey <tromey@redhat.com>
2533
2534 * dwarf2read.c: Don't include zlib.h or sys/mman.h.
2535 (pagesize): Remove.
2536 (struct dwarf2_section_info) <map_addr, map_len>: Remove.
2537 (zlib_decompress_section): Remove.
2538 (dwarf2_read_section): Use gdb_bfd_map_section.
2539 (munmap_section_buffer): Remove.
2540 (free_dwo_file, dwarf2_per_objfile_free): Don't use
2541 munmap_section_buffer.
2542 * gdb_bfd.c: Include zlib.h, sys/mman.h.
2543 (struct gdb_bfd_section_data): New.
2544 (free_one_bfd_section): New function.
2545 (gdb_bfd_close_or_warn): Use free_one_bfd_section.
2546 (get_section_descriptor, zlib_decompress_section)
2547 (gdb_bfd_map_section): New functions.
2548 * gdb_bfd.h (gdb_bfd_map_section): Declare.
2549
bb397797
TT
25502012-07-18 Tom Tromey <tromey@redhat.com>
2551
2552 * dwarf2read.c (try_open_dwo_file): use gdb_bfd_open.
2553
6ec53d05
TT
25542012-07-18 Tom Tromey <tromey@redhat.com>
2555
2556 * gdb_bfd.c (struct gdb_bfd_data): New.
2557 (gdb_bfd_cache): New global.
2558 (struct gdb_bfd_cache_search): New.
2559 (hash_bfd, eq_bfd, gdb_bfd_open): New functions.
2560 (gdb_bfd_ref, gdb_bfd_unref): Use gdb_bfd_data.
2561 * gdb_bfd.h (gdb_bfd_open): Declare.
2562
f9a062ff
TT
25632012-07-18 Tom Tromey <tromey@redhat.com>
2564
2565 * utils.c (make_cleanup_bfd_unref): Rename from
2566 make_cleanup_bfd_close.
2567 * defs.h (make_cleanup_bfd_unref): Rename from
2568 make_cleanup_bfd_close.
2569 * cli/cli-dump.c (bfd_openr_with_cleanup): Update.
2570 (bfd_openw_with_cleanup): Update.
2571 * corelow.c (core_open): Update.
2572 * dsrec.c (load_srec): Update.
2573 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
2574 * remote-m32r-sdi.c (m32r_load): Update.
2575 * remote-mips.c (mips_load_srec): Update.
2576 (pmon_load_fast): Update.
2577 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2578 Update.
2579 (darwin_bfd_open): Update.
2580 * solib.c (solib_bfd_fopen): Update.
2581 * symfile-mem.c (symbol_file_add_from_memory): Update.
2582 * symfile.c (symbol_file_add_with_addrs_or_offsets): Update.
2583 (symfile_bfd_open): Update.
2584 (generic_load): Update.
2585
d6ad71ba
TT
25862012-07-18 Tom Tromey <tromey@redhat.com>
2587
2588 * remote-mips.c (mips_load_srec): Use make_cleanup_bfd_close.
2589 (pmon_load_fast): Likewise.
2590 * m32r-rom.c (m32r_load): Use make_cleanup_bfd_close.
2591 (m32r_upload_command): Likewise.
2592 * dsrec.c (load_srec): Use make_cleanup_bfd_close.
2593 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2594 Use make_cleanup_bfd_close.
2595
a4453b7e
TT
25962012-07-18 Tom Tromey <tromey@redhat.com>
2597
2598 * symfile.c (symfile_bfd_open): Don't copy name. Call
2599 gdb_bfd_stash_filename.
2600 (load_command): Open the new BFD before freeing the old.
2601 (bfd_open_maybe_remote): Call gdb_bfd_stash_filename.
2602 * symfile-mem.c (symbol_file_add_from_memory): Don't copy name.
2603 Call gdb_bfd_stash_filename.
2604 * spu-linux-nat.c (spu_bfd_open): Don't copy name.
2605 * solib-spu.c (spu_bfd_fopen): Don't copy name. Call
2606 gdb_bfd_stash_filename.
2607 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2608 Free found_pathname.
2609 * rs6000-nat.c (add_vmap): Don't copy filename. Call
2610 gdb_bfd_stash_filename.
2611 * remote.c (remote_bfd_open): Call gdb_bfd_stash_filename.
2612 * machoread.c (macho_add_oso_symfile): Call
2613 gdb_bfd_stash_filename.
2614 (macho_symfile_read_all_oso): Arrange to free archive_name. Call
2615 gdb_bfd_stash_filename.
2616 (macho_check_dsym): Don't copy filename. Call
2617 gdb_bfd_stash_filename.
2618 * jit.c (bfd_open_from_target_memory): Don't copy the filename.
2619 * gdb_bfd.c (gdb_bfd_stash_filename): New function.
2620 * gdb_bfd.h (gdb_bfd_stash_filename): Declare.
2621 * gcore.c (create_gcore_bfd): Call gdb_bfd_stash_filename.
2622 * exec.c (exec_close): Don't free the BFD's filename.
2623 (exec_file_attach): Don't copy the filename. Call
2624 gdb_bfd_stash_filename.
2625 * corelow.c (core_close): Don't free the BFD's filename.
2626 (core_open): Call gdb_bfd_stash_filename.
2627 * corefile.c (reopen_exec_file): Remove #if 0 code.
2628 * solib.c (solib_bfd_fopen): Call gdb_bfd_stash_filename. Free
2629 pathname.
2630 * dwarf2read.c (try_open_dwo_file): Call gdb_bfd_stash_filename.
2631
cbb099e8
TT
26322012-07-18 Tom Tromey <tromey@redhat.com>
2633
2634 * dwarf2read.c (try_open_dwo_file): Use gdb_bfd_ref and
2635 gdb_bfd_unref.
2636 (free_dwo_file): Use gdb_bfd_unref.
2637 * cli/cli-dump.c: Include gdb_bfd.h.
2638 (bfd_openw_with_cleanup): Use gdb_bfd_ref.
2639 (bfd_openr_with_cleanup): Likewise.
2640 * windows-nat.c (windows_make_so): Use gdb_bfd_ref,
2641 gdb_bfd_unref.
2642 * utils.c: Include gdb_bfd.h.
2643 (do_bfd_close_cleanup): Use gdb_bfd_unref.
2644 * symfile.c: Include gdb_bfd.h.
2645 (separate_debug_file_exists): Use gdb_bfd_unref.
2646 (bfd_open_maybe_remote): Use gdb_bfd_ref.
2647 (symfile_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
2648 (generic_load): Use gdb_bfd_ref.
2649 (reread_symbols): Use gdb_bfd_unref.
2650 * symfile-mem.c: Include gdb_bfd.h.
2651 (symbol_file_add_from_memory): Use make_cleanup_bfd_close.
2652 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
2653 * solib.c: Include gdb_bfd.h.
2654 (solib_bfd_fopen): Use gdb_bfd_ref.
2655 (solib_bfd_open): Use gdb_bfd_unref.
2656 (free_so_symbols): Use gdb_bfd_unref.
2657 (reload_shared_libraries_1): Use gdb_bfd_unref.
2658 * solib-spu.c: Include gdb_bfd.h.
2659 (spu_bfd_fopen): Use gdb_bfd_ref, gdb_bfd_unref.
2660 * solib-pa64.c (pa64_solib_create_inferior_hook): Use gdb_bfd_ref,
2661 gdb_bfd_unref.
2662 * solib-frv.c: Include gdb_bfd.h.
2663 (enable_break2): Use gdb_bfd_unref.
2664 * solib-dsbt.c: Include gdb_bfd.h.
2665 (enable_break2): Use gdb_bfd_unref.
2666 * solib-darwin.c: Include gdb_bfd.h.
2667 (darwin_solib_get_all_image_info_addr_at_init): Use gdb_bfd_ref,
2668 gdb_bfd_unref.
2669 (darwin_bfd_open): Use gdb_bfd_unref.
2670 * rs6000-nat.c (add_vmap): Use gdb_bfd_ref, gdb_bfd_unref.
2671 * remote-mips.c: Include gdb_bfd.h.
2672 (mips_load_srec): Use gdb_bfd_ref.
2673 (pmon_load_fast): Use gdb_bfd_ref.
2674 * remote-m32r-sdi.c: Include gdb_bfd.h.
2675 (m32r_load): Use gdb_bfd_ref.
2676 * record.c: Include gdb_bfd.h.
2677 (record_save_cleanups): Use gdb_bfd_unref.
2678 (cmd_record_save): Use gdb_bfd_unref.
2679 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_ref,
2680 gdb_bfd_unref.
2681 * objfiles.h (gdb_bfd_close_or_warn): Remove.
2682 (gdb_bfd_ref, gdb_bfd_unref): Move to gdb_bfd.h.
2683 * objfiles.c: Include gdb_bfd.h.
2684 (free_objfile): Use gdb_bfd_unref.
2685 (gdb_bfd_close_or_warn, gdb_bfd_ref, gdb_bfd_unref): Move to
2686 gdb_bfd.c.
2687 * machoread.c (macho_add_oso_symfile): Use gdb_bfd_unref.
2688 (macho_symfile_read_all_oso): Use gdb_bfd_ref, gdb_bfd_unref.
2689 (macho_check_dsym): Likewise.
2690 * m32r-rom.c: Include gdb_bfd.h.
2691 (m32r_load): Use gdb_bfd_ref.
2692 (m32r_upload_command): Use gdb_bfd_ref.
2693 * jit.c: Include gdb_bfd.h.
2694 (jit_bfd_try_read_symtab): Use gdb_bfd_ref, gdb_bfd_unref.
2695 * gdb_bfd.h: New file.
2696 * gdb_bfd.c: New file.
2697 * gcore.c: Include gdb_bfd.h.
2698 (create_gcore_bfd): Use gdb_bfd_ref.
2699 (do_bfd_delete_cleanup): Use gdb_bfd_unref.
2700 (gcore_command): Use gdb_bfd_unref.
2701 * exec.c: Include gdb_bfd.h.
2702 (exec_close): Use gdb_bfd_unref.
2703 (exec_close_1): Use gdb_bfd_unref.
2704 (exec_file_attach): Use gdb_bfd_ref.
2705 * elfread.c: Include gdb_bfd.h.
2706 (build_id_verify): Use gdb_bfd_unref.
2707 * dsrec.c: Include gdb_bfd.h.
2708 (load_srec): Use gdb_bfd_ref.
2709 * corelow.c: Include gdb_bfd.h.
2710 (core_close): Use gdb_bfd_unref.
2711 (core_open): Use gdb_bfd_ref.
2712 * bfd-target.c: Include gdb_bfd.h.
2713 (target_bfd_xclose): Use gdb_bfd_unref.
2714 (target_bfd_reopen): Use gdb_bfd_ref.
2715 * Makefile.in (SFILES): Add gdb_bfd.c.
2716 (HFILES_NO_SRCDIR): Add gdb_bfd.h.
2717 (COMMON_OBS): Add gdb_bfd.o.
2718
ed1d1739
KS
27192012-07-18 Keith Seitz <keiths@redhat.com>
2720
2721 * breakpoint.c (find_condition_and_thread): Initialize
2722 TASK and REST.
2723 (create_breakpiont): find_condition_and_thread will now
2724 initialize COND_STRING, THREAD, and REST (and TASK).
2725 (addr_string_to_sals): Likewise.
2726
eab402df
PA
27272012-07-18 Pedro Alves <palves@redhat.com>
2728
2729 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_NO_HISTORY>:
2730 Pull the single step breakpoints out of the target.
2731
2b963b68
SDJ
27322012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
2733
2734 * probe.c (probe_safe_evaluate_at_pc): Rename variable `n_probes'.
2735 * stap-probe.c (compile_probe_arg): Likewise.
2736
6bac7473
SDJ
27372012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
2738
2739 * elfread.c (elf_get_probe_argument_count): Remove `objfile' argument.
2740 (elf_compile_to_ax): Likewise.
2741 * infrun.c (insert_exception_resume_from_probe): Likewise.
2742 (check_exception_resume): Remove `objfile' variable.
2743 * probe.c (find_probe_by_pc): Remove `objfile' argument.
2744 (struct probe_and_objfile, probe_and_objfile_s): Delete.
2745 (collect_probes): Adjust return value to `VEC (probe_p) *'.
2746 (compare_entries): Rename to...
2747 (compare_probes): ...this. Adjust function to work with
2748 `struct probe *'. Rename variables `ea' and `eb' to `pa' and `pb'
2749 respectively.
2750 (gen_ui_out_table_header_info): Adjust `probes' argument to be
2751 `VEC (probe_p) *'.
2752 (print_ui_out_info): Adjust argument to be `struct probe *'.
2753 (info_probes_for_ops): Adjust internal computations to use
2754 `VEC (probe_p) *'.
2755 (probe_safe_evaluate_at_pc): Refactor to not pass `objfile' anymore.
2756 * probe.h (struct probe_ops) <get_probe_argument_count, compile_to_ax,
2757 gen_info_probes_table_values>: Remove `objfile' argument.
2758 (struct probe) <objfile>: New field.
2759 (find_probe_by_pc): Remove `objfile' argument.
2760 * stap-probe.c (stap_parse_probe_arguments): Likewise.
2761 (stap_get_probe_argument_count): Likewise.
2762 (stap_get_arg): Likewise.
2763 (stap_evaluate_probe_argument): Likewise.
2764 (stap_compile_to_ax): Likewise.
2765 (compile_probe_arg): Refactor not to pass `objfile' anymore.
2766 (handle_stap_probe): Fill `objfile' field from `struct probe'.
2767 (stap_gen_info_probes_table_header): Remove `objfile' argument.
2768 * symfile.h (struct sym_probe_fns) <sym_evaluate_probe_argument,
2769 sym_compile_to_ax>: Likewise.
2770
3347eb1a 27712012-07-18 Terry Guo <terry.guo@arm.com>
2772
2773 PR 14329
2774 * defs.h (GDB_MI_MSG_WIDTH): New.
2775 * ser_base (ser_base_read_error_fd): New function.
2776 (do_ser_base_readchar): Poll error file descriptor as well as
2777 standard output.
f782ad9b 2778 (generic_readchar): Refactor error handling.
3347eb1a 2779
80c8d323
JB
27802012-07-18 Joel Brobecker <brobecker@adacore.com>
2781
2782 * NEWS: Create a new section for the next release branch.
2783 Rename the section of the current branch, now that it has
2784 been cut.
2785
b45a0664 27862012-07-18 Joel Brobecker <brobecker@adacore.com>
2787
2788 GDB 7.5 branch created (branch timestamp: 2012-07-18 03:22 UTC)
2789 * version.in: Bump version to 7.5.50.20120718-cvs.
2790
09cf2b22
KS
27912012-07-17 Keith Seitz <keiths@redhat.com>
2792
2793 * linespec.c (linespec_parse_line_offset): Make parameter
2794 const.
2795
8f043999
JK
27962012-07-16 Jan Kratochvil <jan.kratochvil@redhat.com>
2797
2798 PR 11914
2799 * f-valprint.c (info_common_command): New variable frame_id.
2800 Reinitialize FI form FRAME_ID after each print_variable_and_value.
2801 * printcmd.c (print_variable_and_value): Extend function comment.
2802 Add comment for invalidated FRAME.
2803 * stack.c (backtrace_command_1): New variable frame_id. Reinitialize
2804 FI form FRAME_ID after each print_frame_local_vars.
2805 (struct print_variable_and_value_data): Change frame to frame_id.
2806 (do_print_variable_and_value): New variable frame, initialize it from
2807 p->frame_id. Add comment for invalidated FRAME.
2808 (print_frame_local_vars, print_frame_arg_vars): New function comment.
2809 Update CB_DATA.FRAME to CB_DATA.FRAME_ID initialization. Add comment
2810 for invalidated FRAME.
2811
ae5e0686
MK
28122012-07-16 Marc Khouzam <marc.khouzam@ericsson.com>
2813 Pedro Alves <palves@redhat.com>
2814
2815 * linux-nat.c (linux_nat_detach): Don't unregister from the event
2816 loop.
2817
5049c5be
TT
28182012-07-16 Tom Tromey <tromey@redhat.com>
2819
2820 * jv-typeprint.c (c_type_print_varspec_suffix): Don't declare.
2821
2908cac6
DE
28222012-07-15 Doug Evans <dje@google.com>
2823
094b34ac
DE
2824 * dwarf2read.c (stmt_list_hash): New struct.
2825 (type_unit_group): Embed "per_cu" member, remove pointer.
2826 New union member "t", move member "tus" into it, all uses updated.
2827 New member "hash", replaces member "line_offset, all uses updated.
2828 (quick_file_names): Replace member "offset" with "hash", all uses
2829 updated.
2830 (hash_stmt_list_entry, eq_stmt_list_entry): New functions.
2831 (hash_file_name_entry, eq_file_name_entry): Call them.
2832 (hash_type_unit_group, eq_type_unit_group): Ditto.
2833 (dw2_get_cu, dw2_get_primary_cu): Replace assert with a better one.
2834 (dw2_get_file_names_reader): Fix file name table calculation for TUs.
2835 (dw2_get_file_names): Update.
2836 (create_type_unit_group): Replace "per_cu" arg with "cu".
2837 All callers updated. Fix "quick" (.gdb_index) handling.
2838 (get_type_unit_group): Replace "per_cu" arg with "cu".
2839 All callers updated.
2840 (build_type_unit_groups): Don't reset tu_stats.
2841
2908cac6
DE
2842 * symtab.c (filename_seen_cache): Delete members "tab_alloc_size",
2843 "tab_cur_size". Change member "tab" to be a htab_t.
2844 (create_filename_seen_cache): Update.
2845 (clear_filename_seen_cache, delete_filename_seen_cache): Update.
2846 (filename_seen): Update.
2847
a2b6eff5
DE
28482012-07-13 Doug Evans <dje@google.com>
2849
2850 * symtab.c (filename_seen): Update comment.
2851
4359dff1
JK
28522012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2853 Doug Evans <dje@google.com>
2854
2855 * buildsym.c (end_symtab_1): Split it to ...
2856 (end_symtab_get_static_block): ... this ...
2857 (end_symtab_from_static_block): ... and this function.
2858 (end_symtab, end_expandable_symtab): Call them.
2859 * buildsym.h (end_symtab_get_static_block)
2860 (end_symtab_from_static_block): New declarations.
2861 * dwarf2read.c (process_full_comp_unit): New variable static_block.
2862 Set its valid CU ranges.
2863
a24f71ab
JK
28642012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2865
2866 * dwarf2loc.c (disassemble_dwarf_expression): Handle
2867 DW_OP_GNU_parameter_ref.
2868
d76b7dbc
JK
28692012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2870
2871 * dwarf2read.c (read_call_site_scope): Do not gdb_assert for invalid
2872 read-in CALL_SITE_PARAMETER_PARAM_OFFSET.
2873
9fdc877b
DE
28742012-07-13 Doug Evans <dje@google.com>
2875
2876 * symtab.c (output_source_filename): Delete unnecessary forward decl.
2877 (filename_seen_cache): New struct.
2878 (INITIAL_FILENAME_SEEN_CACHE_SIZE): New macro.
2879 (create_filename_seen_cache): New function.
2880 (clear_filename_seen_cache, delete_filename_seen_cache): New functions.
2881 (filename_seen): Delete arg "first". New arg "cache". All callers
2882 updated.
2883 (output_source_filename_data): New struct.
2884 (output_source_filename): Delete arg "first". New arg "data".
2885 All callers updated.
2886 (sources_info): Delete local "first". New locals "data", "cleanups".
2887 Rewrite to use filename_seen_cache.
2888 (add_partial_filename_data): Delete member "first". New member
2889 "filename_seen_cache". All uses updated.
2890 (make_source_files_completion_list): Rewrite to use
2891 filename_seen_cache.
2892
f80c6f3f
DE
28932012-07-12 Doug Evans <dje@google.com>
2894
2895 * psymtab.c (map_symbol_filenames_psymtab): Skip shared psymtabs.
2896
0bfa869d
DE
28972012-07-10 Doug Evans <dje@google.com>
2898
f4dc4d17
DE
2899 PR gdb/13498
2900 * dwarf2read.c (dwarf2_per_objfile): New members n_type_unit_groups,
2901 all_type_unit_groups, type_unit_groups, tu_stats.
2902 (dwarf2_per_cu_data): Move "imported_symtabs" into new union "s".
2903 All uses updated. Add type_unit_group to union "s".
2904 (type_unit_group): New struct.
2905 (IS_TYPE_UNIT_GROUP): New macro.
2906 (abbrev_table): Delete unused member "section".
2907 (dw2_do_instantiate_symtab): Early exit if type_unit_group.
2908 (dw2_get_cu): Assert not used with type_unit_group.
2909 (dw2_get_primary_cu): New function.
2910 (dw2_build_type_unit_groups_reader): New function.
2911 (dw2_build_type_unit_groups): New function.
2912 (dw2_get_file_names): Assert not called on type units.
2913 (dw2_map_symtabs_matching_filename): Call dw2_build_type_unit_groups.
2914 Redo loop to iterate over type unit groups instead of type units.
2915 (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Ditto.
2916 (read_abbrev_offset): New function.
2917 (init_cutu_and_read_dies): New arg "abbrev_table". All callers
2918 updated.
2919 (create_partial_symtab): New function.
2920 (process_psymtab_comp_unit_reader): Assert not used with type units.
2921 Call create_partial_symtab.
2922 (process_psymtab_type_unit): Delete.
2923 (hash_type_unit_group, eq_type_unit_group): New functions.
2924 (allocate_type_unit_groups_table): New function.
2925 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB): New macro.
2926 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB_SIZE): New macro.
2927 (create_type_unit_group, get_type_unit_group): New functions.
2928 (tu_abbrev_offset): New struct.
2929 (sort_tu_by_abbrev_offset): New function.
2930 (add_type_unit_group_to_table): New function.
2931 (build_type_unit_groups): New function.
2932 (build_type_psymtabs_reader): New function.
2933 (build_type_psymtab_dependencies): New function.
2934 (build_type_psymtabs): Rewrite.
2935 (scan_partial_symbols): Flag an error if a DW_TAG_imported_unit
2936 is seen in a type unit.
2937 (process_queue): Move symtab expansion debugging printfs here.
2938 Call process_full_type_unit for type units.
2939 (compute_symtab_includes): Assert not called for type units.
2940 (process_cu_includes): Don't call compute_symtab_includes for
2941 type units.
2942 (process_full_type_unit): New function.
2943 (process_imported_unit_die): Flag an error if called for type units.
2944 (handle_DW_AT_stmt_list): Delete arg "want_line_info". All callers
2945 updated. Assert not called for type units.
2946 (read_file_scope): Call dwarf2_start_symtab.
2947 (setup_type_unit_groups): New function.
2948 (read_type_unit_scope): Rewrite.
2949 (abbrev_table_read_table): Initialize abbrev_table->offset.
2950 (abbrev_table_free_cleanup): New function.
2951 (dwarf2_start_symtab): New function.
2952 (load_full_type_unit): Assert not called for type unit groups.
6d30eef8
DE
2953 * buildsym.c (finish_block_internal): New arg "expandable".
2954 All callers updated.
2955 (start_symtab): Move most contents to ...
2956 (restart_symtab): ... here. New function.
2957 (reset_symtab_globals): New function.
2958 (end_symtab_1): Renamed from end_symtab. New arg "expandable".
2959 Call reset_symtab_globals.
2960 (end_symtab, end_expandable_symtab): New functions.
2961 (set_missing_symtab, augment_type_symtab): New functions.
2962 * buildsym.h (end_expandable_symtab): Declare.
2963 (augment_type_symtab, restart_symtab): Declare.
b4c41fc7
DE
2964 * psympriv.h (struct partial_symtab): New member "anonymous".
2965 * psymtab.c (partial_map_symtabs_matching_filename): Ignore
2966 anonymous psymtabs.
2967 (read_psymtabs_with_filename): Ditto.
2968 (map_symbol_filenames_psymtab, psymtab_to_fullname): Ditto.
2969 (expand_symtabs_matching_via_partial): Ditto.
2970 (dump_psymtab): Update.
0bfa869d
DE
2971 * dictionary.c (dict_add_pending): New function.
2972 * dictionary.h (dict_add_pending): Declare.
2973
45e58e77
DE
29742012-07-09 Doug Evans <dje@google.com>
2975
b74db436
DE
2976 * buildsym.c (start_subfile): Remove unnecessary check for
2977 name == NULL.
2978
fd55216c
DE
2979 * psymtab.c (allocate_psymtab): Use host_address_to_string.
2980
6721b2ec
DE
2981 * dwarf2read.c (load_full_type_unit): Simplify.
2982
b4dd5633
DE
2983 * dwarf2read.c (dwarf2_per_objfile): Change type of all_type_units
2984 to struct signatured_type **. All uses updated.
2985
45e58e77
DE
2986 * dwarf2read.c (dwarf2_attr_no_follow): Delete unused arg "cu".
2987 All callers updated.
2988
e314d629
TT
29892012-07-09 Tom Tromey <tromey@redhat.com>
2990
2991 * c-exp.y (check_parameter_typelist): New function.
2992 (parameter_typelist): Call it.
2993 * eval.c (make_params): Handle '(void)' case.
2994 * gdbtypes.c (lookup_function_type_with_arguments): Handle
2995 '(void)' case.
2996
aa7c7447
JK
29972012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2998
2999 * common/linux-ptrace.c: Include gdb_assert.h.
3000 <__i386__> (linux_ptrace_test_ret_to_nx_instr): New declaration.
3001 <__i386__>: Include sys/reg.h, sys/mman.h, signal.h, sys/wait.h and
3002 stdint.h.
3003 (linux_ptrace_test_ret_to_nx, linux_ptrace_init_warnings): New
3004 functions.
3005 * common/linux-ptrace.h (linux_ptrace_init_warnings): New declarations.
3006 * linux-nat.c (linux_child_post_attach)
3007 (linux_child_post_startup_inferior): Call linux_ptrace_init_warnings.
3008
889003ed
JK
30092012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3010
3011 * linux-thread-db.c (thread_db_find_new_threads_silently): Do not apply
3012 nptl <2.7 bug workaround for core files.
3013
da559b09
JK
30142012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3015
3016 * linux-nat.c (resume_lwp, linux_nat_resume): Remove LP->SIGINFO
3017 clearing.
3018 (save_siginfo): Remove.
3019 (stop_wait_callback, linux_nat_filter_event): Remove the save_siginfo
3020 call.
3021 (resume_stopped_resumed_lwps): Remove LP->SIGINFO clearing.
3022 (linux_nat_get_siginfo): Use PTRACE_GETSIGINFO.
3023 * linux-nat.h (struct lwp_info): Remove field siginfo.
3024
f865ee35
JK
30252012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3026
3027 Code cleanup for the next patch.
3028 * arm-linux-nat.c (arm_linux_stopped_data_address): Change variable
3029 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
3030 call for it.
3031 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
3032 (ia64_linux_stopped_data_address):
3033 * linux-nat.c (linux_nat_get_siginfo): Add parameter siginfo, change
3034 the return value.
3035 * linux-nat.h (linux_nat_get_siginfo): Likewise.
3036 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Change variable
3037 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
3038 call for it.
3039
76b83c51
JK
30402012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3041
3042 PR 14321
3043 * findcmd.c (parse_find_args): New variable pattern_buf_size_need.
3044 Increase buffer sizes to 2x we need, not just 2x of the previous size.
3045
a6fb9c08
TT
30462012-07-06 Tom Tromey <tromey@redhat.com>
3047
3048 * c-exp.y (DOTDOTDOT): New token.
3049 (func_mod, exp): Use parameter_typelist.
3050 (parameter_typelist): New production.
3051 (tokentab3): Add "..." token.
3052 * eval.c (make_params): Handle varargs.
3053 * gdbtypes.c (lookup_function_type_with_arguments): Handle
3054 varargs.
3055
71918a86
TT
30562012-07-06 Tom Tromey <tromey@redhat.com>
3057
3058 PR exp/9608:
3059 * c-exp.y (%union) <tvec>: Change type.
3060 (func_mod): Now uses <tvec> type.
3061 (exp): Update for tvec change.
3062 (direct_abs_decl): Push the typelist.
3063 (func_mod): Return a typelist.
3064 (nonempty_typelist): Update for tvec change.
3065 * gdbtypes.c (lookup_function_type_with_arguments): New function.
3066 * gdbtypes.h (lookup_function_type_with_arguments): Declare.
3067 * parse.c (pop_type_list): New function.
3068 (push_typelist): New function.
3069 (follow_types): Handle tp_function_with_arguments.
3070 * parser-defs.h (type_ptr): New typedef. Define a VEC.
3071 (enum type_pieces) <tp_function_with_arguments>: New constant.
3072 (union type_stack_elt) <typelist_val>: New field.
3073 (push_typelist): Declare.
3074
fcde5961
TT
30752012-07-06 Tom Tromey <tromey@redhat.com>
3076
3077 * c-exp.y (%union) <type_stack>: New field.
3078 (abs_decl, direct_abs_decl): Use <type_stack> type. Update.
3079 (ptr_operator_ts): New production.
3080 (ptype): Update.
3081 * parse.c (type_stack_reserve): New function.
3082 (check_type_stack_depth): Use it.
3083 (pop_type_stack, append_type_stack, push_type_stack)
3084 (get_type_stack, type_stack_cleanup): New functions.
3085 (follow_types): Handle tp_type_stack.
3086 (_initialize_parse): Simplify initialization.
3087 * parser-defs.h (enum type_pieces) <tp_type_stack>: New
3088 constant.
3089 (union type_stack_elt) <stack_val>: New field.
3090 (get_type_stack, append_type_stack, push_type_stack)
3091 (type_stack_cleanup): Declare.
3092
1a7d0ce4
TT
30932012-07-06 Tom Tromey <tromey@redhat.com>
3094
3095 * parser-defs.h (type_stack, type_stack_size, type_stack_depth):
3096 Remove.
3097 (struct type_stack): New.
3098 * parse.c (type_stack, type_stack_size, type_stack_depth):
3099 Remove.
3100 (type_stack): New global.
3101 (parse_exp_in_context, check_type_stack_depth)
3102 (insert_into_type_stack, insert_type, push_type, push_type_int)
3103 (insert_type_address_space, pop_type, pop_type_int)
3104 (_initialize_parse): Update.
3105
16d01384
TT
31062012-07-06 Tom Tromey <tromey@redhat.com>
3107
3108 * c-exp.y (func_mod, direct_abs_decl, abs_decl, ptr_operator):
3109 Remove %type.
3110
9bfc60bf
SP
31112012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
3112
3113 * c-lang.c (c_printstr): Remove ununsed variable WIDTH.
3114
d5161074
SP
31152012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
3116 Jan Kratochvil <jan.kratochvil@redhat.com>
3117
3118 * cp-valprint.c (cp_print_value): Replace potentially unsafe
3119 alloca with xmalloc/xfree.
3120
a74bc576
SP
31212012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
3122
3123 * MAINTAINERS (Write After Approval): Add myself to the list.
3124
667e0a4b
DE
31252012-07-05 Doug Evans <dje@google.com>
3126
3127 * dwarf2read.c (dw2_expand_symtabs_matching): Fix typo.
3128
34b536a8
HZ
31292012-07-05 Hui Zhu <hui_zhu@mentor.com>
3130
3131 * ax-gdb.c (cli/cli-utils.h): New include.
3132 (linespec.h): Ditto.
3133 (agent_eval_command_one): New function.
3134 (agent_command_1): Ditto.
3135 (agent_command): Call function agent_command_1.
3136 (agent_eval_command): Ditto.
3137 (_initialize_ax_gdb): Change help for "maint agent"
3138 and "maint agent-eval".
3139
e6f0bce7
HZ
31402012-07-05 Hui Zhu <hui_zhu@mentor.com>
3141
3142 * breakpoint.c (check_for_argument): Move to file cli/cli-utils.c.
3143 * cli/cli-utils.c (check_for_argument): New function.
3144 * cli/cli-utils.h (check_for_argument): Ditto.
3145
1b3371b1
L
31462012-07-04 H.J. Lu <hongjiu.lu@intel.com>
3147
3148 * NEWS: Mention x32 ABI support.
3149
23e2d720
L
31502012-07-04 H.J. Lu <hongjiu.lu@intel.com>
3151
3152 * amd64-tdep.c (amd64_x32_init_abi): Set sp_regnum_from_eax to
3153 AMD64_RSP_REGNUM and pc_regnum_from_eax to AMD64_RIP_REGNUM.
3154
3155 * i386-tdep.c (i386_gdbarch_init): Initialize sp_regnum_from_eax
3156 and pc_regnum_from_eax to -1. Update SP regnum from
3157 sp_regnum_from_eax and PC regnum from pc_regnum_from_eax if
3158 needed.
3159
3160 * i386-tdep.h (gdbarch_tdep): Add sp_regnum_from_eax and
3161 pc_regnum_from_eax.
3162
836bf454
JK
31632012-07-03 Jan Kratochvil <jan.kratochvil@redhat.com>
3164
3165 Fix 'warning: parameter has incomplete type' with gcc-3.4.6.
3166 * dwarf2expr.h: Include gdbtypes.h.
3167 (enum call_site_parameter_kind, union call_site_parameter_u): Remove
3168 these forward declarations.
3169 (cu_offset, sect_offset): Move these ...
3170 * gdbtypes.h: Remove include dwarf2expr.h.
3171 (cu_offset, sect_offset): ... here.
3172
1e55e04f
L
31732012-07-03 H.J. Lu <hongjiu.lu@intel.com>
3174
3175 * amd64-linux-tdep.c (linux_sigtramp_code): Renamed to ...
3176 (amd64_linux_sigtramp_code): This.
3177 (amd64_x32_linux_sigtramp_code): New.
3178 (LINUX_SIGTRAMP_LEN): Updated.
3179 (amd64_linux_sigtramp_start): Check x32 sigtramp.
3180
7d0e21ad
JK
31812012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3182
3183 * linux-thread-db.c (thread_db_new_objfile): Fix comment typos.
3184
8775fd2d
JK
31852012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3186
3187 * config.in: Regenerate.
3188 * configure: Regenerate.
3189 * configure.ac: Remove check for gnu/libc-version.h.
3190 * linux-thread-db.c <HAVE_GNU_LIBC_VERSION_H>: Remove include of
3191 gnu/libc-version.h.
3192 (enable_thread_event_reporting) <HAVE_GNU_LIBC_VERSION_H>: Remove
3193 variables libc_version, libc_major and libc_minor. Replace sscanf by
3194 inferior_has_bug. Extend the comment.
3195
fcb44371
JK
31962012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3197
3198 * linux-thread-db.c (inferior_has_bug): New function.
3199 (thread_db_find_new_threads_silently): Return boolean as checked by
3200 inferior_has_bug, describe it in the comments.
3201 (try_thread_db_load_1): Move call to thread_db_find_new_threads_silently
3202 earlier. Abort the initialization if it returned non-zero.
7d0e21ad 3203 (thread_db_new_objfile): Exclude debug files.
fcb44371
JK
3204 (thread_db_find_new_threads_2): Preinitialize ERR. Check errors also
3205 if UNTIL_NO_NEW,
3206
09406207
DE
32072012-07-02 Doug Evans <dje@google.com>
3208
0907af0c
DE
3209 * dwarf2read.c (maybe_queue_comp_unit): Move definition next to others
3210 related to queue management.
3211
09406207
DE
3212 * dwarf2read.c (create_debug_types_hash_table): Use "debug dwarf2-read"
3213 instead of "debug dwarf2-die" in debugging printfs.
3214 (create_debug_info_hash_table_reader): Ditto.
3215 (create_debug_info_hash_table): Ditto.
3216 (init_dwo_file): Ditto.
3217 (init_cutu_and_read_dies): Add debugging printf.
3218 (init_cutu_and_read_dies_no_follow): Ditto.
3219 (process_psymtab_comp_unit_reader): Ditto.
3220
d3ce09f5
SS
32212012-07-02 Stan Shebs <stan@codesourcery.com>
3222
3223 Add target-side support for dynamic printf.
3224 * NEWS: Mention the additional style.
3225 * breakpoint.h (struct bp_target_info): New fields tcommands, persist.
3226 (struct bp_location): New field cmd_bytecode.
3227 * breakpoint.c: Include format.h.
3228 (disconnected_dprintf): New global.
3229 (parse_cmd_to_aexpr): New function.
3230 (build_target_command_list): New function.
3231 (insert_bp_location): Call it.
3232 (remove_breakpoints_pid): Skip dprintf breakpoints.
3233 (print_one_breakpoint_location): Ditto.
3234 (dprintf_style_agent): New global.
3235 (dprintf_style_enums): Add dprintf_style_agent.
3236 (update_dprintf_command_list): Add agent case.
3237 (agent_printf_command): New function.
3238 (_initialize_breakpoint): Add new commands.
3239 * common/ax.def (printf): New bytecode.
3240 * ax.h (ax_string): Declare.
3241 * ax-gdb.h (gen_printf): Declare.
3242 * ax-gdb.c: Include cli-utils.h, format.h.
3243 (gen_printf): New function.
3244 (maint_agent_print_command): New function.
3245 (_initialize_ax_gdb): Add maint agent-printf command.
3246 * ax-general.c (ax_string): New function.
3247 (ax_print): Add printf disassembly.
3248 * Makefile.in (SFILES): Add format.c
3249 (COMMON_OBS): Add format.o.
3250 * common/format.h: New file.
3251 * common/format.c: New file.
3252 * printcmd.c: Include format.h.
3253 (ui_printf): Call parse_format_string.
3254 * remote.c (remote_state): New field breakpoint_commands.
3255 (PACKET_BreakpointCommands): New enum.
3256 (remote_breakpoint_commands_feature): New function.
3257 (remote_protocol_features): Add new BreakpointCommands entry.
3258 (remote_can_run_breakpoint_commands): New function.
3259 (remote_add_target_side_commands): New function.
3260 (remote_insert_breakpoint): Call it.
3261 (remote_insert_hw_breakpoint): Ditto.
3262 (_initialize_remote): Add new packet configuration for
3263 target-side breakpoint commands.
3264 * target.h (struct target_ops): New field
3265 to_can_run_breakpoint_commands.
3266 (target_can_run_breakpoint_commands): New macro.
3267 * target.c (update_current_target): Handle
3268 to_can_run_breakpoint_commands.
3269
2d7b58e8
JK
32702012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3271
3272 Execute -ix and -iex only after system and user gdbinit files.
3273 * main.c (captured_main): Move CMDARG_INIT_FILE and CMDARG_INIT_COMMAND
3274 processing down after gdbinit files.
3275
8690e634
JK
32762012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3277
3278 Add fnmatch-gnu module.
3279 * gnulib/Makefile.in (aclocal_m4_deps): Add new files and remove one.
3280 * gnulib/configure.ac (AC_INIT): Use now import/memmem.c.
3281 * gnulib/aclocal.m4: Regenerate.
3282 * gnulib/config.in: Regenerate.
3283 * gnulib/configure: Regenerate.
3284 * gnulib/import/dummy.c: Remove.
3285 * gnulib/import/Makefile.am: Regenerate.
3286 * gnulib/import/Makefile.in: Likewise.
3287 * gnulib/import/m4/gnulib-cache.m4: Likewise.
3288 * gnulib/import/m4/gnulib-comp.m4: Likewise.
3289 * gnulib/import/alloca.c: New file.
3290 * gnulib/import/alloca.in.h: Likewise.
3291 * gnulib/import/config.charset: Likewise.
3292 * gnulib/import/fnmatch.c: Likewise.
3293 * gnulib/import/fnmatch.in.h: Likewise.
3294 * gnulib/import/fnmatch_loop.c: Likewise.
3295 * gnulib/import/localcharset.c: Likewise.
3296 * gnulib/import/localcharset.h: Likewise.
3297 * gnulib/import/m4/alloca.m4: Likewise.
3298 * gnulib/import/m4/codeset.m4: Likewise.
3299 * gnulib/import/m4/configmake.m4: Likewise.
3300 * gnulib/import/m4/fcntl-o.m4: Likewise.
3301 * gnulib/import/m4/fnmatch.m4: Likewise.
3302 * gnulib/import/m4/glibc21.m4: Likewise.
3303 * gnulib/import/m4/localcharset.m4: Likewise.
3304 * gnulib/import/m4/locale-fr.m4: Likewise.
3305 * gnulib/import/m4/locale-ja.m4: Likewise.
3306 * gnulib/import/m4/locale-zh.m4: Likewise.
3307 * gnulib/import/m4/mbrtowc.m4: Likewise.
3308 * gnulib/import/m4/mbsinit.m4: Likewise.
3309 * gnulib/import/m4/mbsrtowcs.m4: Likewise.
3310 * gnulib/import/m4/mbstate_t.m4: Likewise.
3311 * gnulib/import/m4/stdbool.m4: Likewise.
3312 * gnulib/import/m4/wchar_h.m4: Likewise.
3313 * gnulib/import/m4/wctype_h.m4: Likewise.
3314 * gnulib/import/m4/wint_t.m4: Likewise.
3315 * gnulib/import/mbrtowc.c: Likewise.
3316 * gnulib/import/mbsinit.c: Likewise.
3317 * gnulib/import/mbsrtowcs-impl.h: Likewise.
3318 * gnulib/import/mbsrtowcs-state.c: Likewise.
3319 * gnulib/import/mbsrtowcs.c: Likewise.
3320 * gnulib/import/ref-add.sin: Likewise.
3321 * gnulib/import/ref-del.sin: Likewise.
3322 * gnulib/import/stdbool.in.h: Likewise.
3323 * gnulib/import/streq.h: Likewise.
3324 * gnulib/import/strnlen1.c: Likewise.
3325 * gnulib/import/strnlen1.h: Likewise.
3326 * gnulib/import/verify.h: Likewise.
3327 * gnulib/import/wchar.in.h: Likewise.
3328 * gnulib/import/wctype.in.h: Likewise.
3329
202cbf1c
JK
33302012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3331
3332 Support shell wildcards for 'set auto-load safe-path'.
3333 * auto-load.c: Include fnmatch.h.
3334 (filename_is_in_dir): Rename to ...
3335 (filename_is_in_pattern_1, filename_is_in_pattern): ... here and split
3336 it. Update function comment. Rename dir_len to pattern_len. New
3337 variables filename_len, pattern and filename. Add more DEBUG_AUTO_LOAD
3338 messages. Use gdb_filename_fnmatch.
3339 (filename_is_in_auto_load_safe_path_vec): Rename variable dir to
3340 pattern.
3341 (_initialize_auto_load): Extend the "set auto-load safe-path" help text.
3342 * defs.h (gdb_filename_fnmatch): New declaration.
3343 * utils.c: Include fnmatch.h.
3344 (gdb_filename_fnmatch): New function.
3345
fb7b5af4
SDJ
33462012-07-02 Sergio Durigan Junior <sergiodj@redhat.com>
3347
3348 * breakpoint.c (BREAK_ARGS_HELP): Include help message for the new
3349 `-probe' and `-probe-stap' options.
3350
72d0e2c5
YQ
33512012-07-01 Yao Qi <yao@codesourcery.com>
3352
3353 * breakpoint.c: Removed always_inserted_auto, always_inserted_on,
3354 always_inserted_off, and always_inserted_enums.
3355 Change always_inserted_mode's type to 'enum auto_boolean'.
3356 (show_always_inserted_mode, breakpoint_always_inserted_mode): Update
3357 callers.
3358 (_initialize_breakpoint): Call add_setshow_auto_boolean_cmd instead
3359 of add_setshow_enum_cmd.
3360 * infrun.c: Remove can_use_displaced_stepping_auto,
3361 can_use_displaced_stepping_on, can_use_displaced_stepping_off, and
3362 can_use_displaced_stepping_enum.
3363 Change can_use_displaced_stepping's type to 'enum auto_boolean'.
3364 (show_can_use_displaced_stepping, use_displaced_stepping): Update callers.
3365 (_initialize_infrun): Call add_setshow_auto_boolean_cmd instead of
3366 add_setshow_enum_cmd.
3367
42e7ad6c
DE
33682012-06-30 Doug Evans <dje@google.com>
3369
3370 * dwarf2read.c (signatured_type): Make "per_cu" member first.
3371 (init_cutu_and_read_dies): Handle rereading a DWO CU while it's
3372 currently being read. Propagate DW_AT_comp_dir to DWO DIE.
3373
39cf75f7
DE
33742012-06-29 Doug Evans <dje@google.com>
3375
3376 * linespec.c: #include "stack.h".
3377 (decode_line_with_current_source): Moved here from symtab.c and
3378 renamed from decode_line_spec. All callers updated.
3379 (decode_line_with_last_displayed): Moved here from breakpoint.c and
3380 renamed from decode_line_spec_1. All callers updated.
3381 * linespec.h (decode_line_with_current_source): Move declaration here
3382 from symtab.h and renamed from decode_line_spec.
3383 (decode_line_with_last_displayed): Move declaration here from symtab.h
3384 and renamed from decode_line_spec_1.
3385 * macrocmd.c: #include "linespec.h".
3386 * symtab.c: Remove #include "linespec.h".
3387
433df2d4
DE
33882012-06-28 Doug Evans <dje@google.com>
3389
1ce1cefd
DE
3390 * dwarf2read.c (get_cu_length): New function.
3391 (offset_in_cu_p, error_check_comp_unit_head): Call it.
3392 (create_debug_types_hash_table): Ditto.
3393 (init_cutu_and_read_dies): Ditto.
3394 (init_cutu_and_read_dies_no_follow): Ditto.
3395
3b80fe9b
DE
3396 * dwarf2read.c (dwarf2_find_base_address): Move definition.
3397
433df2d4
DE
3398 * dwarf2read.c (ABBREV_HASH_SIZE): Remove enclosing #ifndef/#endif.
3399 (struct abbrev_table): Define.
3400 (dwarf2_cu): Replace members dwarf2_abbrevs, abbrev_obstack with
3401 abbrev_table.
3402 (init_cutu_and_read_dies): Update.
3403 (abbrev_table_alloc_abbrev): New function. Replaces
3404 dwarf_alloc_abbrev. All callers updated.
3405 (abbrev_table_add_abbrev): New function.
3406 (abbrev_table_lookup_abbrev): New function. Replaces
3407 dwarf2_lookup_abbrev. All callers updated.
3408 (abbrev_table_read_table): New function. Contents moved here from
3409 dwarf2_read_abbrevs.
3410 (dwarf2_read_abbrevs): Call it.
3411 (abbrev_table_free): New function.
3412 (dwarf2_free_abbrev_table): Call it.
3413
71caed83
SS
34142012-06-28 Stan Shebs <stan@codesourcery.com>
3415
3416 * osdata.c (info_osdata_command): Filter out "Title" columns
3417 from non-MI uses.
3418 * common/linux-osdata.c (struct osdata_type): Add title field.
3419 (osdata_table): Add titles to each entry.
3420 (linux_command_xfer_osdata): Add a column for title data.
3421
37ce89eb
SS
34222012-06-28 Stan Shebs <stan@codesourcery.com>
3423
3424 Make logging work for MI.
3425 * NEWS: Mention it.
3426 * interps.h (interp_set_logging_ftype): New typedef.
3427 (struct interp_procs): New field set_logging_proc.
3428 (current_interp_set_logging): Declare.
3429 * interps.c (current_interp_set_logging): New function.
3430 * cli/cli-logging.c: Include interps.h.
3431 (set_logging_redirect): Call current_interp_set_logging.
3432 (pop_output_files): Ditto.
3433 (handle_redirections): Ditto, plus skip ui-out redirect if MI.
3434 * mi/mi-console.h (mi_console_set_raw): Declare.
3435 * mi/mi-console.c (mi_console_set_raw): New function.
3436 * mi/mi-interp.c (saved_raw_stdout): New global.
3437 (mi_set_logging): New function.
3438 (_initialize_mi_interp): Add it to interp procs.
3439
659c9f3a
DE
34402012-06-28 Doug Evans <dje@google.com>
3441
a743abeb
DE
3442 * symtab.c (lookup_symbol_aux_objfile): Use
3443 ALL_OBJFILE_PRIMARY_SYMTABS.
3444
659c9f3a
DE
3445 * gdbtypes.c (lookup_typename): Rename local variable "tmp" to "type".
3446
da2d6d3d
JK
34472012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3448
3449 * common/buffer.c: Include inttypes.h and stdint.h.
3450 (buffer_xml_printf): Use PRId64, PRIu64, PRIx64 and PRIo64.
3451
e5ef252a
PA
34522012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3453 Pedro Alves <palves@redhat.com>
3454
3455 * gdbthread.h (ALL_THREADS): New macro.
3456 (thread_list): Declare.
3457 * infrun.c (handle_inferior_event) <spurious signal>: Don't keep
3458 going, but instead fall through to the stepping handling.
3459 * linux-nat.c (resume_lwp): New parameter 'signo'. Resume with
3460 the passed in signal. Adjust debug output.
3461 (resume_callback): Rename to ...
3462 (linux_nat_resume_callback): ... this. Pass the thread's last
3463 stop signal, if in "pass" state.
3464 (linux_nat_resume): Adjust to rename.
3465 (stop_wait_callback): New assertion. Don't respawn signals;
3466 instead let the LWP remain with SIGNALLED set.
3467 (linux_nat_wait_1): Remove flushing of pending SIGSTOPs.
3468 * remote.c (append_pending_thread_resumptions): New.
3469 (remote_vcont_resume): Call it.
3470 * target.h (target_resume): Extend comment.
3471
1d7975eb
IS
34722012-06-28 Iain Sandoe <iain@codesourcery.com>
3473
3474 * auxv.c (fprint_target_auxv): Handle extended cache data tags.
3475
2e3cf129
DE
34762012-06-27 Doug Evans <dje@google.com>
3477
3478 * dwarf2read.c (dwarf2_cu): Add ranges_base.
3479 Delete have_addr_base, unused. All uses updated.
3480 (init_cutu_and_read_dies): Process DW_AT_GNU_ranges_base.
3481 (dwarf2_get_pc_bounds): Add ranges_base.
3482 (dwarf2_record_block_ranges): Ditto.
3483
1bb9788d
TT
34842012-06-27 Tom Tromey <tromey@redhat.com>
3485
3486 PR macros/7961:
3487 * varobj.c (varobj_create): Update.
3488 (varobj_set_value): Update.
3489 * tracepoint.c (validate_actionline): Update.
3490 (encode_actions_1): Update.
3491 * parse.c (parse_exp_1): Add 'pc' argument.
3492 (parse_exp_in_context): Add 'pc' argument. Change how
3493 expression_context_pc is set.
3494 (parse_expression): Update.
3495 (parse_field_expression): Update.
3496 * expression.h (parse_exp_1): Update.
3497 * eval.c (parse_to_comma_and_eval): Update.
3498 * breakpoint.c (set_breakpoint_condition): Update.
3499 (update_watchpoint): Update.
3500 (init_breakpoint_sal): Update
3501 (find_condition_and_thread): Update.
3502 (watch_command_1): Update.
3503 (update_breakpoint_locations): Update.
3504 * ada-lang.c (ada_read_renaming_var_value): Update.
3505 (create_excep_cond_exprs): Update.
3506
0bc3a05c
DE
35072012-06-27 Doug Evans <dje@google.com>
3508
3509 * dwarf2read.c (per_cu_header_read_in): Simplify, and handle
3510 type units.
3511
4bdcc0c1
DE
35122012-06-26 Doug Evans <dje@google.com>
3513
3514 * dwarf2read.c (read_and_check_comp_unit_head): Delete unnecessary
3515 prototype.
3516 (error_check_comp_unit_head): New arg abbrev_section. All callers
3517 updated.
3518 (read_and_check_comp_unit_head): Ditto.
3519 (read_and_check_type_unit_head): Ditto.
3520
ee0bf529
SCR
35212012-06-26 Siva Chandra Reddy <sivachandra@google.com>
3522
3523 New attribute 'last' for gdb.Symtab_and_line.
3524 * NEWS (Python Scripting): Add entry about the new attribute.
3525 * python/py-symtab.c (salpy_get_last): New function which
3526 implements the get method for the 'last' attribute of
3527 gdb.Symtab_and_line.
3528 (sal_object_getset): Add entry for the 'last' attribute.
3529
1c658ad5
DE
35302012-06-26 Doug Evans <dje@google.com>
3531
09262596
DE
3532 * dwarf2read.c (dwo_section_names): Add macinfo_dwo, macro_dwo.
3533 (dwo_sections): Add macinfo, macro.
3534 (dwarf2_locate_dwo_sections): Watch for macro sections.
3535 (dwarf_decode_macros): Remove args lh, abfd, section, section_name.
3536 All callers updated. Handle DWO files.
3537
45cfd468
DE
3538 * NEWS: Mention new options "set debug dwarf2-read" and
3539 "set debug symtab-create".
3540 * dwarf2read.c (dwarf2_read_debug): New static global.
3541 (dwarf2_build_psymtabs_hard): Add debugging printfs.
3542 (process_queue): Ditto.
3543 (process_full_comp_unit): Ditto.
3544 (_initialize_dwarf2_read): Add new option "set debug dwarf2-read".
3545 * elfread.c (elf_symfile_read): Add debugging printf.
3546 * minsyms.c (install_minimal_symbols): Ditto.
3547 * psymtab.c (allocate_psymtab): Ditto.
3548 * symfile.c (allocate_symtab): Ditto.
3549 * symtab.c (symtab_create_debug): New global.
3550 (_initialize_symtab): Add new option "set debug symtab-create".
3551 * symtab.h (symtab_create_debug): Declare.
3552
1c658ad5
DE
3553 * dwarf2read.c (lookup_dwo_comp_unit): Enhance comment.
3554 (lookup_dwo_type_unit): Ditto.
3555
6fea9e18
L
35562012-06-26 Roland McGrath <roland@hack.frob.com>
3557 H.J. Lu <hongjiu.lu@intel.com>
3558
3559 * amd64-linux-nat.c: Include <sys/user.h>.
3560 (ps_get_thread_area): Use PTRACE_PEEKUSER to get fs_base/gs_base
3561 if HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE or
3562 HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE is defined.
3563
3564 * configure.ac: Check if the fs_base and gs_base members of
3565 `struct user_regs_struct' exist.
3566 * config.in: Regenerated.
3567 * configure: Likewise.
3568
adb4fe3b
ME
35692012-06-25 Michael Eager <eager@eagercon.com>
3570
3571 PR python/14291
f782ad9b 3572 * python/python.c (gdbpy_write): Check for interrupted output.
adb4fe3b 3573
fc51cce1
MGD
35742012-06-25 Greta Yorsh <greta.yorsh@arm.com>
3575
3576 * arm-tdep.c (arm_in_function_epilogue_p): Recognize POP with a single
3577 register as a stack alignment in ARM mode.
3578
40a73391
JK
35792012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3580
3581 Update gnulib to GIT commit a39f53ccb70a613e647e1019fb4c63645220267e.
3582 * gnulib/config.in: Regenerate.
3583 * gnulib/configure: Likewise.
3584 * gnulib/import/m4/extensions.m4: Update it.
3585 * gnulib/import/m4/gnulib-common.m4: Likewise.
3586 * gnulib/import/m4/memmem.m4: Likewise.
3587 * gnulib/import/m4/mmap-anon.m4: Likewise.
3588 * gnulib/import/m4/multiarch.m4: Likewise.
3589 * gnulib/import/stdint.in.h: Likewise.
3590
972daa01
YQ
35912012-06-24 Yao Qi <yao@codesourcery.com>
3592
3593 * corefile.c (write_memory_with_notification): New.
3594 * gdbcore.h: Declare write_memory_with_notification.
3595 * ada-lang.c (ada_value_assign): Replace 'write_memory' and
3596 'observer_notify_memory_changed' with 'write_memory_with_notification'.
3597 * valops.c (value_assign): Likewise.
3598 * python/py-inferior.c (infpy_write_memory): Call
3599 'write_memory_with_notification'.
3600
8d6e0714
JK
36012012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3602
3603 * cc-with-index.sh: Use also -ex "set auto-load no".
3604
156942c7
DE
36052012-06-23 Doug Evans <dje@google.com>
3606
3607 PR 14125
3608 * NEWS: Document additions to .gdb_index.
3609 * dwarf2read.c: #include "gdb/gdb-index.h".
3610 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): New macro.
3611 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): New macro.
3612 (DW2_GDB_INDEX_CU_SET_VALUE): New macro.
3613 (dwarf2_read_index): Recognize version 7.
3614 (dw2_do_expand_symtabs_matching): New args want_specific_block,
3615 block_kind, domain): All callers updated.
3616 (dw2_find_symbol_file): Handle new index CU values.
3617 (dw2_expand_symtabs_matching): Match symbol kind if requested.
3618 (add_index_entry): New args is_static, kind. All callers updated.
3619 (offset_type_compare, uniquify_cu_indices): New functions
3620 (symbol_kind): New function.
3621 (write_psymtabs_to_index): Remove duplicate CU values.
3622 (write_psymtabs_to_index): Write .gdb_index version 7.
3623
352b3eda
JB
36242012-06-22 Joel Brobecker <brobecker@adacore.com>
3625
3626 * configure.ac (build_warnings): Add -Wdeclaration-after-statement.
3627 * configure: Regenerate.
3628
2678e2af
YQ
36292012-06-20 Yao Qi <yao@codesourcery.com>
3630
3631 * python/py-inferior.c: Update comments of infpy_read_memory
3632 and infpy_write_memory.
3633
95c391b6
TT
36342012-06-19 Tom Tromey <tromey@redhat.com>
3635
3636 PR exp/9514:
3637 * parser-defs.h (insert_type, insert_type_address_space): Declare.
3638 (push_type_address_space): Remove.
3639 * parse.c (insert_into_type_stack): New function.
3640 (insert_type): Likewise.
3641 (insert_type_address_space): Rename from push_type_address_space.
3642 Insert tp_space_identifier.
3643 * c-exp.y (ptr_operator): New production.
3644 (abs_decl): Use ptr_operator.
3645 (space_identifier): Call insert_type_address_space.
3646 (ptype): Don't use const_or_volatile_or_space_identifier.
3647 (const_or_volatile_noopt): Call insert_type.
3648 (conversion_type_id, conversion_declarator): New productions.
3649 (operator): Use conversion_type_id.
3650
6ac9ef80
DE
36512012-06-18 Doug Evans <dje@google.com>
3652
422d65e7
DE
3653 * symtab.h (minimal_symbol): New member created_by_gdb.
3654 * elfread.c (elf_symtab_read): Set created_by_gdb for @plt minsym
3655 created by gdb.
3656 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): New function.
3657 (search_symbols): Call it instead of lookup_symbol.
3658 Skip symbols created by gdb. Only scan minsyms if nfiles == 0.
3659
49f6c839
DE
3660 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_const_index.
3661 Adjust address for DW_OP_GNU_addr_index.
3662 * dwarf2expr.h (dwarf_expr_context): Update comment.
3663 * dwarf2loc.c (locexpr_describe_location_piece): New arg per_cu,
3664 all callers updated. Handle TLS vars described with
3665 DW_OP_GNU_const_index.
3666 (disassemble_dwarf_expression): Handle DW_OP_GNU_addr_index
3667 and DW_OP_GNU_const_index.
3668 * dwarf2read.c (decode_locdesc): Handle DW_OP_GNU_addr_index.
3669
6ac9ef80
DE
3670 * block.c (find_block_in_blockvector): Make explicit the fact that we
3671 ignore GLOBAL_BLOCK.
3672
4cd18215
TT
36732012-06-18 Tom Tromey <tromey@redhat.com>
3674
3675 * c-exp.y (operator): Remove trailing space after "delete" and
3676 "delete[]".
3677
a9b8d892
JK
36782012-06-18 Mark Kettenis <kettenis@gnu.org>
3679 Jan Kratochvil <jan.kratochvil@redhat.com>
3680
3681 Switch i386 and derived targets to ON_STACK.
3682 * amd64-dicos-tdep.c (amd64_dicos_push_dummy_code): Remove.
3683 (amd64_dicos_init_abi): Remove its installment.
3684 * dicos-tdep.c (dicos_init_abi): Remove the
3685 set_gdbarch_call_dummy_location call. Update the comment here.
3686 * i386-dicos-tdep.c (i386_dicos_push_dummy_code): Remove.
3687 (i386_dicos_init_abi): Remove its installment.
3688 * i386-tdep.c (i386_push_dummy_code): New function.
3689 (i386_gdbarch_init): Call set_gdbarch_call_dummy_location, install
3690 i386_push_dummy_code.
3691
e2e4d78b
JK
36922012-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
3693
3694 Remove stale dummy frames.
3695 * breakpoint.c: Include dummy-frame.h.
3696 (longjmp_breakpoint_ops): New variable.
3697 (update_breakpoints_after_exec, breakpoint_init_inferior): Delete also
3698 bp_longjmp_call_dummy.
3699 (bpstat_what, bptype_string, print_one_breakpoint_location)
3700 (init_bp_location): Support bp_longjmp_call_dummy.
3701 (set_longjmp_breakpoint): Use longjmp_breakpoint_ops. Comment why.
3702 (set_longjmp_breakpoint_for_call_dummy)
3703 (check_longjmp_breakpoint_for_call_dummy, longjmp_bkpt_dtor): New
3704 functions.
3705 (initialize_breakpoint_ops): Initialize longjmp_breakpoint_ops.
3706 * breakpoint.h (enum bptype): New item bp_longjmp_call_dummy. Delete
3707 FIXME comment and extend the other comment for bp_call_dummy.
3708 (set_longjmp_breakpoint_for_call_dummy)
3709 (check_longjmp_breakpoint_for_call_dummy): New declarations.
3710 * dummy-frame.c: Include gdbthread.h.
3711 (pop_dummy_frame_bpt): New function.
3712 (pop_dummy_frame): Call pop_dummy_frame_bpt.
3713 (dummy_frame_discard): New function.
3714 (cleanup_dummy_frames): Update the comment about longjmps.
3715 * dummy-frame.h (dummy_frame_discard): New declaration.
3716 * gdbthread.h (struct thread_info): Extend initiating_frame comment.
3717 * infcall.c (call_function_by_hand): New variable longjmp_b. Call
3718 set_longjmp_breakpoint_for_call_dummy. Chain its breakpoints with BPT.
3719 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>:
3720 Add case 4 comment. Call check_longjmp_breakpoint_for_call_dummy and
3721 keep_going if IS_LONGJMP and there is no other reason to stop.
3722
09d5912c
TT
37232012-06-18 Greta Yorsh <Greta.Yorsh@arm.com>
3724
3725 * remote-sim.c (sim_command_completer): Initialize
3726 variable 'result'.
3727
1788b2d3
JK
37282012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3729
3730 * dwarf2expr.c (execute_stack_op): Support DW_OP_GNU_parameter_ref.
3731 * dwarf2loc.c (call_site_parameter_matches): Support
3732 CALL_SITE_PARAMETER_PARAM_OFFSET.
3733 (needs_dwarf_reg_entry_value): Push stub value.
3734 * dwarf2read.c (read_call_site_scope): New variable origin. Support
3735 CALL_SITE_PARAMETER_PARAM_OFFSET and its DW_AT_abstract_origin.
3736 * gdbtypes.h (enum call_site_parameter_kind): New item
3737 CALL_SITE_PARAMETER_PARAM_OFFSET.
3738 (struct call_site.parameter.u): New field param_offset.
3739
24c5c679
JK
37402012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3741
3742 Code cleanup: Generalize call_site.parameter key.
3743 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_entry_value>: Remove
3744 variable dwarf_reg. New variable kind_u. Update parameters to
3745 push_dwarf_reg_entry_value.
3746 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
3747 * dwarf2expr.h (enum call_site_parameter_kind)
3748 (union call_site_parameter_u): Forward declarations.
3749 (struct dwarf_expr_context_funcs): Update parameters and their
3750 description for push_dwarf_reg_entry_value.
3751 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
3752 * dwarf2loc.c (call_site_parameter_matches): New function.
3753 (dwarf_expr_reg_to_entry_parameter): Update parameters and their
3754 description. Use call_site_parameter_matches.
3755 (dwarf_expr_push_dwarf_reg_entry_value, value_of_dwarf_reg_entry):
3756 Update parameters and their description.
3757 (value_of_dwarf_block_entry): Remove variables dwarf_reg and fb_offset.
3758 New variable kind_u. Adjust the caller for updated parameters.
3759 (needs_dwarf_reg_entry_value): Update parameters.
3760 * dwarf2read.c (read_call_site_scope): New variable loc. Use it
3761 instead of attr. Update for the changed fields of struct
3762 call_site_parameter.
3763 * gdbtypes.h: Include dwarf2expr.h.
3764 (enum call_site_parameter_kind): New.
3765 (struct call_site.parameter): New field kind. Wrap dwarf_reg and
3766 fb_offset into new union u.
3767
ac142d96
L
37682012-06-16 H.J. Lu <hongjiu.lu@intel.com>
3769
3770 * amd64-tdep.c (amd64_x32_analyze_stack_align): New function.
3771 (amd64_analyze_prologue): Call amd64_x32_analyze_stack_align
3772 for x32.
3773
ba224c70
L
37742012-06-16 H.J. Lu <hongjiu.lu@intel.com>
3775
3776 * amd64-linux-nat.c (compat_x32_clock_t): New.
3777 (compat_x32_siginfo_t): Likewise.
3778 (compat_x32_siginfo_from_siginfo): Likewise.
3779 (siginfo_from_compat_x32_siginfo): Likewise.
3780 (amd64_linux_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
3781 and siginfo_from_compat_x32_siginfo for x32.
3782
7ecbc825
HZ
37832012-06-15 Hui Zhu <hui_zhu@mentor.com>
3784
3785 * tracepoint.c (tfile_xfer_partial): Add a lseek.
3786
233dfcf0
L
37872012-06-15 H.J. Lu <hongjiu.lu@intel.com>
3788
3789 * amd64-linux-nat.c (ps_get_thread_area): Check bits_per_word
3790 instead of gdbarch_ptr_bit.
3791 * amd64-nat.c (amd64_native_gregset_reg_offset): Likewise.
3792 (amd64_supply_native_gregset): Likewise.
3793 (amd64_collect_native_gregset): Likewise.
3794 * amd64-tdep.c (amd64_supply_fxsave): Likewise.
3795 (amd64_supply_xsave): Likewise.
3796 (amd64_collect_fxsave): Likewise.
3797 (amd64_collect_xsave): Likewise.
3798
6da38f42
L
37992012-06-15 H.J. Lu <hongjiu.lu@intel.com>
3800
3801 * amd64-linux-nat.c (AMD64_LINUX_X32_DS): New.
3802 (amd64_linux_read_description): Check DS segment register for
3803 x32 process.
3804
663b969e
TT
38052012-06-15 Tom Tromey <tromey@redhat.com>
3806
3807 * dwarf2read.c (dw2_find_symbol_file): Unconditionally use
3808 init_cutu_and_read_dies.
3809
d6f05027
IS
38102012-06-15 Iain Sandoe <iain@codesourcery.com>
3811
3812 * MAINTAINERS (Write After Approval): Add myself to the list.
3813
6598ed07
TT
38142012-06-15 Tom Tromey <tromey@redhat.com>
3815
3816 * valops.c (value_find_oload_method_list): Now static.
3817 * value.h (value_find_oload_method_list): Don't declare.
3818
2b214ea6
TT
38192012-06-15 Tom Tromey <tromey@redhat.com>
3820
3821 * valops.c (find_overload_match): Use value_ind.
3822
a210c238
MR
38232012-06-15 Maciej W. Rozycki <macro@codesourcery.com>
3824
3825 * infrun.c (handle_inferior_event): Correct indentation.
3826
3771a44c
DE
38272012-06-14 Doug Evans <dje@google.com>
3828
3829 * dwarf2loc.c (debug_loc_kind): Add DEBUG_LOC_START_LENGTH.
3830 (DEBUG_LOC_START_END): Renamed from DEBUG_LOC_NORMAL.
3831 All uses updated.
3832 (decode_debug_loc_dwo_addresses): New arg "byte_order". All callers
3833 updated. Handle DEBUG_LOC_START_LENGTH.
3834 (dwarf2_find_location_expression): Handle DEBUG_LOC_START_LENGTH.
3835 (loclist_describe_location): Ditto.
3836
1c5a993e
MR
38372012-06-14 Maciej W. Rozycki <macro@codesourcery.com>
3838
3839 PR backtrace/13866
3840 * infrun.c (handle_inferior_event): Re-fetch frame and gdbarch
3841 after hiding inline functions.
3842
0b155465
JB
38432012-06-13 Joel Brobecker <brobecker@adacore.com>
3844
3845 * inf-ttrace.c (_initialize_hppa_hpux_nat): Rename into
3846 _initialize_inf_ttrace.
3847
45717bac
JB
38482012-06-13 Joel Brobecker <brobecker@adacore.com>
3849
3850 * ia64-hpux-nat.c (_initialize_ia64_hpux_nat): Renames
3851 _initialize_hppa_hpux_nat.
3852
34370865
JB
38532012-06-13 Joel Brobecker <brobecker@adacore.com>
3854
3855 * remote-sim.c (sim_command_completer): Change type of return
3856 value to "VEC (char_ptr) *". Adjust implementation accordingly.
3857
284c5a60
MK
38582012-06-13 Mark Kettenis <kettenis@gnu.org>
3859 Jan Kratochvil <jan.kratochvil@redhat.com>
3860
3861 PR tdep/14222
3862 * i386-tdep.c (i386_push_dummy_call): Unconditionally align the
3863 stack on a 16-byte boundary.
3864
2535757a
TT
38652012-06-13 Kaushik Srenevasan <kaushik@twitter.com>
3866
3867 * jit.c (finalize_symtab): Set function's return type to 'void' by
3868 default.
3869
fff4548b
MK
38702012-06-13 Mark Kettenis <kettenis@gnu.org>
3871 H.J. Lu <hongjiu.lu@intel.com>
3872
5a83521a
MK
3873 * amd64-linux-tdep.c (amd64_linux_init_abi_common): New function.
3874 Move bits common to both the classic LP64 and the new x32 ILP32
3875 ABI here.
3876 (amd64_linux_init_abi): Call amd64_linux_init_abi_common.
3877 (amd64_x32_linux_init_abi): New function.
3878 (_initialize_amd64_linux_tdep): Register osabi for bfd_mach_x64_32
3879 subtype.
3880
fff4548b
MK
3881 * i386-tdep.h (i386_pseudo_register_name): New prototype.
3882 * i386-tdep.c (i386_pseudo_register_name): Make public.
3883 * amd64-tdep.h (amd64_x32_init_abi): New prototype.
3884 * amd64-tdep.c (amd64_dword_names): Add "eip".
3885 (amd64_x32_pseudo_register_type): New function
3886 (amd64_x32_init_abi): New function.
3887
dd80ea3c
JK
38882012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3889
3890 PR build/14003
3891 * inferior.h (struct inferior_suspend_state): Comment out.
3892 (struct inferior): Comment out the field suspend.
3893 * infrun.c (struct infcall_suspend_state): Comment out the field
3894 inferior_suspend.
3895 (save_infcall_suspend_state, restore_infcall_suspend_state): Comment
3896 out its assignment.
3897
50af5481
JK
38982012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3899
3900 PR c++/14177 - Fix parsing TYPENAME:: in parentheses.
3901 * c-exp.y (classify_inner_name): Remove caller assumptions in the
3902 function comment. Return ERROR for unresolved cases. Implement
3903 returning proper NAME.
3904 (yylex): Accept also NAME from classify_inner_name.
3905 * cp-namespace.c (cp_lookup_nested_type): Rename to ...
3906 (cp_lookup_nested_symbol): ... here. Return any found symbol, not just
3907 LOC_TYPEDEF type.
3908 * cp-support.h (cp_lookup_nested_type): Update its declaration.
3909
d55637df
TT
39102012-06-13 Tom Tromey <tromey@redhat.com>
3911
3912 * breakpoint.c (condition_completer): New function.
3913 (_initialize_breakpoint): Use it.
3914 * value.c (complete_internalvar): New function.
3915 * value.h (complete_internalvar): Declare.
3916
49c4e619
TT
39172012-06-13 Tom Tromey <tromey@redhat.com>
3918
3919 * ada-lang.c (ada_make_symbol_completion_list): Return a VEC.
3920 * breakpoint.c (catch_syscall_completer): Return a VEC.
3921 * cli/cli-cmds.c (complete_command): Update.
3922 * cli/cli-decode.c (complete_on_cmdlist): Return a VEC.
3923 (complete_on_enum): Likewise.
3924 * command.h: Include gdb_vecs.h.
3925 (completer_ftype): Change return type.
3926 (complete_on_cmdlist, complete_on_enum): Likewise.
3927 * completer.c (noop_completer, filename_completer)
3928 (location_completer): Return a VEC.
3929 (add_struct_fields): Remove 'nextp' argument. Change 'output'
3930 to a VEC.
3931 (expression_completer, complete_line_internal, complete_line)
3932 (command_completer): Return a VEC.
3933 (gdb_completion_word_break_characters, line_completion_function):
3934 Update.
3935 * completer.h: Include gdb_vecs.h.
3936 (complete_line, noop_completer, filename_completer)
3937 (expression_completer, location_completer, command_completer):
3938 Update.
3939 * f-lang.c (f_word_break_characters): Return a VEC.
3940 * interps.c (interpreter_completer): Return a VEC.
3941 * language.h (struct language_defn)
3942 <la_make_symbol_completion_list>: Return a VEC.
3943 * python/py-cmd.c (cmdpy_completer): Return a VEC.
3944 * symtab.c (free_completion_list): Take a VEC.
3945 (return_val_size, return_val_index): Remove.
3946 (return_val): Now a VEC.
3947 (completion_list_add_name): Update.
3948 (default_make_symbol_completion_list_break_on)
3949 (default_make_symbol_completion_list, make_symbol_completion_list)
3950 (make_symbol_completion_list_fn, make_file_symbol_completion_list):
3951 Return a VEC.
3952 (add_filename_to_list): Update.
3953 (struct add_partial_filename_data) <list_used, list_alloced>: Remove.
3954 <list>: Now a VEC.
3955 (maybe_add_partial_symtab_filename): Update.
3956 (make_source_files_completion_list): Return a VEC.
3957 * symtab.h (default_make_symbol_completion_list_break_on)
3958 (default_make_symbol_completion_list, make_symbol_completion_list)
3959 (make_symbol_completion_list_fn, make_file_symbol_completion_list)
3960 (make_source_files_completion_list): Update.
3961
625e8578
TT
39622012-06-13 Tom Tromey <tromey@redhat.com>
3963
3964 * breakpoint.c (add_catch_command): Use completer_ftype.
3965 * breakpoint.h: Include command.h.
3966 (add_catch_command): Use completer_ftype.
3967 * cli/cli-decode.c (set_cmd_completer): Use completer_ftype.
3968 * cli/cli-decode.h (struct cmd_list_element) <completer>:
3969 Use completer_ftype.
3970 * command.h (completer_ftype): New typedef.
3971 (set_cmd_completer): Use it.
3972 * python/py-cmd.c (struct cmdpy_completer) <completer>: Use
3973 completer_ftype.
3974
5eb3b062
PA
39752012-06-13 Pedro Alves <palves@redhat.com>
3976
3977 Partial revert of previous change.
3978
3979 * serial.c (scb_base): New global.
3980 (serial_for_fd): New.
3981 (serial_open, serial_fdopen_ops): Link new serial in open serials
3982 chain.
3983 (do_serial_close): Unlink serial from the open serials chain.
3984
8b3ee56d
PA
39852012-06-12 Pedro Alves <palves@redhat.com>
3986
3987 * infrun.c (infrun_thread_stop_requested_callback): Don't switch
3988 threads here.
3989 (prepare_for_detach): No longer context switch here in non-stop
3990 mode.
3991 (fetch_inferior_event): Ditto.
3992 (handle_inferior_event) <STOP_QUIETLY || NO_STOP_QUIETLY>: Switch
3993 to the event thread before removing breakpoints. Switch to the
3994 event thread before inserting breakpoints and resuming.
3995 (handle_inferior_event) <TARGET_WAITKIND_SPURIOUS>: Switch to the
3996 event thread before resuming.
3997 (handle_inferior_event) <stepping_past_singlestep_breakpoint>:
3998 Switch to the event thread before removing breakpoints.
3999
5d60742e
EZ
40002012-06-12 Eli Zaretskii <eliz@gnu.org>
4001
4002 * infcmd.c (construct_inferior_arguments) [__MINGW32__]: Quote
4003 special characters correctly for the Windows shells. See
4004 http://sourceware.org/ml/gdb/2012-06/msg00047.html for the bug
4005 report.
4006 [!__MINGW32__]: Remove extra double quote character from special
4007 characters.
4008
a6feecf7
SS
40092012-06-11 Stan Shebs <stan@codesourcery.com>
4010
4011 * ui-out.h: Remove #if 0 declarations.
4012 * ui-out.c: Remove #if 0 functions.
4013
ddefb60f
PA
40142012-06-11 Pedro Alves <palves@redhat.com>
4015
4016 * ser-base.c (run_async_handler_and_reschedule): New.
4017 (fd_event, push_event): Use it.
4018 * serial.c (serial_open, serial_fdopen_ops): Set the initial
4019 reference count to 1.
4020 (do_serial_close): Set the bufp field to NULL. Use serial_unref
4021 instead of xfree.
4022 (serial_is_open, serial_ref, serial_unref): New.
4023 * serial.h (serial_open): Adjust comment.
4024 (serial_is_open): Declare.
4025 (serial_close): Adjust comment.
4026 (serial_ref, serial_unref) Declare.
4027 (struct serial): New field 'refcnt'.
4028
d5ad6aa5
PA
40292012-06-11 Pedro Alves <palves@redhat.com>
4030
4031 Remove #if 0'd "connect" command, and unnecessary associated
4032 refcounting and serial reuse bits.
4033
4034 * serial.h (struct serial): Remove fields 'next' and 'refcnt'.
4035 * serial.c (last_serial_opened): Delete.
4036 (scb_base): Delete.
4037 (serial_open): Adjust.
4038 (serial_for_fd): Delete.
4039 (serial_fdopen_ops, do_serial_close): Adjust.
4040 (serial_fdopen_ops): Adjust.
4041
318aa544
PA
40422012-06-11 Pedro Alves <palves@redhat.com>
4043
4044 * serial.c (do_serial_close): Remove early return when SCB is
4045 null.
4046
07261596
TT
40472012-06-11 Tom Tromey <tromey@redhat.com>
4048
4049 * dwarf2read.c (dw2_get_file_names_reader): Ignore partial units.
4050
cc80f267
JK
40512012-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4052
4053 Fix regression by the "ambiguous linespec" series.
4054 * breakpoint.c (parse_breakpoint_sals): New variable cursal. Use
4055 get_last_displayed_symtab and get_last_displayed_line and depending
4056 on CURSAL.
4057
356d9f9d
TT
40582012-06-11 Tom Tromey <tromey@redhat.com>
4059
4060 * dwarf2read.c (dw2_get_primary_filename_reader): New function.
4061 (dw2_find_symbol_file): Use it.
4062
232b8704
ME
40632012-06-11 Michael Eager <eager@eagercon.com>
4064
4065 * mips-linux-tdep.c (mips_gdb_signal_from_target): New
4066 * mips-linux-tdep.h (mips_signals): New
4067
e81a37f7
TT
40682012-06-11 Tom Tromey <tromey@redhat.com>
4069
4070 * infrun.c (handle_inferior_event)
4071 <BPSTAT_WHAT_SET_LONGJMP_RESUME>: Don't delete the step-resume
4072 breakpoint.
4073 <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>: Remove longjmp logic; use
4074 exception logic in all cases. Update comments.
4075 (insert_longjmp_resume_breakpoint): Set the exception resume
4076 breakpoint.
4077
2e81047f
MR
40782012-06-11 Maciej W. Rozycki <macro@codesourcery.com>
4079
4080 * mips-tdep.c (mips_push_dummy_code): Handle microMIPS code.
4081
4e32eda7
SCR
40822012-06-09 Siva Chandra Reddy <sivachandra@google.com>
4083
4084 * valarith.c (binop_types_user_defined_p): Fix a typo.
4085
18648a37 40862012-06-08 Yao Qi <yao@codesourcery.com>
f782ad9b 4087 Chung-Lin Tang <cltang@codesourcery.com>
18648a37
YQ
4088
4089 * arch-utils.c (default_return_in_first_hidden_param_p): New.
4090 * arch-utils.h: Declare.
4091 * gdbarch.sh: Add return_in_first_hidden_param_p.
4092 * gdbarch.c, gdbarch.h: Regenerated.
4093 * infcall.c (call_function_by_hand): Call
4094 gdbarch_return_in_first_hidden_param_p instead of
4095 language_pass_by_reference.
4096
4097 * m68k-tdep.c (m68k_return_in_first_hidden_param_p): New.
4098 (m68k_gdbarch_init): Install m68k_return_in_first_hidden_param_p.
4099 * sh-tdep.c (sh_return_in_first_hidden_param_p): New.
4100 (sh_gdbarch_init): Install sh_return_in_first_hidden_param_p.
4101 * tic6x-tdep.c (tic6x_push_dummy_call): Remove local variable
4102 `cplus_return_struct_by_reference'.
4103 (tic6x_return_value): Handle language cplusplus.
4104 (tic6x_return_in_first_hidden_param_p): New.
4105 (tic6x_gdbarch_init): Install tic6x_return_in_first_hidden_param_p.
4106
034e5797
DE
41072012-06-07 Doug Evans <dje@google.com>
4108
4109 * dwarf2read.c (dwarf2_cu): Add comment.
4110
6a00aa1e
MR
41112012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
4112
4113 * mips-tdep.c (mips_pseudo_register_type): Remove tdep local
4114 variable.
4115 (mips_eabi_push_dummy_call): Likewise.
4116 (mips_n32n64_push_dummy_call): Likewise.
4117 (mips_o32_push_dummy_call): Likewise.
4118 (mips_o64_push_dummy_call): Likewise.
4119
eaa05d59
MR
41202012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
4121
4122 * mips-tdep.c (mips_convert_register_p): Correct coding style.
4123
de13fcf2
MR
41242012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
4125
4126 * mips-tdep.c (mips_pseudo_register_type): Use
4127 mips_float_register_p.
4128
c3a01a22
PA
41292012-06-06 Pedro Alves <palves@redhat.com>
4130
4131 * infrun.c (handle_inferior_event): Remove calls to
4132 reinit_frame_cache that follow a context_switch call.
4133
d25f45d9
PA
41342012-06-06 Pedro Alves <palves@redhat.com>
4135
4136 * infrun.c (handle_inferior_event) <deferred_step_ptid>: Use
4137 context_switch and remove stale comment.
4138
359f5fe6
PA
41392012-06-06 Pedro Alves <palves@redhat.com>
4140
4141 * infrun.c (struct execution_control_state): Remove
4142 `new_thread_event' field.
4143 (handle_inferior_event): Simplify new threads handling; don't
4144 resume the inferior if we find a new thread.
4145
2d4c29c5
TS
41462012-06-06 Thomas Schwinge <thomas@codesourcery.com>
4147
4148 * NEWS: Document the deprecation of SH's 'regs' command.
4149 * inferior.h (all_registers_info): Add function declaration.
4150 * sh-tdep.c (sh_show_regs): Remove variable.
4151 (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs, sh2a_show_regs)
4152 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
4153 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs)
4154 (sh_show_regs_command): Remove functions.
4155 (sh_gdbarch_init): Don't set sh_show_regs.
4156 (_initialize_sh_tdep): Make the 'regs' command an deprecated alias to
4157 'info all-registers'.
4158 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs)
4159 (sh64_show_regs): Remove functions.
4160 * sh64-tdep.h (sh64_show_regs): Remove function declaration.
4161
f5f1cdb6
JK
41622012-06-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4163
4164 * configure.ac: Move development=true below AC_INIT.
4165 * configure: Regenerate.
4166
bf6309af
SS
41672012-06-05 Stan Shebs <stan@codesourcery.com>
4168
4169 * mi/mi-interp.c (mi_interpreter_init): Set raw_stdout from
4170 gdb_stdout.
4171
45aa4659
JK
41722012-06-05 Siddhesh Poyarekar <siddhesh@redhat.com>
4173
4174 * corefile.c (read_memory, read_stack, write_memory): Accept LEN
4175 argument as ssize_t.
4176 * gdbcore.h (read_memory, read_stack, write_memory): Likewise.
4177 * remote.c (remote_write_bytes_aux, remote_write_bytes): Likewise.
4178 * target.c (target_read_stack, target_write_memory)
4179 (target_write_raw_memory): Likewise.
4180 * target.h (target_read_stack, target_write_memory)
4181 (target_write_raw_memory): Likewise.
4182
1b162304
JK
41832012-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
4184
4185 * symfile-mem.c: Change gdb_static_assert to ssize_t.
4186 (target_read_memory_bfd): Cast gdb_assert LEN to ssize_t.
4187 * target.c (target_read_memory): Change LEN to ssize_t.
4188 * target.h (target_read_memory): Change LEN to ssize_t.
4189
8556afb4
PA
41902012-06-05 Pedro Alves <palves@redhat.com>
4191
4192 PR backtrace/13866
4193
4194 * breakpoint.c (until_break_command): Only fetch the selected
4195 frame after decode_line_1.
4196
fb139f32
PA
41972012-06-05 Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
4198
4199 * solib-svr4.c (enable_break): Don't fallback to setting the solib
4200 event breakpoint at _start, __start or main if a program
4201 interpreter is not found.
4202
a8e1bb34
JB
42032012-06-05 Joel Brobecker <brobecker@adacore.com>
4204
4205 * windows-tdep.h (windows_iterate_over_objfiles_in_search_order):
4206 Add declaration.
4207 * windows-tdep.c: #include "objfiles.h".
4208 (windows_iterate_over_objfiles_in_search_order): New function.
4209 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
4210 iterate_over_objfiles_in_search_order gdbarch method to
4211 windows_iterate_over_objfiles_in_search_order.
4212 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
4213
19630284
JB
42142012-06-05 Joel Brobecker <brobecker@adacore.com>
4215
4216 * gdbarch.sh: Add generation of
4217 "iterate_over_objfiles_in_search_order_cb_ftype" typedef in
4218 gdbarch.h. Add include of "objfiles.h" in gdbarch.c.
4219 (iterate_over_objfiles_in_search_order): New gdbarch method.
4220 * gdbarch.h, gdbarch.c: Regenerate.
4221 * objfiles.h (default_iterate_over_objfiles_in_search_order):
4222 Add declaration.
4223 * objfiles.c (default_iterate_over_objfiles_in_search_order):
4224 New function.
4225 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
4226 out of lookup_symbol_aux_symtabs.
4227 (lookup_symbol_aux_symtabs): Replace extracted-out code by
4228 call to lookup_symbol_aux_objfile.
4229 (struct global_sym_lookup_data): New type.
4230 (lookup_symbol_global_iterator_cb): New function.
4231 (lookup_symbol_global): Search for symbol using
4232 gdbarch_iterate_over_objfiles_in_search_order and
4233 lookup_symbol_global_iterator_cb.
4234 * findvar.c (struct minsym_lookup_data): New type.
4235 (minsym_lookup_iterator_cb): New function.
4236 (default_read_var_value) [case LOC_UNRESOLVED]: Resolve the
4237 symbol's address via gdbarch_iterate_over_objfiles_in_search_order
4238 and minsym_lookup_iterator_cb.
4239
67ff19f7
JB
42402012-06-05 Joel Brobecker <brobecker@adacore.com>
4241
4242 Revert the following patch:
4243 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
4244 try locating the symbol in the symbol's own objfile first, before
4245 extending the search to all objfiles.
4246 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
4247 out of lookup_symbol_aux_symtabs.
4248 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
4249 Replace extracted-out code by call to lookup_symbol_aux_objfile.
4250 Do not search EXCLUDE_OBJFILE.
4251 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
4252 (lookup_symbol_global): Search for matches in the block's objfile
4253 first, before searching all other objfiles.
4254
ccab2054
JB
42552012-06-05 Joel Brobecker <brobecker@adacore.com>
4256
4257 * breakpoint.c (find_condition_and_thread): Stop parsing
4258 as soon as the first invalid keyword is found.
4259
e23d4a9c
JB
42602012-06-05 Joel Brobecker <brobecker@adacore.com>
4261
4262 * copyright.py (EXCLUDE_LIST): Add 'gdb/CONTRIBUTE' to list.
4263
70160166
JB
42642012-06-05 Joel Brobecker <brobecker@adacore.com>
4265
4266 * config/djgpp/djcheck.sh: Add copyright header.
4267
399501a5
JB
42682012-06-05 Joel Brobecker <brobecker@adacore.com>
4269
4270 * copyright.py (update_files, main): Fix path to update-copyright
4271 script.
4272
3770a159
JB
42732012-06-05 Joel Brobecker <brobecker@adacore.com>
4274
4275 * copyright.py (MULTIPLE_COPYRIGHT_HEADERS): New constant.
4276 (main): Add MULTIPLE_COPYRIGHT_HEADERS to the list of files
4277 for which a reminder to update by hand is printed.
4278
4aad0dfc
DE
42792012-06-04 Doug Evans <dje@google.com>
4280
4281 * buildsym.c (make_blockvector): Add comment.
4282
1f8cf220
PA
42832012-06-04 Pedro Alves <palves@redhat.com>
4284
4285 * arch-utils.c (default_gdb_signal_from_target): Delete.
4286 * arch-utils.h (default_gdb_signal_from_target): Delete.
4287 * corelow.c (core_open) <signal mapping>: Extended comment. Check
4288 gdbarch_gdb_signal_from_target_p.
4289 * gdbarch.sh (gdb_signal_from_target): Make it an M method (with
4290 predicate).
4291 * gdbarch.h: Regenerate.
4292 * gdbarch.c: Regenerate.
4293
86b49880
PA
42942012-06-04 Pedro Alves <palves@redhat.com>
4295
4296 * gdbarch.sh (gdb_signal_from_target): Mention that the
4297 implementation of the method must be host independent.
4298 * gdbarch.h: Regenerate.
4299
fe78531d
JK
43002012-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4301
4302 * symfile-mem.c: 3 new gdb_static_assert for target_read_memory_bfd
4303 parameters.
4304 (target_read_memory_bfd): New function.
4305 (symbol_file_add_from_memory): Use it.
4306
d790cf0a
DE
43072012-06-03 Doug Evans <dje@google.com>
4308
78e5175a
DE
4309 * symtab.c (lookup_global_symbol_from_objfile): Only scan blockvector
4310 of primary symtab.
4311 (basic_lookup_transparent_type): Ditto.
4312
d790cf0a
DE
4313 * objfiles.h (ALL_OBJFILE_PRIMARY_SYMTABS): New macro.
4314 (ALL_PRIMARY_SYMTABS): Use it.
4315 (ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
4316 * dwarf2read.c (dw2_find_symbol_file): Ditto.
4317 * linespec.c (iterate_over_all_matching_symtabs): Ditto.
4318 * symtab.c (lookup_symbol_aux_objfile): Ditto.
4319 (basic_lookup_transparent_type): Ditto.
4320
c6e5ee5e
SDJ
43212012-06-02 Sergio Durigan Junior <sergiodj@redhat.com>
4322
4323 * symtab.c (symbol_demangled_name): New variable `dem_name'. Use
4324 it to optimize resolution of demangled name.
4325
a68ffae9
JK
43262012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4327
4328 * configure.ac (development): Define new variable.
4329 Call AC_CHECK_LIB for mcheck if $development.
4330 (ERROR_ON_WARNING): Enable it by default only if $development.
4331 * config.in: Regenerate.
4332 * configure: Regenerate.
4333
5299c1c4
JK
43342012-06-01 Siddhesh Poyarekar <siddhesh@redhat.com>
4335
4336 * target.c (target_read_memory): Make LEN argument as size_t.
4337 * target.h (target_read_memory): Likewise.
4338
43392012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
7c71816c
JK
4340
4341 * tilegx-linux-tdep.c (tilegx_l): Use ULL for 64-bit values.
4342
0c56f59b
EBM
43432012-05-31 Edjunior Machado <emachado@linux.vnet.ibm.com>
4344
4345 * ppc-linux-nat.c (have_ptrace_booke_interface): Disable ptrace
4346 BookE interface for PowerPC server processors if not available
4347 in the Linux Kernel.
4348
71bdabee
KS
43492012-05-31 Keith Seitz <keiths@redhat.com>
4350
4351 * linespec.c (decode_objc): Add cleanup to free
4352 INFO.FILE_SYMTABS.
4353 (find_linespec_symbols): Add cleanup to free CLASSES.
4354 * symfile.c (find_separate_debug_file_by_debuglink): Add
4355 cleanup to free DEBUGLINK.
4356 * ui-out.c (clear_header_list): No need to check if
4357 HEADER_NEXT.COLHDR is NULL.
4358 Free HEADER_NEXT.COL_NAME.
4359
acbd605d
MGD
43602012-05-31 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
4361
4362 * ada-lang.c (standard_lookup): Prevent uninitialized variable
4363 warning.
4364
65662cde
PA
43652012-05-30 Jeff Kenton <jkenton@tilera.com>
4366
4367 * configure.host (gdb_host_cpu): Handle tilegx*.
4368 (gdb_host): Handle tilegx-*-linux*.
4369 * tilegx-linux-nat.c: New file.
4370 * config/tilegx/linux.mh: New file.
4371
ade64f0e
PA
43722012-05-30 Jeff Kenton <jkenton@tilera.com>
4373
4374 * Makefile.in (ALL_TARGET_OBJS): Add tilegx-tdep.o and
4375 tilegx-linux-tdep.o.
4376 (ALLDEPFILES): Add tilegx-linux-nat.c, tilegx-tdep.c and
4377 tilegx-linux-tdep.c.
4378 * configure.tgt: Handle tilegx-*-linux*.
4379 * tilegx-tdep.h: New file.
4380 * tilegx-tdep.c: New file.
4381 * tilegx-linux-tdep.c: New file.
4382 * regformats/reg-tilegx.dat: New file.
4383
bb08bdbd
EBM
43842012-05-30 Edjunior Machado <emachado@linux.vnet.ibm.com>
4385
4386 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): fix
4387 accounting of hw watchpoints on ppc.
4388
ebd86fb5
TJB
43892012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
4390
4391 * source.c (openp): Expand tilde in path entries.
4392
0a0edcd5
DE
43932012-05-29 Doug Evans <dje@google.com>
4394
98cc87bd
DE
4395 * buildsym.c (block_compar): Fix comment.
4396 (end_symtab): Fix and clarify some comments.
4397
0a0edcd5
DE
4398 * stabsread.h (cleanup_undefined_stabs_types): Renamed from
4399 cleanup_undefined_types.
4400 * stabsread.c (cleanup_undefined_stabs_types): Ditto.
4401 All callers updated.
4402
6f0c7050
TT
44032012-05-29 Tom Tromey <tromey@redhat.com>
4404
4405 * symfile.c (symfile_bfd_open): Don't close desc if bfd_fopen
4406 fails.
4407 * solib.c (solib_bfd_fopen): Don't close fd if bfd_fopen fails.
4408 * exec.c (exec_file_attach): Don't close scratch_chan if bfd_fopen
4409 fails.
4410 * dwarf2read.c (try_open_dwo_file): Don't close fd if bfd_fopen
4411 fails.
4412
ec95993c
TG
44132012-05-29 Tristan Gingold <gingold@adacore.com>
4414
4415 * solib-darwin.c (dyld_all_image_addr, dyld_all_image): Move into...
4416 (struct darwin_info): ... New struct.
4417 (solib_darwin_pspace_data): New variable.
4418 (darwin_pspace_data_cleanup): New function.
4419 (get_darwin_info): Likewise.
4420 (darwin_dyld_version_ok, darwin_load_image_infos)
4421 (darwin_solib_get_all_image_info_addr_at_init)
4422 (darwin_solib_read_all_image_info_addr): Add info argument.
4423 Adjust code.
4424 (darwin_current_sos): Use per pspace structure.
4425 (darwin_solib_create_inferior_hook): Likewise.
4426 (darwin_clear_solib): Likewise.
4427 (_initialize_darwin_solib): Initialize solib_darwin_pspace_data.
4428
ae25568b
PA
44292012-05-28 Pedro Alves <palves@redhat.com>
4430
4431 * infrun.c (wait_for_inferior): Move ecss and ecs locals to the
4432 block that uses them. Clear ecss before handling each event.
4433
0c5bf5a9
JK
44342012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4435
4436 * solib-svr4.c (svr4_current_sos): New comment on
4437 svr4_current_sos_via_xfer_libraries fall back.
4438
bfb05775
JK
44392012-05-24 Jan Kratochvil <jan.kratochvil@redhat.com>
4440
4441 * psymtab.c (lookup_symbol_aux_psymtabs): New variable stab_best. Use
4442 it as a fallback for TYPE_IS_OPAQUE.
4443 * symfile.h (struct quick_symbol_functions): Mention TYPE_OPAQUE
4444 symbols for lookup_symbol.
4445
685b1105
JK
44462012-05-24 John Steele Scott <toojays@toojays.net>
4447
4448 PR symtab/13277: Resolving opaque structures in ICC generated binaries.
4449 * dwarf2read.c (struct dwarf2_cu) <producer_is_icc>: New field.
4450 (producer_is_gxx_lt_4_6): Move the checking and caching to...
4451 (check_producer): ... this new function, which also checks for ICC
4452 and caches the result.
4453 (producer_is_icc): New function.
4454 (read_structure_type): Don't set TYPE_STUB_SUPPORTED if the
4455 producer was ICC.
4456
22203bbf
PA
44572012-05-24 Pedro Alves <palves@redhat.com>
4458
4459 PR gdb/7205
4460
4461 * arch-utils.c (default_gdb_signal_to_host): Rename to ...
4462 (default_gdb_signal_to_target): ... this. Add comment.
4463 (default_gdb_signal_from_host): Rename to ...
4464 (default_gdb_signal_from_target): ... this. Add comment.
4465 * arch-utils.h (default_gdb_signal_to_host): Rename to ...
4466 (default_gdb_signal_to_target): ... this.
4467 (default_gdb_signal_from_host): Rename to ...
4468 (default_gdb_signal_from_target): ... this.
4469 * corelow.c (core_open): Adjust to naming change. Replace comment.
4470 * gdbarch.sh (gdb_signal_from_host): Rename to ...
4471 (gdb_signal_from_target): ... this. Adjust to
4472 default_gdb_signal_from_host naming change. Extend comment.
4473 (gdb_signal_to_host): Rename to ...
4474 (gdb_signal_to_target): ... this. Adjust to
4475 default_gdb_signal_to_host naming change.
4476 * gdbarch.h, gdbarch.c: Renegerate.
4477
a493e3e2
PA
44782012-05-24 Pedro Alves <palves@redhat.com>
4479
4480 PR gdb/7205
4481
f782ad9b 4482 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
a493e3e2 4483
2ea28649
PA
44842012-05-24 Pedro Alves <palves@redhat.com>
4485
4486 PR gdb/7205
4487
4488 Replace target_signal with gdb_signal throughout.
4489
b09846a9
PA
44902012-05-24 Pedro Alves <palves@redhat.com>
4491
4492 PR tui/14159
4493
4494 * tui/tui-hooks.c (tui_query_hook): Pre-compute the question
4495 string, instead of reusing the va_list argument.
4496
e77c107e
TT
44972012-05-24 Tom Tromey <tromey@redhat.com>
4498
4499 * cp-support.h (cp_finalize_namespace, cp_initialize_namespace):
4500 Remove.
4501
9fccedf7
DE
45022012-05-23 Doug Evans <dje@google.com>
4503
d50bd42b
DE
4504 * symtab.c (search_symbols): Formatting fixes.
4505 (print_symbol_info): Formatting fixes.
4506
9fccedf7
DE
4507 * dwarf2-frame.c (execute_cfa_program): Update to handle long long ->
4508 int64_t change to leb128 API.
4509 (read_encoded_value, decode_frame_entry_1): Ditto.
4510 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Ditto.
4511 (dwarf_block_to_dwarf_reg, dwarf_block_to_dwarf_reg_deref): Ditto.
4512 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
4513 (execute_stack_op): Ditto.
4514 * dwarf2expr.h (gdb_read_uleb128, gdb_read_sleb128): Ditto.
4515 (safe_read_uleb128, safe_read_sleb128): Ditto.
4516 * dwarf2loc.c (decode_debug_loc_dwo_addresses): Ditto.
4517 (dwarf2_compile_expr_to_ax): Ditto.
4518 (locexpr_describe_location_piece): Ditto.
4519 (disassemble_dwarf_expression): Ditto.
4520 (locexpr_describe_location_1): Ditto.
4521
f3e0e960
SS
45222012-05-23 Stan Shebs <stan@codesourcery.com>
4523 Kwok Cheung Yeung <kcy@codesourcery.com>
4524
4525 * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-info.o.
4526 (SUBDIR_MI_SRCS): Add mi-cmd-info.c.
4527 (mi-cmd-info.o): New rule.
4528 * osdata.h (info_osdata_command): New declaration.
4529 * osdata.c (info_osdata_command): Change to non-static.
4530 * mi/mi-cmds.h (mi_cmd_info_os): New declaration.
4531 * mi/mi-cmds.c (mi_cmds): Add -info-os MI command.
4532 * mi/mi-cmd-info.c: New file.
4533
c51fe631
DE
45342012-05-23 Doug Evans <dje@google.com>
4535
71cddcc1
DE
4536 * symtab.c (search_symbols): Pass NULL for file_matcher to
4537 expand_symtabs_matching if there are no files to match.
4538
c51fe631
DE
4539 * gdbtypes.c (lookup_typename): Simplify.
4540
a79378d4
PA
45412012-05-23 Pedro Alves <palves@redhat.com>
4542
4543 * arch-utils.h (default_target_signal_to_host): Delete.
4544 * arch-utils.c (default_target_signal_to_host): Delete.
4545 * gdbarch.sh (target_signal_to_host): Remove.
4546 * gdbarch.h, gdbarch.c: Regenerate.
4547
f664829e
DE
45482012-05-22 Doug Evans <dje@google.com>
4549
4550 * dwarf2-frame.c (struct dwarf2_cie): Make initial_instructions, end
4551 "const gdb_byte *".
4552 (struct dwarf2_fde): Make instructions, end "const gdb_byte *".
4553 (execute_cfa_program): Update to match API of leb128 functions.
4554 (read_1_byte, read_4_bytes, read_8_bytes): Make buf parameter
4555 "const gdb_byte *".
4556 (read_unsigned_leb128, read_signed_leb128): Delete.
4557 (read_initial_length): Change type of buf argument to
4558 "const gdb_byte *".
4559 (read_encoded_value): Update to match API of leb128 functions.
4560 (decode_frame_entry): Change result to "const gdb_byte *", and
4561 similarly for "start" parameter.
4562 (decode_frame_entry_1): Ditto. Use new leb128 reader functions.
4563 (dwarf2_build_frame_info): Change local frame_ptr to
4564 "const gdb_byte *".
4565 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Replaces
4566 read_uleb128, read_sleb128. All callers updated.
4567 (safe_skip_leb128): New function.
4568 (dwarf_block_to_dwarf_reg): Update to match API of leb128 functions.
4569 Call gdb_read_uleb128, gdb_skip_leb128 instead of read_uleb128.
4570 (dwarf_block_to_dwarf_reg_deref): Update to match API of leb128
4571 functions. Call gdb_read_uleb128, gdb_read_sleb128 instead of
4572 read_uleb128, read_sleb128.
4573 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
4574 (execute_stack_op): Update to match API of leb128 functions.
4575 * dwarf2expr.h: #include "leb128.h".
4576 (read_uleb128, read_sleb128): Delete.
4577 (gdb_read_uleb128, gdb_read_sleb128, gdb_skip_leb128): New functions.
4578 (safe_read_uleb128, safe_read_sleb128, safe_skip_leb128): Declare.
4579 * dwarf2loc.c (debug_loc_kind): New enum.
4580 (decode_debug_loc_addresses): New function.
4581 (decode_debug_loc_dwo_addresses): New function.
4582 (dwarf2_find_location_expression): Rewrite.
4583 (dwarf2_compile_expr_to_ax): Update to match API of leb128 functions.
4584 (locexpr_describe_location_piece): Ditto.
4585 (disassemble_dwarf_expression): Ditto.
4586 (locexpr_describe_location_1): Ditto.
4587 (loclist_describe_location): Rewrite.
4588 * dwarf2loc.h (dwarf2_loclist_baton): New member "from_dwo".
4589 * dwarf2read.c (die_reader_specs): New member "buffer_end".
4590 (dwarf2_section_buffer_overflow_complaint): Renamed from
4591 dwarf2_macros_too_long_complaint. All callers updated.
4592 (skip_leb128): Delete.
4593 (init_cu_die_reader): Initialize reader->buffer_end.
4594 (skip_one_die): Replace call to skip_leb128 with safe_skip_leb128.
4595 (skip_form_bytes): New arg buffer_end. All callers updated.
4596 Replace call to skip_leb128 with gdb_skip_leb128.
4597 (skip_unknown_opcode): New arg mac_end. All callers updated.
4598 (fill_in_loclist_baton): Initialize baton->from_dwo.
4599
837a1b32
MR
46002012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
4601
4602 * mips-linux-nat.c (mips_linux_read_description): Use a more
4603 verbose error message.
4604
d0e64392
MR
46052012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
4606
4607 * NEWS: Add MIPS/Linux DSP support.
4608 * mips-linux-tdep.c: Document post-2.6.12 o32 sigcontext layout.
4609 (SIGCONTEXT_DSPCTL): New macro.
4610 (SIGCONTEXT_HI1, SIGCONTEXT_LO1): Likewise.
4611 (SIGCONTEXT_HI2, SIGCONTEXT_LO2): Likewise.
4612 (SIGCONTEXT_HI3, SIGCONTEXT_LO3): Likewise.
4613 (N64_SIGCONTEXT_HI1, N64_SIGCONTEXT_HI2): Likewise.
4614 (N64_SIGCONTEXT_HI3): Likewise.
4615 (N64_SIGCONTEXT_LO1, N64_SIGCONTEXT_LO2): Likewise.
4616 (N64_SIGCONTEXT_LO3): Likewise.
4617 (N64_SIGCONTEXT_DSPCTL): Likewise.
4618 (N64_SIGCONTEXT_FPCSR): Clarify definition.
4619 (mips_linux_o32_sigframe_init): Handle DSP registers.
4620 (mips_linux_n32n64_sigframe_init): Likewise.
4621
8bea7ed1
PM
46222012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
4623
4624 * common/buffer.c (buffer_grow): ARI fix: Remove unneeded
4625 call to abort.
4626
dab06dbe
PA
46272012-05-22 Pedro Alves <palves@redhat.com>
4628
4629 * target.h (store_waitstatus): Move declaration ...
4630 * inf-child.h (store_waitstatus): ... here.
4631 * target.c: Move inclusion of gdb_wait.h, and ...
4632 (store_waitstatus): ... this ...
4633 * inf-child.c: ... here.
4634 * linux-nat.c: Include inf-child.h.
4635 * rs6000-nat.c: Include inf-child.h.
4636 * spu-linux-nat.c: Include inf-child.h.
4637
43011e52
PM
46382012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
4639
4640 * tracepoint.c (start_tracing): Add missing i18n markup.
4641 (stop_tracing, set_trace_user): Ditto.
4642 (set_trace_notes, set_trace_stop_notes): Ditto.
4643
b1af9e97
TT
46442012-05-21 Tom Tromey <tromey@redhat.com>
4645
4646 PR c++/7173:
4647 * gnu-v3-abi.c (gnuv3_baseclass_offset): Return early for Java
4648 types.
4649 * value.h (value_cast_pointers): Update.
4650 * valops.c (value_cast_pointers): Add 'subclass_check' argument.
4651 (value_cast): Update.
4652 (update_search_result): New function.
4653 (do_search_struct_field): New, from search_struct_field. Check
4654 for ambiguous results.
4655 (search_struct_field): Rewrite.
4656 * infcall.c (value_arg_coerce): Update.
4657 * eval.c (evaluate_subexp_standard) <STRUCTOP_MEMBER>: Use
4658 value_cast_pointers.
4659 * ada-lang.c (ada_convert_actual): Update.
4660
e9e5e6b3
TT
46612012-05-21 Tom Tromey <tromey@redhat.com>
4662
4663 * macroexp.c (macro_stringify): Terminate the string.
4664
1564a261
JK
46652012-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4666
4667 * NEWS (--with-auto-load-dir): Prepend $debugdir to the default path.
4668 Describe it.
4669 * auto-load.c (auto_load_expand_dir_vars): New function.
4670 (auto_load_safe_path_vec_update): Use it, remove the
4671 substitute_path_component call thanks to it.
4672 (auto_load_objfile_script): Remove the debug_file_directory processing.
4673 Use auto_load_expand_dir_vars, remove the substitute_path_component
4674 call thanks to it.
4675 * configure: Regenerate.
4676 * configure.ac (--with-auto-load-dir): Prepend $debugdir to the default
4677 path. Escape $ also for $debugdir.
4678 (--with_auto_load_safe_path): Escape $ also for $debugdir.
4679 * utils.c (substitute_path_component): Accept also DIRNAME_SEPARATOR.
4680
a3ec0bb1
DE
46812012-05-20 Doug Evans <dje@google.com>
4682
4683 * dwarf2read.c (recursively_find_pc_sect_symtab): Initialize "s"
4684 before use. Check for symtab->includes == NULL before scanning it.
4685
d467df4e
MR
46862012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
4687
4688 * mips-tdep.c (mips_reg3_to_reg): Optimize storage.
4689
4cc0665f
MR
46902012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
4691
4692 * NEWS: Add microMIPS support and "set mips compression",
4693 "show mips compression" commands.
4694 * mips-tdep.h (mips_isa): New enum.
4695 (gdbarch_tdep): Add mips_isa.
4696 (mips_pc_is_mips16): Update prototype.
4697 (mips_pc_is_mips, mips_pc_is_micromips): New prototypes.
4698 * mips-tdep.c (mips_compression_mips16): New variable.
4699 (mips_compression_micromips): Likewise.
4700 (mips_compression_strings): Likewise.
4701 (mips_compression_string): Likewise.
4702 (is_mips16_isa, is_micromips_isa): New functions.
4703 (is_mips16_addr): Rename to...
4704 (is_compact_addr): ... this.
4705 (unmake_mips16_addr): Likewise to...
4706 (unmake_compact_addr): ... this.
4707 (make_mips16_addr): Likewise to...
4708 (make_compact_addr): ... this.
4709 (is_mips_addr, is_mips16_addr, is_micromips_addr): New
4710 functions.
4711 (mips_elf_make_msymbol_special): Handle microMIPS code.
4712 (msymbol_is_special): Rename to...
4713 (msymbol_is_mips16): ... this.
4714 (mips_make_symbol_special, mips_pc_is_mips16): Update
4715 accordingly.
4716 (msymbol_is_mips, msymbol_is_micromips): New functions.
4717 (mips16_to_32_reg): Rename to...
4718 (mips_reg3_to_reg): ... this.
4719 (mips_pc_is_mips, mips_pc_is_micromips): New functions.
4720 (mips_pc_isa): Likewise.
4721 (mips_read_pc, mips_unwind_pc, mips_write_pc): Handle microMIPS
4722 code.
4723 (mips_fetch_instruction): Pass return status instead of printing
4724 an error message if requested. Handle microMIPS code. Bail out
4725 on an invalid ISA.
4726 (micromips_op): New macro.
4727 (b0s4_imm, b0s5_imm, b0s5_reg, b0s7_imm, b0s10_imm): Likewise.
4728 (b1s9_imm, b2s3_cc, b4s2_regl, b5s5_op, b5s5_reg): Likewise.
4729 (b6s4_op, b7s3_reg): Likewise.
4730 (b0s6_op, b0s11_op, b0s12_imm, b0s16_imm, b0s26_imm): Likewise.
4731 (b6s10_ext, b11s5_reg, b12s4_op): Likewise.
4732 (mips_insn_size): New function.
4733 (mips32_next_pc): Update mips_fetch_instruction call.
4734 (micromips_relative_offset7): New function.
4735 (micromips_relative_offset10): Likewise.
4736 (micromips_relative_offset16): Likewise.
4737 (micromips_pc_insn_size): Likewise.
4738 (micromips_bc1_pc): Likewise.
4739 (micromips_next_pc): Likewise.
4740 (unpack_mips16): Update mips_fetch_instruction call.
4741 (extended_mips16_next_pc): Update according to change to
4742 mips16_to_32_reg.
4743 (mips_next_pc): Update mips_pc_is_mips16 call. Handle microMIPS
4744 code.
4745 (mips16_scan_prologue): Update mips_fetch_instruction call.
4746 Update according to change to mips16_to_32_reg.
4747 (mips_insn16_frame_sniffer): Update mips_pc_is_mips16 call.
4748 (mips_insn16_frame_base_sniffer): Likewise.
4749 (micromips_decode_imm9): New function.
4750 (micromips_scan_prologue): Likewise.
4751 (mips_micro_frame_cache): Likewise.
4752 (mips_micro_frame_this_id): Likewise.
4753 (mips_micro_frame_prev_register): Likewise.
4754 (mips_micro_frame_sniffer): Likewise.
4755 (mips_micro_frame_unwind): New variable.
4756 (mips_micro_frame_base_address): New function.
4757 (mips_micro_frame_base): New variable.
4758 (mips_micro_frame_base_sniffer): New function.
4759 (mips32_scan_prologue): Update mips_fetch_instruction call.
4760 (mips_insn32_frame_sniffer): Check for the standard MIPS ISA
4761 rather than for MIPS16.
4762 (mips_insn32_frame_base_sniffer): Likewise.
4763 (mips_addr_bits_remove): Handle microMIPS code.
4764 (deal_with_atomic_sequence): Rename to...
4765 (mips_deal_with_atomic_sequence): ... this. Update the type
4766 of the variable used to hold an instruction. Remove the ISA bit
4767 check. Update mips_fetch_instruction call.
4768 (micromips_deal_with_atomic_sequence): New function.
4769 (deal_with_atomic_sequence): Likewise.
4770 (mips_about_to_return): Handle microMIPS code. Update
4771 mips_fetch_instruction call.
4772 (heuristic_proc_start): Check for the standard MIPS ISA rather
4773 than for MIPS16. Update mips_pc_is_mips16 and
4774 mips_fetch_instruction calls. Handle microMIPS code.
4775 (mips_push_dummy_code): Handle microMIPS code.
4776 (mips_eabi_push_dummy_call): Likewise.
4777 (mips_o32_return_value): Update mips_pc_is_mips16 call.
4778 (mips_o64_push_dummy_call): Handle microMIPS code.
4779 (mips_o64_return_value): Update mips_pc_is_mips16 call.
4780 (is_delayed): Remove function.
4781 (mips_single_step_through_delay): Replace the call to is_delayed
4782 with mips32_instruction_has_delay_slot. Correct MIPS16 handling.
4783 Handle microMIPS code.
4784 (mips_skip_prologue): Update mips_pc_is_mips16 call. Handle
4785 microMIPS code.
4786 (mips32_in_function_epilogue_p): Update mips_fetch_instruction
4787 call.
4788 (micromips_in_function_epilogue_p): New function.
4789 (mips16_in_function_epilogue_p): Update mips_fetch_instruction
4790 call.
4791 (mips_in_function_epilogue_p): Update mips_pc_is_mips16 call.
4792 Handle microMIPS.
4793 (gdb_print_insn_mips): Likewise.
4794 (mips_breakpoint_from_pc): Likewise.
4795 (mips_remote_breakpoint_from_pc): New function.
4796 (mips32_instruction_has_delay_slot): Simplify making use of the
4797 updated mips_fetch_instruction interface.
4798 (micromips_instruction_has_delay_slot): New function.
4799 (mips16_instruction_has_delay_slot): Simplify making use of the
4800 updated mips_fetch_instruction interface.
4801 (mips_adjust_breakpoint_address): Check for the standard MIPS
f782ad9b 4802 ISA rather than for MIPS16 ISA. Update for unmake_compact_addr
4cc0665f
MR
4803 calls. Handle microMIPS code.
4804 (mips_get_mips16_fn_stub_pc): Update mips_fetch_instruction call.
4805 (mips_skip_trampoline_code): Handle microMIPS code.
4806 (global_mips_compression): New function.
4807 (mips_gdbarch_init): Handle the compressed ISA setting from ELF
4808 file flags. Register the microMIPS remote breakpoint handler
4809 and heuristic frame unwinder.
4810 (show_mips_compression): New function.
4811 (_initialize_mips_tdep): Add the "set mips compression" and
4812 "show mips compression" commands.
4813
22e048c9
SDJ
48142012-05-18 Sergio Durigan Junior <sergiodj@redhat.com>
4815
4816 * ada-lang.c:
4817 * ada-tasks.c:
4818 * ada-varobj.c:
4819 * amd64-darwin-tdep.c:
4820 * arm-symbian-tdep.c:
4821 * arm-tdep.c:
4822 * avr-tdep.c:
4823 * ax-gdb.c:
4824 * bfin-linux-tdep.c:
4825 * breakpoint.c:
4826 * c-valprint.c:
4827 * cli/cli-cmds.c:
4828 * coffread.c:
4829 * cp-support.c:
4830 * cris-tdep.c:
4831 * dwarf2-frame-tailcall.c:
4832 * dwarf2-frame.c:
4833 * dwarf2expr.c:
4834 * dwarf2loc.c:
4835 * dwarf2read.c:
4836 * elfread.c:
4837 * eval.c:
4838 * expprint.c:
4839 * f-valprint.c:
4840 * frv-tdep.c:
4841 * h8300-tdep.c:
4842 * hppa-hpux-tdep.c:
4843 * hppa-tdep.c:
4844 * hppanbsd-tdep.c:
4845 * i386-nto-tdep.c:
4846 * i386-tdep.c:
4847 * i387-tdep.c:
4848 * ia64-tdep.c:
4849 * jit.c:
4850 * linespec.c:
4851 * linux-tdep.c:
4852 * lm32-tdep.c:
4853 * m2-valprint.c:
4854 * m32c-tdep.c:
4855 * m32r-rom.c:
4856 * m32r-tdep.c:
4857 * m68k-tdep.c:
4858 * m68klinux-tdep.c:
4859 * mi/mi-main.c:
4860 * microblaze-tdep.c:
4861 * mips-linux-tdep.c:
4862 * mips-tdep.c:
4863 * mn10300-tdep.c:
4864 * p-valprint.c:
4865 * parse.c:
4866 * ppc-linux-tdep.c:
4867 * ppc-sysv-tdep.c:
4868 * printcmd.c:
4869 * python/py-finishbreakpoint.c:
4870 * python/py-inferior.c:
4871 * python/py-infthread.c:
4872 * python/py-type.c:
4873 * python/python.c:
4874 * remote-fileio.c:
4875 * remote-m32r-sdi.c:
4876 * remote-mips.c:
4877 * reverse.c:
4878 * rl78-tdep.c:
4879 * rs6000-aix-tdep.c:
4880 * rs6000-tdep.c:
4881 * s390-tdep.c:
4882 * score-tdep.c:
4883 * sh64-tdep.c:
4884 * skip.c:
4885 * solib-darwin.c:
4886 * solib-dsbt.c:
4887 * solib-frv.c:
4888 * sparc-tdep.c:
4889 * spu-multiarch.c:
4890 * spu-tdep.c:
4891 * stack.c:
4892 * symfile.c:
4893 * symtab.c:
4894 * tic6x-tdep.c:
4895 * tracepoint.c:
4896 * v850-tdep.c:
4897 * valarith.c:
4898 * valprint.c:
4899 * value.c:
4900 * xcoffread.c:
4901 * xtensa-tdep.c:
4902 * ada-lang.c:
4903 * ada-tasks.c:
4904 * ada-varobj.c:
4905 * amd64-darwin-tdep.c:
4906 * arm-symbian-tdep.c:
4907 * arm-tdep.c: Delete unused variables.
4908
aff139ff
JK
49092012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4910
4911 Rename $ddir to $datadir.
4912 * NEWS (--with-auto-load-dir): Rename $ddir to $datadir.
4913 * auto-load.c (auto_load_safe_path_vec_update)
4914 (auto_load_gdb_datadir_changed, auto_load_objfile_script): Likewise.
4915 * configure: Regenerate.
4916 * configure.ac (--with-auto-load-dir, --with-auto-load-safe-path):
4917 Likewise. Remove the 'use $ddir' help string.
4918
f7bfa992
JK
49192012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4920
4921 * auto-load.c (show_auto_load_safe_path): Accept any combination of
4922 DIRNAME_SEPARATOR and IS_DIR_SEPARATOR for wild-match.
4923
9cb709b6
TT
49242012-05-18 Tom Tromey <tromey@redhat.com>
4925
4926 PR exp/13907:
4927 * valprint.h (struct value_print_options) <symbol_print>: New
4928 field.
4929 * valprint.c (user_print_options): Add default for symbol_print.
4930 (show_symbol_print): New function.
4931 (generic_val_print): Respect symbol_print.
4932 (_initialize_valprint): Add "print symbol" setting.
4933 * f-valprint.c (f_val_print): Respect symbol_print.
4934 * c-valprint.c (c_val_print): Respect symbol_print.
4935 * NEWS: Update.
4936 * printcmd.c (print_address_symbolic): Return int. Ignore some
4937 zero-size symbols.
4938 (print_address_demangle): Return int.
4939 * defs.h: (print_address_symbolic): Return int.
4940 * value.h (print_address_demangle): Return int.
4941
b012acdd
TT
49422012-05-18 Tom Tromey <tromey@redhat.com>
4943
4944 * valprint.c (val_print_string): Don't print leading space.
4945 * p-valprint.c (pascal_val_print) <TYPE_CODE_PTR>: Optionally
4946 print space before string or vtbl.
4947 * m2-valprint.c (print_unpacked_pointer): Optionally print space
4948 before string.
4949 * jv-valprint.c (java_value_print): Print space before string.
4950 * go-valprint.c (print_go_string): Print space before string.
4951 * f-valprint.c (f_val_print) <TYPE_CODE_PTR>: Optionally print
4952 space before string.
4953 * c-valprint.c (c_val_print) <TYPE_CODE_PTR>: Optionally print
4954 space before string or vtbl.
4955 * auxv.c (fprint_target_auxv): Print space after address.
4956
1d51a733
TT
49572012-05-18 Tom Tromey <tromey@redhat.com>
4958
4959 * printcmd.c (print_address_demangle): Remove special case for 0.
4960
edf0c1b7
TT
49612012-05-18 Tom Tromey <tromey@redhat.com>
4962
4963 * printcmd.c (print_address_demangle): Add 'opts' argument.
4964 * p-valprint.c (pascal_val_print): Update.
4965 * jv-valprint.c (java_val_print): Update.
4966 * value.h: Update.
4967 * valprint.c (generic_val_print): Update.
4968 (print_function_pointer_address): Add 'options' argument. Remove
4969 'addressprint' argument. Update.
4970 * m2-valprint.c (print_unpacked_pointer): Update.
4971 * gnu-v3-abi.c (print_one_vtable): Update.
4972 (gnuv3_print_method_ptr): Update.
4973 * f-valprint.c (f_val_print): Update.
4974 * cp-valprint.c (cp_print_value_fields): Update.
4975 * valprint.h (print_function_pointer_address): Update.
4976 * c-valprint.c (c_val_print): Update.
4977
9703b513
TT
49782012-05-18 Tom Tromey <tromey@redhat.com>
4979
4980 * psymtab.c (find_pc_sect_symtab_from_partial): Return the symtab
4981 directly corresponding to the found psymtab.
4982 * dwarf2read.c (recursively_find_pc_sect_symtab): New function.
4983 (dw2_find_pc_sect_symtab): Use it.
4984 * block.h (blockvector_contains_pc): Declare.
4985 * block.c (find_block_in_blockvector): New function.
4986 (blockvector_for_pc_sect): Use it.
4987 (blockvector_contains_pc): New function.
4988
5a439849
MR
49892012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
4990
4991 * mips-tdep.h (mips_write_pc): New prototype.
4992 * mips-tdep.c (mips_write_pc): Make external, add description.
4993 * mips-linux-tdep.c (mips_linux_write_pc): Use mips_write_pc,
4994 add description.
4995
8376de04
MR
49962012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
4997
4998 * mips-tdep.c (mips_read_pc): Use gdbarch_pc_regnum instead of
4999 mips_regnum->pc.
5000 (mips_unwind_pc, mips_write_pc): Likewise.
5001 (mips_gdbarch_init): Remove a comment on gdbarch_pc_regnum and
5002 gdbarch_read_pc.
5003
d3581e61
JB
50042012-05-17 Joel Brobecker <brobecker@adacore.com>
5005
5006 * procfs.c (procfs_find_new_threads, procfs_pid_to_str,
5007 proc_warn, proc_error, proc_get_status, proc_flags,
5008 proc_why, proc_what, proc_nsysarg, proc_sysargs,
5009 proc_set_run_on_last_close, proc_unset_run_on_last_close,
5010 proc_unset_inherit_on_fork, proc_set_async, proc_unset_async,
5011 proc_stop_process, proc_wait_for_stop, proc_run_process,
5012 proc_set_traced_signals, proc_set_traced_faults,
5013 proc_set_traced_sysentry, proc_set_traced_sysexit,
5014 proc_set_held_signals, proc_get_held_signals,
5015 proc_get_traced_signals, proc_get_traced_faults,
5016 proc_get_traced_sysentry, proc_get_traced_sysexit,
5017 proc_clear_current_fault, proc_set_current_signal,
5018 proc_clear_current_signal, proc_get_gregs, proc_get_fpregs,
5019 proc_set_gregs, proc_set_fpregs, proc_kill, proc_parent_pid,
5020 proc_get_nthreads, proc_get_nthreads, proc_get_nthreads,
5021 proc_get_current_thread, proc_get_current_thread,
5022 proc_get_current_thread, proc_update_threads,
5023 proc_update_threads, proc_update_threads, proc_update_threads,
5024 proc_iterate_over_threads, procfs_find_new_threads,
5025 procfs_pid_to_str): Make static. Remove advance declaration.
5026 (proc_cursig): Make static. Conditionalized defintion on
5027 PROCFS_DONT_PIOCSSIG_CURSIG being defined.
5028 (proc_syscall, proc_set_kill_on_last_close,
5029 proc_unset_kill_on_last_close, proc_set_inherit_on_fork,
5030 proc_get_pending_signals, proc_get_signal_actions,
5031 proc_trace_signal, proc_ignore_signal): Delete.
5032
81b9b86e
SDJ
50332012-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
5034
5035 * coffread.c (cs_section_address): Passing proper argument for
5036 `bfd_get_section_vma'.
5037 * dwarf2read.c (dwarf2_locate_sections): Likewise, for
5038 `bfd_get_section_flags'.
5039 * remote.c (remote_trace_set_readonly_regions): Likewise, for
5040 `bfd_get_section_vma'.
5041
abc9d0dc
TT
50422012-05-16 Tom Tromey <tromey@redhat.com>
5043
5044 PR macros/13205:
5045 * macrotab.h: (macro_define_special): Declare.
5046 (enum macro_special_kind): New.
5047 (struct macro_definition) <argc, replacement>: Update comments.
5048 * macrotab.c (new_macro_definition): Unconditionally set 'argc'.
5049 (macro_define_object_internal): New function.
5050 (macro_define_object): Use it.
5051 (macro_define_special): New function.
5052 (fixup_definition): New function.
5053 (macro_lookup_definition, foreach_macro_in_scope)
5054 (foreach_macro): Use fixup_definition.
5055 * macroexp.h (macro_stringify): Declare.
5056 * macroexp.c (free_buffer_return_text): New function.
5057 (stringify): Constify "arg".
5058 (macro_stringify): New function.
5059 * dwarf2read.c (macro_start_file): Call macro_define_special.
5060
6a3a010b 50612012-05-16 Maciej W. Rozycki <macro@codesourcery.com>
f782ad9b 5062 Maciej W. Rozycki <macro@mips.com>
6a3a010b
MR
5063
5064 * breakpoint.h (bp_location): Add related_address member.
5065 * inferior.h (get_return_value): Take a pointer to struct value
5066 instead of struct type for the function requested.
5067 * value.h (using_struct_return): Likewise.
5068 * gdbarch.sh (return_value): Take a pointer to struct value
5069 instead of struct type for the function requested.
5070 * breakpoint.c (set_breakpoint_location_function): Initialize
5071 related_address for bp_gnu_ifunc_resolver breakpoints.
5072 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the
5073 requested function's address to gdbarch_return_value.
5074 * eval.c (evaluate_subexp_standard): Pass the requested
5075 function's address to using_struct_return.
5076 * infcall.c (call_function_by_hand): Pass the requested
5077 function's address to using_struct_return and
5078 gdbarch_return_value.
5079 * infcmd.c (get_return_value): Take a pointer to struct value
5080 instead of struct type for the function requested.
5081 (print_return_value): Update accordingly.
5082 (finish_command_continuation): Likewise.
5083 * stack.c (return_command): Pass the requested function's
5084 address to using_struct_return and gdbarch_return_value.
5085 * value.c (using_struct_return): Take a pointer to struct value
5086 instead of struct type for the function requested. Pass the
5087 requested function's address to gdbarch_return_value.
5088 * python/py-finishbreakpoint.c (finish_breakpoint_object):
5089 New function_value member, replacing function_type.
5090 (bpfinishpy_dealloc): Update accordingly.
5091 (bpfinishpy_pre_stop_hook): Likewise.
5092 (bpfinishpy_init): Likewise. Record the requested function's
5093 address.
5094 * mips-tdep.c (mips_fval_reg): New enum.
5095 (mips_o32_push_dummy_call): For MIPS16 FP doubles do not swap
5096 words put in GP registers.
5097 (mips_o64_push_dummy_call): Update a comment.
5098 (mips_o32_return_value): Take a pointer to struct value instead
5099 of struct type for the function requested and use it to check if
5100 using the MIPS16 calling convention. Return the designated
5101 general purpose registers for floating-point values returned in
5102 MIPS16 mode.
5103 (mips_o64_return_value): Likewise.
5104 * ppc-tdep.h (ppc_sysv_abi_return_value): Update prototype.
5105 (ppc_sysv_abi_broken_return_value): Likewise.
5106 (ppc64_sysv_abi_return_value): Likewise.
5107 * alpha-tdep.c (alpha_return_value): Take a pointer to struct
5108 value instead of struct type for the function requested.
5109 * amd64-tdep.c (amd64_return_value): Likewise.
5110 * amd64-windows-tdep.c (amd64_windows_return_value): Likewise.
5111 * arm-tdep.c (arm_return_value): Likewise.
5112 * avr-tdep.c (avr_return_value): Likewise.
5113 * bfin-tdep.c (bfin_return_value): Likewise.
5114 * cris-tdep.c (cris_return_value): Likewise.
5115 * frv-tdep.c (frv_return_value): Likewise.
5116 * h8300-tdep.c (h8300_return_value): Likewise.
5117 (h8300h_return_value): Likewise.
5118 * hppa-tdep.c (hppa32_return_value): Likewise.
5119 (hppa64_return_value): Likewise.
5120 * i386-tdep.c (i386_return_value): Likewise.
5121 * ia64-tdep.c (ia64_return_value): Likewise.
5122 * iq2000-tdep.c (iq2000_return_value): Likewise.
5123 * lm32-tdep.c (lm32_return_value): Likewise.
5124 * m32c-tdep.c (m32c_return_value): Likewise.
5125 * m32r-tdep.c (m32r_return_value): Likewise.
5126 * m68hc11-tdep.c (m68hc11_return_value): Likewise.
5127 * m68k-tdep.c (m68k_return_value): Likewise.
5128 (m68k_svr4_return_value): Likewise.
5129 * m88k-tdep.c (m88k_return_value): Likewise.
5130 * mep-tdep.c (mep_return_value): Likewise.
5131 * microblaze-tdep.c (microblaze_return_value): Likewise.
5132 * mn10300-tdep.c (mn10300_return_value): Likewise.
5133 * moxie-tdep.c (moxie_return_value): Likewise.
5134 * mt-tdep.c (mt_return_value): Likewise.
5135 * ppc-linux-tdep.c (ppc_linux_return_value): Likewise.
5136 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Likewise.
5137 (ppc_sysv_abi_broken_return_value): Likewise.
5138 (ppc64_sysv_abi_return_value): Likewise.
5139 * ppcnbsd-tdep.c (ppcnbsd_return_value): Likewise.
5140 * rl78-tdep.c (rl78_return_value): Likewise.
5141 * rs6000-aix-tdep.c (rs6000_return_value): Likewise.
5142 * rx-tdep.c (rx_return_value): Likewise.
5143 * s390-tdep.c (s390_return_value): Likewise.
5144 * score-tdep.c (score_return_value): Likewise.
5145 * sh-tdep.c (sh_return_value_nofpu): Likewise.
5146 (sh_return_value_fpu): Likewise.
5147 * sh64-tdep.c (sh64_return_value): Likewise.
5148 * sparc-tdep.c (sparc32_return_value): Likewise.
5149 * sparc64-tdep.c (sparc64_return_value): Likewise.
5150 * spu-tdep.c (spu_return_value): Likewise.
5151 * tic6x-tdep.c (tic6x_return_value): Likewise.
5152 * v850-tdep.c (v850_return_value): Likewise.
5153 * vax-tdep.c (vax_return_value): Likewise.
5154 * xstormy16-tdep.c (xstormy16_return_value): Likewise.
5155 * xtensa-tdep.c (xtensa_return_value): Likewise.
5156 * gdbarch.c: Regenerate.
5157 * gdbarch.h: Regenerate.
5158
29ca12b3
TT
51592012-05-15 Tom Tromey <tromey@redhat.com>
5160
5161 * python/python.c (gdbpy_find_pc_line): Use gdb_py_ulongest.
5162
588ae58c
JB
51632012-05-15 Joel Brobecker <brobecker@adacore.com>
5164
5165 * breakpoint.c (init_breakpoint_sal): Add quotes around part
5166 of command in two error message.
5167
855a6e68
JB
51682012-05-15 Joel Brobecker <brobecker@adacore.com>
5169
5170 * breakpoint.c (init_breakpoint_sal): Remove trailing spaces.
5171
d634f2de
JB
51722012-05-15 Joel Brobecker <brobecker@adacore.com>
5173
5174 * breakpoint.c (find_condition_and_thread): Minor reformatting.
5175
9cc815f5
JK
51762012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
5177
5178 * NEWS (show auto-load scripts-directory): Add forgotten command.
5179
6a609e58
JK
51802012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
5181
5182 * spu-tdep.c (spu_catch_start): Update create_breakpoint caller
5183 parameters.
5184
ac1438b5
L
51852012-05-14 H.J. Lu <hongjiu.lu@intel.com>
5186
5187 * amd64-tdep.c: Include features/i386/x32.c and
5188 features/i386/x32-avx.c.
5189 (_initialize_amd64_tdep): Call initialize_tdesc_x32 and
5190 initialize_tdesc_x32_avx.
5191
e7e0cddf
SS
51922012-05-14 Stan Shebs <stan@codesourcery.com>
5193
5194 Add dynamic printf.
5195 * breakpoint.h (enum bptype): New type bp_dprintf.
5196 (struct breakpoint): New field extra_string.
5197 (struct breakpoint_ops): Add arg to create_breakpoints_sal.
5198 (create_breakpoint): Add extra_string arg.
5199 * breakpoint.c (dprintf_breakpoint_ops): New.
5200 (is_breakpoint): Add bp_dprintf.
5201 (bpstat_what): Add dprintf case.
5202 (bptype_string): Ditto.
5203 (print_one_breakpoint_location): Ditto.
5204 (init_bp_location): Ditto.
5205 (bkpt_print_mention): Ditto.
5206 (dprintf_style_enums): New array.
5207 (dprintf_style): New global.
5208 (dprintf_function): New global.
5209 (dprintf_channel): New global.
5210 (update_dprintf_command_list): New function.
5211 (update_dprintf_commands): New function.
5212 (init_breakpoint_sal): Add extra_string argument, handle it.
5213 (create_breakpoint_sal): Add extra_string argument.
5214 (create_breakpoints_sal): Add extra_string argument, update callers.
5215 (find_condition_and_thread): Add extra argument.
5216 (create_breakpoint): Add extra_string argument, record it.
5217 (dprintf_command): New function.
5218 (break_command_1): Add arg to create_breakpoint call.
5219 (handle_gnu_v3_exceptions): Ditto.
5220 (trace_command): Ditto.
5221 (ftrace_command): Ditto.
5222 (strace_command): Ditto.
5223 (bkpt_print_mention): Add dprintf case.
5224 (create_breakpoint_sal_default): Add extra_string argument.
5225 (_initialize_breakpoint): Add new commands.
5226 * mi/mi-cmd-break.c (mi_cmd_break_insert): Add arg to call.
5227 * python/py-breakpoint.c (bppy_init): Ditto.
5228 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
5229
8ae38c14
MR
52302012-05-14 Maciej W. Rozycki <macro@codesourcery.com>
5231
5232 * mips-tdep.c (mips_push_dummy_code): Correct description typo.
5233
9f676e66
SCR
52342012-05-14 Siva Chandra Reddy <sivachandra@google.com>
5235
5236 * python/python.c (gdbpy_find_pc_line): Use ULONGEST instead of
5237 unsigned long long.
5238
7efc75aa
SCR
52392012-05-13 Siva Chandra Reddy <sivachandra@google.com>
5240
5241 Add a new function gdb.find_pc_line to the Python API.
5242 * NEWS (Python Scripting): Add entry about the new function.
5243 * python/python.c (gdbpy_find_pc_line): New function which
5244 implements gdb.find_pc_line.
5245 (GdbMethods): Add entry for the new function.
5246
70af3797
PA
52472012-05-12 Pedro Alves <palves@redhat.com>
5248
5249 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Call
5250 initialize_tdesc_x32_linux and initialize_tdesc_x32_avx_linux.
5251
06da564e
EZ
52522012-05-12 Eli Zaretskii <eliz@gnu.org>
5253
5254 * inferior.c: Include completer.h
5255 (initialize_inferiors): Set completer of add-inferior to
5256 filename_completer.
5257
0288cee2
L
52582012-05-11 H.J. Lu <hongjiu.lu@intel.com>
5259
5260 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
5261 gdbarch_ptr_bit for x32 core dump.
5262
f6537a2c
L
52632012-05-11 H.J. Lu <hongjiu.lu@intel.com>
5264
5265 * amd64-linux-tdep.c: Include features/i386/x32-linux.c
5266 and features/i386/x32-avx-linux.c.
5267
85d4a676
SS
52682012-05-11 Stan Shebs <stan@codesourcery.com>
5269 Kwok Cheung Yeung <kcy@codesourcery.com>
5270
5271 * NEWS: Describe new info os commands.
5272 * common/linux-osdata.c (PID_T, TIME_T): Define.
5273 (MAX_PID_T_STRLEN): New.
5274 (linux_common_core_of_thread): Add comment. Change to use PID_T and
5275 MAX_PID_T_STRLEN.
5276 (command_from_pid): Add comment. Change to use PID_T.
5277 (commandline_from_pid): Change to use PID_T.
5278 (user_from_pid): Add comment.
5279 (get_process_owner): Add comment. Change to use PID_T and
5280 MAX_PID_T_STRLEN.
5281 (get_number_of_cpu_cores): Add comment.
5282 (get_cores_used_by_process): Add comment. Change to use PID_T and
5283 MAX_PID_T_STRLEN.
5284 (linux_xfer_osdata_processes): Change to use PID_T and
5285 MAX_PID_T_STRLEN.
5286 (compare_processes): New function.
5287 (linux_xfer_osdata_processgroups): New function.
5288 (linux_xfer_osdata_threads): Change to use PID_T.
5289 (linux_xfer_osdata_fds): New function.
5290 (format_socket_state, print_sockets): New functions.
5291 (union socket_addr): New union.
5292 (linux_xfer_osdata_isockets): New function.
5293 (time_from_time_t, group_from_gid): New functions.
5294 (linux_xfer_osdata_shm): New function.
5295 (linux_xfer_osdata_sem): New function.
5296 (linux_xfer_osdata_msg): New function.
5297 (linux_xfer_osdata_modules): New function.
5298 (osdata_table): Add new entries.
5299 * common/buffer.c (buffer_xml_printf): Add support for long and
5300 long long format specifiers.
5301
f24afd6d
L
53022012-05-11 H.J. Lu <hongjiu.lu@intel.com>
5303
5304 * amd64-linux-tdep.h (tdesc_x32_linux): New.
5305 (tdesc_x32_avx_linux): Likewise.
5306
7349ff92
JK
53072012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5308
5309 Implement multi-component --with-auto-load-dir.
5310 * NEWS (set auto-load scripts-directory, --with-auto-load-dir): New
5311 entries.
5312 (--with-auto-load-safe-path): Update the default value description.
5313 * auto-load.c (auto_load_dir, set_auto_load_dir, show_auto_load_dir):
5314 New.
5315 (auto_load_objfile_script): Add DEBUG_AUTO_LOAD output. Remove
5316 GDB_DATADIR NULL check. Replace GDB_DATADIR/auto-load by
5317 AUTO_LOAD_DIR. Support $ddir and multiple components in it.
5318 (_initialize_auto_load): Initialize also auto_load_dir. Install new
5319 "set auto-load scripts-directory".
5320 * config.in: Regenerate.
5321 * configure: Regenerate.
5322 * configure.ac (--with-auto-load-dir): New configure option.
5323 (--auto-load-safe-path): Change the default to --with-auto-load-dir.
5324
6dea1fbd
JK
53252012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5326
5327 Provide $ddir substitution for --with-auto-load-safe-path.
5328 * NEWS (--with-auto-load-safe-path, --without-auto-load-safe-path): New
5329 entries.
5330 * auto-load.c: Include observer.h.
5331 (auto_load_safe_path_vec_update): Call substitute_path_component for
5332 each component. New variable ddir_subst.
5333 (auto_load_gdb_datadir_changed): New function.
5334 (set_auto_load_safe_path): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
5335 AUTO_LOAD_SAFE_PATH. New comment.
5336 (_initialize_auto_load): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
5337 AUTO_LOAD_SAFE_PATH. Install auto_load_gdb_datadir_changed.
5338 * config.in: Regenerate.
5339 * configure: Regenerate.
5340 * configure.ac (--auto-load-safe-path): Rename
5341 DEFAULT_AUTO_LOAD_SAFE_PATH to AUTO_LOAD_SAFE_PATH. Default to
5342 GDB_DATADIR/auto-load.
5343 * defs.h (substitute_path_component): New declaration.
5344 * top.c: Include observer.h.
5345 (set_gdb_datadir): New function.
5346 (init_main): Install it for "set data-directory".
5347 * utils.c (substitute_path_component): New function.
5348
b09aca3a
JK
53492012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5350
5351 Make auto-load handle multiple components of DEBUG_FILE_DIRECTORY.
5352 * auto-load.c (auto_load_objfile_script): Remove check for NULL
5353 DEBUG_FILE_DIRECTORY. Handle multiple components of
5354 DEBUG_FILE_DIRECTORY.
5355
95554aad
TT
53562012-05-10 Tom Tromey <tromey@redhat.com>
5357
5358 * dwarf2read.c (recursively_write_psymbols): New function.
5359 (write_psymtabs_to_index): Use it.
5360
5361 * dwarf2read.c (struct dwarf2_queue_item) <pretend_language>: New
5362 field.
5363 (load_cu, dw2_do_instantiate_symtab, process_psymtab_comp_unit)
5364 (load_partial_comp_unit): Update.
5365 (queue_comp_unit): Add argument 'pretend_language'.
5366 (process_queue): Update.
5367 (psymtab_to_symtab_1): Skip dependencies that have a user.
5368 (load_partial_comp_unit_reader): Give meaning to the 'data'
5369 argument.
5370 (load_full_comp_unit): Add 'pretend_language' argument.
5371 (process_full_comp_unit): Add 'pretend_language' argument. Set
5372 language on CU.
5373 (process_imported_unit_die, read_file_scope, read_type_unit_scope):
5374 Update.
5375 (maybe_queue_comp_unit): Add 'pretend_language' argument.
5376 (follow_die_offset, follow_die_sig, read_signatured_type_reader):
5377 Update.
5378 (prepare_one_comp_unit): Add 'pretend_language' argument.
5379
5380 * dwarf2read.c: (dwarf2_per_cu_ptr): New typedef.
5381 (struct dwarf2_per_objfile) <just_read_cus>: New field.
5382 (struct dwarf2_per_cu_data) <imported_symtabs>: New field.
5383 (dw2_do_instantiate_symtab): Check whether symtab was read in
5384 before queueing.
5385 (dw2_instantiate_symtab): Add assertion. Call
5386 process_cu_includes.
5387 (process_psymtab_comp_unit): Compute 'dependencies' for psymtab.
5388 (partial_symtab_p): New typedef.
5389 (set_partial_user): New function.
5390 (dwarf2_build_psymtabs_hard): Use set_partial_user.
5391 (scan_partial_symbols): Add imported CU to imported_symtabs.
5392 (dwarf2_psymtab_to_symtab): Call process_cu_includes.
5393 (psymtab_to_symtab_1): Do nothing if psymtab is readin.
5394 (get_symtab, recursively_compute_inclusions)
5395 (compute_symtab_includes, process_cu_includes)
5396 (process_imported_unit_die): New functions.
5397 (process_die) <DW_TAG_imported_unit>: New case.
5398 (dwarf2_per_objfile_free): Free 'imported_symtabs'.
5399
5400 * dwarf2read.c (struct dwarf2_per_cu_data) <psymtab>: Update
5401 comment.
5402 (struct partial_die_info) <locdesc>: Remove.
5403 <d>: New field.
5404 (process_psymtab_comp_unit): Add 'read_partial' argument.
5405 Update.
5406 (process_type_comp_unit, dwarf2_build_psymtabs_hard): Update.
5407 (scan_partial_symbols): Handle DW_TAG_imported_unit.
5408 (add_partial_symbol): Update.
5409 (process_die): Handle DW_TAG_partial_unit.
5410 (read_file_scope): Update comment.
5411 (load_partial_dies): Handle DW_TAG_imported_unit.
5412 (read_partial_die): Handle DW_TAG_partial_unit, DW_AT_import.
5413 (determine_prefix, dwarf2_name): Handle DW_TAG_partial_unit.
5414
e871fbb9
TT
54152012-05-10 Tom Tromey <tromey@redhat.com>
5416
5417 * cc-with-dwz.sh: New file.
5418
b5b04b5b
TT
54192012-05-10 Tom Tromey <tromey@redhat.com>
5420
5421 * symtab.h (struct symtab) <includes, user>: New fields.
5422 * block.h (struct block_iterator) <d, idx, which>: New fields.
5423 * block.c (initialize_block_iterator, find_iterator_symtab)
5424 (block_iterator_step, block_iter_name_step)
5425 (block_iter_match_step): New functions.
5426 (block_iterator_first, block_iterator_next)
5427 (block_iter_name_first, block_iter_name_next)
5428 (block_iter_match_first, block_iter_match_next): Rewrite.
5429 (get_block_symtab): New function.
5430
84a146c9
TT
54312012-05-10 Tom Tromey <tromey@redhat.com>
5432
5433 * jv-lang.c (get_java_class_symtab): Use allocate_global_block,
5434 set_block_symtab.
5435 * jit.c (finalize_symtab): Use allocate_global_block,
5436 set_block_symtab.
5437 * buildsym.c (finish_block_internal): New function, from old
5438 finish_block.
5439 (finish_block): Rewrite.
5440 (end_symtab): Use finish_block_internal, set_block_symtab.
5441 * block.h (struct global_block): New.
5442 (allocate_global_block, set_block_symtab): Declare.
5443 * block.c (allocate_global_block, set_block_symtab): New
5444 functions.
5445
9439a077
TT
54462012-05-10 Tom Tromey <tromey@redhat.com>
5447
5448 * psymtab.c (partial_map_expand_apply): Add assertion.
5449 (partial_map_symtabs_matching_filename): Skip included psymtabs.
5450 (psymtab_to_symtab): Find unshared psymtab.
5451 (dump_psymtab): Print including psymtabs.
5452 (recursively_search_psymtabs): New function.
5453 (expand_symtabs_matching_via_partial): Use it.
5454 * psympriv.h (struct partial_symtab) <user, searched_flag>: New
5455 fields.
5456 (enum psymtab_search_status): New.
5457
8157b174
TT
54582012-05-10 Tom Tromey <tromey@redhat.com>
5459
5460 * tracepoint.c (scope_info): Update.
5461 * symtab.c (lookup_block_symbol, iterate_over_symbols)
5462 (find_pc_sect_symtab, search_symbols)
5463 (default_make_symbol_completion_list_break_on)
5464 (make_file_symbol_completion_list): Update.
5465 * symmisc.c (dump_symtab_1): Update.
5466 * stack.c (print_frame_args, iterate_over_block_locals)
5467 (print_frame_labels, iterate_over_block_arg_vars): Update.
5468 * python/py-block.c (block_object) <dict>: Remove.
5469 <block>: New field.
5470 <iter>: Change type.
5471 (blpy_iter): Update.
5472 (blpy_block_syms_iternext): Update.
5473 * psymtab.c (map_block): Use block iterators.
5474 * objfiles.c (objfile_relocate1): Use ALL_DICT_SYMBOLS.
5475 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
5476 * mdebugread.c (parse_symbol, mylookup_symbol): Update.
5477 * infrun.c (check_exception_resume): Update.
5478 * cp-support.c (make_symbol_overload_list_block): Update.
5479 * coffread.c (patch_opaque_types): Update.
5480 * buildsym.c (finish_block, end_symtab): Use ALL_DICT_SYMBOLS.
5481 * block.h (struct block_iterator): New.
5482 (block_iterator_first, block_iterator_next, block_iter_name_first)
5483 (block_iter_name_next, block_iter_match_first)
5484 (block_iter_match_next): Declare.
5485 (ALL_BLOCK_SYMBOLS): Redefine.
5486 * block.c (block_iterator_first, block_iterator_next)
5487 (block_iter_name_first, block_iter_name_next)
5488 (block_iter_match_first, block_iter_match_next): New functions.
5489 * ada-lang.c (ada_add_block_symbols)
5490 (ada_make_symbol_completion_list): Use block iterator.
5491
a2ca7a52
TT
54922012-05-10 Tom Tromey <tromey@redhat.com>
5493
5494 * psymtab.c (PSYMTAB_TO_SYMTAB): Remove.
5495 (find_pc_sect_symtab_from_partial, lookup_symbol_aux_psymtabs)
5496 (lookup_partial_symbol, find_last_source_symtab_from_partial)
5497 (read_psymtabs_with_filename, map_matching_symbols_psymtab)
5498 (expand_symtabs_matching_via_partial, maintenance_check_symtabs):
5499 Update.
5500
64ea88dc
JB
55012012-05-10 Joel Brobecker <brobecker@adacore.com>
5502
5503 * config/djgpp/fnchange.lst: Add entries for print-file-var-lib1.c,
5504 print-file-var-lib2.c, print-file-var-main.c and
5505 print-file-var.exp (located in gdb/testsuite/gdb.base).
5506
99a547d6
JB
55072012-05-10 Joel Brobecker <brobecker@adacore.com>
5508
5509 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
5510 try locating the symbol in the symbol's own objfile first, before
5511 extending the search to all objfiles.
5512 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
5513 out of lookup_symbol_aux_symtabs.
5514 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
5515 Replace extracted-out code by call to lookup_symbol_aux_objfile.
5516 Do not search EXCLUDE_OBJFILE.
5517 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
5518 (lookup_symbol_global): Search for matches in the block's objfile
5519 first, before searching all other objfiles.
5520
0ece64fd
TG
55212012-05-10 Tristan Gingold <gingold@adacore.com>
5522
5523 * printcmd.c (set_command): Add pre/post inc/dec.
5524
3d16a105
FCE
55252012-05-09 Frank Ch. Eigler <fche@redhat.com>
5526
5527 * gdb.1: Document -ex option.
5528
2efbc0f7
JB
55292012-05-09 Joel Brobecker <brobecker@adacore.com>
5530
5531 * infcall.c (call_function_by_hand): Remove AT_SYMBOL handling.
5532 * inferior.h (AT_SYMBOL): Delete.
5533
2c76a0c7
JB
55342012-05-09 Joel Brobecker <brobecker@adacore.com>
5535
5536 * mips-tdep.c (mips_push_dummy_code): New function.
5537 (mips_gdbarch_init): Set the gdbarch call_dummy_location to
5538 ON_STACK and install mips_push_dummy_code as our gdbarch
5539 push_dummy_code routine.
5540
9401a810
PA
55412012-05-09 Pedro Alves <palves@redhat.com>
5542
5543 * target.c (set_maintenance_target_async_permitted): Rename to ...
5544 (set_target_async_command): ... this.
5545 (show_maintenance_target_async_permitted): Rename to ...
5546 (show_target_async_command): ... this.
5547 (initialize_targets): Adjust.
5548
3929b321
DE
55492012-05-08 Doug Evans <dje@google.com>
5550
5551 * go-exp.y (classify_name): Add missing assignment of fields of
5552 yylval.ssym.
5553
c41535fd
EZ
55542012-05-08 Eli Zaretskii <eliz@gnu.org>
5555
5556 Display the ">" prompt in interactive mode while reading canned
5557 commands, even when the current interpreter is MI.
5558
5559 * interps.c (interp_set_temp): New function.
5560
5561 * interps.h (interp_set_temp): Add prototype.
5562
5563 * cli/cli-script.c (restore_interp): New cleanup function.
5564 (read_command_lines): Temporarily override the current interpreter
5565 with CLI and arrange for restoring the original one.
5566
c0749c4d
JS
55672012-05-12 Joel Sherrill <joel.sherrill@oarcorp.com>
5568
5569 * microblaze-rom.c (_initialize_picobug_rom): Add prototype.
5570
d7333987
SDJ
55712012-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
5572
5573 * probe.c (parse_probes): Move conditional to check for
5574 debuginfo files from here...
5575 * stap-probe.c (stap_get_probes): ... to here.
5576
649e6d92
MK
55772012-05-07 Mark Kettenis <kettenis@gnu.org>
5578 H.J. Lu <hongjiu.lu@intel.com>
5579
5580 * amd64-tdep.c (amd64_analyze_prologue): Additionally check for
5581 `movl %esp, %ebp' for the X32 ABI.
5582
f39c6ffd
TT
55832012-05-07 Tom Tromey <tromey@redhat.com>
5584
5585 * dwarf2read.c (dwarf_tag_name): Return const char *. Use
5586 get_DW_TAG_name.
5587 (dwarf_attr_name): Return const char *. Use get_DW_AT_name.
5588 (dwarf_form_name): Return const char *. Use get_DW_FORM_name.
5589 (dwarf_stack_op_name): Remove.
5590 (dwarf_cfi_name): Return const char *. Use get_DW_ATE_name.
5591 (decode_locdesc): Use get_DW_OP_name.
5592 * dwarf2loc.c (unimplemented): Use get_DW_OP_name.
5593 (dwarf2_compile_expr_to_ax): Likewise.
5594 (disassemble_dwarf_expression): Likewise.
5595 * dwarf2expr.h: (dwarf_stack_op_name): Remove.
5596
1e1f6591
CLT
55972012-05-07 Chung-Lin Tang <cltang@codesourcery.com>
5598
5599 * sh-linux-tdep.c: Include trad-frame.h and tramp-frame.h.
5600 (sh_linux_sigtramp_cache): New function.
5601 (sh_linux_sigreturn_init): New function.
5602 (sh_linux_rt_sigreturn_init): New function.
5603 (SH_MOVW,SH_TRAP,SH_OR_R0_R0): New symbols for instruction
5604 patterns.
5605 (SH_NR_SIGRETURN,SH_NR_RT_SIGRETURN): New symbols for sigreturn
5606 syscall codes.
5607 (sh_linux_sigreturn_tramp_frame): New tramp_frame definition.
5608 (sh_linux_rt_sigreturn_tramp_frame): Likewise.
5609 (sh_linux_init_abi): Add init calls to register new tramp_frame
5610 definitions under 32-bit SH, update comments.
5611
545c08b4
PA
56122012-05-07 Pedro Alves <palves@redhat.com>
5613
daac165e
PA
5614 PR gdb/10952
5615
545c08b4
PA
5616 * amd64-linux-tdep.c: Include glibc-tdep.h.
5617 (amd64_linux_init_abi): Install glibc_skip_solib_resolver as
5618 gdbarch_skip_solib_resolver callback.
5619
af2c1515
JK
56202012-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5621
5622 * auto-load.c (set_auto_load_safe_path): Reset AUTO_LOAD_SAFE_PATH
5623 back to DEFAULT_AUTO_LOAD_SAFE_PATH if it is being set to "".
5624 (show_auto_load_safe_path): Check any-directory by comparison with "/".
5625 (add_auto_load_safe_path): Change the error message.
5626 (_initialize_auto_load): Change the "safe-path" help text.
5627 * configure: Regenerate
5628 * configure.ac (--without-auto-load-safe-path): Set
5629 WITH_AUTO_LOAD_SAFE_PATH to /.
5630
1067f998
SDJ
56312012-05-05 Sergio Durigan Junior <sergiodj@redhat.com>
5632
5633 * stap-probe.h: Do not include unecessary `probe.h'.
5634
45dfa85a
AM
56352012-05-05 Alan Modra <amodra@gmail.com>
5636
5637 * elfread.c (elf_symtab_read): Use bfd_abs_section_ptr and
5638 bfd_und_section_ptr.
5639 * machoread.c (macho_symtab_add_minsym): Use bfd_abs_section_ptr
5640 and bfd_com_section_ptr.
5641
cf093994
JB
56422012-05-04 Joel Brobecker <brobecker@adacore.com>
5643
762ebb75 5644 * MAINTAINERS (Past Maintainers): Add Chris Faylor.
cf093994 5645
d40dc7a8
JB
56462012-05-04 Joel Brobecker <brobecker@adacore.com>
5647
5648 * windows-nat.h (segment_register_p_ftype): New typedef.
5649 (windows_set_segment_register_p): Add declaration.
5650 * windows-nat.c (segment_register_p): New static global.
5651 (windows_set_segment_register_p): New function.
5652 (do_windows_fetch_inferior_registers): Add special handling
5653 for segment registers.
5654 * amd64-windows-nat.c: #include "amd64-tdep.h".
5655 (amd64_windows_segment_register_p): New function.
5656 (_initialize_amd64_windows_nat): Call windows_set_segment_register_p.
5657 * i386-windows-nat.c: #include "i386-tdep.h".
5658 (i386_windows_segment_register_p): New function.
5659 (_initialize_i386_windows_nat): Call windows_set_segment_register_p.
5660
52b3699b
TG
56612012-05-04 Tristan Gingold <gingold@adacore.com>
5662
5663 * printcmd.c (set_command): Emit a warning if the expression is not
5664 an assignment.
5665
94c74239
JB
56662012-05-03 Joel Brobecker <brobecker@adacore.com>
5667
5668 * nto-procfs.c (procfs_find_new_threads, procfs_pid_to_str):
5669 Make static.
5670
fcf57f19
SDJ
56712012-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
5672
5673 * stap-probe.c (stap_is_operator): Change declaration.
5674 (stap_get_opcode): Change return value.
5675 (stap_parse_argument_1): Update calls to `stap_get_opcode' and
5676 `stap_parse_argument_1'.
5677
27d2932e
PA
56782012-05-03 Pedro Alves <pedro@codesourcery.com>
5679
5680 * infrun.c (displaced_step_fixup): Add "displaced:" prefix to
5681 debug log.
5682
a20ee7a4
SCR
56832012-05-03 Siva Chandra Reddy <sivachandra@google.com>
5684
5685 Add two new methods global_block and static_block to gdb.Symtab
5686 objects.
5687 * NEWS (Python scripting): Add entry about the new methods.
5688 * python/py-symtab.c (stpy_global_block): New function which
5689 implements the gdb.Symtab.global_block() method.
5690 (stpy_static_block): New function which implements the
5691 gdb.Symtab.static_block() method.
5692 (symtab_object_methods): Add entries for the two new methods.
5693
943cb756
DE
56942012-05-03 Doug Evans <dje@google.com>
5695
5696 * dwarf2read.c (dw2_find_symbol_file): Don't crash if there are no
5697 files.
5698
f4644a3f
YQ
56992012-05-03 Yao Qi <yao@codesourcery.com>
5700
5701 * i386-tdep.c (i386_fetch_pointer_argument): Remove extra
5702 space.
5703 (i386_process_record): Ditto.
5704
ef61f180
JB
57052012-05-02 Joel Brobecker <brobecker@adacore.com>
5706
5707 * infcall.c (unwind_on_signal_p): Make static.
5708
02f1df11
JB
57092012-05-02 Joel Brobecker <brobecker@adacore.com>
5710
5711 * sol-thread.c (solaris_pid_to_str): Make static.
5712 (_initialize_sol_thread): Add prototype.
5713
39023530
JB
57142012-05-02 Joel Brobecker <brobecker@adacore.com>
5715
5716 * sol-thread.c (procfs_pid_to_str): Delete extern declaration.
5717
c6b0c501
CF
57182012-05-02 Christopher Faylor <me.cygwin2012@cgf.cx>
5719
5720 * MAINTAINERS: Remove myself.
5721
1ef71717
JK
57222012-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5723
5724 Fix --without-auto-load-safe-path for MS-Windows host platform.
5725 * auto-load.c (filename_is_in_dir): Return 1 for DIR_LEN 0.
5726
b31b86a7
EZ
57272012-05-02 Eli Zaretskii <eliz@gnu.org>
5728
5729 * gdb_curses.h: Undefine KEY_EVENT before including curses
5730 headers. Move "#undef MOUSE_MOVED" before any curses header
5731 inclusion.
5732
777532fc
SDJ
57332012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
5734
5735 * features/i386/i386-mmx-linux.c: Regenerate.
5736 * features/rs6000/powerpc-32.c: Likewise.
5737 * features/rs6000/powerpc-32l.c: Likewise.
5738 * features/rs6000/powerpc-403.c: Likewise.
5739 * features/rs6000/powerpc-403gc.c: Likewise.
5740 * features/rs6000/powerpc-405.c: Likewise.
5741 * features/rs6000/powerpc-505.c: Likewise.
5742 * features/rs6000/powerpc-601.c: Likewise.
5743 * features/rs6000/powerpc-602.c: Likewise.
5744 * features/rs6000/powerpc-603.c: Likewise.
5745 * features/rs6000/powerpc-604.c: Likewise.
5746 * features/rs6000/powerpc-64.c: Likewise.
5747 * features/rs6000/powerpc-64l.c: Likewise.
5748 * features/rs6000/powerpc-750.c: Likewise.
5749 * features/rs6000/powerpc-860.c: Likewise.
5750 * features/rs6000/powerpc-e500.c: Likewise.
5751 * features/rs6000/powerpc-e500l.c: Likewise.
5752 * features/rs6000/powerpc-isa205-32l.c: Likewise.
5753 * features/rs6000/powerpc-isa205-64l.c: Likewise.
5754 * features/rs6000/rs6000.c: Likewise.
5755
d71871bc
SDJ
57562012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
5757
5758 * i386-tdep.c (i386_stap_parse_special_token) <s>: Remove unused
5759 variable.
5760 * stap-probe.c (stap_parse_single_operand) <reg_suffix,
5761 reg_ind_suffix, reg_suffix_len, reg_ind_suffix_len>: Likewise.
5762 (stap_parse_argument) <e>: Likewise.
5763 (handle_stap_probe) <byte_order>: Likewise.
5764
fd820528
DE
57652012-04-30 Doug Evans <dje@google.com>
5766
5767 * dwarf2read.c (init_cutu_and_read_dies): Renamed from
5768 init_and_read_dies_worker. All callers updated.
5769 (init_cu_and_read_dies, init_tu_and_read_dies): Delete. All calls
5770 replaced with init_cutu_and_read_dies.
5771 (load_partial_comp_unit): Pass 1 for use_existing_cu.
5772 (find_partial_die): Remove FIXME. Don't free current CU.
5773
ec3f619d 57742012-04-30 Sterling Augustine <saugustine@google.com>
be36f02d
SA
5775
5776 * contrib: New directory.
5777 * contrib/test_pubnames_and_indexes.py: New file.
5778
fceca515
DE
57792012-04-30 Doug Evans <dje@google.com>
5780
5781 * dwarf2read.c (dwarf_decode_macros): New arg section_name.
5782 All callers updated.
5783 (init_cu_die_reader): Verify the section is non-empty.
5784 (dwarf_decode_line_header): Don't dereference section->asection
5785 until we know the section is present.
5786
311fe7e1
SDJ
57872012-04-29 Sergio Durigan Junior <sergiodj@redhat.com>
5788
5789 * tracepoint.c (start_tracing, stop_tracing): Checking for NULL
5790 probes.
5791
5977971a
YQ
57922012-04-29 Yao Qi <yao@codesourcery.com>
5793
5794 * gdb-code-style.el: New hook gdb-markup-hook
5795 and gdb-comment-hook.
5796
dee91e82
DE
57972012-04-28 Doug Evans <dje@google.com>
5798
3019eac3
DE
5799 Initial support for Fission. http://gcc.gnu.org/wiki/DebugFission
5800 * symfile.c (default_symfile_relocate): Use sectp->owner instead of
5801 objfile->obfd.
5802 * symfile.h (dwarf2_debug_sections): New member addr.
5803 * dwarf2expr.c (execute_stack_op): New case DW_OP_GNU_addr_index.
5804 (ctx_no_get_addr_index): New function.
5805 * dwarf2expr.h (dwarf_expr_context_funcs): New member get_addr_index.
5806 (ctx_no_get_addr_index): Declare.
5807 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Update.
5808 * dwarf2loc.c (dwarf_expr_get_addr_index): New function.
5809 (dwarf_expr_ctx_funcs): Update.
5810 (needs_get_addr_index): New function.
5811 (needs_frame_ctx_funcs): Update.
5812 * dwarf2loc.h (dwarf2_read_addr_index): Declare.
5813 * dwarf2read.c: #include "gdbcore.h".
5814 (dwarf2_per_objfile): New members addr, dwo_files.
5815 (dwarf2_elf_names): Add entry for addr.
5816 (struct dwo_section_names): New type.
5817 (dwo_section_names): New static global.
5818 (dwarf2_cu): New members dwo_unit, addr_base, have_addr_base.
5819 (dwarf2_per_cu_data): New member is_debug_types, all boolean uses of
5820 old debug_types_section member updated to use this.
5821 Rename member debug_types_section to info_or_types_section,
5822 all uses updated.
5823 (signatured_type): Rename member type_offset to type_offset_in_tu,
5824 all uses updated. New member type_offset_in_section.
5825 (struct dwo_sections): New type.
5826 (struct dwo_unit): New type.
5827 (struct dwo_file): New type.
5828 (die_reader_specs): New member dwo_file.
5829 (dwarf2_locate_sections): Watch for .debug_addr.
5830 (zlib_decompress_section): Use sectp->owner instead of objfile->obfd.
5831 (dwarf2_read_section): Get bfd of section from bfd's asection,
5832 instead of objfile.
5833 (create_cus_from_index): Initialize the_cu->info_or_types_section.
5834 (create_signatured_type_table_from_index): Initialize
5835 sig_type->info_or_types_section.
5836 (dw2_get_file_names): Statement lists for type units with DWO files
5837 live in the DWO file.
5838 (create_debug_types_hash_table): New function.
5839 (create_all_type_units): Rewrite.
5840 (init_cu_die_reader): New arg dwo_file, all callers updated.
5841 (init_and_read_dies_worker): Get section from
5842 this_cu->info_or_types_section. Set sig_type->type_offset_in_section.
5843 Watch for DW_AT_GNU_dwo_name and if present lookup the file and
5844 continue reading the CU/TU from there.
5845 (init_cutu_and_read_dies_no_follow): New arg dwo_file, all callers
5846 updated. Get section from this_cu->info_or_types_section.
5847 (create_all_comp_units): Initialize this_cu->info_or_types_section.
5848 (skip_one_die): New cases DW_FORM_GNU_addr_index,
5849 DW_FORM_GNU_str_index.
5850 (hash_dwo_file, eq_dwo_file): New functions.
5851 (allocate_dwo_file_hash_table): New function.
5852 (hash_dwo_unit, eq_dwo_unit): New functions.
5853 (allocate_dwo_unit_table): New function.
5854 (dwarf2_locate_dwo_sections): New function.
5855 (struct create_dwo_info_table_data): New type.
5856 (create_debug_info_hash_table_reader): New function.
5857 (create_debug_info_hash_table): New function.
5858 (try_open_dwo_file, open_dwo_file, init_dwo_file): New function.
5859 (lookup_dwo_file): New function.
5860 (lookup_dwo_comp_unit, lookup_dwo_type_unit): New functions.
5861 (free_dwo_file, free_dwo_file_cleanup): New functions.
5862 (free_dwo_file_from_slot, free_dwo_files): New functions.
5863 (dwarf2_get_pc_bounds): Handle DW_FORM_GNU_addr_index.
5864 (dwarf2_record_block_ranges): Ditto.
5865 (read_partial_die): Ditto.
5866 (process_enumeration_scope): Update to use type_offset_in_section.
5867 (read_full_die_1): New function.
5868 (read_full_die): Rewrite.
5869 (read_attribute_value): New cases DW_FORM_GNU_addr_index,
5870 DW_FORM_GNU_str_index.
5871 (read_addr_index_1, read_addr_index): New functions.
5872 (read_addr_index_from_leb128): New function.
5873 (struct dwarf2_read_addr_index_data): New type.
5874 (dwarf2_read_addr_index_reader): New function.
5875 (dwarf2_read_addr_index): New function.
5876 (read_str_index): New function.
5877 (leb128_size): New function.
5878 (dwarf_decode_line_header): Delete arg abfd, all callers updated.
5879 If processing a type unit from a DWO file, get the line section
5880 from the DWO file.
5881 (var_decode_location): Watch for DW_OP_GNU_addr_index.
5882 (dwarf2_const_value_attr): New cases DW_FORM_GNU_addr_index,
5883 DW_FORM_GNU_str_index.
5884 (lookup_die_type): Check whether section offset of type's die is
5885 known before looking it up. Remove assert. Condition can
5886 legimately happen for inter-cu type references.
5887 (dwarf_attr_name): Handle Fission attributes.
5888 (dwarf_form_name): Handle Fission forms.
5889 (dump_die_shallow): New cases DW_FORM_GNU_addr_index,
5890 DW_FORM_GNU_str_index.
5891 (follow_die_sig): Update to use type_offset_in_section.
5892 (decode_locdesc): New case DW_OP_GNU_addr_index.
5893 (skip_form_bytes): New cases DW_FORM_GNU_addr_index,
5894 DW_FORM_GNU_str_index.
5895 (cu_debug_loc_section): New function.
5896 (fill_in_loclist_baton, dwarf2_symbol_mark_computed): Call it.
5897 (dwarf2_per_objfile_free): Unmap .debug_addr section.
5898 Free DWO files if present.
5899 * xcoffread.c (dwarf2_xcoff_names): Add .debug_addr.
5900
dee91e82
DE
5901 Refactor DIE reading.
5902 * dwarf2read.c (dwarf2_per_objfile): Replace members
5903 debug_info_type_hash and debug_types_type_hash with die_type_hash.
5904 (die_reader_specs): New member "die_section". Temporarily make
5905 member "buffer" non-const, pending constifying all info_ptr uses.
5906 (die_reader_func_ftype): New typedef.
5907 (dw2_get_file_names_reader): New function.
5908 (dw2_get_file_names): Rewrite.
5909 (read_and_check_type_unit_head): Rename arg type_offset to
5910 type_offset_in_tu.
5911 (create_all_type_units): Improve debugging message.
5912 Improve dummy type unit check.
5913 (init_cu_die_reader): New arg "section". All callers updated.
5914 (init_and_read_dies_worker): New function.
5915 (init_cu_and_read_dies, init_tu_and_read_dies): New functions.
5916 (init_cutu_and_read_dies_no_follow): New function.
5917 (init_cutu_and_read_dies_simple): New function.
5918 (process_psymtab_comp_unit_reader): New function.
5919 (process_psymtab_comp_unit): Delete args section,
5920 is_debug_types_section. Rewrite. All callers updated.
5921 (process_psymtab_type_unit): Renamed from process_type_comp_unit.
5922 All callers updated. Rewrite.
5923 (load_partial_comp_unit_reader): New function.
5924 (load_partial_comp_unit): Rewrite.
5925 (skip_children): New arg reader. Delete args buffer, cu.
5926 All callers updated.
5927 (skip_one_die): New arg reader. Delete args buffer, cu.
5928 All callers updated.
5929 (locate_pdi_sibling): New arg reader. Delete args buffer, abfd, cu.
5930 All callers updated.
5931 (load_full_comp_unit_reader): New function.
5932 (load_full_comp_unit): Rewrite.
5933 (read_comp_unit): Delete.
5934 (read_die_and_children_1): Delete, contents moved ...
5935 (read_die_and_children): ... here.
5936 (dwarf2_read_abbrevs): New arg abbrev_section. All callers updated.
5937 (load_partial_dies): New arg reader. Delete args abfd, buffer, cu.
5938 All callers updated.
5939 (read_partial_die): New arg reader. Delete args abfd, buffer, cu.
5940 All callers updated.
5941 (find_partial_die): Rewrite load_all_dies support.
5942 (read_attribute_value): New arg reader. Delete args abfd, cu.
5943 All callers updated.
5944 (read_attribute): New arg reader. Delete args abfd, cu.
5945 All callers updated.
5946 (load_full_type_unit): Add assert.
5947 (read_signatured_type_reader): New function.
5948 (read_signatured_type): Rewrite.
5949 (free_stack_comp_unit): Remove call to age_cached_comp_units.
5950 (free_one_cached_comp_unit): Change target_cu arg to target_per_cu.
5951 All callers updated. Set per_cu->cu = NULL after freeing it.
5952 (dwarf2_per_cu_offset_and_type): Renamed from dwarf2_offset_and_type.
5953 (per_cu_offset_and_type_hash): Renamed from offset_and_type_hash.
5954 (per_cu_offset_and_type_eq): Renamed from offset_and_type_eq.
5955 (set_die_type): Update.
5956 (get_die_type_at_offset): Update.
5957 (read_file_scope): Call prepare_one_comp_unit.
5958 (read_type_unit_scope): Ditto.
5959 (prepare_one_comp_unit): Set producer if present.
5960
72d59e0d
SDJ
59612012-04-28 Sergio Durigan Junior <sergiodj@redhat.com>
5962
5963 * probe.c (compile_rx_or_error): Silence ARI warning about missing
5964 gettext function on `error'.
5965
0fefef59
DE
59662012-04-27 Doug Evans <dje@google.com>
5967
5968 * dwarf2read.c (dwarf2_read_index): Don't use index if symbol table
5969 is empty.
5970
28106bc2
SDJ
59712012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
5972 Tom Tromey <tromey@redhat.com>
5973
5974 * breakpoint.c (struct breakpoint_objfile_data)
5975 <longjmp_searched>,<longjmp_probes>,<exception_searched>,
5976 <exception_probes>: New fields.
5977 (free_breakpoint_probes): New function.
5978 (create_longjmp_master_breakpoint): Prefer SystemTap probe over
5979 `_Unwind_DebugHook'.
5980 (create_exception_master_breakpoint): Likewise.
5981 (_initialize_breakpoint): Registering cleanup for SystemTap probes.
5982 * infrun.c: Including necessary header files for handling SystemTap
5983 probes.
5984 (handle_inferior_event): Handling longjmp breakpoint and exceptions
5985 via SystemTap probes.
5986 (check_exception_resume): Remove `func' argument. Handle exception
5987 unwinding breakpoint set via a SystemTap probe.
5988 (insert_exception_resume_from_probe): New function.
5989
55aa24fb
SDJ
59902012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
5991 Tom Tromey <tromey@redhat.com>
5992 Jan Kratochvil <jan.kratochvil@redhat.com>
5993
5994 * Makefile.in (SFILES): Add `probe' and `stap-probe'.
5995 (COMMON_OBS): Likewise.
5996 (HFILES_NO_SRCDIR): Add `probe'.
5997 * NEWS: Mention support for static and SystemTap probes.
5998 * amd64-tdep.c (amd64_init_abi): Initializing proper fields used by
5999 SystemTap probes' arguments parser.
6000 * arm-linux-tdep.c: Including headers needed to perform the parsing
6001 of SystemTap probes' arguments.
6002 (arm_stap_is_single_operand): New function.
6003 (arm_stap_parse_special_token): Likewise.
6004 (arm_linux_init_abi): Initializing proper fields used by SystemTap
6005 probes' arguments parser.
6006 * ax-gdb.c (require_rvalue): Removing static declaration.
6007 (gen_expr): Likewise.
6008 * ax-gdb.h (gen_expr): Declaring function.
6009 (require_rvalue): Likewise.
6010 * breakpoint.c: Include `gdb_regex.h' and `probe.h'.
6011 (bkpt_probe_breakpoint_ops): New variable.
6012 (momentary_breakpoint_from_master): Set the `probe' value.
6013 (add_location_to_breakpoint): Likewise.
6014 (break_command_1): Using proper breakpoint_ops according to the
6015 argument passed by the user in the command line.
6016 (bkpt_probe_insert_location): New function.
6017 (bkpt_probe_remove_location): Likewise.
6018 (bkpt_probe_create_sals_from_address): Likewise.
6019 (bkpt_probe_decode_linespec): Likewise.
6020 (tracepoint_probe_create_sals_from_address): Likewise.
6021 (tracepoint_probe_decode_linespec): Likewise.
6022 (tracepoint_probe_breakpoint_ops): New variable.
6023 (trace_command): Using proper breakpoint_ops according to the
6024 argument passed by the user in the command line.
6025 (initialize_breakpoint_ops): Initializing breakpoint_ops for
6026 static probes on breakpoints and tracepoints.
6027 * breakpoint.h (struct bp_location) <probe>: New field.
6028 * cli-utils.c (skip_spaces_const): New function.
6029 (extract_arg): Likewise.
6030 * cli-utils.h (skip_spaces_const): Likewise.
6031 (extract_arg): Likewise.
6032 * coffread.c (coff_sym_fns): Add `sym_probe_fns' value.
6033 * configure.ac: Append `stap-probe.o' to be generated when ELF
6034 support is present.
6035 * configure: Regenerate.
6036 * dbxread.c (aout_sym_fns): Add `sym_probe_fns' value.
6037 * elfread.c: Include `probe.h' and `arch-utils.h'.
6038 (probe_key): New variable.
6039 (elf_get_probes): New function.
6040 (elf_get_probe_argument_count): Likewise.
6041 (elf_evaluate_probe_argument): Likewise.
6042 (elf_compile_to_ax): Likewise.
6043 (elf_symfile_relocate_probe): Likewise.
6044 (stap_probe_key_free): Likewise.
6045 (elf_probe_fns): New variable.
6046 (elf_sym_fns): Add `sym_probe_fns' value.
6047 (elf_sym_fns_lazy_psyms): Likewise.
6048 (elf_sym_fns_gdb_index): Likewise.
6049 (_initialize_elfread): Initialize objfile cache for static
6050 probes.
6051 * gdb_vecs.h (struct probe): New forward declaration.
6052 (probe_p): New VEC declaration.
6053 * gdbarch.c: Regenerate.
6054 * gdbarch.h: Regenerate.
6055 * gdbarch.sh (stap_integer_prefix): New variable.
6056 (stap_integer_suffix): Likewise.
6057 (stap_register_prefix): Likewise.
6058 (stap_register_suffix): Likewise.
6059 (stap_register_indirection_prefix): Likewise.
6060 (stap_register_indirection_suffix): Likewise.
6061 (stap_gdb_register_prefix): Likewise.
6062 (stap_gdb_register_suffix): Likewise.
6063 (stap_is_single_operand): New function.
6064 (stap_parse_special_token): Likewise.
6065 (struct stap_parse_info): Forward declaration.
6066 * i386-tdep.c: Including headers needed to perform the parsing
6067 of SystemTap probes' arguments.
6068 (i386_stap_is_single_operand): New function.
6069 (i386_stap_parse_special_token): Likewise.
6070 (i386_elf_init_abi): Initializing proper fields used by SystemTap
6071 probes' arguments parser.
6072 * i386-tdep.h (i386_stap_is_single_operand): New function.
6073 (i386_stap_parse_special_token): Likewise.
6074 * machoread.c (macho_sym_fns): Add `sym_probe_fns' value.
6075 * mipsread.c (ecoff_sym_fns): Likewise.
6076 * objfiles.c (objfile_relocate1): Support relocation for static
6077 probes.
6078 * parse.c (prefixify_expression): Remove static declaration.
6079 (initialize_expout): Likewise.
6080 (reallocate_expout): Likewise.
6081 * parser-defs.h (initialize_expout): Declare function.
6082 (reallocate_expout): Likewise.
6083 (prefixify_expression): Likewise.
6084 * ppc-linux-tdep.c: Including headers needed to perform the parsing
6085 of SystemTap probes' arguments.
6086 (ppc_stap_is_single_operand): New function.
6087 (ppc_stap_parse_special_token): Likewise.
6088 (ppc_linux_init_abi): Initializing proper fields used by SystemTap
6089 probes' arguments parser.
6090 * probe.c: New file, for generic statically defined probe support.
6091 * probe.h: Likewise.
6092 * s390-tdep.c: Including headers needed to perform the parsing of
6093 SystemTap probes' arguments.
6094 (s390_stap_is_single_operand): New function.
6095 (s390_gdbarch_init): Initializing proper fields used by SystemTap
6096 probes' arguments parser.
6097 * somread.c (som_sym_fns): Add `sym_probe_fns' value.
6098 * stap-probe.c: New file, for SystemTap probe support.
6099 * stap-probe.h: Likewise.
6100 * symfile.h: Include `gdb_vecs.h'.
6101 (struct sym_probe_fns): New struct.
6102 (struct sym_fns) <sym_probe_fns>: New field.
6103 * symtab.c (init_sal): Initialize `probe' field.
6104 * symtab.h (struct probe): Forward declaration.
6105 (struct symtab_and_line) <probe>: New field.
6106 * tracepoint.c (start_tracing): Adjust semaphore on breakpoints
6107 locations.
6108 (stop_tracing): Likewise.
6109 * xcoffread.c (xcoff_sym_fns): Add `sym_probe_fns' value.
6110
22d2b532
SDJ
61112012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
6112 Tom Tromey <tromey@redhat.com>
6113
6114 * ax-gdb.c (gen_expr): Clean up code to handle internal variables
6115 and to compile agent expressions.
6116 * infrun.c (siginfo_make_value): New argument `ignore'.
6117 (siginfo_funcs): New struct.
6118 (_initialize_infrun): New argument when calling
6119 `create_internalvar_type_lazy'.
6120 * thread.c (thread_id_make_value): New argument `ignore'.
6121 (thread_funcs): New struct.
6122 (_initialize_thread): New argument when calling
6123 `create_internalvar_type_lazy'.
6124 * tracepoint.c (sdata_make_value): New argument `ignore'.
6125 (sdata_funcs): New struct.
6126 (_initialize_tracepoint): New argument when calling
6127 `create_internalvar_type_lazy'.
6128 * value.c (make_value): New struct.
6129 (create_internalvar_type_lazy): New argument `data'.
6130 (compile_internalvar_to_ax): New function.
6131 (value_of_internalvar): Properly handling `make_value' case.
6132 (clear_internalvar): Likewise.
6133 (show_convenience): Adding `TRY_CATCH' block.
6134 * value.h (internalvar_make_value): Delete, replace by...
6135 (struct internalvar_funcs): ... this.
6136 (create_internalvar_type_lazy) <fun>: Delete argument.
6137 (create_internalvar_type_lazy) <funcs>, <data>: New arguments.
6138 (compile_internalvar_to_ax): New function.
6139 * windows-tdep.c (tlb_make_value): New argument `ignore'.
6140 (tlb_funcs): New struct.
6141 (_initialize_windows_tdep): New argument when calling
6142 `create_internalvar_type_lazy'.
6143
91da1414
MW
61442012-04-27 Mark Wielaard <mjw@redhat.com>
6145
6146 * dwarf2read.c (dwarf2_get_pc_bounds): Check DW_AT_high_pc form to
6147 see whether it is an address or a constant offset from DW_AT_low_pc.
6148 (dwarf2_record_block_ranges): Likewise.
6149 (read_partial_die): Likewise.
6150
4ab9d8ec
MW
61512012-04-26 Mark Wielaard <mjw@redhat.com>
6152
6153 * MAINTAINERS (Write After Approval): Add myself to the list.
6154
a0911fd0
MR
61552012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
6156
6157 * proc-utils.h (proc_prettyprint_signalset): New prototype.
6158 (proc_prettyprint_signal): Likewise.
6159 (proc_prettyprint_faultset): Likewise.
6160 (proc_prettyprint_fault): Likewise.
6161 (proc_prettyprint_actionset): Likewise.
6162 (proc_prettyprint_flags): Move to new proc-flags.c section.
6163 (proc_prettyfprint_flags): New prototype.
6164 * procfs.c (proc_nsysarg, proc_sysargs): Add prototypes.
6165 (proc_syscall, proc_cursig): Likewise.
6166 (proc_set_kill_on_last_close): Likewise.
6167 (proc_unset_kill_on_last_close): Likewise.
6168 (proc_set_watchpoint): Make static.
6169 (proc_delete_dead_threads): Likewise.
6170 (procfs_set_watchpoint): Likewise.
6171 (_initialize_procfs): Add prototype.
6172 * proc-events.c: Include proc-utils.h.
6173 (init_syscall_table): Make static.
6174 * proc-api.c (_initialize_proc_api): Add prototype.
6175 * proc-flags.c: Include proc-utils.h.
6176
9009e1ae
MR
61772012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
6178
6179 * configure.ac: Add AC_ARG_PROGRAM.
6180 * configure: Regenerate.
6181
4fae6e18
JK
61822012-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
6183
6184 Fix DW_AT_lower_bound defaults for DWARF-4+.
6185 * dwarf2read.c (read_subrange_type): Remove initialization of low and
6186 high. New variable low_default_is_valid. Implement DWARF-4+
6187 DW_AT_lower_bound defaults. Print complaint for DW_AT_lower_bound with
6188 no default by the DWARF standard.
6189
14132e89 61902012-04-26 Maciej W. Rozycki <macro@mips.com>
f782ad9b 6191 Maciej W. Rozycki <macro@codesourcery.com>
14132e89
MR
6192
6193 * infrun.c (handle_inferior_event): Move the check for return
6194 trampolines ahead of the check for function trampolines.
6195 * mips-tdep.h (MIPS_S2_REGNUM, MIPS_GP_REGNUM): New macros.
6196 * mips-tdep.c (mips_str_mips16_call_stub): New variable.
6197 (mips_str_mips16_ret_stub): Likewise.
6198 (mips_str_call_fp_stub): Likewise.
6199 (mips_str_call_stub): Likewise.
6200 (mips_str_fn_stub): Likewise.
6201 (mips_str_pic): Likewise.
6202 (mips_in_frame_stub): New function.
6203 (mips_unwind_pc): Return the return address rather than the PC
6204 if the PC of an intermediate frame is inside a call thunk.
6205 (mips_is_stub_suffix): New function.
6206 (mips_is_stub_mode): Likewise.
6207 (mips_get_mips16_fn_stub_pc): Likewise.
6208 (mips_skip_mips16_trampoline_code): Update to handle all the
6209 currently generated stub types. Don't recurse into __fn_stub
6210 thunks. Remove heuristics to handle stubs beyond etext/_etext.
6211 Use cooked register accesses.
6212 (mips_in_return_stub): Reintroduce function.
6213 (mips_skip_trampoline_code): Traverse trampolines recursively.
6214 (mips_gdbarch_init): Handle MIPS16 return trampolines.
6215
518f0db5 62162012-04-26 Joel Brobecker <brobecker@adacore.com>
6217
6218 GDB 7.4.1 released.
6219
3184d3f9
JL
62202012-04-26 Jonathan Larmour <jifl@eCosCentric.com>
6221
6222 * arm-tdep.h (VFP_REGISTER_SIZE): Define.
6223 * features/arm-with-m-vfp-d16.xml: New file. Describes
6224 Cortex-M with VFPv4-sp-d16 FPU register layout.
6225 * features/Makefile (WHICH): Add arm-with-m-vfp-d16.
6226 * features/arm-with-m-vfp-d16.c: New. Generated from above.
6227 * arm-tdep.c: Include arm-with-m-vfp-d16.c.
6228 (arm-register_g_packet_guesses): Add vfp-d16 guess.
6229 (_initialise_arm_tdep): Initialize arm-with-m-vfp-d16 tdesc.
6230
b6201d44
DE
62312012-04-25 Doug Evans <dje@google.com>
6232
6233 * cli/cli-decode.c (print_doc_line): Use stream instead of
6234 current_uiout.
6235
4e2f8df6
SDJ
62362012-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
6237
6238 * features/arm-with-iwmmxt.c: Regenerate.
6239 * features/arm-with-m-fpa-layout.c: Likewise.
6240 * features/arm-with-m.c: Likewise.
6241 * features/arm-with-neon.c: Likewise.
6242 * features/arm-with-vfpv2.c: Likewise.
6243 * features/arm-with-vfpv3.c: Likewise.
6244 * features/mips-dsp-linux.c: Likewise.
6245 * features/mips-linux.c: Likewise.
6246 * features/mips64-dsp-linux.c: Likewise.
6247 * features/mips64-linux.c: Likewise.
6248 * features/s390-linux32.c: Likewise.
6249 * features/s390-linux32v1.c: Likewise.
6250 * features/s390-linux32v2.c: Likewise.
6251 * features/s390-linux64.c: Likewise.
6252 * features/s390-linux64v1.c: Likewise.
6253 * features/s390-linux64v2.c: Likewise.
6254 * features/s390x-linux64.c: Likewise.
6255 * features/s390x-linux64v1.c: Likewise.
6256 * features/s390x-linux64v2.c: Likewise.
6257 * features/tic6x-c62x-linux.c: Likewise.
6258 * features/tic6x-c62x.c: Likewise.
6259 * features/tic6x-c64x-linux.c: Likewise.
6260 * features/tic6x-c64x.c: Likewise.
6261 * features/tic6x-c64xp-linux.c: Likewise.
6262 * features/tic6x-c64xp.c: Likewise.
6263 * target-descriptions.c: Only generate `field_type' and `type'
6264 variables when needed.
6265
2def3e66
JB
62662012-04-25 Fredrik Hederstierna <fredrikh.hederstierna@securitas-direct.com>
6267
6268 * cli/cli-cmds.c (cd_command): Use memmove instead of strcpy.
6269
a766d390
DE
62702012-04-25 Doug Evans <dje@google.com>
6271
6272 Initial pass at Go language support.
6273 * NEWS: Mention Go.
6274 * Makefile.in (SFILES): Add go-exp.y, go-lang.c, go-typeprint.c,
6275 go-valprint.c.
6276 (COMMON_OBS): Add go-lang.o, go-val.print.o, go-typeprint.o.
6277 (YYFILES): Add go-exp.c.
6278 (YYOBJ): Add go-exp.o.
6279 (local-maintainer-clean): Delete go-exp.c.
6280 * defs.h (enum language): Add language_go.
6281 * dwarf2read.c: #include "go-lang.h".
6282 (fixup_go_packaging): New function.
6283 (process_full_comp_unit): Call it when processing Go CUs.
6284 (dwarf2_physname): Add Go support.
6285 (read_file_scope): Handle missing language spec for GNU Go.
6286 (set_cu_language): Handle DW_LANG_Go.
6287 * go-exp.y: New file.
6288 * go-lang.h: New file.
6289 * go-lang.c: New file.
6290 * go-typeprint.c: New file.
6291 * go-valprint.c: New file.
6292 * symtab.c: #include "go-lang.h".
6293 (symbol_set_language): Handle language_go.
6294 (symbol_find_demangled_name, symbol_set_names): Ditto.
6295 (symbol_natural_name, demangle_for_lookup, find_main_name): Ditto.
6296
4e2af517
JM
62972012-04-24 Jim Meyering <meyering@redhat.com>
6298
6299 avoid a few strncpy-induced buffer overruns
6300 * procfs.c (procfs_make_note_section): Be sure to NUL-terminate
6301 fname and psargs before trying to concatenate.
6302 * tui/tui-stack.c (tui_get_function_from_frame): NUL-terminate
6303 "name" before applying strchr.
6304
b77b7f52
SCR
63052012-04-25 Siva Chandra Reddy <sivachandra@google.com>
6306
6307 * CONTRIBUTE: Use unified diff instead of context diff when
6308 generating patches.
6309
6321c22a
MR
63102012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
6311
6312 * mips-tdep.c (mips_about_to_return): Remove dead MIPS16 support
6313 code. Handle JR.HB correctly.
6314
742c84f6
MR
63152012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
6316
6317 * mips-tdep.c
6318 (is_mips16_addr, unmake_mips16_addr, make_mips16_addr): Group
6319 with the other MIPS16 helpers.
6320
7fc7e0c3
SDJ
63212012-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
6322
6323 * observer.sh: Conditionally declare `args', thus cleaning up
6324 unused instances of this variable.
6325
20388dd6
YQ
63262012-04-24 Yao Qi <yao@codesourcery.com>
6327
6328 Revert this patch to allow breakpoint always-inserted
6329 in record target.
6330 2011-12-05 Pedro Alves <pedro@codesourcery.com>
f782ad9b
AS
6331 * breakpoint.c: Include record.h.
6332 (breakpoints_always_inserted_mode): Return false when the record
6333 target is in use.
20388dd6
YQ
6334
6335 * breakpoint.c (iterate_over_bp_locations): New.
6336 * breakpoint.h: Declare.
6337 New typedef walk_bp_location_callback.
6338 * record.c (record_open): Call record_init_record_breakpoints.
6339 (record_sync_record_breakpoints): New.
6340 (record_init_record_breakpoints): New.
6341 * NEWS: Mention supporting breakpoint always-inserted mode in
6342 record target.
6343
4734f50e
MK
63442012-04-24 Marc Khouzam <marc.khouzam@ericsson.com>
6345
6346 * mi/mi-main.c (mi_cmd_execute): Choose a live thread not just
6347 any thread.
6348
c326b90e
YQ
63492012-04-24 Yao Qi <yao@codesourcery.com>
6350
6351 * breakpoint.c (ep_is_catchpoint): Renamed to ...
6352 (is_catchpoint): ... it.
6353 (print_one_breakpoint_location): Caller update.
6354 * breakpoint.h: Update declaration.
6355
d8fb5a1e
DM
63562012-04-23 David S. Miller <davem@davemloft.net>
6357
6358 * configure.tgt (sparc-*-linux*): Set build_gdbserver to yes.
6359
34431a2a
TT
63602012-04-23 Tom Tromey <tromey@redhat.com>
6361
6362 * buildsym.c (add_free_pendings): Remove.
6363 * buildsym.h (add_free_pendings): Remove.
6364
4568ecf9
DE
63652012-04-23 Doug Evans <dje@google.com>
6366
6367 * dwarf2read.c (partial_die_full_name): Record DW_FORM_ref_addr in
6368 attr.u.unsnd instead of attr.u.addr.
6369 (read_attribute_value) Ditto for cases DW_FORM_ref_addr,
6370 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4, DW_FORM_reg8,
6371 DW_FORM_ref_udata.
6372 (dump_die_shallow): Update cases DW_FORM_ref_addr,
6373 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4. Add cases DW_FORM_ref8,
6374 DW_FORM_ref_udata.
6375 (dwarf2_get_ref_die_offset): Use DW_UNSND for reference attributes.
6376
dca9aa3a
MR
63772012-04-23 Maciej W. Rozycki <macro@codesourcery.com>
6378
6379 * mips-tdep.c (mips_n32n64_return_value): Fix coding style.
6380 (mips_o32_return_value): Likewise.
6381 (mips_o64_return_value): Likewise.
6382
c8ea1972
PH
63832012-04-21 Paul Hilfinger <hilfinger@adacore.com>
6384
6385 * ada-lang.c (ada_evaluate_subexp): Add cases for
f782ad9b
AS
6386 TYPE_CODE_INTERNAL_FUNCTION and for TYPE_GNU_IFUNC, following
6387 their treatment in eval.c.
c8ea1972 6388
8d1b3521
DM
63892012-04-21 David S. Miller <davem@davemloft.net>
6390
6391 * sparc-tdep.c (X_DISP10): Define.
6392 (sparc_analyze_control_transfer): Handle compare-and-branch.
6393
03145bf4
JL
63942012-04-21 Jonathan Larmour <jifl@eCosCentric.com>
6395
6396 * features/Makefile (WHICH): Add arm-with-m and arm-with-m-fpa-layout.
6397 * arm-tdep.c (arm_register_g_packet_guesses): Fix comment.
6398
004159a2 63992012-04-20 Nigel Stephens <nigel@mips.com>
f782ad9b 6400 Maciej W. Rozycki <macro@codesourcery.com>
004159a2
MR
6401
6402 * mips-tdep.c (mips_float_register_p): New function.
6403 (mips_convert_register_float_case_p): Use mips_float_register_p.
6404 (mips_register_type): Likewise.
6405 (mips_print_register): Likewise.
6406 (print_gp_register_row): Likewise.
6407 (mips_print_registers_info): Likewise.
6408
7f0e6aae
MR
64092012-04-20 Shun-Yen Lu <dark.asparagus@gmail.com>
6410
6411 * mips-tdep.c (mips_elf_make_msymbol_special): Fix identification
6412 of mips16 symbols.
6413
bc17beea
AP
64142012-04-20 Andrew Pinski <apinski@cavium.com>
6415
6416 * MAINTAINERS (Write After Approval): Add myself to the list.
6417
1730a5a5
SDJ
64182012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
6419
6420 * MAINTAINERS: Update my e-mail address.
6421
38ea300a
PA
64222012-04-20 Pedro Alves <palves@redhat.com>
6423
6424 * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Handle absolute
6425 $srcdir.
6426 * configure: Regenerate.
6427
111dfaae
SDJ
64282012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
6429
6430 * cp-support.h: Include `gdb_vecs.h'. Delete `const_char_ptr' VEC
6431 declaration.
6432 * gdb_vecs.h: Declare `const_char_ptr' VEC.
6433
4fb2c64a
JK
64342012-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6435
6436 Fix compilation compatibility with python-2.4
6437 * python/py-type.c (convert_field): Cast ADDRSTRING for
6438 PyObject_SetAttrString as non-const. New comment.
6439
6328eb38
TT
64402012-04-19 Tom Tromey <tromey@redhat.com>
6441
6442 * top.c (quit_target): Use all_cleanups.
6443 * main.c (captured_command_loop): Use all_cleanups.
6444 * exceptions.c (throw_exception): Use all_cleanups.
6445
c971b7fa
PA
64462012-04-19 Pedro Alves <palves@redhat.com>
6447
6448 * Makefile.in (GNULIB_BUILDDIR): New.
6449 (LIBGNU, INCGNU, GNULIB_H): Adjust.
6450 (SUBDIRS): Add $(GNULIB_BUILDDIR).
6451 (CLEANDIRS). Remove gnulib/import.
6452 (REQUIRED_SUBDIRS): Replace gnulib/import with $(GNULIB_BUILDDIR).
6453 (all-lib): Ditto.
6454 (distclean): Remove the $(GNULIB_BUILDDIR) directory.
6455 (gnulib/import/Makefile): Replace gnulib/import with
6456 $(GNULIB_BUILDDIR). Set CONFIG_FILES to just Makefile.
6457 (ACLOCAL_AMFLAGS): Remove '-I gnulib/import/m4'.
6458 (aclocal_m4_deps): Remove the gnulib dependencies. Add
6459 acx_configure_dir.m4.
6460 * acinclude.m4: Include acx_configure_dir.m4.
6461 * acx_configure_dir.m4: New file.
6462 * aclocal.m4: Regenerate.
a09130f9
PA
6463 * configure.ac: Remove gl_EARLY, gl_INIT and AM_INIT_AUTOMAKE
6464 calls. Configure gnulib using ACX_CONFIGURE_DIR.
6465 (GNULIB): New variable.
6466 (GNULIB_STDINT_H): Adjust.
6467 (AC_OUTPUT): Don't output gnulib/Makefile.
6468 * gdb/defs.h: Include build-gnulib/config.h.
6469 * aclocal.m4: Regenerate.
6470 * config.in: Regenerate.
6471 * configure: Regenerate.
6472
6473 * gnulib/Makefile.in: New file.
6474 * gnulib/configure.ac: New file.
6475 * gnulib/aclocal.m4: New file.
6476 * gnulib/config.in: New file.
6477 * gnulib/configure: New file.
c971b7fa
PA
6478 * gnulib/: Re-run gnulib-tool to adjust.
6479
b10faa68
DE
64802012-04-19 Doug Evans <dje@google.com>
6481
6482 * cleanups.h (struct cleanup): Move to cleanups.c.
6483 (make_cleanup_dtor_ftype): New typedef.
6484 (make_cleanup_dtor): Use it.
6485 (ALL_CLEANUPS): Replace with ...
6486 (all_cleanups): ... this. Declare. All uses updated.
6487 * cleanups.c: #include "gdb_assert.h".
6488 (sentinel_cleanup): New static global.
6489 (SENTINEL_CLEANUP): Define.
6490 (cleanup_chain, final_cleanup_chain): Initialize to SENTINEL_CLEANUP.
6491 (make_my_cleanup2): Assert result is non-NULL.
6492 (all_cleanups): New function.
6493 (save_my_cleanups): Initialize new chain to SENTINEL_CLEANUP instead
6494 of NULL.
6495
d8c267cc
PA
64962012-04-19 Pedro Alves <palves@redhat.com>
6497
6498 * Makefile.in (HFILES_NO_SRCDIR): Remove gnulib/wchar.in.h.
6499 Adjust paths to gnulib imported files.
6500
809277f8
PA
65012012-04-19 Pedro Alves <palves@redhat.com>
6502
6503 * gnulib/: Move whole directory ...
6504 * gnulib/import/: ... here, and re-rerun gnulib-tool to adjust.
6505 * Makefile.in (LIBGNU, INCGNU, GNULIB_H, CLEANDIRS)
6506 (REQUIRED_SUBDIRS, all-lib, gnulib/Makefile, ACLOCAL_AMFLAGS)
6507 (aclocal_m4_deps): Adjust.
6508 * aclocal.m4: Regenerate.
6509 * configure: Regenerate.
6510 * configure.ac: Adjust AC_OUTPUT output.
6511
aad9eab9
YQ
65122012-04-19 Yao Qi <yao@codesourcery.com>
6513
6514 * Makefile.in (SFILES): Add common/vec.c and remove vec.c.
6515 (vec.o): New rule.
6516 * vec.c: Move it ...
6517 * common/vec.c: ... here.
6518 * vec.h: Move it ...
6519 * common/vec.h: ... here.
6520
48fe4669
YQ
65212012-04-19 Yao Qi <yao@codesourcery.com>
6522
6523 * gdb-code-style.el: New.
6524
770d76d7
PA
65252012-04-18 Pedro Alves <palves@redhat.com>
6526
6527 Update gnulib from latest git.
6528 (639ea5ae15e39fe48d43e04864b2997301e4b969)
6529
6530 * gnulib/Makefile.am: Update.
6531 * gnulib/dummy.c: Update.
6532 * gnulib/extra/arg-nonnull.h: Update.
6533 * gnulib/extra/c++defs.h: Update.
6534 * gnulib/extra/update-copyright: Update.
6535 * gnulib/extra/warn-on-use.h: Update.
6536 * gnulib/inttypes.in.h: Update.
6537 * gnulib/m4/00gnulib.m4: Update.
6538 * gnulib/m4/extensions.m4: Update.
6539 * gnulib/m4/gnulib-cache.m4: Update.
6540 * gnulib/m4/gnulib-common.m4: Update.
6541 * gnulib/m4/gnulib-comp.m4: Update.
6542 * gnulib/m4/gnulib-tool.m4: Update.
6543 * gnulib/m4/include_next.m4: Update.
6544 * gnulib/m4/inttypes-pri.m4: Update.
6545 * gnulib/m4/inttypes.m4: Update.
6546 * gnulib/m4/longlong.m4: Update.
6547 * gnulib/m4/memchr.m4: Update.
6548 * gnulib/m4/memmem.m4: Update.
6549 * gnulib/m4/mmap-anon.m4: Update.
6550 * gnulib/m4/multiarch.m4: Update.
6551 * gnulib/m4/onceonly.m4: Update.
6552 * gnulib/m4/stddef_h.m4: Update.
6553 * gnulib/m4/stdint.m4: Update.
6554 * gnulib/m4/string_h.m4: Update.
6555 * gnulib/m4/warn-on-use.m4: Update.
6556 * gnulib/m4/wchar_h.m4: Update.
6557 * gnulib/m4/wchar_t.m4: Update.
6558 * gnulib/m4/wint_t.m4: Update.
6559 * gnulib/memchr.c: Update.
6560 * gnulib/memmem.c: Update.
6561 * gnulib/stddef.in.h: Update.
6562 * gnulib/stdint.in.h: Update.
6563 * gnulib/str-two-way.h: Update.
6564 * gnulib/string.in.h: Update.
6565 * gnulib/wchar.in.h: Update.
6566
6567 * gnulib/extra/arg-nonnull.h: Delete.
6568 * gnulib/extra/c++defs.h: Delete.
6569 * gnulib/extra/warn-on-use.h: Delete.
6570 * gnulib/m4/wchar_h.m4: Delete.
6571 * gnulib/m4/wint_t.m4: Delete.
6572 * gnulib/wchar.in.h: Delete.
6573
6574 * gnulib/extra/snippets/arg-nonnull.h: New.
6575 * gnulib/extra/snippets/c++defs.h: New.
6576 * gnulib/extra/snippets/warn-on-use.h: New.
6577
6578 * aclocal.m4: Regenerate.
6579 * config.in: Regenerate.
6580 * configure: Regenerate.
6581 * gnulib/Makefile.in: Regenerate.
6582
174e088e
PA
65832012-04-18 Pedro Alves <palves@redhat.com>
6584
6585 Reimport the update-copyright module from gnulib
6586 (250b80067c1e1d8faa0c42fb572f721975b929c5).
6587
6588 * configure: Regenerate.
6589 * gnulib/Makefile.am: Update.
6590 * gnulib/Makefile.in: Regenerate.
6591 * gnulib/extra/update-copyright: Update.
6592 * gnulib/m4/gnulib-cache.m4: Update.
6593 * gnulib/m4/gnulib-comp.m4: Update.
6594
7f533142
JB
65952012-04-18 Tristan Gingold <gingold@adacore.com>
6596
6597 * configure.ac (aix): Put -lpthread into libs.
6598 * configure: Regenerate.
6599
001822aa
TT
66002012-04-18 Tom Tromey <tromey@redhat.com>
6601
6602 * linespec.c (convert_linespec_to_sals): Don't use
6603 SYMBOL_OBJ_SECTION.
6604 (compare_msymbols): Arguments are minsym_and_objfile, not
6605 minimal_symbol*. Don't use SYMBOL_OBJ_SECTION.
6606
db026a31
PA
66072012-04-18 Pedro Alves <palves@redhat.com>
6608
6609 Revert gnulib/ part of:
6610 2011-01-01 Joel Brobecker <brobecker@adacore.com>
6611 Copyright year update in most files (performed by copyright.sh).
6612
12df843f
JK
66132012-04-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6614
6615 Fix 64-bit constants on 32-bit hosts.
6616 * dwarf2read.c (read_unsigned_leb128): Change declaration return type
6617 from unsigned long to ULONGEST.
6618 (read_signed_leb128): Change declaration return type from long to
6619 LONGEST.
6620 (dwarf2_const_value_attr): Change declaration parameter value from long
6621 to LONGEST.
6622 (dwarf2_compute_name): Change variable value from long to LONGEST.
6623 (read_unsigned_leb128): Change return type, variable result and some
6624 casts from unsigned long to ULONGEST.
6625 (read_signed_leb128): Change return type, variable result and some
6626 casts from long to LONGEST.
6627 (dwarf2_const_value_data, dwarf2_const_value_attr): Change parameter
6628 value from long to LONGEST.
6629 (dwarf2_const_value): Change variable value from long to LONGEST.
6630 * symmisc.c (print_symbol): Change SYMBOL_VALUE format strings to use
6631 plongest and hex_string.
6632 * symtab.h (struct general_symbol_info): Change ivalue from long to
6633 LONGEST, remove the comment.
6634 * tracepoint.c (validate_actionline, collect_symbol, scope_info):
6635 Change SYMBOL_VALUE format strings to use plongest and hex_string.
6636
14e75d8e
JK
66372012-04-18 Siddhesh Poyarekar <siddhesh@redhat.com>
6638
6639 PR symtab/7259:
6640 * ada-exp.y (convert_char_literal): Use TYPE_FIELD_ENUMVAL.
6641 * ada-lang.c (ada_discrete_type_high_bound)
ac4ea3c2
JK
6642 (ada_discrete_type_low_bound): Fix function comment. Use
6643 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
14e75d8e
JK
6644 (ada_identical_enum_types_p): Use TYPE_FIELD_ENUMVAL.
6645 (pos_atr, value_val_atr): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6646 * ada-typeprint.c (print_enum_type): Change variable lastval to LONGEST.
6647 Use TYPE_FIELD_ENUMVAL.
6648 * ada-valprint.c (print_optional_low_bound, ada_print_scalar)
6649 (ada_val_print_1): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6650 * c-typeprint.c (c_type_print_base): Move variable lastval to inner
6651 block, change it to LONGEST. Use TYPE_FIELD_ENUMVAL for
6652 TYPE_CODE_ENUM.
6653 * coffread.c (coff_read_enum_type): Use SET_FIELD_ENUMVAL.
6654 * dwarf2read.c (process_enumeration_scope): Likewise.
6655 * gdb-gdb.py (TypeFlagsPrinter): Use field.enumval instead of
6656 field.bitpos.
6657 (class StructMainTypePrettyPrinter): Support also
6658 FIELD_LOC_KIND_ENUMVAL.
6659 * gdbtypes.c (get_discrete_bounds): Use TYPE_FIELD_ENUMVAL for
6660 TYPE_CODE_ENUM.
6661 (recursive_dump_type): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6662 (copy_type_recursive): Support also FIELD_LOC_KIND_ENUMVAL.
6663 * gdbtypes.h (enum field_loc_kind): New FIELD_LOC_KIND_ENUMVAL.
6664 (struct main_type.flds_bnds.fields.loc): Adjust bitpos comment. New
6665 field enumval.
6666 (struct main_type.flds_bnds.bields): Adjust loc_kind and bitsize to
6667 accommodate enumval.
6668 (struct call_site): Adjust loc_kind to accommodate enumval.
6669 (FIELD_ENUMVAL, FIELD_ENUMVAL_LVAL, SET_FIELD_ENUMVAL)
6670 (TYPE_FIELD_ENUMVAL): New macros.
6671 * m2-typeprint.c (m2_enum): Use TYPE_FIELD_ENUMVAL.
6672 * mdebugread.c (parse_symbol): Use TYPE_FIELD_ENUMVAL for
6673 TYPE_CODE_ENUM.
6674 * p-typeprint.c (pascal_type_print_base): Likewise.
6675 * python/lib/gdb/printing.py (class FlagEnumerationPrinter): Use
6676 enumval.
6677 * python/lib/gdb/types.py (make_enum_dict): Likewise.
6678 * python/py-type.c (convert_field): New variable addrstring. Use
6679 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6680 (check_types_equal): Support also FIELD_LOC_KIND_ENUMVAL.
6681 * stabsread.c (read_enum_type): Use SET_FIELD_ENUMVAL.
6682 * typepint.c (print_type_scalar): Use TYPE_FIELD_ENUMVAL for
6683 TYPE_CODE_ENUM.
6684 * valprint.c (generic_val_print): Likewise.
6685
380bca97
DE
66862012-04-17 Doug Evans <dje@google.com>
6687
dcc07052
DE
6688 * dwarf2read.c (lookup_signatured_type): Return NULL instead of 0.
6689
380bca97
DE
6690 * dwarf2read.c: Whitespace fixes.
6691 (lookup_signatured_type): Tweak comment.
6692 (get_die_type_at_offset): Fix comment.
6693
ec92004f
JB
66942012-04-17 Joel Brobecker <brobecker@adacore.com>
6695
6696 * xcoffread.c (xcoff_secnum_to_sections): New function.
6697 (secnum_to_section, secnum_to_bfd_section): Reimplement
6698 using xcoff_secnum_to_sections. Rename "secnum" parameter
6699 into "n_scnum".
6700 (RECORD_MINIMAL_SYMBOL): Delete.
6701 (record_minimal_symbol): New function.
6702 (scan_xcoff_symtab): Replace uses of RECORD_MINIMAL_SYMBOL
6703 by call to record_minimal_symbol and set misc_func_recorded
6704 to 1. Set last_csect_sec to the XCOFF section index instead
6705 of GDB's section_offset index. Update calls to
6706 prim_record_minimal_symbol_and_info to pass the BFD section
6707 as well.
6708
40301fb7
JB
67092012-04-17 Joel Brobecker <brobecker@adacore.com>
6710
6711 * xcoffread.c (read_xcoff_symtab): Delete variables
6712 last_csect_val and last_csect_sec and associated code.
6713
e0088cfd
DE
67142012-04-17 Doug Evans <dje@google.com>
6715
58d5e2c3
DE
6716 * cleanups.c (make_my_cleanup,make_my_cleanup2): Make static.
6717 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
6718 * cleanups.h (make_my_cleanup,make_my_cleanup2): Delete
6719 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Delete.
6720
c27f5738
DE
6721 * cleanups.h: New file.
6722 * cleanups.c: New file.
6723 * Makefile.in (SFILES): Add cleanups.c.
6724 (HFILES_NO_SRCDIR): Add cleanups.h.
6725 (COMMON_OBS): Add cleanups.o.
6726 * defs.h (struct cleanup): Moved to cleanups.h.
6727 (do_cleanups,do_final_cleanups): Ditto.
6728 (discard_cleanups,discard_final_cleanups): Ditto
6729 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
6730 (save_cleanups,save_final_cleanups): Ditto.
6731 (restore_cleanups,restore_final_cleanups): Ditto.
6732 (null_cleanup): Ditto.
6733 (make_my_cleanup,make_my_cleanup2): Ditto.
6734 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
6735 * utils.c (cleanup_chain,final_cleanup_chain): Moved to cleanups.c.
6736 (do_cleanups,do_final_cleanups): Ditto.
6737 (discard_cleanups,discard_final_cleanups): Ditto
6738 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
6739 (save_cleanups,save_final_cleanups): Ditto.
6740 (restore_cleanups,restore_final_cleanups): Ditto.
6741 (null_cleanup): Ditto.
6742 (make_my_cleanup,make_my_cleanup2): Ditto.
6743 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
6744
e0088cfd
DE
6745 * utils.c (make_cleanup_freeargv): Use make_cleanup instead of
6746 make_my_cleanup.
6747 (make_cleanup_dyn_string_delete): Ditto.
6748 (make_cleanup_ui_file_delete): Ditto.
6749 (make_cleanup_ui_out_redirect_pop): Ditto.
6750 (make_cleanup_free_section_addr_info): Ditto.
6751 (make_cleanup_restore_integer): Ditto.
6752 (make_cleanup_unpush_target): Ditto.
6753 (make_cleanup_value_free_to_mark): Ditto.
6754 (make_cleanup_value_free): Ditto.
6755 (make_cleanup_free_so): Ditto.
6756
4dc84fd1
JK
67572012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6758
6759 New option "set debug auto-load".
6760 * NEWS: New commands "set debug auto-load" and "show debug auto-load".
6761 * auto-load.c (debug_auto_load, show_debug_auto_load: New.
6762 (auto_load_safe_path_vec_update)
6763 (filename_is_in_auto_load_safe_path_vec): Call fprintf_unfiltered
6764 if DEBUG_AUTO_LOAD.
6765 (file_is_auto_load_safe): New parameters debug_fmt and ....
6766 Call fprintf_unfiltered if DEBUG_AUTO_LOAD.
6767 (source_gdb_script_for_objfile): Extend the file_is_auto_load_safe
6768 caller by explanatory string.
6769 (_initialize_auto_load): Register "set debug auto-load".
6770 * auto-load.h (file_is_auto_load_safe): New parameters debug_fmt
6771 and ....
6772 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
6773 (try_thread_db_load_from_dir): Extend the file_is_auto_load_safe caller
6774 by explanatory string.
6775 * main.c (captured_main): Likewise.
6776 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
6777 (source_section_scripts): Likewise.
6778
bccbefd2
JK
67792012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6780
6781 New option "set auto-load safe-path".
6782 * NEWS: New commands "set auto-load safe-path"
6783 and "show auto-load safe-path".
6784 * auto-load.c: Include gdb_vecs.h, readline/tilde.h and completer.h.
6785 (auto_load_safe_path, auto_load_safe_path_vec)
6786 (auto_load_safe_path_vec_update, set_auto_load_safe_path)
6787 (show_auto_load_safe_path, add_auto_load_safe_path, filename_is_in_dir)
6788 (filename_is_in_auto_load_safe_path_vec, file_is_auto_load_safe): New.
6789 (source_gdb_script_for_objfile): New variable is_safe. Call
6790 file_is_auto_load_safe. Return if it is not.
6791 (struct loaded_script): New field loaded.
6792 (maybe_add_script): Add parameter loaded. Initialize SLOT with it.
6793 (print_script): Use LOADED indicator instead of FULL_PATH. Change
6794 output "Missing" to "No".
6795 (_initialize_auto_load): New variable cmd. Initialize
6796 auto_load_safe_path. Register "set auto-load safe-path",
6797 "show auto-load safe-path" and "add-auto-load-safe-path".
6798 * auto-load.h (maybe_add_script): Add parameter loaded.
6799 (file_is_auto_load_safe): New declaration.
6800 * config.in: Regenerate.
6801 * configure: Regenerate.
6802 * configure.ac: New parameters --with-auto-load-safe-path
6803 and --without-auto-load-safe-path.
6804 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
6805 (try_thread_db_load_from_dir): Check file_is_auto_load_safe first.
6806 * main.c (captured_main): Check file_is_auto_load_safe for
6807 LOCAL_GDBINIT.
6808 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile): New
6809 variable is_safe. Call file_is_auto_load_safe. Return if it is not.
6810 (source_section_scripts): Call file_is_auto_load_safe. Return if it is
6811 not.
6812
bf88dd68
JK
68132012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6814
6815 auto-load: Implementation.
6816 * NEWS: New descriptions for "info auto-load",
6817 "info auto-load gdb-scripts", "info auto-load python-scripts",
6818 "info auto-load local-gdbinit" and "info auto-load libthread-db".
6819 Deprecate "info auto-load-scripts", "set auto-load-scripts on|off"
6820 and "show auto-load-scripts". New description for "set auto-load",
6821 "show auto-load", "set auto-load gdb-scripts",
6822 "show auto-load gdb-scripts", "set auto-load python-scripts",
6823 "show auto-load python-scripts", "set auto-load local-gdbinit",
6824 "show auto-load local-gdbinit", "set auto-load libthread-db" and
6825 "show auto-load libthread-db".
6826 * auto-load.c: Remove include python/python-internal.h. Add includes
6827 exceptions.h, cli/cli-script.h, gdbcmd.h, cli/cli-decode.h and
6828 cli/cli-setshow.h.
6829 (GDB_AUTO_FILE_NAME, source_gdb_script_for_objfile)
6830 (auto_load_gdb_scripts, show_auto_load_gdb_scripts): New.
6831 (gdbpy_global_auto_load): Rename to ...
6832 (global_auto_load): ... here.
6833 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
6834 (auto_load_local_gdbinit_loaded, show_auto_load_local_gdbinit)
6835 (script_language_gdb, source_gdb_script_for_objfile): New.
6836 (struct loaded_script): New field language.
6837 (hash_loaded_script_entry, eq_loaded_script_entry): Calculate also
6838 LANGUAGE.
6839 (maybe_add_script): Add parameter language. Drop redundant
6840 entry.full_path initialization. Initialize entry.language and
6841 (*slot)->language.
6842 (auto_load_objfile_script): Change parameter suffix to language.
6843 Remove the call of maybe_add_script.
6844 Call language->source_script_for_objfile.
6845 (load_auto_scripts_for_objfile, struct collect_matching_scripts_data):
6846 New.
6847 (collect_matching_scripts): Adjust it for
6848 struct collect_matching_scripts_data.
6849 (auto_load_info_scripts_pattern_nl): New variable.
6850 (info_auto_load_scripts): Rename to ...
6851 (auto_load_info_scripts): ... here, add parameter language. Adjust it
6852 for struct collect_matching_scripts_data.
6853 (info_auto_load_gdb_scripts, info_auto_load_local_gdbinit)
6854 (set_auto_load_cmd, auto_load_set_cmdlist_get, show_auto_load_cmd)
6855 (auto_load_show_cmdlist_get, info_auto_load_cmd)
6856 (auto_load_info_cmdlist_get): New.
6857 (_initialize_auto_load): Move add_info of "auto-load-scripts" to
6858 python/py-auto-load.c. New installment for "set auto-load gdb-scripts",
6859 "info auto-load gdb-scripts", "set auto-load local-gdbinit" and
6860 "info auto-load local-gdbinit".
6861 * auto-load.h (struct script_language): New.
6862 (gdbpy_global_auto_load): Rename to ...
6863 (global_auto_load): ... here.
6864 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
6865 (auto_load_local_gdbinit_loaded): New declarations.
6866 (maybe_add_script): New parameter language.
6867 (auto_load_objfile_script): Change parameter suffix to language.
6868 (load_auto_scripts_for_objfile, auto_load_info_scripts_pattern_nl)
6869 (auto_load_info_scripts, auto_load_set_cmdlist_get)
6870 (auto_load_show_cmdlist_get, auto_load_info_cmdlist_get): New
6871 declarations.
6872 * linux-thread-db.c: Include auto-load.h and ctype.h.
6873 (auto_load_thread_db, show_auto_load_thread_db): New.
6874 (struct thread_db_info): New field filename.
6875 (delete_thread_db_info): Call xfree for FILENAME.
6876 (try_thread_db_load): Initialize FILENAME.
6877 (try_thread_db_load_from_pdir, try_thread_db_load_from_dir): Return
6878 if !AUTO_LOAD_THREAD_DB.
6879 (info_auto_load_libthread_db_compare, info_auto_load_libthread_db): New.
6880 (_initialize_thread_db): Install auto_load_thread_db
6881 as "set auto-load libthread-db" and install info_auto_load_libthread_db
6882 as "info auto-load libthread-db".
6883 * main.c (captured_main): Rename gdbpy_global_auto_load to
6884 global_auto_load. Initialize AUTO_LOAD_LOCAL_GDBINIT_PATHNAME and
6885 AUTO_LOAD_LOCAL_GDBINIT_LOADED.
6886 (print_gdb_help): Extend the help for 'local init file'.
6887 * python/py-auto-load.c: Remove a comment about gdb scripts extension.
6888 (GDBPY_AUTO_SECTION_NAME): Extend the comment it is Python specific.
6889 (auto_load_scripts): Rename to ...
6890 (auto_load_python_scripts): ... here, update the comment.
6891 (gdbpy_load_auto_script_for_objfile): New declaration.
6892 (show_auto_load_python_scripts, script_language_python)
6893 (gdbpy_load_auto_script_for_objfile): New.
6894 (source_section_scripts): Refactor the code.
6895 (load_auto_scripts_for_objfile): Rename to ...
6896 (gdbpy_load_auto_scripts_for_objfile): ... here, update the
6897 auto_load_objfile_script caller, drop GDBPY_GLOBAL_AUTO_LOAD checking.
6898 (info_auto_load_python_scripts): New.
6899 (gdbpy_initialize_auto_load): New variables cmd and cmd_name.
6900 Rename "set auto-load-scripts" to "set auto-load python-scripts".
6901 Register "set auto-load-scripts" as its deprecated alias. Register
6902 "info auto-load python-scripts". Register "info auto-load-scripts" as
6903 its deprecated alias.
6904 (load_auto_scripts_for_objfile): Rename to ...
6905 (gdbpy_load_auto_scripts_for_objfile): ... here.
6906 * python/python.h (load_auto_scripts_for_objfile): Rename to ...
6907 (gdbpy_load_auto_scripts_for_objfile): ... here.
6908
e2207b9a
JK
69092012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6910
6911 auto-load: Move files.
6912 * Makefile.in (SFILES): Add auto-load.c.
6913 (HFILES_NO_SRCDIR): Add auto-load.h.
6914 (COMMON_OBS): Add auto-load.o.
6915 (distclean): Change .gdbinit for gdb-gdb.gdb.
6916 * auto-load.c: New file, with parts from python/py-auto-load.c.
6917 * auto-load.h: New file, with parts from python/python.h.
6918 * configure: Regenerate.
6919 * configure.ac (AC_OUTPUT): Change .gdbinit for gdb-gdb.gdb.
6920 * gdb-gdb.gdb.in: New file, renamed from gdbinit.in.
6921 * gdbinit.in: Remove file, rename it to gdb-gdb.gdb.in.
6922 * main.c: Include auto-load.h.
6923 * python/py-auto-load.c: Move include filenames.h, gdb_regex.h,
6924 command.h, observer.h and progspace.h to auto-load.c. Add include
6925 auto-load.h.
6926 (gdbpy_global_auto_load, struct auto_load_pspace_info)
6927 (struct loaded_script, auto_load_pspace_data)
6928 (auto_load_pspace_data_cleanup, get_auto_load_pspace_data)
6929 (hash_loaded_script_entry, eq_loaded_script_entry)
6930 (init_loaded_scripts_info, get_auto_load_pspace_data_for_loading)
6931 (maybe_add_script): Move to auto-load.c.
6932 (source_section_scripts): Change maybe_add_script parameters passing,
6933 use script_not_found_warning_print.
6934 (clear_section_scripts, auto_load_objfile_script)
6935 (auto_load_new_objfile, loaded_script_ptr)
6936 (DEF_VEC_P (loaded_script_ptr), collect_matching_scripts, print_script)
6937 (sort_scripts_by_name, info_auto_load_scripts): Move to auto-load.c.
6938 (gdbpy_initialize_auto_load): Move auto_load_pspace_data,
6939 auto_load_new_objfile and info_auto_load_scripts initizations to
6940 auto-load.c.
6941 * python/python.h (gdbpy_global_auto_load): Move to auto-load.h.
6942
e4ab2fad
JK
69432012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6944
6945 Code cleanup.
6946 * charset.c (find_charset_names): Remove variables ix and elt.
6947 Use free_char_ptr_vec.
6948 * elfread.c (build_id_to_debug_filename): New variables debugdir_vec,
6949 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
6950 debugdir_end. New variable debugdir_len.
6951 * gdb_vecs.h (free_char_ptr_vec, make_cleanup_free_char_ptr_vec)
6952 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): New
6953 declarations.
6954 * progspace.c (clear_program_space_solib_cache): Remove variables ix
6955 and elt. Use free_char_ptr_vec.
6956 * source.c (add_path): Remove variables argv, arg and argv_index.
6957 New variables dir_vec, back_to, ix and name.
6958 Use dirnames_to_char_ptr_vec_append. Use freeargv instead of
6959 make_cleanup_freeargv. Remove variable separator. Simplify the code
6960 no longer expecting DIRNAME_SEPARATOR.
6961 (openp): Remove variable p, p1 and len. New variables dir_vec,
6962 back_to, ix and dir. Use dirnames_to_char_ptr_vec. Simplify the code
6963 no longer expecting DIRNAME_SEPARATOR.
6964 * symfile.c (find_separate_debug_file): New variables debugdir_vec,
6965 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
6966 debugdir_end.
6967 * utils.c (free_char_ptr_vec, do_free_char_ptr_vec)
6968 (make_cleanup_free_char_ptr_vec, dirnames_to_char_ptr_vec_append)
6969 (dirnames_to_char_ptr_vec): New functions.
6970
5ee4ed9f
JK
69712012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6972
6973 Code cleanup.
6974 * source.c (add_path): Remove always true conditional 'p == 0' and
6975 unindent its code block.
6976
f41f5e61
PA
69772012-04-17 Pedro Alves <palves@redhat.com>
6978
6979 * gdbtypes.h (FIELD_BITPOS): Rename to ...
6980 (FIELD_BITPOS_LVAL): ... this.
6981 (FIELD_BITPOS): New.
6982 (SET_FIELD_BITPOS): Adjust to use FIELD_BITPOS_LVAL.
6983 * dwarf2read.c (dwarf2_add_field): Use SET_FIELD_BITPOS.
6984 * gdbtypes.c (append_composite_type_field_aligned): Adjust to use
6985 SET_FIELD_BITPOS.
6986 * gnu-v3-abi.c (build_gdb_vtable_type): Adjust to use
6987 SET_FIELD_BITPOS.
6988 * stabsread.c (read_cpp_abbrev, read_one_struct_field)
6989 (read_baseclasses): Adjust to use SET_FIELD_BITPOS.
6990 * target-descriptions.c (tdesc_gdb_type): Adjust to use
6991 SET_FIELD_BITPOS.
6992
945b3a32
JK
69932012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6994
6995 Do not rely on FIELD_LOC_KIND_BITPOS being zero.
6996 * ada-lang.c (ada_template_to_fixed_record_type_1): Replace
6997 TYPE_FIELD_BITPOS used as lvalue by SET_FIELD_BITPOS.
6998 * gdbtypes.c (append_flags_type_flag): Likewise, twice.
6999 * jv-lang.c (java_link_class_type): Likewise, once.
7000 * stabsread.c (read_enum_type): Likewise.
7001
42476b70
YQ
70022012-04-16 Yao Qi <yao@codesourcery.com>
7003
7004 * common/agent.c (agent_run_command): Add one more parameter `len'.
7005 Update callers.
7006 * common/agent.h: Update declaration.
7007 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
7008 Update.
7009 (linux_child_static_tracepoint_markers_by_strid): Ditto.
7010
8264ba82
AG
70112012-04-14 Anton Gorenkov <xgsa@yandex.ru>
7012
7013 PR mi/13393
7014 * value.c (value_actual_type): New function.
7015 * value.h (value_actual_type): New declaration.
7016 * varobj.c (update_type_if_necessary): New function.
7017 (varobj_create): Call value_actual_type instead of
7018 value_type.
7019 (install_dynamic_child): distinct changed and type changed MI variable
7020 objects.
7021 (update_dynamic_varobj_children): Updated for install_dynamic_child
7022 change. All callers updated.
a09130f9 7023 (varobj_update): Support for MI variable object type change if
8264ba82
AG
7024 the value changed and RTTI is used to determine the type.
7025 (create_child_with_value): Call value_actual_type instead of
7026 value_type.
a09130f9 7027 (adjust_value_for_child_access): Extended with a new parameter which
8264ba82
AG
7028 specify whether the given value should be casted to enclosing type.
7029 All callers updated.
7030
55a8c076
YQ
70312012-04-14 Yao Qi <yao@codesourcery.com>
7032
7033 Import gnulib module inttypes from git
7034 (250b80067c1e1d8faa0c42fb572f721975b929c5)
7035 * Makefile.in (HFILES_NO_SRCDIR): Add gnulib/inttypes.in.h.
a09130f9
PA
7036 (aclocal_m4_deps): Add gnulib/m4/inttypes.m4 and
7037 gnulib/m4/inttypes-pri.m4
55a8c076
YQ
7038 * aclocal.m4, config.in, configure: Regenerated.
7039 * gnulib/Makefile.am: Update.
7040 * gnulib/Makefile.in: Update.
7041 * gnulib/m4/gnulib-cache.m4: Update.
7042 * gnulib/m4/gnulib-comp.m4: Update.
7043 * gnulib/inttypes.in.h: New.
7044 * gnulib/m4/inttypes-pri.m4: New.
a09130f9 7045 * gnulib/m4/inttypes.m4: New.
55a8c076 7046
ca7781d2
LM
70472012-04-13 Luis Machado <lgustavo@codesourcery.com>
7048
7049 * infrun.c (resume): Update PC address to the real PC after
7050 preparing to do displaced stepping.
7051
e319fa28
DE
70522012-04-12 Doug Evans <dje@google.com>
7053
7054 * dwarf2read.c (lookup_signatured_type): Remove arg "objfile", unused.
7055 All callers updated.
7056
15add3f5
MK
70572012-04-12 Mark Kettenis <kettenis@gnu.org>
7058
7059 * i386bsd-nat.c (_initialize_i386bsd_nat): Add missing prototype.
7060
52dc124a
DE
70612012-04-12 Doug Evans <dje@google.com>
7062
0e50663e
DE
7063 * dwarf2read.c (create_all_type_units): Renamed from
7064 create_debug_types_hash_table. All callers updated.
7065
52dc124a
DE
7066 * dwarf2read.c (create_signatured_type_table_from_index): Rename
7067 local type_sig to sig_type, type_offset to type_offset_in_tu.
7068 (hash_signatured_type): Renamed from hash_type_signature,
7069 all callers updated.
7070 (eq_signatured_type): Renamed from eq_type_signature,
7071 all callers updated.
7072 (create_debug_types_hash_table): Rename local type_sig to sig_type.
7073 (process_enumeration_scope): Ditto.
7074 (lookup_signatured_type_at_offset): Ditto.
7075 (load_full_type_unit, read_signatured_type): Ditto.
7076
248fd3bf
YQ
70772012-04-12 Yao Qi <yao@codesourcery.com>
7078
7079 * remote.c (async_remote_interrupt): Correct function name in
7080 debug message.
7081 (async_remote_interrupt_twice): Ditto.
7082
bc3aa6c3
DE
70832012-04-11 Yuanhui Zhang <asmwarrior@gmail.com>
7084
7085 * source.c (find_and_open_source): Consistently pass resulting
7086 full path through xfullpath.
7087
9e529e1d
JK
70882012-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7089
7090 Provide more specific displaced-stepping memory error message.
7091 * infrun.c (displaced_step_prepare): New variable status. Call
7092 target_read_memory instead of read_memory, provide more specific
7093 error message.
7094
82e0cec1
TG
70952012-04-11 Tristan Gingold <gingold@adacore.com>
7096
7097 PR gdb/13901
7098 * darwin-nat.c (darwin_execvp): Revert previous patch.
7099
d987a266
TG
71002012-04-11 Tristan Gingold <gingold@adacore.com>
7101
7102 PR gdb/13901
7103 * darwin-nat.c (darwin_resume_thread): Call darwin_set_sstep only
7104 in case of change.
7105
016b7430
TG
71062012-04-11 Tristan Gingold <gingold@adacore.com>
7107
7108 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
7109 warning.
7110
06fc020f
SCR
71112012-04-11 Siva Chandra Reddy <sivachandra@google.com>
7112
7113 New command 'explore' which helps explore values and types in
7114 scope.
7115 * NEWS: Add an entry about the new 'explore' command.
7116 * data-directory/Makefile.in: Add gdb/command/explore.py
7117 * python/lib/gdb/command/explore.py: Implemention of the 'explore'
a09130f9 7118 command using the GDB Python API.
06fc020f 7119
de0919f8 71202012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
34b192ce
MR
7121
7122 * mips-tdep.c (mips_skip_pic_trampoline_code): Correct sign
7123 extension in jump target calculation.
7124
de0919f8 71252012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
9e8da49c
MR
7126
7127 * mips-tdep.c (mips32_next_pc): Handle JALX.
7128
2f26ef89
YQ
71292012-04-10 Yao Qi <yao@codesourcery.com>
7130
7131 * Makefile.in (gnulib/Makefile): Remove duplicated dependency.
7132
2e505b66
YQ
71332012-04-10 Yao Qi <yao@codesourcery.com>
7134
7135 * Makefile.in (aclocal_m4_deps): Add gnulib/m4/gnulib-cache.m4
7136 and gnulib/m4/gnulib-tool.m4.
7137
0d99eb77
DE
71382012-04-10 Doug Evans <dje@google.com>
7139
7140 * dwarf2read.c (dwarf2_per_cu_data). Clarify comment.
7141 (load_partial_dies): Clarify comment.
7142 (find_partial_die): Support rereading type units.
7143 Clarify CU handling, if we know offset is in CU, don't search for the
7144 containing CU. Add comment regarding memory waste.
7145
9a82b8ff
L
71462012-04-10 H.J. Lu <hongjiu.lu@intel.com>
7147
7148 * features/Makefile (WHICH): Add i386/x32, i386/x32-linux,
7149 i386/x32-avx and i386/x32-avx-linux.
7150 (i386/x32-expedite): New.
7151 (i386/x32-linux-expedite): Likewise.
7152 (i386/x32-avx-expedite): Likewise.
7153 (i386/x32-avx-linux-expedite): Likewise.
7154 ($(outdir)/i386/x32.dat): Likewise.
7155 ($(outdir)/i386/x32-linux.dat): Likewise.
7156 ($(outdir)/i386/x32-avx.dat): Likewise.
7157 ($(outdir)/i386/x32-avx-linux.dat): Likewise.
7158
7159 * features/i386/x32-avx-linux.xml: New file.
7160 * features/i386/x32-avx.xml: Likewise.
7161 * features/i386/x32-core.xml: Likewise.
7162 * features/i386/x32-linux.xml: Likewise.
7163 * features/i386/x32.xml: Likewise.
7164
7165 * features/i386/x32-avx-linux.c: New. Generated.
7166 * features/i386/x32-avx.c: Likewise.
7167 * features/i386/x32-linux.c: Likewise.
7168 * features/i386/x32.c: Likewise.
7169 * regformats/i386/x32-avx-linux.dat: Likewise.
7170 * regformats/i386/x32-avx.dat: Likewise.
7171 * regformats/i386/x32-linux.dat: Likewise.
7172 * regformats/i386/x32.dat: Likewise.
7173
ee41036f
TG
71742012-04-10 Tristan Gingold <gingold@adacore.com>
7175
7176 * darwin-nat.c (darwin_kill_inferior): Always use the no ptrace
7177 code to kill the inferior.
7178
a7aa5b8a
MK
71792012-04-09 Mark Kettenis <kettenis@gnu.org>
7180
7181 * ada-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7182 defines.
7183 * c-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7184 defines.
a09130f9 7185 * cp-name-parser.y (yyss, yysslim, yyssp, yystacksize, yyvs)
a7aa5b8a
MK
7186 (yyvsp): New defines.
7187 * f-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7188 defines.
7189 * jv-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7190 defines.
7191 * m2-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7192 defines.
7193 * objc-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7194 defines.
7195 * p-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7196 defines.
7197
fb57d452
MK
71982012-04-09 Mark Kettenis <kettenis@gnu.org>
7199
a09130f9 7200 * sparc64-tdep.c (sparc64_store_arguments)
fb57d452
MK
7201 (sparc64_store_arguments): Fix coding style.
7202
cdc7b32f
MK
72032012-04-07 Mark Kettenis <kettenis@gnu.org>
7204
7205 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
7206 complex floats, adjust some related comments and tighten a related
7207 assertion.
7208 (sparc64_extract_return_value): Handle complex floats.
7209
7adf1e79
DE
72102012-04-07 Doug Evans <dje@google.com>
7211
7212 * dwarf2read.c (load_partial_dies): Change condition to assert.
7213
50f1ae7b
DE
72142012-04-06 Doug Evans <dje@google.com>
7215
7216 * amd64-tdep.c (amd64_analyze_prologue): Recognize both variations of
7217 "mov %rsp,%rbp".
7218
55fa75c3
KB
72192012-04-05 Kevin Buettner <kevinb@redhat.com>
7220
7221 * v850-tdep.c (E_NUM_OF_V850_REGS, E_NUM_OF_V850E_REGS): Fix
7222 fencepost error.
7223 (v850_frame_cache): Use gdbarch_num_regs() instead of E_NUM_REGS.
7224 (v850_gdbarch_init): Set `num_regs' as appropriate for the
7225 architecture.
7226
40e084e1
KS
72272012-04-05 Keith Seitz <keiths@redhat.com>
7228
7229 * linespec.c (decode_compound): Remove.
7230 (enum offset_relative_sign): New enum.
7231 (struct line_offset): New struct.
7232 (struct linespec): New struct.
7233 (struct linespec_state): Move file_symtabs,
7234 user_filename, and user_function into struct linespec.
7235 Make result an anonymous struct holding vectors of
7236 symbolp and minsym_and_objfile_d.
7237 Add language member.
7238 (enum ls_token_type): New enum.
7239 (linespec_keywords): New array.
7240 (struct ls_token): New struct.
7241 (struct ls_parser): New struct.
7242 (linespec_lexer_lex_number): New function.
7243 (linespec_lexer_lex_keyword): New function.
7244 (is_ada_operator): New function.
7245 (skip_quote_char): New function.
7246 (copy_token_string): New function.
7247 (is_closing_quote_enclosed): New function.
7248 (find_parameter_list_end): New function.
7249 (linespec_lexer_lex_string): New function.
7250 (linespec_lexer_lex_one): New function.
7251 (linespec_lexer_consume_token): New function.
7252 (linespec_lexer_peek_token): New function.
7253 (cplusplus_error): Remove unused function.
7254 (find_methods): Update comment.
7255 (find_toplevel_char): Return const.
7256 (is_objc_method_format): Remove unused function.
7257 (find_toplevel_string): New function.
7258 (is_linespec_boundary): Remove.
7259 (symbol_not_found_error): New function.
7260 (find_method_overload_end): Remove function.
7261 (unexpected_linespec_error): New function.
7262 (keep_name_info): Remove.
7263 (linespec_parse_line_offset): New function.
7264 (linespec_parse_basic): New function.
7265 (canonicalize_linespec): New function.
7266 (decode_line_internal): Remove.
7267 (create_sals_line_offset): New function adapted from
7268 decode_all_digits.
7269 (convert_linespec_to_sals): New function.
7270 (parse_linespec): New function.
7271 (linespec_parser_new): New function.
7272 (linespec_state_destructor): Change parameter type to
7273 struct linespec_state *.
7274 Add language parameter.
7275 Remove freeing of moved members.
7276 (linespec_parser_delete): New function.
7277 (decode_line_full): Use parse_linespec and linespec_parser_new.
7278 (decode_line_1): Likewise.
7279 (decode_indirect): Rename to ...
7280 (linespec_expression_to_pc): ... this and rewrite
7281 to simply find CORE_ADDR, storing this result for later
7282 conversion to SALs.
7283 (locate_first_half): Remove.
7284 (deocde_objc): Add parameter LS.
7285 Initialize new struct collect_info members.
7286 Handle minimal symbols, too.
7287 (decode_compound): Delete.
7288 (lookup_prefix_sym): Rewrite.
7289 (compare_msymbols): New function.
7290 (find_method): Rewrite.
7291 Do not call cplusplus_error.
7292 (symtabs_from_filename): Rewrite.
7293 (collect_function_symbols): Delete.
7294 (find_function_symbols): Rewrite without ARGPTR-style
7295 processing.
7296 (decode_all_digits): Delete. (Rewritten as create_sals_line_offset.)
7297 (decode_dollar): Adapted and renamed to ...
7298 (linespec_parse_variable): ... this.
7299 (find_linespec_symbols): New function.
7300 (decode_label): Adapted and renamed to ...
7301 (find_label_symbols): ... this.
7302 (decode_digits_list_mode): Add and use LS argument.
7303 (decode_digits_ordinary): Likewise.
7304 (collect_symbols): Do not collect SALs, just symbols and msymbols.
7305 If in list mode, allow any symbol class. Otherwise, only
7306 permit LOC_BLOCK symbols.
7307 (minsym_found): Update comments.
7308 (search_minsyms_for_name): Do not convert the matching symbol
7309 into a SAL. Simply push the symbol and objfile into the
7310 result vector.
7311 (decode_variable): Delete. Contents adapted into
7312 find_linespec_symbols.
7313
7314 * cp-support.c (SKIP_SPACE): Remove.
7315 (operator_tokens): Remove unused global.
7316 (cp_validate_operator): Remove.
7317 * cp-support.h (cp_validate_operator): Remove declaration.
7318
a72c8f6a
JK
73192012-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7320
7321 * cp-valprint.c (cp_print_value_fields): Check valprint_check_validity
7322 for TYPE_VPTR_FIELDNO.
7323 * valprint.c (valprint_check_validity): Make it global, move the
7324 function comment ...
7325 * value.h (valprint_check_validity): ... to this new declaration.
7326
cf9bb588
TG
73272012-04-02 Tristan Gingold <gingold@adacore.com>
7328
7329 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Use
7330 the STATE32 api for i386 state.
7331 (i386_darwin_store_inferior_registers): Likewise.
7332
17092398
TG
73332012-04-02 Tristan Gingold <gingold@adacore.com>
7334
7335 * i386-darwin-tdep.c (i386_darwin_thread_state_reg_offset): Fix
7336 SS offset.
7337 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
7338 format_string.
7339
ece0061f
TG
73402012-04-02 Tristan Gingold <gingold@adacore.com>
7341
7342 PR gdb/13901
d987a266 7343 * darwin-nat.c (darwin_execvp): Set binary preference.
ece0061f 7344
cf65ecd3
JK
73452012-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7346
7347 * NEWS (set breakpoint condition-evaluation): Use imperative mood.
7348
9bc3523d
TT
73492012-03-30 Tom Tromey <tromey@redhat.com>
7350
7351 * python/python.c (gdbpy_decode_line): Move cleanup creation out
7352 of TRY_CATCH. Fix error handling.
7353 * python/py-value.c (convert_value_from_python): Move 'old'
7354 declaration to innermost scope.
7355
b1ed564a
JB
73562012-03-29 Joel Brobecker <brobecker@adacore.com>
7357 Andrey Smirnov <andrew.smirnov@gmail.com>
7358
7359 -Wshadow warning fix.
7360 * ada-lang.c (ada_make_symbol_completion_list): Rename parameters
7361 "wild_match" and "encoded" into "wild_match_p" and "encoded_p".
7362 Adjust code accordingly.
7363
cb8e9b97
JB
73642012-03-29 Joel Brobecker <brobecker@adacore.com>
7365
7366 * ada-lang.c (symbol_completion_add): Rename parameter
7367 "encoded" into "encoded_p". Ajust code and documentation
7368 accordingly.
7369
c0af1706
JB
73702012-03-29 Joel Brobecker <brobecker@adacore.com>
7371 Andrey Smirnov <andrew.smirnov@gmail.com>
7372
7373 -Wshadow warning fix.
7374 * ada-lang.c (symbol_completion_add): Rename parameter
7375 "wild_match" into wild_match_p. Update code and documentation
7376 accordingly.
7377
6ea35997
JB
73782012-03-29 Joel Brobecker <brobecker@adacore.com>
7379
7380 * ada-lang.c (symbol_completion_match): Rename parameter
7381 "encoded" into "encoded_p". Ajust code and documentation
7382 accordingly.
7383
e701b3c0
JB
73842012-03-29 Joel Brobecker <brobecker@adacore.com>
7385 Andrey Smirnov <andrew.smirnov@gmail.com>
7386
7387 -Wshadow warning fix.
7388 * ada-lang.c (symbol_completion_match): Rename parameter
7389 "wild_match" into "wild_match_p". Adjust code and function
7390 documentation accordingly.
7391
5e2336be
JB
73922012-03-29 Joel Brobecker <brobecker@adacore.com>
7393 Andrey Smirnov <andrew.smirnov@gmail.com>
7394
7395 -Wshadow warning fix.
7396 * ada-lang.c (ada_lookup_encoded_symbol): Rename parameter
7397 "symbol_info" into "info". Adjust code accordingly.
7398 (ada_lookup_symbol): Likewise.
7399
9f88c959
JB
74002012-03-29 Joel Brobecker <brobecker@adacore.com>
7401
7402 * ada-lang.c (ada_lookup_symbol_list): Minor reformatting
7403 of this function's documentation.
7404
82ccd55e
JB
74052012-03-29 Joel Brobecker <brobecker@adacore.com>
7406 Andrey Smirnov <andrew.smirnov@gmail.com>
7407
7408 -Wshadow warning fix.
7409 * ada-lang.c (ada_lookup_symbol_list): Rename "wild_match"
7410 variable into "wild_match_p". Adjust code accordingly.
7411
d0a8ab18
JB
74122012-03-29 Joel Brobecker <brobecker@adacore.com>
7413 Andrey Smirnov <andrew.smirnov@gmail.com>
7414
7415 -Wshadow warning fix.
7416 * ada-lang.c (ada_add_local_symbols): Rename "wild_match"
7417 parameter into "wild_match_p". Adjust code accordingly.
7418 Document this parameter in the function description.
7419
48b78332
JB
74202012-03-29 Joel Brobecker <brobecker@adacore.com>
7421 Andrey Smirnov <andrew.smirnov@gmail.com>
7422
7423 -Wshadow warning fix.
7424 * ada-lang.c (add_symbols_from_enclosing_procs): Rename
7425 "wild_match" parameter to "wild_match_p" (-Wshadow).
7426
2e6e0353
JB
74272012-03-29 Joel Brobecker <brobecker@adacore.com>
7428
7429 * ada-lang.c (ada_lookup_simple_minsym): Remove trailing spaces
7430 in function documentation.
7431
dc4024cd
JB
74322012-03-29 Joel Brobecker <brobecker@adacore.com>
7433 Andrey Smirnov <andrew.smirnov@gmail.com>
7434
7435 -Wshadow warning fix.
7436 * ada-lang.c (ada_lookup_simple_minsym): Rename wild_match local
7437 variable into wild_match_p. Adjust code accordingly.
7438
6c88661c
JB
74392012-03-29 Joel Brobecker <brobecker@adacore.com>
7440 Andrey Smirnov <andrew.smirnov@gmail.com>
7441
7442 * ada-valprint.c (ada_val_print_1): Move the code handling
7443 TYPE_CODE_ENUM inside its own lexical block. Declare
7444 variables len and val there, instead of in the function's
7445 top level block. Avoid declaring deref_val again in a way
7446 that shadows another variable of the same name declared
7447 in one of the up-level blocks. Just re-use the up-level
7448 variable instead.
7449
4e5c77fe
JB
74502012-03-29 Joel Brobecker <brobecker@adacore.com>
7451
7452 * ada-lang.c (ada_lookup_encoded_symbol): Now returns void.
7453 Replace block_found argument by symbol_info. Adjust
7454 implementation accordingly. Add function documentation.
7455 (ada_lookup_symbol): Adjust to new ada_lookup_encoded_symbol.
7456 Fix documentation.
7457 * ada-lang.h (ada_lookup_encoded_symbol): Update declaration.
7458 * ada-exp.y (write_object_renaming): Adjust to new
7459 ada_lookup_encoded_symbol API.
7460
1c0ac8c7
JB
74612012-03-29 Joel Brobecker <brobecker@adacore.com>
7462
7463 * ada-lang.h (struct ada_symbol_info): Reformat. Improve
7464 documentation.
7465
2aaed979
KB
74662012-03-28 Rathish C <rathish.c@kpitcummins.com>
7467
7468 * v850-tdep.c: Add the enum values for mpu and fpu registers.
7469 (v850_register_name): Add the mpu and fpu register names.
7470 (v850e_register_name): Add the mpu and fpu register names.
7471 (v850e2_register_name): New function.
a09130f9 7472 (v850_gdbarch_init): Add case for bfd_mach_v850e2 and
2aaed979
KB
7473 bfd_mach_v850e2v3.
7474
927fbba6
JB
74752012-03-28 Joel Brobecker <brobecker@adacore.com>
7476
7477 * NEWS: Add entry for Ada varobj support.
7478
d32cafc7
JB
74792012-03-28 Joel Brobecker <brobecker@adacore.com>
7480
7481 * varobj.c (default_value_is_changeable_p): New function,
7482 extracted from varobj_value_is_changeable_p. Add declaration.
7483 (ada_value_is_changeable_p): New function, extracted from
7484 varobj_value_is_changeable_p. Add declaration.
7485 (struct language_specific): New field "value_is_changeable_p".
7486 (languages): Add entries for new field.
7487 (varobj_create): Set language before calling install_new_value.
7488 (varobj_value_is_changeable_p): Reimplement to call the varobj's
7489 "value_is_changeable_p" language callback.
7490
181875a4
JB
74912012-03-28 Joel Brobecker <brobecker@adacore.com>
7492
7493 * ada-varobj.h, ada-varobj.c: New files.
7494 * Makefile.in (SFILES): Add ada-varobj.c.
7495 (HFILES_NO_SRCDIR): Add ada-varobj.h.
7496 (COMMON_OBS): Add ada-varobj.o.
7497
7a290c40
JB
74982012-03-28 Joel Brobecker <brobecker@adacore.com>
7499
7500 * varobj.c (ada_value_has_mutated): Add declaration. New function.
7501 (struct language_specific): New field "value_has_mutated".
7502 (languages): Set field "value_has_mutated" in each entry of array.
7503 (varobj_value_has_mutated): New function.
7504 (varobj_udpdate): Add handling of type mutation.
7505 (value_of_root): Add handling of type mutation.
7506 (ada_value_has_mutated): New function.
7507
ca9b8b9c
PA
75082012-03-28 Pedro Alves <palves@redhat.com>
7509
7510 * ia64-linux-nat.c (supply_fpregset, ia64_linux_fetch_register):
7511 Always supply $fr0 as 0.0 and $fr1 as 1.0.
7512
cc0265cd
TT
75132012-03-28 Tom Tromey <tromey@redhat.com>
7514
7515 * python/py-inferior.c (infpy_read_memory): Remove cleanups and
7516 explicitly free 'buffer' on exit paths. Decref 'membuf_object'
7517 before returning.
7518
3ad2ec6f
TT
75192012-03-28 Tom Tromey <tromey@redhat.com>
7520
7521 * .dir-locals.el: New file.
7522
4a6510ba
PA
75232012-03-28 Pedro Alves <palves@redhat.com>
7524
7525 * ia64-linux-nat.c (u_offsets): Map IA64_EC_REGNUM to PT_AR_EC.
7526
5a75128f
JB
75272012-03-28 Joel Brobecker <brobecker@adacore.com>
7528
7529 * ia64-linux-nat.c (ia64_linux_fetch_register): Add special
7530 handling for r0.
7531
f99d8bf4
PA
75322012-03-27 Pedro Alves <palves@redhat.com>
7533
7534 Eliminate struct ui_stream.
7535
7536 * ui-out.h (struct ui_stream): Delete.
7537 (ui_out_field_stream): Adjust prototype.
7538 (ui_out_stream_new, ui_out_stream_delete)
7539 (make_cleanup_ui_out_stream_delete): Delete declarations.
7540 * ui-out.c (ui_out_field_stream): Change prototype to take a
7541 ui_file instead of a ui_stream. Adjust.
7542 (ui_out_stream_new, ui_out_stream_delete, do_stream_delete)
7543 (make_cleanup_ui_out_stream_delete): Delete.
7544 * breakpoint.c (print_breakpoint_location)
7545 (print_one_detail_ranged_breakpoint, print_it_watchpoint): Use
7546 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
7547 * disasm.c (dump_insns): Ditto.
7548 (do_mixed_source_and_assembly, do_assembly_only): Adjust
7549 prototype.
7550 (gdb_disassembly): Use ui_file/mem_fileopen instead of
7551 ui_stream/ui_out_stream_new.
7552 * infcmd.c (print_return_value): Ditto.
7553 * osdata.c (info_osdata_command): Don't allocate a local
7554 ui_stream.
7555 * stack.c (print_frame_arg, print_frame_args, print_frame): Use
7556 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
7557 * tracepoint.c (print_one_static_tracepoint_marker): Don't
7558 allocate a local ui_stream.
7559 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_file/mem_fileopen
7560 instead of ui_stream/ui_out_stream_new.
7561 (list_args_or_locals): Don't allocate a local ui_stream.
7562 * mi/mi-main.c (get_register, mi_cmd_data_evaluate_expression)
7563 (mi_cmd_data_read_memory): Use ui_file/mem_fileopen instead of
7564 ui_stream/ui_out_stream_new.
7565 * cli/cli-setshow.c (do_setshow_command): Ditto.
7566
6350a066 75672012-03-27 Oza Pawandeep <oza.pawandeep@gmail.com>
72508ac0 7568
6350a066
PA
7569 * arm-linux-tdep.c (arm_linux_init_abi): Call
7570 set_gdbarch_process_record. Initialize `arm_swi_record' field.
7571 * arm-tdep.c (arm_process_record): New function.
7572 (deallocate_reg_mem): New function.
7573 (decode_insn): New function.
7574 (thumb_record_branch): New function.
7575 (thumb_record_ldm_stm_swi(): New function.
7576 (thumb_record_misc): New function.
7577 (thumb_record_ld_st_stack): New function.
7578 (thumb_record_ld_st_imm_offset): New function.
7579 (thumb_record_ld_st_reg_offset(): New function.
7580 (thumb_record_add_sub_cmp_mov): New function.
7581 (thumb_record_shift_add_sub): New function.
7582 (arm_record_coproc_data_proc): New function.
7583 (arm_record_coproc): New function.
7584 (arm_record_b_bl): New function.
7585 (arm_record_ld_st_multiple): New function.
7586 (arm_record_ld_st_reg_offset): New function.
7587 (arm_record_ld_st_imm_offset): New function.
7588 (arm_record_data_proc_imm): New function.
7589 (arm_record_data_proc_misc_ld_str): New function.
7590 (arm_record_extension_space): New function.
7591 (arm_record_strx): New function.
7592 (sbo_sbz): New function.
7593 (struct insn_decode_record): New structure for arm insn record.
7594 (REG_ALLOC): New macro for reg allocations.
7595 (MEM_ALLOC): New macro for memory allocations.
7596 * arm-tdep.h (struct gdbarch_tdep): New field 'arm_swi_record'.
72508ac0 7597
89e028e2
AS
75982012-03-27 Andreas Schwab <schwab@linux-m68k.org>
7599
7600 * m68klinux-nat.c (fetch_register): Fix strict-aliasing violation.
7601 (store_register): Likewise.
7602
6350a066 76032012-03-26 Oza Pawandeep <oza.pawandeep@gmail.com>
3d9a9eb0 7604
6350a066 7605 * MAINTAINERS (Write After Approval): Add myself to the list.
3d9a9eb0 7606
5b43fab2
JK
76072012-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7608
7609 * NEWS (set breakpoint condition-evaluation): Change "gdb" to "host".
7610 Describe also the option "auto".
7611
b5453b95
RH
76122012-03-22 Richard Henderson <rth@redhat.com>
7613
7614 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Fix prototype.
7615 * sparc-nat.c (sparc_xfer_wcookie): Make static.
7616
227ee7fc
RH
76172012-03-22 Richard Henderson <rth@redhat.com>
7618
7619 * jit.c (jit_read_code_entry): Compute alignment and offset of
7620 int64_t member before computing entry_size.
7621
7b282c5a
SCR
76222012-03-22 Siva Chandra Reddy <sivachandra@google.com>
7623
7624 Python scripting: Add new method Value.referenced_value to
7625 gdb.Value which can dereference pointer as well as reference
7626 values.
7627 * NEWS: Add entry under 'Python scripting' about the new method
7628 Value.referenced_value on gdb.Value objects.
7629 * python/py-value.c (valpy_referenced_value): New function
7630 defining a new method on gdb.Value objects which can dereference
7631 pointer and reference values.
7632
0c83539f
SCR
76332012-03-22 Siva Chandra Reddy <sivachandra@google.com>
7634
7635 * MAINTAINERS (Write After Approval): Add myself to the list.
7636
7ccffd7c
KB
76372012-03-21 Kevin Buettner <kevinb@redhat.com>
7638
7639 * symtab.c (skip_prologue_sal): Change test to check for "main()"
7640 in addition to "main".
7641
bd0b9f9e
JB
76422012-03-21 Joel Brobecker <brobecker@adacore.com>
7643
7644 * expression.h (op_name): Add declaration.
7645 * expprint.c (op_name): Remove declaration. Make non-static.
7646 * ax-gdb.c (gen_expr): Use op_name instead of op_string.
7647
a5362b9a
TS
76482012-03-21 Thomas Schwinge <thomas@codesourcery.com>
7649
7650 * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Use siginfo_t instead
7651 of struct siginfo.
7652 * arm-linux-nat.c (arm_linux_stopped_data_address): Likewise.
7653 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
7654 * linux-nat.c (linux_nat_siginfo_fixup, siginfo_fixup)
7655 (linux_xfer_siginfo, linux_nat_set_siginfo_fixup)
7656 (linux_nat_get_siginfo): Likewise.
7657 * linux-nat.h (struct lwp_info, linux_nat_set_siginfo_fixup)
7658 (linux_nat_get_siginfo): Likewise.
7659 * linux-tdep.c (linux_get_siginfo_type): Likewise.
7660 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Likewise.
7661 * procfs.c (gdb_siginfo_t): Likewise.
7662
adcadaab
MF
76632012-03-21 Mike Frysinger <vapier@gentoo.org>
7664
7665 * .gitignore: Ignore more files.
7666
e278ad5b
PA
76672012-03-20 Pedro Alves <palves@redhat.com>
7668
7669 * remote.c (remote_start_remote): Clear `rs->starting_up' on early
7670 returns.
7671
741e63d7
YQ
76722012-03-20 Yao Qi <yao@codesourcery.com>
7673
7674 * amd64-tdep.c (amd64_displaced_step_copy_insn): Complete missing "}" in
7675 comment.
7676
b64f50a1
JK
76772012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7678
7679 Code cleanupp: Use cu_offset and sect_offset compile time type checking.
7680 * dwarf2expr.c (add_piece, dwarf_get_base_type, execute_stack_op)
7681 (ctx_no_dwarf_call, ctx_no_get_base_type): Use cu_offset and
7682 sect_offset.
7683 * dwarf2expr.h (cu_offset, sect_offset): New types.
7684 (struct dwarf_expr_context_funcs) <dwarf_call>
7685 (struct dwarf_expr_context_funcs) <get_base_type>: Use cu_offset and
7686 sect_offset.
7687 (struct dwarf_expr_context) <len>: Improve the comment.
7688 (struct dwarf_expr_piece, ctx_no_dwarf_call, ctx_no_get_base_type): Use
7689 cu_offset and sect_offset.
7690 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call)
7691 (dwarf_expr_get_base_type, needs_frame_dwarf_call)
7692 (dwarf2_compile_expr_to_ax, disassemble_dwarf_expression): Likewise.
7693 * dwarf2loc.h: Include dwarf2expr.h.
7694 (dwarf2_fetch_die_location_block, dwarf2_get_die_type): Use cu_offset
7695 and sect_offset.
7696 * dwarf2read.c (struct dwarf2_per_objfile) <debug_types_type_hash>:
7697 Improve the comment.
7698 (struct comp_unit_head, struct dwarf2_cu, struct dwarf2_per_cu_data)
7699 (struct signatured_type, struct line_header, struct partial_die_info)
7700 (struct die_info, find_partial_die, dwarf2_get_ref_die_offset)
7701 (lookup_signatured_type_at_offset, dwarf2_find_containing_comp_unit)
7702 (get_die_type_at_offset, create_cus_from_index)
7703 (create_signatured_type_table_from_index, dw2_get_file_names)
7704 (offset_in_cu_p, read_comp_unit_head, error_check_comp_unit_head)
7705 (read_and_check_comp_unit_head, read_and_check_type_unit_head)
7706 (create_debug_types_hash_table, process_psymtab_comp_unit)
7707 (load_partial_comp_unit, create_all_comp_units)
7708 (partial_die_parent_scope, partial_die_full_name, skip_one_die)
7709 (load_full_comp_unit, dwarf2_physname, read_import_statement)
7710 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
7711 (dwarf2_add_member_fn, process_enumeration_scope, read_module_type)
7712 (read_typedef, die_hash, die_eq, read_full_die, dwarf2_read_abbrevs)
7713 (load_partial_dies, read_partial_die, find_partial_die_in_comp_unit)
7714 (find_partial_die, read_attribute_value, lookup_die_type)
7715 (dump_die_shallow, store_in_ref_table): Use cu_offset and sect_offset.
7716 (is_ref_attr): New function comment.
7717 (dwarf2_get_ref_die_offset): New function comment, new variable retval.
7718 Use cu_offset and sect_offset.
7719 (follow_die_offset, follow_die_ref, dwarf2_fetch_die_location_block)
7720 (dwarf2_get_die_type, follow_die_sig, lookup_signatured_type_at_offset)
7721 (load_full_type_unit, read_signatured_type, per_cu_header_read_in)
7722 (dwarf2_find_containing_comp_unit, struct dwarf2_offset_and_type)
7723 (offset_and_type_hash, offset_and_type_eq, set_die_type)
7724 (get_die_type_at_offset, partial_die_hash, partial_die_eq)
7725 (write_one_signatured_type, write_psymtabs_to_index): Use cu_offset and
7726 sect_offset.
7727
e97a38f7
JK
77282012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7729
7730 Code cleanup.
7731 * python/py-auto-load.c (source_section_scripts): New variable back_to.
7732 Turn fclose and xfree calls into make_cleanup_fclose and make_cleanup
7733 with xfree.
7734 (auto_load_objfile_script): Turn fclose into make_cleanup_fclose.
7735
8320cc4f
JK
77362012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7737
7738 * NEWS: Describe new options --init-command=FILE, -ix and
7739 --init-eval-command=COMMAND, -iex.
7740 * main.c (struct cmdarg): New enum items CMDARG_INIT_FILE and
7741 CMDARG_INIT_COMMAND.
7742 (captured_main): New enum items OPT_IX and OPT_IEX. Add
7743 "init-command", "init-eval-command", "ix" and "iex" to the variable
7744 long_options. Handle OPT_IX and OPT_IEX. Process them from CMDARG_VEC.
7745 New comment for CMDARG_FILE and CMDARG_COMMAND processing.
7746 (print_gdb_help): Describe --init-command=FILE, -ix and
7747 --init-eval-command=COMMAND, -iex.
7748
26743505
JK
77492012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7750
7751 Code cleanup.
7752 * main.c (struct cmdarg): Move it here from main. Add more comments.
7753 (cmdarg_s, VEC (cmdarg_s)): New.
7754 (main): Move struct cmdarg from here. New variables cmdarg_vec and
7755 cmdarg_p. Remove variables cmdsize and ncmd and their initialization.
7756 Install cleanup for cmdarg_vec. Update filling for options 'x' and
7757 'X'. Replace cmdarg processing by cmdarg_vec processing. Remove xfree
7758 of CMDARG.
7759
5ff5c7b4
TT
77602012-03-19 Tom Tromey <tromey@redhat.com>
7761
7762 * gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'.
7763
ab260dad
JK
77642012-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7765
7766 PR symtab/13777
7767 * dwarf2read.c (process_full_comp_unit): Set LOCATIONS_VALID only for
7768 GCC >=4.5.
7769
c366c1f0
TT
77702012-03-16 Chris January <chris.january@allinea.com>
7771
7772 * tui-tui.win.c (tui_resize_all): Use erase and clearok instead
7773 of clear.
7774
e16edb45
TT
77752012-03-16 Chris January <chris.january@allinea.com>
7776
7777 * source.c (add_path): Use memmove instead of strcpy because the
7778 strings overlap.
7779
53ba8333
JB
77802012-03-16 Joel Brobecker <brobecker@adacore.com>
7781
7782 * value.h (set_value_parent): Add declaration.
7783 * value.c (set_value_parent): New function.
7784 (value_address): If VALUE->PARENT is not NULL, then use it as
7785 the base address instead of VALUE->LOCATION.address.
7786 * ada-lang.c (ada_value_primitive_packed_val): Keep V's address
7787 the same as OBJ's address. Adjust V's offset accordingly.
7788 Set V's parent.
7789
481860b3
GB
77902012-03-16 Gary Benson <gbenson@redhat.com>
7791
7792 PR breakpoints/10738
7793 * dwarf2read.c (use_deprecated_index_sections): New global.
7794 (struct partial_die_info): New member may_be_inlined.
7795 (read_partial_die): Set may_be_inlined where appropriate.
7796 (add_partial_subprogram): Add partial symbols for partial
7797 DIEs that may be inlined.
7798 (new_symbol_full): Add inlined subroutines to the current
7799 scope.
7800 (write_psymtabs_to_index): Bump version number.
7801 (dwarf2_read_index): Read only version 6 indices unless
7802 use_deprecated_index_sections is set.
7803 * linespec.c (symbol_and_data_callback): New structure.
7804 (iterate_inline_only): New function.
7805 (iterate_over_all_matching_symtabs): New argument
7806 "include_inline". If nonzero, also call the callback for
7807 symbols representing inlined subroutines.
7808 (lookup_prefix_sym): Pass extra argument to the above.
7809 (find_function_symbols): Likewise.
7810 (add_matching_symbols_to_info): Likewise.
7811 * NEWS: Mention that GDB can now set breakpoints on inlined
7812 functions.
7813
d0e7e15a
PM
78142012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
7815
7816 * p-typeprint.c (pascal_type_print_method_args):
7817 Fix display of parameter of methods.
7818
3d354654
PM
78192012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
7820
7821 * amd64-windows-nat.c (_initialize_amd64_windows_nat):
7822 Add missing prototype.
7823
cafe75b0
JK
78242012-03-16 Yao Qi <yao@codesourcery.com>
7825 Jan Kratochvil <jan.kratochvil@redhat.com>
7826
7827 Fix false compilation warning.
7828 * gnu-v3-abi.c (print_one_vtable): Initialize ADDR.
7829
25f8c692
JL
78302012-03-15 Jonathan Larmour <jifl@eCosCentric.com>
7831 Pedro Alves <pedro@codesourcery.com>
7832
7833 * arm-tdep.c: Include "remote.h" and "features/arm-with-m-fpa-layout.c".
7834 (arm_register_g_packet_guesses): New function.
7835 (arm_gdbarch_init): Don't force a target description with
7836 registers when the executable is detected as M-profile. Instead
7837 set gdbarch->tdep->is_m. Register `g' packet guesses.
7838 (_initialize_arm_tdep): Initialize the new target description.
7839 * features/arm-with-m-fpa-layout.xml: New description.
7840 * features/arm-with-m-fpa-layout.c: New, generated.
7841
35c63cd8
JB
78422012-03-15 Joel Brobecker <brobecker@adacore.com>
7843
7844 * breakpoint.c (breakpoint_xfer_memory): Add assertion.
7845 Update function description.
7846 (insert_bp_location): Do not wipe bl->target_info out.
7847 * mem-break.c: #include "gdb_string.h".
7848 (default_memory_insert_breakpoint): Do not call target_read_memory
7849 with a pointer to the breakpoint's shadow_contents buffer. Use
7850 a local buffer instead.
7851 * m32r-tdep.c (m32r_memory_insert_breakpoint): Ditto.
7852
57651221
TT
78532012-03-15 Tom Tromey <tromey@redhat.com>
7854
7855 * NEWS: Mention "info vtbl", not "info vtable".
7856 * cp-support.c (info_vtbl_command): Fix comment.
7857 (_initialize_cp_support): Fix text.
7858
410528f0
TT
78592012-03-15 Tom Tromey <tromey@redhat.com>
7860
7861 * cp-valprint.c (cp_print_value_fields): Use
7862 print_function_pointer_address for vtable slot.
7863
c4aeac85
TT
78642012-03-15 Tom Tromey <tromey@redhat.com>
7865
7866 * gnu-v3-abi.c (struct value_and_voffset): New.
7867 (hash_value_and_voffset, eq_value_and_voffset)
7868 (compare_value_and_voffset, compute_vtable_size)
7869 (print_one_vtable, gnuv3_print_vtable): New functions.
7870 (init_gnuv3_ops): Initialize 'print_vtable' field.
7871 * cp-support.c (info_vtbl_command): New function.
7872 (_initialize_cp_support): Add "info vtbl".
7873 * cp-abi.h (cplus_print_vtable): Declare.
7874 (struct cp_abi_ops) <print_vtable>: New field.
7875 * cp-abi.c (cplus_print_vtable): New function.
7876 * NEWS: Update.
7877
95cbceff
TT
78782012-03-15 Tom Tromey <tromey@redhat.com>
7879
7880 * d-lang.c (d_language_defn) <la_iterate_over_symbols>: Set to
7881 iterate_over_symbols.
7882
589b4a32
DE
78832012-03-14 Doug Evans <dje@google.com>
7884
7885 * dwarf2read.c (dwarf_stack_op_name): Add DW_OP_GNU_encoded_addr,
7886 DW_OP_GNU_parameter_ref.
7887
e837f12a
JK
78882012-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7889
7890 Fix double prompt of 'interpreter-exec mi'.
7891 * mi/mi-interp.c (mi_execute_command_input_handler): New prototype.
7892 (mi_interpreter_resume): use it.
7893 (mi_execute_command_input_handler): New function.
7894 * mi/mi-main.c (mi_execute_command): Move prompt printing to
7895 mi_execute_command_input_handler.
7896
ff1e4526 78972012-03-13 Josh Matthews <josh@joshmatthews.net> (tiny change)
c381a3f6
JB
7898
7899 * darwin-nat-info.c (_initialize_darwin_info_commands): Add
7900 prototype.
7901 (darwin_debug_port_info): Make static.
7902 * darwin-nat.c (_initialize_darwin_inferior): Add prototype.
7903 * machoread.c (_initialize_machoread): Add prototype.
7904 * i386-darwin-nat.c (i386_darwin_dr_set, i386_darwin_dr_get)
7905 (i386_darwin_set_control, i386_darwin_get_control)
7906 i386_darwin_dr_set_addr, i386_darwin_get_addr)
7907 i386_darwin_get_status, i386_darwin_get_control):
7908 Comment out with HW_WATCHPOINT_NOT_YET_ENABLED macro.
7909
d8a5d6ee
JB
79102012-03-13 Joel Brobecker <brobecker@adacore.com>
7911
7912 * ax-gdb.c (gen_usual_unary): Remove special handling of
7913 enum and bool types.
7914
af381b8c
JB
79152012-03-13 Joel Brobecker <brobecker@adacore.com>
7916
7917 * ax-gdb.c (gen_fetch): Add handling for TYPE_CODE_RANGE types.
7918
786c562f
JB
79192012-03-13 Joel Brobecker <brobecker@adacore.com>
7920
7921 * aix-thread.c (supply_fprs): Make more consistent with fill_fprs.
7922
e3ebf1bb
JB
79232012-03-13 Chris January <chris.january@allinea.com>
7924
7925 * aix-thread.c (fill_sprs): Store the floating point registers
7926 at the correct offsets into vals.
7927
c5b7e1cb
DE
79282012-03-13 Doug Evans <dje@google.com>
7929
16899756
DE
7930 * NEWS: Mention symbol-reloading has been deleted.
7931 * symfile.c (symbol_reloading): Delete.
7932 (show_symbol_reloading): Delete.
7933 (_initialize_symfile): Delete set/show symbol-reloading.
7934
c5b7e1cb
DE
7935 * dwarf2read.c (load_partial_comp_unit): Defer adding cu to
7936 read_in_chain until we have successfully read it in.
7937 (load_full_comp_unit): Ditto.
7938 (read_signatured_type): Add comment.
7939
46cb6474
JB
79402012-03-13 Chris January <chris.january@allinea.com>
7941
7942 * stabsread.c (fix_common_block): Change type of valu argument
7943 to CORE_ADDR.
7944
76219d77
JB
79452012-03-13 Chris January <chris.january@allinea.com>
7946
7947 * rs6000-tdep.c (skip_prologue): Support the oril r29, r1, 0x0
7948 instruction.
7949
87b0bb13
JK
79502012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7951
7952 * common/linux-procfs.c (linux_proc_get_int): New, from
7953 linux_proc_get_tgid, change its LWPID type to pid_t, add parameter
7954 field.
7955 (linux_proc_get_tgid): Only call linux_proc_get_int.
7956 (linux_proc_get_tracerpid): New.
7957 (linux_proc_pid_has_state): New, from linux_proc_pid_is_zombie.
7958 (linux_proc_pid_is_stopped, linux_proc_pid_is_zombie): Only call
7959 linux_proc_pid_has_state.
7960 * common/linux-procfs.h (linux_proc_get_tracerpid): New declaration.
7961 * common/linux-ptrace.c: Include linux-procfs.h and buffer.h.
7962 (linux_ptrace_attach_warnings): New.
7963 * common/linux-ptrace.h (struct buffer, linux_ptrace_attach_warnings):
7964 New declaration.
7965 * linux-nat.c: Include exceptions.h, linux-ptrace.h and buffer.h.
7966 (linux_nat_attach): New variables ex, buffer, message and message_s.
7967 Wrap to_attach by TRY_CATCH and call linux_ptrace_attach_warnings.
7968
5f572dec
JK
79692012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7970
7971 * Makefile.in (linux-ptrace.o): New.
7972 * common/linux-procfs.c (linux_proc_pid_is_zombie): New,
7973 from linux-nat.c.
7974 * common/linux-procfs.h (linux_proc_pid_is_zombie): New declaration.
7975 * common/linux-ptrace.c: New file.
7976 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-ptrace.o.
7977 * config/arm/linux.mh: Likewise.
7978 * config/i386/linux.mh: Likewise.
7979 * config/i386/linux64.mh: Likewise.
7980 * config/ia64/linux.mh: Likewise.
7981 * config/m32r/linux.mh: Likewise.
7982 * config/m68k/linux.mh: Likewise.
7983 * config/mips/linux.mh: Likewise.
7984 * config/pa/linux.mh: Likewise.
7985 * config/powerpc/linux.mh: Likewise.
7986 * config/powerpc/ppc64-linux.mh: Likewise.
7987 * config/powerpc/spu-linux.mh: Likewise.
7988 * config/s390/s390.mh: Likewise.
7989 * config/sparc/linux.mh: Likewise.
7990 * config/sparc/linux64.mh: Likewise.
7991 * config/xtensa/linux.mh: Likewise.
7992 * linux-nat.c (linux_lwp_is_zombie): Remove, move it to
7993 common/linux-procfs.c.
7994 (wait_lwp): Rename linux_lwp_is_zombie to linux_proc_pid_is_zombie.
7995
44f238bb
PA
79962012-03-13 Hui Zhu <teawater@gmail.com>
7997 Pedro Alves <palves@redhat.com>
7998
7999 * breakpoint.c (init_breakpoint_sal): New flags parameter. Handle
8000 CREATE_BREAKPOINT_FLAGS_INSERTED.
8001 (create_breakpoint_sal, create_breakpoints_sal)
8002 (base_breakpoint_create_breakpoints_sal)
8003 (tracepoint_create_breakpoints_sal)
8004 (strace_marker_create_breakpoints_sal): New flags parameter. Pass
8005 down.
8006 (break_command_1, handle_gnu_v3_exceptions, trace_command)
8007 (ftrace_command, strace_command): Adjust.
8008 (create_tracepoint_from_upload): Pass
8009 CREATE_BREAKPOINT_FLAGS_INSERTED.
8010 * breakpoint.h (enum breakpoint_create_flags): New.
8011 (create_breakpoint): New flags parameter.
8012 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
8013 * python/py-breakpoint.c (bppy_init): Adjust.
8014 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust.
8015 * spu-tdep.c (spu_catch_start): Adjust.
8016
1e51243a
PA
80172012-03-13 Pedro Alves <palves@redhat.com>
8018 Hui Zhu <teawater@gmail.com>
8019 Yao Qi <yao@codesourcery.com>
8020
8021 * remote.c (struct remote_state): New field `starting_up'.
8022 (remote_start_remote): Set and clear it.
8023 (remote_can_download_tracepoint): If starting up, return false.
8024
fa3064dd
YQ
80252012-03-13 Yao Qi <yao@codesourcery.com>
8026
8027 * inferior.h (struct inferior): Remove fields any_syscall_count,
8028 syscalls_counts and total_syscalls_count. Move them to new
8029 struct catch_syscall_inferior_data in breakpoint.c.
8030 * breakpoint.c: Call DEF_VEC_I(int).
8031 (struct catch_syscall_inferior_data): New.
8032 (get_catch_syscall_inferior_data): New.
8033 (catch_syscall_inferior_data_cleanup): New.
8034 (insert_catch_syscall): Update to access data in
8035 struct catch_syscall_inferior_data.
8036 (insert_catch_syscall): Likewise.
8037 (remove_catch_syscall): Likewise.
8038 (remove_catch_syscall): Likewise.
8039 (is_syscall_catchpoint_enabled): Likewise.
8040 (add_catch_command): Likewise.
8041 (_initialize_breakpoint): Register cleanup.
8042 * breakpoint.h: Removed DEF_VEC_I(int).
8043 * dwarf2loc.c: Call DEF_VEC_I(int).
8044 * mi/mi-main.c: Likewise.
8045
460fac3c
MK
80462012-03-12 Mark Kettenis <kettenis@gnu.org>
8047
8048 * inf-ptrace.c (inf_ptrace_post_attach): Make static.
8049
e1aca11e
JB
80502012-03-12 Chris January <chris.january@allinea.com>
8051
8052 * aix-thread.c (_initialize_aix_thread): Add prototype.
8053 * rs6000-nat.c (_initialize_rs6000_nat): Ditto.
8054 * xcoffsolib.c (_initialize_xcoffsolib): Ditto.
8055
649c7061
JB
80562012-03-12 Joel Brobecker <brobecker@adacore.com>
8057
8058 * amd64bsd-nat.c: Move #include of "amd64bsd-nat.h" after
8059 include of "amd64-nat.h".
8060
0b49e518
TT
80612012-03-12 Tom Tromey <tromey@redhat.com>
8062
8063 * buildsym.c (record_pending_block): Now static.
8064 * buildsym.h: (record_pending_block): Remove.
8065
fd24fa94
AT
80662012-03-12 Andreas Tobler <andreast@fgznet.ch>
8067
8068 * amd64bsd-nat.c: Include amd64bsd-nat.h.
8069
ba919b58
TT
80702012-03-09 Tom Tromey <tromey@redhat.com>
8071
8072 * dwarf2read.c (struct dwarf2_cu) <checked_producer,
8073 producer_is_gxx_lt_4_6>: New fields.
8074 (producer_is_gxx_lt_4_6): Use and update producer cache fields.
8075
a48e046c
TT
80762012-03-09 Tom Tromey <tromey@redhat.com>
8077
8078 * dwarf2read.c (dwarf2_attr): Avoid tail-recursive call.
8079
6f5e9362
JB
80802012-03-08 Joel Brobecker <brobecker@adacore.com>
8081
8082 * ravenscar-sparc-thread.c (_initialize_ravenscar_sparc): Add
8083 prototype.
8084
8d037db9
JB
80852012-03-08 Joel Brobecker <brobecker@adacore.com>
8086
8087 * ravenscar-thread.c (_initialize_ravenscar): Add prototype.
8088
4e841acf
JK
80892012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8090
8091 Fix -Wmissing-prototypes build.
8092 * arm-linux-nat.c (get_thread_id): Make it static.
8093 * xtensa-linux-nat.c (get_thread_id): Likewise.
8094
c6030312
JB
80952012-03-08 Joel Brobecker <brobecker@adacore.com>
8096
8097 * server.c (process_point_options): If a conditional expression
8098 is found, only print a message if remote_debug is nonzero.
8099
52323be9
LM
81002012-03-08 Luis Machado <lgustavo@codesourcery.com>
8101
8102 * ax-gdb.c (gen_fetch): Fail gracefully and use error instead
8103 of internal error for unknown/unsupported types.
8104
7fe25d9b
JK
81052012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8106
8107 Fix CU relative vs. absolute DIE offsets.
8108 * dwarf2loc.h (dwarf2_fetch_die_location_block): Rename parameter
8109 offset to offset_in_cu.
8110 * dwarf2read.c (process_enumeration_scope): Add CU offset to
8111 TYPE_OFFSET.
8112 (dwarf2_fetch_die_location_block): Rename parameter offset to
8113 offset_in_cu. New variable offset, add CU offset to OFFSET_IN_CU.
8114
05e7c244
JK
81152012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8116
8117 * libunwind-frame.c: Rename to ...
8118 * ia64-libunwind-tdep.c: ... here.
8119 * libunwind-frame.h: Rename to ...
8120 * ia64-libunwind-tdep.h: ... here.
8121 * Makefile.in (HFILES_NO_SRCDIR): Rename libunwind-frame.h to
8122 ia64-libunwind-tdep.h.
8123 (ALLDEPFILES): Rename libunwind-frame.c to ia64-libunwind-tdep.c.
8124 * README (--with-libunwind): Rename to ...
8125 (--with-libunwind-ia64): ... here, note it is ia64 specific now.
8126 * config.in: Regenerate.
8127 * configure: Regenerate.
8128 * configure.ac: New option --with-libunwind-ia64, make the
8129 AS_HELP_STRING ia64 specific. Deprecate option --with-libunwind.
8130 Remove AC_DEFINE for HAVE_LIBUNWIND.
8131 * ia64-libunwind-tdep.c: Make the file top comment ia64 specific.
8132 Rename libunwind-frame.h #include to ia64-libunwind-tdep.h.
8133 Rename libunwind-frame in the general comment.
8134 * ia64-libunwind-tdep.h: Make the file top comment ia64 specific.
8135 Rename symbol LIBUNWIND_FRAME_H to IA64_TDEP_LIBUNWIND_FRAME_H.
8136 Move forward declarations inside #ifndef. Rename libunwind-frame in
8137 the general comment.
8138 * ia64-tdep.c: Rename libunwind-frame.h #include to
8139 ia64-libunwind-tdep.h.
8140 (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum, ia64_is_fpreg)
8141 (ia64_libunwind_descr): Rename libunwind-frame to
8142 ia64-libunwind-tdep in these function comments.
8143 * ia64-tdep.h: Rename libunwind-frame.h #include to
8144 ia64-libunwind-tdep.h.
8145 * ia64-vms-tdep.c (ia64_vms_libunwind_descr): Rename libunwind-frame to
8146 ia64-libunwind-tdep in that data comment.
8147
3755cbfd
JK
81482012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8149
8150 * libunwind-frame.h (struct frame_unwind): New declaration.
8151
d1cda5d9
JB
81522012-03-08 Joel Brobecker <brobecker@adacore.com>
8153
8154 * breakpoint.c (_initialize_breakpoint): Fix error in help of
8155 "set breakpoint condition-evaluation" command.
8156
a0ba0aa2
TG
81572012-03-08 Tristan Gingold <gingold@adacore.com>
8158
8159 * sparc-stub.c: Move to stubs/
8160 * sh-stub.c: Likewise.
8161 * m68k-stub.c: Likewise.
8162 * m32r-stub.c: Likewise.
8163 * i386-stub.c: Likewise.
8164
7b8b6d6d
AS
81652012-03-08 Andreas Schwab <schwab@linux-m68k.org>
8166
007cafee
AS
8167 * m68klinux-tdep.c (m68k_linux_init_abi): Register
8168 linux_get_siginfo_type.
8169
7b8b6d6d
AS
8170 * m68klinux-nat.c: Include "gdb_proc_service.h".
8171 (PTRACE_GET_THREAD_AREA): Define.
8172 (ps_get_thread_area): New function.
8173
bba74b36
YQ
81742012-03-08 Yao Qi <yao@codesourcery.com>
8175
8176 * remote.c (remote_get_noisy_reply): Replace `sprintf' with
8177 `xsnprintf'.
8178 (remote_query_attached): Likewise.
8179 (remote_static_tracepoint_marker_at): Likewise.
8180 (remote_set_permissions): Likewise.
8181 (remote_detach_1, extended_remote_attach_1): Likewise.
8182 (send_g_packet, remote_vkill): Likewise.
8183 (extended_remote_disable_randomization): Likewise.
8184 (remote_add_target_side_condition): Likewise.
8185 (remote_insert_breakpoint): Likewise.
8186 (remote_remove_breakpoint): Likewise.
8187 (remote_insert_watchpoint): Likewise.
8188 (remote_remove_watchpoint): Likewise.
8189 (remote_insert_hw_breakpoint): Likewise.
8190 (remote_insert_hw_breakpoint): Likewise.
8191 (remote_remove_hw_breakpoint): Likewise.
8192 (remote_download_command_source): Likewise.
8193 (remote_download_tracepoint): Likewise.
8194 (remote_download_trace_state_variable): Likewise.
8195 (remote_disable_tracepoint): Likewise.
8196 (remote_trace_set_readonly_regions): Likewise.
8197 (remote_get_tracepoint_status): Likewise.
8198 (remote_trace_find): Likewise.
8199 (remote_get_trace_state_variable_value): Likewise.
8200 (remote_set_disconnected_tracing): Likewise.
8201 (remote_set_circular_trace_buffer): Likewise.
8202 (remote_get_min_fast_tracepoint_insn_len): Likewise.
8203 (remote_use_agent): Likewise.
8204 (remote_add_target_side_condition): Add one parameter BUF_SIZE.
8205 Update callers.
8206
9b224c5e
PA
82072012-03-07 Pedro Alves <palves@redhat.com>
8208
8209 * NEWS: Mention QProgramSignals.
8210 * inferior.h (update_signals_program_target): Declare.
8211 * infrun.c: (update_signals_program_target): New.
8212 (handle_command): Update the target of the new program signals
8213 array changes.
8214 * remote.c (PACKET_QProgramSignals): New enum.
8215 (last_program_signals_packet): New global.
8216 (remote_program_signals): New.
8217 (remote_start_remote): Update the target with the program signals
8218 list.
8219 (remote_protocol_features): Add entry for QPassSignals.
8220 (remote_open_1): Free anc clear last_program_signals_packet.
8221 (init_remote_ops): Install remote_program_signals.
8222 * target.c (update_current_target): Adjust.
8223 (target_program_signals): New.
8224 * target.h (struct target_ops) <to_program_signals>: New field.
8225 (target_program_signals): Declare.
8226
74c48cbb
PA
82272012-03-07 Pedro Alves <palves@redhat.com>
8228
8229 * NEWS: Add subtitle for new z0/z1 conditional breakpoint
8230 extensions.
8231
0c13fc49
AS
82322012-03-07 Andreas Schwab <schwab@linux-m68k.org>
8233
8234 * m68klinux-nat.c (getregs_supplies): Make static.
8235 (getfpregs_supplies): Likewise.
8236 (have_ptrace_getregs): Likewise.
8237
1281d2a3
JB
82382012-03-06 Joel Brobecker <brobecker@adacore.com>
8239
8240 * dwarf2read.c (dwarf2_get_die_type): Pass absolute offset
8241 in call to get_die_type_at_offset.
8242
2b03b41d
SS
82432012-03-06 Stan Shebs <stan@codesourcery.com>
8244
8245 * mi/mi-cmd-break.c: Enforce coding standards, fix comments.
8246 * mi/mi-cmd-disas.c: Ditto.
8247 * mi/mi-cmd-env.c: Ditto.
8248 * mi/mi-cmd-file.c: Ditto.
8249 * mi/mi-cmd-stack.c: Ditto.
8250 * mi/mi-cmd-target.c: Ditto.
8251 * mi/mi-cmd-var.c: Ditto.
8252 * mi/mi-cmds.c: Ditto.
8253 * mi/mi-cmds.h: Ditto.
8254 * mi/mi-console.c: Ditto.
8255 * mi/mi-getopt.c: Ditto.
8256 * mi/mi-getopt.h: Ditto.
8257 * mi/mi-interp.c: Ditto.
8258 * mi/mi-main.c: Ditto.
8259 * mi/mi-out.c: Ditto.
8260 * mi/mi-parse.c: Ditto.
8261 * mi/mi-parse.h: Ditto.
8262 * mi/mi-symbol-cmds.c: Ditto.
8263
8264 * mi/mi-getopt.h: Move mi_opt struct up.
8265 * mi/mi-main.c (captured_mi_execute_command): Remove redundant
8266 return.
8267 * mi/mi-out.c (_initialize_mi_out): Remove empty initialize.
8268
c988ad87
TT
82692012-03-06 Tom Tromey <tromey@redhat.com>
8270
8271 * proc-service.c (ps_pglobal_lookup): Set the current program
8272 space.
8273
1b7c1b10
PA
82742012-03-06 Pedro Alves <palves@redhat.com>
8275
8276 * gregset.h [HAVE_SYS_PROCFS_H]: Include <sys/procfs.h>.
8277
3c182069
JB
82782012-03-05 Joel Brobecker <brobecker@adacore.com>
8279
8280 * MAINTAINERS: List Maciej W. Rozycki as the mips maintainer.
8281
2e794194
JK
82822012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8283
8284 Code cleanup.
8285 * common/linux-osdata.c (linux_common_core_of_thread): New function
8286 comment.
8287 * linux-nat.c (linux_nat_wait_1): Replace linux_nat_core_of_thread_1
8288 call by linux_common_core_of_thread.
8289 (linux_nat_core_of_thread_1): Remove.
8290 * linux-nat.h (linux_nat_core_of_thread_1): Remove declaration.
8291 * linux-thread-db.c: Include linux-osdata.h.
8292 (update_thread_core): Replace linux_nat_core_of_thread_1 call by
8293 linux_common_core_of_thread.
8294
9f9f1f31
TT
82952012-03-05 Tom Tromey <tromey@redhat.com>
8296
8297 * value.c (value_primitive_field): Don't fetch contents for
8298 non-virtual bases.
8299
b7b189f3
TT
83002012-03-05 Tom Tromey <tromey@redhat.com>
8301
8302 * jv-valprint.c (java_value_print): Correctly compute 'obj_addr'.
8303
05b8a789 83042012-03-05 Andreas Arnez <arnez@linux.vnet.ibm.com>
5538f557 8305
5538f557
JB
8306 * s390-nat.c: Include "gregset.h".
8307
75528772
JK
83082012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8309
8310 * libunwind-frame.c (LIBUNWIND_SO): Change .7 to .8.
8311 [!LIBUNWIND_SO] (LIBUNWIND_SO_7): New #define.
8312 (libunwind_load): New variable so_error, use it for dlerror. Try to
8313 load also LIBUNWIND_SO_7.
8314
275418ae
PA
83152012-03-05 Pedro Alves <palves@redhat.com>
8316
8317 * i387-tdep.c (i387_supply_xsave): Assert the xsave section buffer
8318 is not NULL, and remove resulting dead code.
8319
5cbb9812
TS
83202012-03-05 Thomas Schwinge <thomas@codesourcery.com>
8321
8322 * sh-tdep.c (sh_skip_prologue): Provide an upper limit on the function
8323 prologue to sh_analyze_prologue.
8324 (sh_analyze_prologue): Make better use of such an upper limit, and
8325 generally be more cautious about accessing memory.
8326
541515ad
TT
83272012-03-05 Tom Tromey <tromey@redhat.com>
8328
8329 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from
8330 _initialize_ia64_hpux_tdep.
8331
b4d36fb8
PA
83322012-03-05 Pedro Alves <palves@redhat.com>
8333
24490249
PA
8334 PR gdb/13766
8335
b4d36fb8
PA
8336 * i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and
8337 the register state is clear, supply explicit zero, instead of
8338 marking the register unavailable.
8339
60c9a3c0
TG
83402012-03-05 Tristan Gingold <gingold@adacore.com>
8341
8342 * NEWS: Mention OpenVMS ia64 new target.
8343
696759ad
TG
83442012-03-05 Tristan Gingold <gingold@adacore.com>
8345
8346 * ia64-tdep.h: Include libunwind-frame.h and libunwind-ia64.h.
8347 (ia64_unw_accessors, ia64_unw_rse_accessors)
8348 (ia64_libunwind_descr): Declare.
8349 * ia64-vms-tdep.c: New file.
8350 * ia64-tdep.c (ia64_unw_accessors, ia64_unw_rse_accessors)
8351 (ia64_libunwind_descr): Make them public.
8352 * configure.tgt: Add ia64-*-*vms*.
8353 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-vms-tdep.o
8354 (ALLDEPFILES): Add ia64-vms-tdep.c
8355
34864976
TG
83562012-03-05 Tristan Gingold <gingold@adacore.com>
8357
169081d0
TG
8358 * target.h (target_object): Add TARGET_OBJECT_OPENVMS_UIB.
8359 * remote.c (PACKET_qXfer_uib): New enum value.
8360 (remote_protocol_features): Add entry for PACKET_qXfer_uib.
8361 (remote_xfer_partial): Handle TARGET_OBJECT_OPENVMS_UIB.
8362 (_initialize_remote): Call add_packet_config_cmd for
8363 xfer:uib packet.
8364
83652012-03-05 Tristan Gingold <gingold@adacore.com>
8366
8367 * osabi.c (gdb_osabi_names): Add OpenVMS.
8368 (generic_elf_osabi_sniffer): Likewise.
8369 * defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS.
34864976 8370
6597b100
JK
83712012-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
8372
8373 Removed unused code.
8374 * libunwind-frame.c (libunwind_frame_unwind)
8375 (libunwind_frame_base_address): Remove.
8376 * libunwind-frame.h (libunwind_frame_base_address): Remove declaration.
8377
87399aa1
YQ
83782012-03-04 Yao Qi <yao@codesourcery.com>
8379
8380 * common/agent.c (gdb_connect_sync_socket): Add _ markup and
8381 remove trailing new line.
8382 (agent_run_command, agent_run_command): Add _ markup.
8383 (agent_capability_check): Likewise.
8384
abf1152a
JK
83852012-03-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8386
8387 * breakpoint.c (set_condition_evaluation_mode): Set
8388 CONDITION_EVALUATION_MODE unconditionally.
8389
5808517f
YQ
83902012-03-03 Yao Qi <yao@codesourcery.com>
8391
8392 * common/agent.c (agent_look_up_symbols): Add one parameter 'arg'.
8393 * common/agent.h: Update declaration.
8394 * inf-child.c (inf_child_use_agent): New.
8395 (inf_child_can_use_agent): New.
8396 (inf_child_target): Initialize fields `to_use_agent'
8397 and `to_can_use_agent'.
8398 * agent.c (agent_new_objfile): New.
89b7509a 8399 (_initialize_agent): Add agent_new_objfile to new_objfile
5808517f
YQ
8400 observer.
8401
8402 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
8403 New.
89b7509a 8404 (linux_target_install_ops): Initialize field
5808517f
YQ
8405 `to_static_tracepoint_markers_by_strid'.
8406 * remote.c (free_current_marker): Move it to ...
8407 * tracepoint.c (free_current_marker): ... here. New.
8408 (cleanup_target_stop): New.
8409 * tracepoint.h: Declare free_current_marker.
8410 * NEWS: Add one entry about `info static-tracepoint-marker'.
8411
58b4daa5
YQ
84122012-03-03 Yao Qi <yao@codesourcery.com>
8413
8414 * common/agent.c (agent_loaded_p): New.
89b7509a 8415 (agent_look_up_symbols): New global.
58b4daa5
YQ
8416 * common/agent.h: Declare agent_loaded_p.
8417
8ffcbaaf
YQ
84182012-03-03 Yao Qi <yao@codesourcery.com>
8419
8420 * common/agent.c (struct ipa_sym_addresses) <addr_capability>: New.
8421 (agent_capability_check, agent_capability_invalidate): New.
8422 (symbol_list): New array element.
8423 * common/agent.h (enum agent_capa): New.
8424 * target.c (target_pre_inferior): Call agent_capability_invalidate.
8425
d1feda86
YQ
84262012-03-03 Yao Qi <yao@codesourcery.com>
8427
8428 * target.h (struct target_ops) <to_use_agent>: New field.
8429 (struct target_ops) <to_can_use_agent>: New field.
8430 (target_use_agent, target_can_use_agent): New macro.
8431 * target.c (update_current_target): Update.
8432 * remote.c: New enum `PACKET_QAgent'.
8433 (remote_protocol_features): Add a new element.
8434 (remote_use_agent, remote_can_use_agent): New.
8435 (init_remote_ops): Initialize field `can_use_agent' with
8436 remote_can_use_agent. Intiailize field `use_agent' with
8437 remote_use_agent.
8438 * common/agent.c (use_agent): New global.
8439 * common/agent.h: Declare it.
8440 * tracepoint.c (info_static_tracepoint_markers_command): Add
8441 comment.
8442 * Makefile.in (SFILES): Add common/agent.c and agent.c.
8443 (COMMON_OBS): Add common/agent.o and agent.o
8444 (common-agent.o): New rule.
8445 * agent.c: New.
8446
2fa291ac
YQ
84472012-03-03 Yao Qi <yao@codesourcery.com>
8448
8449 * common/agent.c: New.
8450 * common/agent.h: New.
8451 * configure.ac: Add `sys/socket.h' and `sys/un.h' to
8452 AC_CHECK_HEADERS.
8453 * configure, configh.in: Regenerated.
8454
9fc05685
KB
84552012-03-02 Kevin Buettner <kevinb@redhat.com>
8456
8457 * sh-tdep.c (sh_frame_cache): Don't fetch the FPSCR register
8458 unless it exists for this architecture.
8459
a5ee536b
JB
84602012-03-02 Joel Brobecker <brobecker@adacore.com>
8461
8462 * language.h (struct language_defn): New "method" la_read_var_value.
8463 * findvar.c: #include "language.h".
8464 (default_read_var_value): Renames read_var_value. Rewrite
8465 function description.
8466 (read_var_value): New function.
8467 * value.h (default_read_var_value): Add prototype.
8468 * ada-lang.c (ada_read_renaming_var_value, ada_read_var_value):
8469 New functions.
8470 (ada_language_defn): Add entry for la_read_var_value.
8471 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, language.c,
8472 * m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Update
8473 language_defn structures to add entry for new la_read_var_value
8474 field.
8475
f59f708a
PA
84762012-03-02 Tom Tromey <tromey@redhat.com>
8477 Pedro Alves <palves@redhat.com>
8478
8479 PR breakpoints/13776:
8480 * breakpoint.c (breakpoint_init_inferior): Delete step-resume
8481 breakpoints.
8482 (delete_longjmp_breakpoint_at_next_stop): New.
8483 * breakpoint.h (delete_longjmp_breakpoint_at_next_stop): Declare.
8484 * target.c (generic_mourn_inferior): Call mark_breakpoints_out
8485 before deleting the inferior. Add comments.
8486 * thread.c (clear_thread_inferior_resources): Don't delete lonjmp
8487 breakpoints immediately, but only on next stop. Move that code
8488 next to where we mark other breakpoints for deletion.
8489
44099a67
JB
84902012-03-02 Joel Brobecker <brobecker@adacore.com>
8491
8492 * mips-linux-nat.c (mips_linux_read_description): Add missing i18n
8493 marker.
8494 * mips-tdep.c (mips_linux_reg_names): Improve comment to avoid ARI
8495 violation.
8496
2a2ef594
PA
84972012-03-02 Pedro Alves <palves@redhat.com>
8498
8499 * linux-thread-db.c (attach_thread): Avoid in_thread_list call.
8500
b261e0c5
UW
85012012-03-02 Ulrich Weigand <uweigand@de.ibm.com>
8502
8503 Fix -Wmissing-prototypes build.
8504 * ppc-linux-nat.c (ppc_linux_get_hwcap): Make static.
8505 * remote-sim.c (gdbsim_has_all_memory): Likewise.
8506 (gdbsim_has_memory): Likewise.
8507
a95babbf
YQ
85082012-03-02 Yao Qi <yao@codesourcery.com>
8509
8510 Fix -Wmissing-prototypes build.
8511 * charset.c (phony_iconv_open): Make static.
8512 (phony_iconv_close, phony_iconv): Likewise.
8513 * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype.
8514 * i386-windows-nat.c (_initialize_i386_windows_nat): New
8515 prototype.
8516 * mingw-hdep.c (_initialize_mingw_hdep): New prototype.
8517 * ser-mingw.c (create_select_thread): Make static.
8518 * windows-termcap.c (tgetent): New prototype.
8519 (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
8520
d603d4b3
JK
85212012-03-02 Zhang Yuanhui <asmwarrior@gmail.com>
8522
8523 Fix -Wmissing-prototypes build.
8524 * windows-nat.c (dll_symbol_command, ctrl_c_handler): Make them static.
8525 (_initialize_windows_nat, _initialize_check_for_gdb_ini)
8526 (_initialize_loadable): New prototypes.
8527
7fb3ad1f
DE
85282012-03-02 Doug Evans <dje@google.com>
8529
8530 * dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
8531 abbrev table, read_comp_unit will do it.
8532
693be288
JK
85332012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8534
8535 Fix -Wmissing-prototypes build.
8536 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Make it static.
8537 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): New prototype.
8538 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Likewise.
8539 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code): Make it static.
8540 (_initialize_arm_symbian_tdep): New prototype.
8541 * arm-wince-tdep.c (arm_wince_skip_main_prologue): Make it static.
8542 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): New prototype.
8543 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Make it
8544 static.
8545 * lm32-tdep.c (_initialize_lm32_tdep): New prototype.
8546 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): New
8547 prototype.
8548 * microblaze-tdep.c (microblaze_debug, microblaze_fetch_instruction)
8549 (microblaze_skip_prologue, microblaze_frame_cache): Make them static.
8550 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Make it
8551 static.
8552 * moxie-tdep.c (moxie_process_record): Likewise.
8553 * remote-mips.c (mips_can_use_watchpoint, mips_insert_watchpoint)
8554 (mips_remove_watchpoint, mips_stopped_by_watchpoint): Make them static.
8555 * rl78-tdep.c (rl78_breakpoint_from_pc): Make it static.
8556 (_initialize_rl78_tdep): New prototype.
8557 * rx-tdep.c (rx_breakpoint_from_pc): Make it static.
8558 (_initialize_rx_tdep): New prototype.
8559 * solib-darwin.c (darwin_in_dynsym_resolve_code): Make it static.
8560 (_initialize_darwin_solib): New prototype.
8561 * solib-spu.c: Include solib-spu.h.
8562 (_initialize_spu_solib): New prototype.
8563 * spu-multiarch.c (_initialize_spu_multiarch): New prototype.
8564 * tic6x-tdep.c (tic6x_analyze_prologue, tic6x_skip_prologue)
8565 (tic6x_breakpoint_from_pc, tic6x_frame_unwind_cache)
8566 (tic6x_software_single_step): Make it static.
8567 (_initialize_tic6x_tdep): New prototype.
8568
638234e5
JK
85692012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8570
8571 Fix -Wmissing-prototypes build.
8572 * cris-tdep.c (cris_can_use_hardware_watchpoint)
8573 (cris_region_ok_for_watchpoint, cris_stopped_data_address): Remove.
8574
f4a6f16d
JK
85752012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
8576
8577 Fix -Wmissing-prototypes build.
8578 * frv-tdep.c (frv_check_watch_resources, frv_stopped_data_address)
8579 (frv_have_stopped_data_address): Remove.
8580
04dcf5fa
JK
85812012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
8582
8583 Fix -Wmissing-prototypes build.
8584 * Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h.
8585 * sh-tdep.c: Include sh64-tdep.h.
8586 * sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations.
8587 * sh64-tdep.c: Include sh64-tdep.h.
8588 * sh64-tdep.h: New file.
8589
19080931
MR
85902012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
8591
8592 * mips-tdep.c (mips32_scan_prologue): Correct indentation.
8593
9aac7884
MR
85942012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
8595
8596 * mips-tdep.c (mips_gdbarch_init): Only set pc_regnum and
8597 sp_regnum once the gdbarch_init_osabi hook has been called.
8598
a385295e
MR
85992012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
8600
8601 * mips-tdep.c (mips32_bc1_pc): New function.
8602 (mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T,
8603 BPOSGE32 and BPOSGE64 instructions.
8604 (deal_with_atomic_sequence): Likewise.
8605 (mips32_instruction_has_delay_slot): Likewise.
8606
1faeff08 86072012-03-01 Maciej W. Rozycki <macro@mips.com>
a09130f9
PA
8608 Chris Dearman <chris@mips.com>
8609 Maciej W. Rozycki <macro@codesourcery.com>
8610 Joseph Myers <joseph@codesourcery.com>
1faeff08
MR
8611
8612 * features/mips-dsp.xml: New file.
8613 * features/mips64-dsp.xml: New file.
8614 * features/mips-dsp-linux.xml: New file.
8615 * features/mips64-dsp-linux.xml: New file.
8616 * features/Makefile (WHICH): Add mips-dsp-linux and
8617 mips64-dsp-linux.
8618 (mips-dsp-expedite, mips64-dsp-expedite): New variables.
8619 * features/mips-dsp-linux.c: New file.
8620 * features/mips64-dsp-linux.c: New file.
8621 * regformats/mips-dsp-linux.dat: New file.
8622 * regformats/mips64-dsp-linux.dat: New file.
8623 * mips-linux-nat.c (mips_linux_register_addr): Handle DSP
8624 registers.
8625 (mips64_linux_register_addr): Likewise.
8626 (mips64_linux_regsets_fetch_registers): Likewise.
8627 (mips64_linux_regsets_store_registers): Likewise.
8628 (mips64_linux_fetch_registers): Update call to
8629 mips64_linux_regsets_fetch_registers.
8630 (mips64_linux_store_registers): Update call to
8631 mips64_linux_regsets_store_registers.
8632 (mips_linux_read_description): Probe for DSP registers.
8633 (_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux
8634 and initialize_tdesc_mips64_dsp_linux.
8635 * mips-linux-tdep.c (supply_gregset, mips64_supply_gregset):
8636 Remove padding of no longer used embedded register slots.
8637 * mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros.
8638 (MIPS_RESTART_REGNUM): Redefine enum value.
8639 * mips-tdep.c (mips_generic_reg_names): Remove trailing null
8640 strings.
8641 (mips_tx39_reg_names): Likewise.
8642 (mips_linux_reg_names): New array of register names for Linux
8643 targets.
8644 (mips_register_name): Check for a null pointer in
8645 mips_processor_reg_names and return an empty string.
8646 (mips_register_type): Exclude embedded registers for the IRIX
8647 and Linux ABIs.
8648 (mips_pseudo_register_type): Likewise. Use dynamic numbers to
8649 refer to FP registers, LO, HI, BadVAddr, Cause and PC. Handle
8650 DSP registers.
8651 (mips_stab_reg_to_regnum): Handle DSP accumulators.
8652 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
8653 (mips_gdbarch_init): Likewise. Initialize internal register
8654 indices for the Linux ABI. Use dynamic numbers to refer to
8655 registers, as applicable, while parsing the target description.
8656 * mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets.
8657
263689d8
JB
86582012-03-01 Joel Brobecker <brobecker@adacore.com>
8659
8660 * frame.h (read_frame_register_unsigned): Fix typo in function
8661 description.
8662
f3b4f45c
PA
86632012-03-01 Pedro Alves <palves@redhat.com>
8664
8665 * jit-reader.in [!__cplusplus]
8666 (GDB_DECLARE_GPL_COMPATIBLE_READER): Add missing backslash.
8667
b03a2011
PA
86682012-03-01 Pedro Alves <palves@redhat.com>
8669
8670 * configure.ac (build_warnings): Add -Wmissing-prototypes.
8671 * configure: Regenerate.
8672
70221824
PA
86732012-03-01 Pedro Alves <palves@redhat.com>
8674
8675 * amd64-linux-tdep.c (amd64_linux_record_signal): Make static.
8676 * breakpoint.c (create_exception_master_breakpoint, trace_command)
8677 (ftrace_command, strace_command): Make static.
8678 * d-lang.c (_initialize_d_language): Declare.
8679 * dwarf2expr.c (_initialize_dwarf2expr): Declare.
8680 * dwarf2loc.c (_initialize_dwarf2loc):
8681 * dwarf2read.c (process_psymtab_comp_unit): Make static.
8682 * exec.c (exec_get_section_table): Make static.
8683 * i386-linux-tdep.c (i386_linux_record_signal): Make static.
8684 * infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static.
8685 * inferior.c (remove_inferior_command, add_inferior_command)
8686 (clone_inferior_command): Make static.
8687 * linux-nat.c (linux_nat_thread_address_space)
8688 (linux_nat_core_of_thread): Make static.
8689 * linux-tdep.c (_initialize_linux_tdep): Declare.
8690 * objc-lang.c (_initialize_objc_lang): Declare.
8691 * opencl-lang.c (builtin_opencl_type, opencl_language_arch_info):
8692 Make static.
8693 (_initialize_opencl_language): Declare.
8694 * record.c (_initialize_record): Declare.
8695 * remote.c (demand_private_info, remote_get_tib_address)
8696 (remote_supports_cond_tracepoints)
8697 (remote_supports_fast_tracepoints, remote_get_tracepoint_status):
8698 Make static.
8699 * skip.c (_initialize_step_skip): Declare.
8700 * symtab.c (skip_prologue_using_lineinfo): Make static.
8701 * tracepoint.c (delete_trace_state_variable)
8702 (trace_variable_command, delete_trace_variable_command)
8703 (get_uploaded_tsv, find_matching_tracepoint_location)
8704 (find_matching_tsv, create_tsv_from_upload, get_traceframe_info):
8705 Make static.
8706 * value.c (pack_unsigned_long): Make static.
8707 * varobj.c (varobj_ensure_python_env): Make static.
8708 * windows-tdep.c (_initialize_windows_tdep): Declare.
8709 * xml-syscall.c (make_cleanup_free_syscalls_info): Make static.
8710
33fbcbee
PA
87112012-03-01 Pedro Alves <palves@redhat.com>
8712
8713 * linux-tdep.c (linux_has_shared_address_space): Make static. Add
8714 gdbarch parameter.
8715 (linux_init_abi): Install it as has_shared_address_space gdbarch
8716 callback.
8717
44d0cd3b
PA
87182012-03-01 Pedro Alves <palves@redhat.com>
8719
8720 * observer.c (observer_test_first_notification_function)
8721 (observer_test_second_notification_function)
8722 (observer_test_third_notification_function): Add declarations.
8723
ed01b82c
PA
87242012-03-01 Pedro Alves <palves@redhat.com>
8725
8726 * common/signals.c (default_target_signal_to_host)
8727 (default_target_signal_from_host): Move ...
8728 * arch-utils.c: ... here.
8729 * arch-utils.h (default_target_signal_to_host)
8730 (default_target_signal_from_host): Declare.
8731
8732 * common/signals.c (target_signal_from_command): Move ...
8733 * infrun.c: ... here.
8734 * inferior.h (target_signal_from_command): Declare.
8735 * target.h (target_signal_from_command)
8736 (default_target_signal_from_host, default_target_signal_to_host):
8737 Delete declarations.
8738
8739 * common/signals.c (_initialize_signals): Delete.
8740
c9b87335
PA
87412012-03-01 Pedro Alves <palves@redhat.com>
8742
8743 * jit-reader.in (plugin_is_GPL_compatible): Add declarations for
8744 both __cplusplus and !__cplusplus.
8745
9340a6c0
PA
87462012-03-01 Pedro Alves <palves@redhat.com>
8747
8748 * psymtab.c (find_and_open_source): Delete declaration.
8749 * source.c (find_and_open_source): Move comment ...
8750 * source.h (find_and_open_source): ... to this new declaration.
8751
e451c4a1
PA
87522012-03-01 Pedro Alves <palves@redhat.com>
8753
8754 * inline-frame.c: Include inline-frame.h.
8755
983fb104
PA
87562012-03-01 Pedro Alves <palves@redhat.com>
8757
8758 * tui/tui-data.c (set_gen_win_origin): Delete.
8759 * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration.
8760 * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete.
8761
5fbce5df
PA
87622012-03-01 Pedro Alves <palves@redhat.com>
8763
8764 * remote.c (encode_actions): Delete declaration.
8765 * tracepoint.c (encode_actions): Make extern.
8766 * tracepoint.h (encode_actions): Declare.
8767
49a8461d
PA
87682012-03-01 Pedro Alves <palves@redhat.com>
8769
8770 * python/py-breakpoint.c: Include python.h.
8771 * python/py-continueevent.c (create_continue_event_object): Make
8772 static.
8773 * python/py-lazy-string.c (stpy_get_type): Make static.
8774 * python/py-newobjfileevent.c (create_new_objfile_event_object):
8775 Make static.
8776 * python/py-utils.c (unicode_to_target_python_string): Make
8777 static.
8778 * python/py-value.c: Include python.h.
8779
9079102f
PA
87802012-03-01 Pedro Alves <palves@redhat.com>
8781
8782 * inferior.c (delete_threads_of_inferior): Delete.
8783
a298c5e8
PA
87842012-03-01 Pedro Alves <palves@redhat.com>
8785
8786 Import fallback definitions from glibc.
8787
8788 * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
8789 ps_prochandle): Forward declare.
8790 (ps_err_e): Use glibc's comments.
8791 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
8792 (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
8793 (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup)
8794 (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize)
8795 (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare.
8796 (struct ps_prochandle): Adjust comment.
8797
e3084549
PA
87982012-03-01 Pedro Alves <palves@redhat.com>
8799
8800 * ada-lang.c (ada_modulus_from_name): Delete.
8801 * ada-lex.l (lexer_init): Make static.
8802
ad5f7d6e
PA
88032012-03-01 Pedro Alves <palves@redhat.com>
8804
8805 PR gdb/13767
8806
8807 * frame.c (read_frame_register_unsigned): New.
8808 * frame.h (read_frame_register_unsigned): Declare.
8809 * i387-tdep.c (print_i387_status_word): New parameter `status_p'.
8810 Handle it.
8811 (print_i387_control_word): New parameter `control_p'. Handle it.
8812 (i387_print_float_info): Handle unavailable float registers.
8813
e0a4d108
KS
88142012-03-01 Keith Seitz <keiths@redhat.com>
8815
8816 * linespec.c (decode_line_2): Sort the list of methods
8817 alphabetically before presenting the user with a selection
8818 menu.
8819
122d1940
DE
88202012-03-01 Doug Evans <dje@google.com>
8821
8822 * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
8823 has_namespace_info.
8824 (dwarf2_read_abbrevs): Remove corresponding initialization.
8825
7d74f244
DE
88262012-03-01 Scott J. Goldman <scottjg@vmware.com>
8827
8828 * NEWS: Mention new python command class gdb.COMMAND_USER.
8829 * cli/cli-cmds.c (show_user): Print error when used on a python
8830 command.
8831 (init_cli_cmds): Update documentation strings for "show user" and
8832 "set/show max-user-call-depth" to clarify that it does not apply to
8833 python commands.
8834 * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in
8835 error check.
8836 (gdbpy_initialize_commands): Add COMMAND_USER as a constant in
8837 gdb python api.
8838 * top.c (execute_command): Only execute a user-defined command as a
8839 legacy macro if c->user_commands is set.
8840
e88acd96
TT
88412012-03-01 Tom Tromey <tromey@redhat.com>
8842
8843 * valprint.h (struct generic_val_print_decorations): New.
8844 (generic_val_print): Declare.
8845 * valprint.c (generic_val_print): New function.
8846 * p-valprint.c (p_decorations): New global.
8847 (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM,
8848 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT,
8849 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF,
8850 TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print.
8851 * m2-valprint.c (m2_decorations): New global.
8852 (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC,
8853 TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR,
8854 TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF,
8855 TYPE_CODE_ERROR>: Call generic_val_print.
8856 * f-valprint.c (f_decorations): New global.
8857 (f_val_print): Use print_function_pointer_address.
8858 <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS,
8859 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE,
8860 TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call
8861 generic_val_print.
8862 * c-valprint.c (c_decorations): New global.
8863 (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM,
8864 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL,
8865 TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT,
8866 TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR,
8867 TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print.
8868 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove
8869 case.
8870
d3eab38a
TT
88712012-03-01 Tom Tromey <tromey@redhat.com>
8872
8873 * valprint.c (val_print): Update.
8874 * p-valprint (pascal_val_print): Return void.
8875 * p-lang.h (pascal_val_print): Return void.
8876 * m2-valprint.c (m2_val_print): Return void.
8877 * m2-lang.h (m2_val_print): Return void.
8878 * language.h (struct language_defn) <la_val_print>: Return void.
8879 * language.c (unk_lang_val_print): Return void.
8880 * jv-valprint.c (java_val_print): Return void.
8881 * jv-lang.h (java_val_print): Return void.
8882 * f-valprint.c (f_val_print): Return void.
8883 * f-lang.h (f_val_print): Return void.
8884 * d-valprint.c (d_val_print): Return void.
8885 (dynamic_array_type): Update.
8886 * d-lang.h (d_val_print): Return void.
8887 * c-valprint.c (c_val_print): Return void.
8888 * c-lang.h (c_val_print): Return void.
8889 * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
8890 void.
8891 * ada-lang.h (ada_val_print): Return void.
8892
35c0084b
TT
88932012-03-01 Tom Tromey <tromey@redhat.com>
8894
8895 * value.h (val_print): Return void.
8896 * valprint.c (val_print): Return void.
8897
a1f5dd1b
TT
88982012-03-01 Tom Tromey <tromey@redhat.com>
8899
8900 * value.h (common_val_print): Return void.
8901 * valprint.c (common_val_print): Return void.
8902
8e069a98
TT
89032012-03-01 Tom Tromey <tromey@redhat.com>
8904
8905 * value.h (value_print): Return void.
8906 * valprint.c (value_print): Return void.
8907 * p-valprint.c (pascal_value_print): Return void.
8908 * p-lang.h (pascal_value_print): Return void.
8909 * language.h (struct language_defn) <la_value_print>: Return
8910 void.
8911 * language.c (unk_lang_value_print): Return void.
8912 * jv-valprint.c (java_value_print): Return void.
8913 * jv-lang.h (java_value_print): Return void.
8914 * f-valprint.c (c_value_print): Don't declare.
8915 Include c-lang.h.
8916 * c-valprint.c (c_value_print): Return void.
8917 * c-lang.h (c_value_print): Return void.
8918 * ada-valprint.c (ada_value_print): Return void.
8919 * ada-lang.h (ada_value_print): Return void.
8920
be335936
TT
89212012-03-01 Tom Tromey <tromey@redhat.com>
8922
8923 * value.c (value_primitive_field): Handle virtual base classes.
8924
b0db66a7
TT
89252012-03-01 Tom Tromey <tromey@redhat.com>
8926
8927 * gdbtypes.h (struct vbase): Remove.
8928
132c57b4
TT
89292012-03-01 Tom Tromey <tromey@redhat.com>
8930
8931 * c-valprint.c (print_function_pointer_address): Move...
8932 * valprint.c: ... here. Make non-static.
8933 * m2-valprint.c (print_function_pointer_address): Remove.
8934 * valprint.h (print_function_pointer_address): Declare.
8935
e41eec66
JB
89362012-03-01 Joel Brobecker <brobecker@adacore.com>
8937
8938 * NEWS: Document the fact that one can provide a condition when
8939 creating an Ada exception catchpoint.
8940
19c37f24
TT
89412012-03-01 Tom Tromey <tromey@redhat.com>
8942
8943 * valprint.c (val_print_type_code_flags): Fix placement of
8944 trailing brace.
8945
f0fed3a3
JB
89462012-03-01 Joel Brobecker <brobecker@adacore.com>
8947
8948 * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
8949 (update_files): Do not set MULTILINE_COMMENT_PREFIXES
8950 environment variable before calling update-copyright.
8951
8ba85d85
JB
89522012-03-01 Joel Brobecker <brobecker@adacore.com>
8953
8954 * gnulib/extra/update-copyright: Update to the latest from
8955 gnulib's git repository.
8956 * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
8957 variable to 2 instead of 1.
8958
8219b1e8
JB
89592012-02-29 Joel Brobecker <brobecker@adacore.com>
8960
8961 * varobj.c (c_value_of_variable): Remove dead code.
8962
718cb7da
JB
89632012-02-29 Joel Brobecker <brobecker@adacore.com>
8964
8965 * ada-lex.p (processId): Do not modify already encoded IDs.
8966 Update function documentation.
8967
739593e0
JB
89682012-02-29 Joel Brobecker <brobecker@adacore.com>
8969
8970 * ada-lang.h (ada_find_renaming_symbol): Replace parameter
8971 "name" with "struct symbol *name_sym".
8972 * ada-exp.y (write_var_or_type): Update call to
8973 ada_find_renaming_symbol.
8974 "name" with "struct symbol *name_sym". Adjust Implementation
8975 accordingly. Adjust the function documentation.
8976
852dff6c
JB
89772012-02-29 Joel Brobecker <brobecker@adacore.com>
8978
8979 * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
8980 * ada-lang.c (ada_find_any_type): Add advance declaration.
8981 Make static. Replace ada_find_any_symbol by
8982 ada_find_any_type_symbol.
8983 (ada_find_any_type_symbol): Renames ada_find_any_symbol.
8984 Improve function description. Make static.
8985 (ada_find_renaming_symbol, find_old_style_renaming_symbol):
8986 Replace ada_find_any_symbol by ada_find_any_type_symbol.
8987
1b611343
JB
89882012-02-29 Joel Brobecker <brobecker@adacore.com>
8989
8990 * ada-lang.c (struct tag_args): Delete.
8991 (ada_get_tsd_type): Function body moved up in source file.
8992 (ada_tag_name_1, ada_tag_name_2): Delete.
8993 (ada_get_tsd_from_tag): New function.
8994 (ada_tag_name_from_tsd): New function.
8995 (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
8996 to determine the tag name.
8997
41246937
JB
89982012-02-29 Joel Brobecker <brobecker@adacore.com>
8999
9000 * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
9001 declaration.
9002 * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
9003 function.
9004
ffde82bf
JB
90052012-02-29 Joel Brobecker <brobecker@adacore.com>
9006
9007 * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
9008
2ad01556
JB
90092012-02-29 Joel Brobecker <brobecker@adacore.com>
9010
9011 * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
9012 full searches.
9013
99b1c762
JB
90142012-02-29 Joel Brobecker <brobecker@adacore.com>
9015
9016 * ada-lang.c (constrained_packed_array_type): If there is a
9017 parallel XA type, use it to determine the array index type.
9018
2d4a02ee
JB
90192012-02-29 Joel Brobecker <brobecker@adacore.com>
9020
9021 * ada-valprint.c (ada_val_print_1): If our value is a reference
9022 to an array descriptor, dereference it before converting it
9023 to a simple array.
9024
c48db5ca
JB
90252012-02-29 Joel Brobecker <brobecker@adacore.com>
9026
9027 * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
9028 creating fixed value.
9029 (ada_value_ind, ada_coerce_ref, assign_component)
9030 (ada_evaluate_subexp): Remove call to unwrap_value before
9031 call to ada_to_fixed_value.
9032
2e6fda7d
JB
90332012-02-29 Joel Brobecker <brobecker@adacore.com>
9034
9035 * ada-lang.c (to_fixed_array_type): Set result's type name.
9036
5845583d
JB
90372012-02-29 Joel Brobecker <brobecker@adacore.com>
9038
9039 * ada-lang.c (catch_ada_exception_command_split): Add new
9040 argument cond_string. Add support for condition at end of
9041 "catch exception" commands.
9042 (ada_decode_exception_location): Add new argument cond_string.
9043 Update call to catch_ada_exception_command_split.
9044 (create_ada_exception_catchpoint): Add new argument cond_string.
9045 Set the breakpoint condition if needed.
9046 (catch_ada_exception_command): Update call to
9047 ada_decode_exception_location.
9048 (ada_decode_assert_location): Add function documentation.
9049 Add support for condition at end of "catch assert" command.
9050 (catch_assert_command): Update calls to ada_decode_assert_location
9051 and create_ada_exception_catchpoint.
9052
9a7f938f
JK
90532012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
9054
9055 Fix disp-step-syscall.exp: fork: single step over fork.
9056 * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
9057 (i386_linux_get_syscall_number_from_regcache): ... here, new function
9058 comment, change parameters gdbarch and ptid to regcache. Remove
9059 parameter regcache, initialize gdbarch from regcache here.
9060 (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
9061 New functions.
9062 (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
9063 instead.
9064 * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
9065 'syscall'. Make the 'int' check more strict.
9066
ffdf6de5
JK
90672012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
9068
9069 Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
9070 * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
9071 (i386_linux_intx80_sysenter_syscall_record): ... here.
9072 (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
9073 Use the renamed function name.
9074
c70a6932
JK
90752012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
9076
9077 * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
9078 * breakpoint.c (until_break_command): Likewise.
9079 * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
9080 * infcall.c (call_function_by_hand): Likewise.
9081 * infcmd.c (finish_forward): Likewise.
9082 * infrun.c (insert_exception_resume_breakpoint): Likewise.
9083
05b8a789 90842012-02-28 Tristan Gingold <gingold@adacore.com>
d4cd3da9 9085
d4cd3da9
JB
9086 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
9087 avoid variable assignments inside condition.
9088
6425366c
JK
90892012-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
9090
9091 Fix static analysis issue found by cppcheck.
9092 * microblaze-tdep.c (microblaze_extract_return_value): Fix
9093 uninitialized BUF for size 2.
9094
c8cef75f 90952012-02-27 Chris Dearman <chris@mips.com>
a09130f9
PA
9096 Nathan Froyd <froydnj@codesourcery.com>
9097 Maciej W. Rozycki <macro@codesourcery.com>
c8cef75f
MR
9098
9099 * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
9100 (mips16_instruction_has_delay_slot): Likewise.
9101 (mips_segment_boundary): Likewise.
9102 (mips_adjust_breakpoint_address): Likewise.
9103 (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
9104
473347ad 91052012-02-27 Maciej W. Rozycki <macro@mips.com>
a09130f9 9106 Maciej W. Rozycki <macro@codesourcery.com>
473347ad
MR
9107
9108 * infrun.c (handle_inferior_event): Don't proceed through
9109 shared library trampolines if stepping at the machine
9110 instruction level.
9111
cf233303
MR
91122012-02-27 Maciej W. Rozycki <macro@codesourcery.com>
9113
9114 * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
9115 too.
9116
cb2cf4ce
TS
91172012-02-27 Thomas Schwinge <thomas@codesourcery.com>
9118
9119 * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
9120 (sh_stub_unwind_sniffer): New functions.
9121 (sh_stub_unwind): New variable.
9122 (sh_gdbarch_init): Wire everything.
9123
644cebc9
PA
91242012-02-27 Pedro Alves <palves@redhat.com>
9125
9126 * linux-nat.c (pid_is_stopped): Delete, moved to common/.
9127 (linux_nat_post_attach_wait): Adjust to use
9128 linux_proc_pid_is_stopped.
9129 * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
9130 * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
9131 based on pid_is_stopped from both linux-nat.c and
9132 gdbserver/linux-low.c, and renamed.
9133
283002cf
MR
91342012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
9135
9136 * remote.c (remote_watchpoint_addr_within_range): New function.
9137 (init_remote_ops): Use it.
9138
9b3e86b1
MR
91392012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
9140
9141 * target.h (target_watchpoint_addr_within_range): Document macro.
9142
e36930bb
PA
91432012-02-24 Pedro Alves <palves@redhat.com>
9144
9145 * stack.c (set_last_displayed_sal): Issue internal_error instead
9146 of warning, and issue it after clearing the last displayed sal.
9147
883bc8d1
PA
91482012-02-24 Jan Kratochvil <jan.kratochvil@redhat.com>
9149 Pedro Alves <palves@redhat.com>
9150
9151 * breakpoint.c (until_break_command): Install breakpoints after
9152 all frame manipulations.
9153
b775012e
LM
91542012-02-24 Luis Machado <lgustavo@codesourcery.com>
9155
9156 * remote.c (remote_supports_cond_breakpoints): New forward
9157 declaration.
9158 (remote_add_target_side_condition): New function.
9159 (remote_insert_breakpoint): Add target-side breakpoint
9160 conditional if supported.
9161 (remote_insert_hw_breakpoint): Likewise.
9162 (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
9163 hook.
9164
9165 * target.c (update_current_target): Inherit
9166 to_supports_evaluation_of_breakpoint_conditions.
9167 Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
9168
9169 * target.h (struct target_ops)
9170 <to_supports_evaluation_of_breakpoint_conditions>: New field.
9171 (target_supports_evaluation_of_breakpoint_conditions): New #define.
9172
9173 * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
9174 (condition_evaluation_both, condition_evaluation_auto,
9175 condition_evaluation_host, condition_evaluation_target,
9176 condition_evaluation_enums, condition_evaluation_mode_1,
9177 condition_evaluation_mode): New static globals.
9178 (translate_condition_evaluation_mode): New function.
9179 (breakpoint_condition_evaluation_mode): New function.
9180 (gdb_evaluates_breakpoint_condition_p): New function.
9181 (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
9182 (mark_breakpoint_modified): New function.
9183 (mark_breakpoint_location_modified): New function.
9184 (set_condition_evaluation_mode): New function.
9185 (show_condition_evaluation_mode): New function.
9186 (bp_location_compare_addrs): New function.
9187 (get_first_location_gte_addr): New helper function.
9188 (set_breakpoint_condition): Free condition bytecode if locations
9189 has become unconditional. Call mark_breakpoint_modified (...).
9190 (condition_command): Call update_global_location_list (1) for
9191 breakpoints.
9192 (breakpoint_xfer_memory): Use is_breakpoint (...).
9193 (is_breakpoint): New function.
9194 (parse_cond_to_aexpr): New function.
9195 (build_target_condition_list): New function.
9196 (insert_bp_location): Handle target-side conditional
9197 breakpoints and call build_target_condition_list (...).
9198 (update_inserted_breakpoint_locations): New function.
9199 (insert_breakpoint_locations): Handle target-side conditional
9200 breakpoints.
9201 (bpstat_check_breakpoint_conditions): Add comment.
9202 (bp_condition_evaluator): New function.
9203 (bp_location_condition_evaluator): New function.
9204 (print_breakpoint_location): Print information on where the condition
9205 will be evaluated.
9206 (print_one_breakpoint_location): Likewise.
9207 (init_bp_location): Call mark_breakpoint_location_modified (...) for
9208 breakpoint location.
9209 (force_breakpoint_reinsertion): New functions.
9210 (update_global_location_list): Handle target-side breakpoint
9211 conditions.
9212 Reinsert locations that are already inserted if conditions have
9213 changed.
9214 (bp_location_dtor): Free agent expression bytecode.
9215 (disable_breakpoint): Call mark_breakpoint_modified (...).
9216 Call update_global_location_list (...) with parameter 1 for breakpoints.
9217 (disable_command): Call mark_breakpoint_location_modified (...).
9218 Call update_global_location_list (...) with parameter 1 for breakpoints.
9219 (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
9220 (enable_command): mark_breakpoint_location_modified (...).
9221 (_initialize_breakpoint): Update documentation and add
9222 condition-evaluation breakpoint subcommand.
9223
9224 * breakpoint.h: Include ax.h.
9225 (condition_list): New data structure.
9226 (condition_status): New enum.
9227 (bp_target_info) <cond_list>: New field.
9228 (bp_location) <condition_changed, cond_bytecode>: New fields.
9229 (is_breakpoint): New prototype.
9230
3788aec7
LM
92312012-02-24 Luis Machado <lgustavo@codesourcery.com>
9232
9233 * remote.c (remote_state) <cond_breakpoints>: New field.
9234 (PACKET_ConditionalBreakpoints): New enum.
9235 (remote_cond_breakpoint_feature): New function.
9236 (remote_protocol_features): Add new ConditionalBreakpoints entry.
9237 (remote_supports_cond_breakpoints): New function.
9238 (_initialize_remote): Add new packet configuration for
9239 target-side conditional breakpoints.
9240
72895ff6
LM
92412012-02-24 Luis Machado <lgustavo@codesourcery.com>
9242
9243 * NEWS: Mention target-side conditional breakpoint support,
9244 new condition-evaluation breakpoint subcommand and remote
9245 packet extensions.
9246
dea2aa5f
LM
92472012-02-24 Luis Machado <lgustavo@codesourcery.com>
9248
9249 * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
9250 number.
9251
8a8bc27f
TS
92522012-02-24 Thomas Schwinge <thomas@codesourcery.com>
9253
9254 * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
9255 (after_prologue): Remove.
9256
6b446fdf
TT
92572012-02-23 Tom Tromey <tromey@redhat.com>
9258
9259 * jv-valprint.c (java_val_print): Remove dead code.
9260
ef59abfb
TG
92612012-02-23 Tristan Gingold <gingold@adacore.com>
9262
a09130f9
PA
9263 * ada-tasks.c (struct ada_tasks_inferior_data): Add
9264 known_tasks_element and known_tasks_length fields.
9265 (read_known_tasks_array): Change argument type. Use pointer type
9266 and number of elements from DATA. Adjust.
9267 (read_known_tasks_list): Likewise.
9268 (get_known_tasks_addr): Remove.
9269 (ada_set_current_inferior_known_tasks_addr): Renamed to ...
9270 (ada_tasks_inferior_data_sniffer): ... this. Use symtab for element
9271 type and array length. Merge former get_known_tasks_addr code.
ef59abfb 9272
def166f6
JK
92732012-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
9274
9275 PR backtrace/13716
9276 * infcmd.c (finish_forward): New variable frame_id, initialize it, use
9277 it after set_momentary_breakpoint.
9278
aeaa2474
SA
92792012-02-22 Sterling Augustine <saugustine@google.com>
9280
9281 PR 13689:
9282 * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
9283
feea76c2
GB
92842012-02-22 Gary Benson <gbenson@redhat.com>
9285
9286 * dwarf2read.c (dwarf2_read_index): Correct misspelling.
9287 (find_slot_in_mapped_hash): Likewise.
9288
f06e05e0
JK
92892012-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9290
9291 PR build/13638
9292 * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
9293 (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
9294 * configure: Regenerate.
9295
b54a8fd7
PA
92962012-02-21 Tristan Gingold <gingold@adacore.com>
9297 Pedro Alves <palves@redhat.com>
9298
9299 * ia64-tdep.c: Do not include libunwind-ia64.h.
9300 * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
9301 Include libunwind-ia64.h instead of libunwind.h.
9302 * configure.ac (--with-libunwind, $enable_libunwind): Don't check
9303 for libunwind.h existence.
9304 * configure, config.in: Regenerate.
9305
dfcee124
AG
93062012-02-21 Anton Gorenkov <xgsa@yandex.ru>
9307
9308 * c-valprint.c (c_value_print): Use value_rtti_indirect_type
9309 instead of value_rtti_target_type.
9310 * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
9311 instead of value_rtti_target_type.
9312 * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
9313 value_rtti_target_type.
9314 * valops.c (value_ind): Extract function readjust_indirect_value_type.
9315 (value_rtti_target_type): Rename to ...
9316 (value_rtti_indirect_type): ... here and make it indirect. Update
9317 function comment.
9318 * value.c (readjust_indirect_value_type): New function.
9319 (coerce_ref): Support for enclosing type setting for references
9320 with readjust_indirect_value_type.
9321 * value.h (readjust_value_type): New declaration.
9322 (value_rtti_target_type): Rename to ...
9323 (value_rtti_indirect_type): ... here.
9324
02568277
AG
93252012-02-21 Anton Gorenkov <xgsa@yandex.ru>
9326
9327 * MAINTAINERS (Write After Approval): Add myself to the list.
9328
10c07b7e 93292012-02-20 Doug Evans <dje@google.com>
28ee876a 9330
d82ea6a8
DE
9331 * objfiles.c (add_to_objfile_sections): Remove outdated comments.
9332 Rename objfile_p_char parameter to objfilep.
9333 (build_objfile_section_table): Result is now void. All callers
9334 updated.
9335 * objfiles.h (struct objfile): Tweak comments, whitespace.
9336 (build_objfile_section_table): Update.
9337
28ee876a
DE
9338 * elfread.c (elf_symfile_segments): Fix warning text.
9339
24c79950
TT
93402012-02-20 Tom Tromey <tromey@redhat.com>
9341
9342 PR gdb/13498:
9343 * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
9344 particular set of file names once.
9345 (dw2_map_symbol_filenames): Likewise.
9346
3a9b40b6
JK
93472012-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9348
9349 Code cleanup.
9350 * main.c (write_files): Remove the declaration.
9351 (external_editor_command): Move the declaration ...
9352 [GDBTK] (external_editor_command): ... here. Fix the comment.
9353
4d0795ca
TT
93542012-02-20 Tom Tromey <tromey@redhat.com>
9355
9356 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
9357 extraneous block.
9358
637fd620
TG
93592012-02-20 Tristan Gingold <gingold@adacore.com>
9360
9361 * darwin-nat.h (enum darwin_msg_state): Add comments.
9362
6f124894
TG
93632012-02-20 Tristan Gingold <gingold@adacore.com>
9364
9365 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
9366 value.
9367
2e6e3d9c
JB
93682012-20-18 Joel Brobecker <brobecker@adacore.com>
9369
9370 * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
9371 between function description and implementation.
9372
2e8265fd
TT
93732012-02-17 Tom Tromey <tromey@redhat.com>
9374
9375 PR python/12070:
9376 * python/py-event.c (event_object_getset): New global.
9377 (event_object_type): Reference it.
9378 * python/py-type.c (field_object_getset): New global.
9379 (field_object_type): Reference it.
9380 * python/python-internal.h (gdb_py_generic_dict): Declare.
9381 * python/py-utils.c (gdb_py_generic_dict): New function.
9382
8544a150 93832012-02-17 Tristan Gingold <gingold@adacore.com>
6f124894 9384
8544a150 9385 * solib-darwin.c (darwin_current_sos): Check magic and filetype
6f124894 9386
ca193e27
TS
93872012-02-17 Thomas Schwinge <thomas@codesourcery.com>
9388
9389 * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
9390 TYPE_CALLING_CONVENTION annotation.
9391
e5586183
KB
93922012-02-16 Kevin Buettner <kevinb@redhat.com>
9393
9394 * MAINTAINERS: Add rx to target ISA section.
9395 * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
9396 (ALLDEPFILES): Add rx-tdep.c.
9397
7dcd53a0
TT
93982012-02-16 Tom Tromey <tromey@redhat.com>
9399
9400 * symfile.c (symbol_file_add_main_1): Use inferior's
9401 symfile_flags.
9402 * solib.c (solib_read_symbols): Use inferior's symfile_flags.
9403 * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
9404 inferior.
9405 * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
9406 inferior.
9407 (follow_exec): Use inferior's symfile_flags.
9408 * inferior.h (struct inferior) <symfile_flags>: New field.
9409
ddd60447
MF
94102012-02-16 Mike Frysinger <vapier@gentoo.org>
9411
9412 PR gdb/9734:
9413 * remote-sim.c (gdbsim_create_inferior): Call error() when
9414 sim_create_inferior() fails.
9415
b0d32fb6
TG
94162012-02-16 Josh Matthews <josh@joshmatthews.net>
9417
9418 * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
9419
9addecb9
TT
94202012-02-16 Tom Tromey <tromey@redhat.com>
9421
9422 PR c++/13653:
9423 * thread.c (struct current_thread_cleanup) <was_removable>: New
9424 field.
9425 (restore_current_thread_cleanup_dtor): Restore 'removable' field.
9426 (make_cleanup_restore_current_thread): Initialize new field.
9427
a58b110a
KB
94282012-02-15 Kevin Buettner <kevinb@redhat.com>
9429
9430 * MAINTAINERS: Add rl78 to target ISA section.
9431 * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
9432 (ALLDEPFILES): Add rl78-tdep.c.
9433 * NEWS: Mention rl78 as a new target.
9434
4cb6da1c
AR
94352012-02-15 Aleksandar Ristovski <aristovski@qnx.com>
9436
9437 * frame.c (find_frame_sal): Initialize sal->pspace field from frame
9438 data.
9439 * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
9440
3af2590d
TT
94412012-02-15 Tom Tromey <tromey@redhat.com>
9442
9443 PR gdb/12659:
9444 * infcmd.c (registers_info): Print just the current register's
9445 name.
9446
c6910659
TT
94472012-02-15 Tom Tromey <tromey@redhat.com>
9448
9449 * python/py-symbol.c (sympy_value): Use _().
9450
7cee1e54
PA
94512012-02-15 Pedro Alves <palves@redhat.com>
9452
9453 * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
9454 output to be like native targets'.
9455 (remote_pid_to_str): Special case the null ptid.
9456
816338b5
SS
94572012-02-14 Stan Shebs <stan@codesourcery.com>
9458
9459 * NEWS: Mention enable count command.
9460 * breakpoint.h (struct breakpoint): New field enable_count.
9461 * breakpoint.c (enable_breakpoint_disp): Add count argument.
9462 (enable_breakpoint): Add arg to call.
9463 (struct disp_data): New struct.
9464 (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
9465 (do_map_enable_once_breakpoint): Create a struct and pass it.
9466 (do_map_enable_delete_breakpoint): Ditto.
9467 (do_map_enable_count_breakpoint): New function.
9468 (enable_count_command): New function.
9469 (bpstat_stop_status): Decrement enable_count.
9470 (print_one_breakpoint_location): Report enable count.
9471 (_initialize_breakpoint): Add enable count command.
9472
c47a44f4
KB
94732012-02-14 Kevin Buettner <kevinb@redhat.com>
9474
9475 * rl78-tdep.c (reggroups.h): Include.
9476 (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
9477 (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
9478 (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
9479 (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
9480 (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
9481 (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
9482 (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
9483 (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
9484 (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
9485 (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
9486 (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
9487 (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
9488 (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
9489 (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
9490 (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
9491 (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
9492 beginning of register list.
9493 (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
9494 (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
9495 (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
9496 (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
9497 (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
9498 (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
9499 (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
9500 (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
9501 (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
9502 (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
9503 (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
9504 the pseudo registers. Rearrange other pseudo registers too so
9505 that the bank registers appear at the end.
9506 (rl78_register_type): Account for the fact that the byte sized
9507 bank registers are now pseudo-registers.
9508 (rl78_register_name): Rearrange the register name array. Make
9509 initial set of raw banked registers inaccessible.
9510 (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
9511 (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
9512 case for copying bytes back and forth between raw and pseudo
9513 versions of the banked registers. Update other cases to reflect
9514 the changed names.
9515 (rl78_return_value): Update to account for changed names of
9516 raw registers.
9517 (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
9518 rl78_register_sim_regno().
9519
e4569f1e
KB
95202012-02-14 Kevin Buettner <kevinb@redhat.com>
9521
9522 * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
9523 the name parameter being passed to find_pc_partial_function().
9524
7a05aae7
JK
95252012-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9526
9527 * MAINTAINERS: Step down from being ia64 target maintainer.
9528
11fde611
JK
95292012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
9530
9531 * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
9532 compilation warning.
9533
57008375
JK
95342012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
9535
9536 Fix crash on loaded shlibs without loaded exec_bfd.
9537 * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
9538 (set_section_command): Replace exec_bfd by p->bfd.
9539
ff3c9849
TT
95402012-02-10 Tom Tromey <tromey@redhat.com>
9541
9542 * linespec.c (decode_line_internal): Skip symtabs_from_filename
9543 when we have a C++ qualified name.
9544
db2b9fdd
PA
95452012-02-10 Pedro Alves <palves@redhat.com>
9546
9547 * inferior.c (inferior_pid_to_str): New.
9548 (print_inferior, inferior_command): Use it.
9549
12cd34f3
PA
95502012-02-10 Pedro Alves <palves@redhat.com>
9551
9552 * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
9553 the test CFLAGS.
9554 * configure: Regenerate.
9555
e871429d
JK
95562012-02-10 Jan Kratochvil <jan.kratochvil@redhat.com>
9557
9558 * linespec.c (decode_line_internal): Fix comment correctness.
9559
1916efaf
PA
95602012-02-09 Valery Khromov <valery.khromov@gmail.com>
9561
9562 PR gdb/12953
9563 * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
9564 * amd64bsd-nat.c: Add support for debug registers (adapted from
9565 i386bsd-nat.c).
9566 [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
9567 (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
9568 (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
9569 (amd64bsd_dr_get_control): New functions.
9570 * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
9571 * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
9572 [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
9573 watchpoints initialization.
9574 * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
9575
f4859d94
JK
95762012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9577
9578 * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
9579 flds_bnds.fields.
9580 (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
9581
c56a97f9
JK
95822012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9583
9584 * breakpoint.c (bp_location_compare): Fix comment. Reindent the code.
9585
1a119f36
JB
95862012-02-08 Joel Brobecker <brobecker@adacore.com>
9587
9588 * language.h (symbol_name_cmp_ftype): Renames
9589 symbol_name_match_p_ftype.
9590 (struct language_defn)[la_get_symbol_name_cmp]: Renames
9591 la_get_symbol_name_match_p.
9592 * ada-lang.c (ada_get_symbol_name_cmp): Renames
9593 ada_get_symbol_name_match_p. Update comment.
9594 (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
9595 * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
9596 Renames symbol_name_match_p. Update field type.
9597 (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
9598 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
9599 opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
9600 "la_get_symbol_name_cmp" in comments.
9601 * language.c: Likewise.
9602
c71bb1cf
RO
96032012-02-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9604
9605 * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
9606 %eflags offset.
9607 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
9608 (amd64_sol2_gregset32_reg_offs): Likewise.
9609
4b2d20a5
TG
96102012-02-08 Joel Brobecker <brobecker@adacore.com>
9611
9612 * solib-darwin.c (darwin_bfd_open): Make sure that the filename
9613 of the returned BFD is allocated by GDB.
9614
f0823d2c
TT
96152012-02-07 Tom Tromey <tromey@redhat.com>
9616
9617 PR python/12027:
9618 * python/python-internal.h (frame_object_type): Declare.
9619 * python/py-symbol.c (sympy_needs_frame): New function.
9620 (sympy_value): New function.
9621 (symbol_object_getset): Add "needs_frame".
9622 (symbol_object_methods): Add "value".
9623 * python/py-frame.c (frame_object_type): No longer static.
9624
64e7d9dd
TT
96252012-02-07 Tom Tromey <tromey@redhat.com>
9626
9627 PR python/13599:
9628 * python/py-symbol.c (sympy_line): New function.
9629 (symbol_object_getset): Add "line".
9630
1d6b2d2b
TT
96312012-02-07 Tom Tromey <tromey@redhat.com>
9632
9633 * charset.c (find_charset_names): Check 'in' against NULL.
9634
0d5cff50
DE
96352012-02-06 Doug Evans <dje@google.com>
9636
9637 * gdbtypes.h (struct main_type): Change type of name,tag_name,
9638 and fields.name members from char * to const char *. All uses updated.
9639 (struct cplus_struct_type): Change type of fn_fieldlists.name member
9640 from char * to const char *. All uses updated.
9641 (type_name_no_tag): Update.
9642 (lookup_unsigned_typename, lookup_signed_typename): Update.
9643 * gdbtypes.c (type_name_no_tag): Change result type
9644 from char * to const char *. All callers updated.
9645 (lookup_unsigned_typename, lookup_signed_typename): Change type of
9646 name parameter from char * to const char *.
9647 * symtab.h (struct cplus_specific): Change type of demangled_name
9648 member from char * to const char *. All uses updated.
9649 (struct general_symbol_info): Change type of name and
9650 mangled_lang.demangled_name members from char * to const char *.
9651 All uses updated.
9652 (symbol_get_demangled_name, symbol_natural_name): Update.
9653 (symbol_demangled_name, symbol_search_name): Update.
9654 * symtab.c (symbol_get_demangled_name): Change result type
9655 from char * to const char *. All callers updated.
9656 (symbol_natural_name, symbol_demangled_name): Ditto.
9657 (symbol_search_name): Ditto.
9658 (completion_list_add_name): Change type of symname,sym_text,
9659 text,word parameters from char * to const char *.
9660 (completion_list_objc_symbol): Change type of sym_text,
9661 text,word parameters from char * to const char *.
9662 * ada-lang.c (find_struct_field): Change type of name parameter
9663 from char * to const char *.
9664 (encoded_ordered_before): Similarly for N0,N1 parameters.
9665 (old_renaming_is_invisible): Similarly for function_name parameter.
9666 (ada_type_name): Change result type from char * to const char *.
9667 All callers updated.
9668 * ada-lang.h (ada_type_name): Update.
9669 * buildsym.c (hashname): Change type of name parameter
9670 from char * to const char *.
9671 * buildsym.h (hashname): Update.
9672 * dbxread.c (end_psymtab): Change type of include_list parameter
9673 from char ** to const char **.
9674 * dwarf2read.c (determine_prefix): Change result type
9675 from char * to const char *. All callers updated.
9676 * f-lang.c (find_common_for_function): Change type of name, funcname
9677 parameters from char * to const char *.
9678 * f-lang.c (find_common_for_function): Update.
9679 * f-valprint.c (list_all_visible_commons): Change type of funcname
9680 parameters from char * to const char *.
9681 * gdbarch.sh (static_transform_name): Change type of name parameter
9682 and result from char * to const char *.
9683 * gdbarch.c: Regenerate.
9684 * gdbarch.h: Regenerate.
9685 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
9686 of name parameter from char * to const char *.
9687 * jv-lang.c (java_primitive_type_from_name): Ditto.
9688 (java_demangled_signature_length): Similarly for signature parameter.
9689 (java_demangled_signature_copy): Ditto.
9690 (java_demangle_type_signature): Ditto.
9691 * jv-lang.h (java_primitive_type_from_name): Update.
9692 (java_demangle_type_signature): Update.
9693 * objc-lang.c (specialcmp): Change type of a,b parameters
9694 from char * to const char *.
9695 * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
9696 from char * to const char *. All callers updated.
9697 * p-lang.h (is_pascal_string_type): Update.
9698 * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
9699 of name parameter from char * to const char *.
9700 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
9701 * utils.c (fprintf_symbol_filtered): Ditto.
9702 * defs.h (fprintf_symbol_filtered): Update.
9703 * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
9704 * stabsread.h (end_psymtab): Update.
9705 * stack.c (find_frame_funname): Change type of funname parameter
9706 from char ** to const char **.
9707 * stack.h (find_frame_funname): Update.
9708 * typeprint.c (type_print): Change type of varstring parameter
9709 from char * to const char *.
9710 * value.h (type_print): Update.
9711 * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
9712 from char * to const char *. All callers updated.
9713 (xcoff_end_psymtab): Change type of include_list parameter
9714 from char ** to const char **. All callers updated.
9715 (swap_sym): Similarly for name parameter. All callers updated.
9716 * coffread.c (patch_type): Add (char*) cast to xfree parameter.
9717 Use xstrdup.
9718 (process_coff_symbol): Use xstrdup.
9719 * stabsread.c (stabs_method_name_from_physname): Renamed from
9720 update_method_name_from_physname. Change result type from void
9721 to char *. All callers updated.
9722 (read_member_functions): In has_destructor case, store name in objfile
9723 obstack instead of malloc space. In !has_stub case, fix mem leak.
9724
5579a92e
TT
97252012-02-06 Luca Pizzamiglio <luca.pizzamiglio@gmail.com>
9726
9727 * configure: Rebuild.
9728 * configure.ac: Put -L../bfd and -L../libiberty at the front of
9729 LDFLAGS.
9730
9058f767
KB
97312012-02-03 Kevin Buettner <kevinb@redhat.com>
9732
9733 * configure.tgt (rl78-*-elf): New target.
9734 * rl78-tdep.c: New file.
9735
5b37825d
PW
97362012-02-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9737
9738 * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
9739 and continue the loop. Add QUIT statement.
9740
e009ee71
TT
97412012-02-03 Tom Tromey <tromey@redhat.com>
9742
9743 PR gdb/13596:
9744 * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
9745 bfd_lookup_symbol_from_symtab.
9746 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
9747 gdb_bfd_lookup_symbol_from_symtab.
9748
f7e44f65
JB
97492012-02-03 Joel Brobecker <brobecker@adacore.com>
9750
9751 * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
9752 use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
9753 symbol. Add assertion that sym2 is never NULL.
9754
2c02bd72
DE
97552012-02-02 Doug Evans <dje@google.com>
9756
9757 * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
9758 "name" parameter to const char ** from char **. All callers updated.
9759 (find_pc_partial_function): Ditto.
9760 (cache_pc_function_name): Change type to const char * from char *.
9761 * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
9762 (find_pc_partial_function): Update.
9763 * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
9764 type of "name" parameter to const char * from char *.
9765 All uses updated.
9766 * arch-utils.c (generic_in_solib_return_trampoline): Change
9767 type of "name" parameter to const char * from char *.
9768 * arch-utils.h (generic_in_solib_return_trampoline): Update.
9769 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
9770 type of "name" parameter to const char * from char *.
9771 * gdbarch.sh (in_solib_return_trampoline): Ditto.
9772 * gdbarch.c: Regenerate.
9773 * gdbarch.h: Regenerate.
9774 * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
9775 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
9776 * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
9777 type of "name" parameter to const char * from char *.
9778 * skip.c (skip_function_pc): Ditto.
9779 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
9780 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
9781 * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
9782 * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
9783 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
9784 * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
9785 * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
9786 * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
9787 * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
9788
e886a173
PA
97892012-02-02 Pedro Alves <palves@redhat.com>
9790
9791 * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
9792 the current inferior has no execution. Make sure the current
9793 remote process matches gdb's current inferior.
9794
c709a7c2
TT
97952012-02-02 Tom Tromey <tromey@redhat.com>
9796
9797 PR gdb/13405:
9798 * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
9799 read-only memory.
9800
f149aabd
TT
98012012-02-02 Tom Tromey <tromey@redhat.com>
9802
9803 PR gdb/9307:
9804 * symtab.c (lookup_language_this): Set block_found.
9805
03bef283
TT
98062012-02-01 Tom Tromey <tromey@redhat.com>
9807
9808 PR gdb/13431:
9809 * jit.c (struct jit_inferior_data): Rewrite.
9810 (struct jit_objfile_data): New.
9811 (get_jit_objfile_data): New function.
9812 (add_objfile_entry): Update.
9813 (jit_read_descriptor): Return int. Replace descriptor_addr
9814 argument with inf_data. Update. Don't call error.
9815 (jit_breakpoint_re_set_internal): Reorder logic. Update. Look up
9816 descriptor here.
9817 (jit_inferior_init): Don't look up descriptor. Don't call error.
9818 (jit_reset_inferior_data_and_breakpoints)
9819 (jit_inferior_created_observer): Remove.
9820 (jit_inferior_exit_hook): Update.
9821 (jit_executable_changed_observer): Remove.
9822 (jit_event_handler): Update.
9823 (free_objfile_data): Reset inferior data if needed.
9824 (_initialize_jit): Update.
9825
f0bbc364
TT
98262012-02-01 Tom Tromey <tromey@redhat.com>
9827
9828 * jit.c (bfd_open_from_target_memory): Move higher in file.
9829
47c1316c
TG
98302012-02-01 Tristan Gingold <gingold@adacore.com>
9831
9832 * libunwind-frame.c (libunwind_load): Display message if dlopen
9833 failed.
9834
8e704927
GB
98352012-02-01 Gary Benson <gbenson@redhat.com>
9836
09c7a31f 9837 * symtab.h (symbol_found_callback_ftype): New typedef.
8e704927
GB
9838 (iterate_over_symbols): Use the above.
9839 * symtab.c (iterate_over_symbols): Likewise.
9840 * language.h (language_defn->la_iterate_over_symbols): Likewise.
9841 * ada-lang.c (ada_iterate_over_symbols): Likewise.
9842 * linespec.c (iterate_over_all_matching_symtabs): Likewise.
9843 (iterate_name_matcher): Document return values.
9844 (collect_one_symbol): Likewise.
9845 (collect_function_symbols): Likewise.
9846 (collect_symbols): Likewise.
9847
d9680e73
TT
98482012-02-01 Tom Tromey <tromey@redhat.com>
9849
9850 * ada-lang.c (resolve_subexp): Update.
9851 (ada_lookup_symbol_list): Add 'full_search' argument.
9852 (ada_iterate_over_symbols): Pass 0 as full_search argument to
9853 ada_lookup_symbol_list.
9854 (ada_lookup_encoded_symbol): Update.
9855 (get_var_value): Update.
9856 * ada-exp.y (block_lookup): Update.
9857 (write_var_or_type): Update.
9858 (write_name_assoc): Update.
9859 * ada-lang.h (ada_lookup_symbol_list): Update.
9860
72e1143f
TT
98612012-01-31 Tom Tromey <tromey@redhat.com>
9862
9863 * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
9864 comment.
9865
ab2d2ad3
DE
98662012-01-31 Doug Evans <dje@google.com>
9867
9868 * symtab.h: Remove outdated comment.
e9111bf7 9869 (SYMBOL_MATCHES_NATURAL_NAME): Delete.
ab2d2ad3 9870
bc884eba
JB
98712012-02-01 Josh Matthews <josh@joshmatthews.net> (tiny change)
9872
9873 Fix build error in Darwin port.
9874 * i386-darwin-nat.c: Include i386-nat.h.
9875
8fc3fc34
TT
98762012-01-30 Tom Tromey <tromey@redhat.com>
9877
9878 PR breakpoints/13568:
9879 * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
9880 argument. Check for recursive includes.
9881 (dwarf_decode_macros): Create an include hash.
9882
5d853008
ME
98832012-01-30 Michael Eager <eager@eagercon.com>
9884
9885 * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
9886 * ppc-linux-tdep.c: Include glibc-tdep.h.
ab2d2ad3 9887 (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
5d853008
ME
9888 (powerpc_linux_in_plt_stub): New function.
9889 (powerpc_linux_in_dynsym_resolve_code): New function.
9890 (ppc_skip_trampoline_code): New function.
9891 (ppc_linux_init_abi): Use PPC specific functions rather than generic.
9892 Use glibc_skip_solib_resolver.
9893
40478521
JK
98942012-01-28 Jan Kratochvil <jan.kratochvil@redhat.com>
9895
9896 Code cleanup: Make 1440 bytes of data segment read-only.
9897 * arch-utils.c (endian_enum): Make it const char *const [].
9898 * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
9899 Likewise.
9900 * breakpoint.c (always_inserted_enums): Likewise.
9901 * cli/cli-cmds.c (script_ext_enums): Likewise.
9902 * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
9903 enumlist parameter const char *const *.
9904 * cli/cli-decode.h (struct cmd_list_element): Make the enums field
9905 const char *const *.
9906 * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
9907 parameter const char *const *.
9908 * cris-tdep.c (cris_modes): Make it const char *const [].
9909 * filesystem.c (target_file_system_kinds): Likewise.
9910 * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
9911 * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
9912 (can_use_displaced_stepping_enum, scheduler_enums)
9913 (exec_direction_names): Likewise.
9914 * language.c (_initialize_language): Make the type_or_range_names and
9915 case_sensitive_names variables const char *const [].
9916 * mips-tdep.c (mips_abi_strings): Make it const char *const [].
9917 * python/python.c (python_excp_enums): Likewise.
9918 * remote.c (interrupt_sequence_modes): Likewise.
9919 * rs6000-tdep.c (powerpc_vector_strings): Likewise.
9920 * serial.c (logbase_enums): Likewise.
9921 * sh-tdep.c (sh_cc_enum): Likewise.
9922 * stack.c (print_frame_arguments_choices, print_entry_values_choices):
9923 Likewise.
9924 * symtab.c (multiple_symbols_modes): Likewise.
9925 * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
9926 Likewise.
9927 * utils.c (internal_problem_modes): Likewise.
9928
b3b8b934
JK
99292012-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
9930
9931 Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
9932 * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
9933 result.
9934
8c85a4e2
DE
99352012-01-27 Doug Evans <dje@google.com>
9936
9937 * configure.ac (with_python): Fix absolute path handling for win32.
9938 * configure: Regenerate.
9939
78d8b4d7
DE
99402012-01-26 Doug Evans <dje@google.com>
9941
eca864fe
DE
9942 * symtab.c: Whitespace cleanup, no code changes.
9943
7e082072
DE
9944 * symtab.c (lookup_symbol_in_language): Improve comment.
9945 (lookup_symbol_aux): Fix comment.
9946
7dc25483
DE
9947 * psymtab.c (add_psymbol_to_list): Result is now "void".
9948 * psympriv.h (add_psymbol_to_list): Update.
9949
78d8b4d7
DE
9950 * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
9951
4c63965b
JK
99522012-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
9953
9954 Do not open script filenames twice.
9955 * cli/cli-cmds.c (source_script_from_stream): Pass to
9956 source_python_script also STREAM.
9957 * python/py-auto-load.c (source_section_scripts): Pass to
9958 source_python_script_for_objfile also STREAM.
9959 (auto_load_objfile_script): Pass to source_python_script_for_objfile
9960 also INPUT.
9961 * python/python-internal.h (source_python_script_for_objfile): New
9962 parameter file, rename parameter file to filename.
9963 * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
9964 instead if !_WIN32. Update the function comment.
9965 (source_python_script, source_python_script_for_objfile)
9966 (source_python_script): New parameter file, rename parameter file to
9967 filename. Pass FILENAME to python_run_simple_file.
9968 * python/python.h (source_python_script): New parameter file, rename
9969 parameter file to filename.
9970
88f38a04
PA
99712012-01-26 Pedro Alves <palves@redhat.com>
9972
9973 * corelow.c (core_has_fake_pid): Delete.
9974 (core_close): Delete references to `core_has_fake_pid'.
9975 (add_to_thread_list): Adjust to mark the inferior's pid as fake.
9976 (core_open): Delete references to `core_has_fake_pid'.
9977 (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
9978 the removed global.
9979
e078317b
JB
99802012-01-26 Joel Brobecker <brobecker@adacore.com>
9981
9982 * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
9983 Remove language parameter from name_matcher. Adjust the comment.
9984 * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
9985 Remove language parameter.
9986 * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
9987 * linespec.c (iterate_name_matcher): Likewise.
9988 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
9989 name_matcher. Adjust call accordingly.
9990 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
9991 (maintenance_check_symtabs): Adjust type of parameter "fun".
9992 * psymtab.h (maintenance_check_symtabs): Likewise.
9993
74ccd7f5
JB
99942012-01-26 Joel Brobecker <brobecker@adacore.com>
9995
9996 * language.h (symbol_name_match_p_ftype): New typedef.
9997 (struct language_defn): Replace field la_symbol_name_compare
9998 by la_get_symbol_name_match_p.
9999 * ada-lang.c (ada_get_symbol_name_match_p): New function.
10000 (ada_language_defn): Use it.
10001 * linespec.c (struct symbol_matcher_data): New type.
10002 (iterate_name_matcher): Rewrite.
10003 (iterate_over_all_matching_symtabs): Pass a pointer to
10004 a symbol_matcher_data struct to expand_symtabs_matching
10005 instead of just the lookup name.
10006 * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
10007 opencl-lang.c, p-lang.c, language.c: Delete field
10008 la_symbol_name_compare, and replace by NULL for new field
10009 la_get_symbol_name_match_p.
10010 * symfile.h (struct quick_symbol_functions): Update comment.
10011
5d268276
TT
100122012-01-25 Tom Tromey <tromey@redhat.com>
10013
10014 * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
10015 dereferencing.
10016
edcc5120
TT
100172012-01-24 Tom Tromey <tromey@redhat.com>
10018
10019 PR symtab/12406:
10020 * solib.c (update_solib_list): Update the program space's
10021 added_solibs and deleted_solibs fields.
10022 * progspace.h (struct program_space) <added_solibs,
10023 deleted_solibs>: New fields.
10024 (clear_program_space_solib_cache): Declare.
10025 * progspace.c (release_program_space): Call
10026 clear_program_space_solib_cache.
10027 (clear_program_space_solib_cache): New function.
10028 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
10029 bpstat_stop_status. Use handle_solib_event.
10030 * breakpoint.c: Include gdb_regex.h.
10031 (print_solib_event): New function.
10032 (bpstat_print): Use print_solib_event.
10033 (bpstat_stop_status): Add special case for bp_shlib_event.
10034 (handle_solib_event): New function.
10035 (bpstat_what): Use handle_solib_event.
10036 (struct solib_catchpoint): New.
10037 (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
10038 (breakpoint_hit_catch_solib, check_status_catch_solib)
10039 (print_it_catch_solib, print_one_catch_solib)
10040 (print_mention_catch_solib, print_recreate_catch_solib): New
10041 functions.
10042 (catch_solib_breakpoint_ops): New global.
10043 (catch_load_or_unload, catch_load_command_1)
10044 (catch_unload_command_1): New functions.
10045 (internal_bkpt_check_status): Add special case for
10046 bp_shlib_event.
10047 (internal_bkpt_print_it): Use print_solib_event.
10048 (initialize_breakpoint_ops): Initialize
10049 catch_solib_breakpoint_ops.
10050 (_initialize_breakpoint): Register "catch load" and "catch
10051 unload".
10052 * breakpoint.h (handle_solib_event): Declare.
10053 * NEWS: Add entry for "catch load" and "catch unload".
10054
fa864999
TT
100552012-01-24 Tom Tromey <tromey@redhat.com>
10056
10057 * ada-lang.c: Include gdb_vecs.h.
10058 * charset.c: Include gdb_vecs.h.
10059 * tracepoint.h: Include gdb_vecs.h.
10060 * gdb_vecs.h: New file.
10061
f90263c1
TT
100622012-01-24 Pedro Alves <pedro@codesourcery.com>
10063
10064 * breakpoint.c (breakpoint_hit_catch_fork)
10065 (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
10066 (breakpoint_hit_catch_exec): Make use of the `ws' argument.
10067 * infrun.c (inferior_has_forked, inferior_has_vforked)
10068 (inferior_has_execd, inferior_has_called_syscall): Delete.
10069 (handle_syscall_event): Get syscall_number from the execution
10070 control state's wait status.
10071 (wait_for_inferior): Don't clear syscall_number.
10072
09ac7c10
TT
100732012-01-24 Pedro Alves <palves@redhat.com>
10074
10075 * breakpoint.c (bpstat_check_location, bpstat_stop_status,
10076 pc_at_non_inline_function): Add `ws' parameter, and pass it down.
10077 (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
10078 (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
10079 `ws' parameter.
10080 (breakpoint_hit_ranged_breakpoint): Add `ws' parameter. Return
10081 false for events other than TARGET_SIGNAL_TRAP.
10082 (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
10083 Add `ws' parameter.
10084 (bkpt_breakpoint_hit): Add `ws' parameter. Return false for
10085 events other than TARGET_SIGNAL_TRAP.
10086 (tracepoint_breakpoint_hit): Add `ws' parameter.
10087 * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
10088 parameter.
10089 (bpstat_stop_status): Same.
10090 (pc_at_non_inline_function): Same.
10091 * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
10092 to pass the current event's waitstatus to bpstat_stop_status
10093 and pc_at_non_inline_function.
10094
86eb7e95
JK
100952012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
10096
10097 Code cleanup.
10098 * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
10099 Update the function comment for it.
10100 (source_script_with_search): Call make_cleanup_fclose for STREAM.
10101 * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
10102 for STREAM.
10103
a9b3a50f
PA
101042012-01-24 Pedro Alves <palves@redhat.com>
10105
10106 * breakpoint.c (bpstat_stop_status): Moving clearing print_it
10107 outside `bs->stop' block.
10108 (bpstat_what): Rework bp_shlib_event handling.
10109 (internal_bkpt_check_status): If the breakpoint is a
10110 bp_shlib_event, then set bs->stop and bs->print if
10111 stop_on_solib_events is set.
10112
53fe1783
GB
101132012-01-24 Gary Benson <gbenson@redhat.com>
10114
10115 Delete #if 0'd out code.
10116 * stack.c (print_frame_label_vars): Remove.
10117 (catch_info): Likewise.
10118 (_initialize_stack): Remove "info catch" command.
10119 * NEWS: Mention the above.
10120
49c62f2e
PA
101212012-01-24 Pedro Alves <palves@redhat.com>
10122
10123 * remote.c (remote_add_inferior): New `fake_pid_p' parameter. Use
10124 it.
10125 (remote_notice_new_inferior): If the remote end doesn't support
10126 the multiprocess extensions, then the PID is fake.
10127 (add_current_inferior_and_thread): New.
10128 (remote_start_remote): Use it.
10129 (extended_remote_attach_1): Adjust.
10130 (extended_remote_create_inferior_1): Use
10131 add_current_inferior_and_thread.
10132
d0d8b0c6
JK
101332012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
10134
10135 Fix watchpoints to be specific for each inferior.
10136 * breakpoint.c (watchpoint_in_thread_scope): Verify also
10137 current_program_space.
10138 * i386-nat.c (i386_inferior_data_cleanup): New.
10139 (i386_inferior_data_get): Replace variable inf_data_local by an
10140 inferior_data call.
10141 (i386_use_watchpoints): Initialize i386_inferior_data.
10142 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
10143 specific iterate_over_lwps.
10144
4403d8e9
JK
101452012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
10146
10147 Fix watchpoints across inferior fork.
10148 * amd64-linux-nat.c (update_debug_registers_callback): Update the
10149 comment for linux_nat_iterate_watchpoint_lwps.
10150 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
10151 linux_nat_iterate_watchpoint_lwps.
10152 (amd64_linux_prepare_to_resume): New comment on Linux kernel.
10153 * i386-linux-nat.c (update_debug_registers_callback): Update the
10154 comment for linux_nat_iterate_watchpoint_lwps.
10155 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
10156 linux_nat_iterate_watchpoint_lwps.
10157 (i386_linux_prepare_to_resume): New comment on Linux kernel.
10158 * i386-nat.c: Include inferior.h.
10159 (dr_mirror): Remove.
10160 (i386_inferior_data, struct i386_inferior_data)
10161 (i386_inferior_data_get): New.
10162 (i386_debug_reg_state): Use i386_inferior_data_get.
10163 (i386_cleanup_dregs, i386_update_inferior_debug_regs)
10164 (i386_insert_watchpoint, i386_remove_watchpoint)
10165 (i386_stopped_data_address, i386_insert_hw_breakpoint)
10166 (i386_remove_hw_breakpoint): New variable state, use
10167 i386_debug_reg_state instead of DR_MIRROR.
10168 * linux-nat.c (delete_lwp): New declaration.
10169 (num_lwps): Move here from downwards.
10170 (delete_lwp_cleanup): New.
10171 (linux_child_follow_fork): Create new child_lp, call
10172 linux_nat_new_thread and linux_nat_prepare_to_resume before calling
10173 PTRACE_DETACH.
10174 (num_lwps): Move upwards.
10175 (linux_nat_iterate_watchpoint_lwps): New.
10176 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
10177 (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
10178
2992c9a7 101792012-01-24 Joel Brobecker <brobecker@adacore.com>
10180
10181 GDB 7.4 released.
10182
e360902b
PA
101832012-01-23 Pedro Alves <palves@redhat.com>
10184
10185 * top.c (caution): Rename to ...
10186 (confirm): ... this.
10187 (show_caution): Rename to ...
10188 (show_confirm): ... this.
10189 (quit_cover): Adjust.
10190 (init_main): Adjust.
10191 * top.h (caution): Rename to ...
10192 (confirm): ... this.
10193 * utils.c (internal_vproblem, defaulted_query): Adjust.
10194
050a2e1d
PA
101952012-01-23 Pedro Alves <palves@redhat.com>
10196
10197 * top.c (caution): Update comment.
10198 (execute_command): Don't consider the current value of `caution'.
10199
77a35dd8
JK
102002012-01-23 Jan Kratochvil <jan.kratochvil@redhat.com>
10201
10202 * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
10203
a71b5a38
UW
102042012-01-23 Ulrich Weigand <ulrich.weigand@linaro.org>
10205
10206 * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
10207 * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
10208 * target.c (target_fileio_pwrite): Remove buffer address from
10209 debug output.
10210 (target_fileio_pread): Likewise.
10211
d99bd577
UW
102122012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10213
10214 * NEWS: Document remote "info proc" and "generate-core-file".
10215
35c2fab7
UW
102162012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10217
10218 * gdbarch.sh (find_memory_regions): New callback.
10219 * gdbarch.c, gdbarch.h: Regenerate.
10220
10221 * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
10222 callback before falling back to target method.
10223
10224 * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
10225 (linux_target_install_ops): No longer install it.
10226
10227 * linux-tdep.c (linux_find_memory_regions): New function.
10228 (linux_init_abi): Install it.
10229
6432734d
UW
102302012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10231
10232 * gdbarch.sh (make_corefile_notes): New architecture callback.
10233 * gdbarch.c: Regenerate.
10234 * gdbarch.h: Likewise.
10235
10236 * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
10237 before target_make_corefile_notes. If NULL is returned, the
10238 target does not support core file generation.
10239
10240 * linux-nat.c: Include "linux-tdep.h".
10241 (find_signalled_thread, find_stop_signal): Remove.
10242 (linux_nat_do_thread_registers): Likewise.
10243 (struct linux_nat_corefile_thread_data): Likewise.
10244 (linux_nat_corefile_thread_callback): Likewise.
10245 (iterate_over_spus): Likewise.
10246 (struct linux_spu_corefile_data): Likewise.
10247 (linux_spu_corefile_callback): Likewise.
10248 (linux_spu_make_corefile_notes): Likewise.
10249 (linux_nat_collect_thread_registers): New function.
10250 (linux_nat_make_corefile_notes): Replace contents by call to
10251 linux_make_corefile_notes passing linux_nat_collect_thread_registers
10252 as native-only callback.
10253
10254 * linux-tdep.h: Include "bfd.h".
10255 (struct regcache): Add forward declaration.
10256 (linux_collect_thread_registers_ftype): New typedef.
10257 (linux_make_corefile_notes): Add prototype.
10258 * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
10259 "regset.h", and "elf-bfd.h".
10260 (find_signalled_thread, find_stop_signal): New functions.
10261 (linux_spu_make_corefile_notes): Likewise.
10262 (linux_collect_thread_registers): Likewise.
10263 (struct linux_corefile_thread_data): New data structure.
10264 (linux_corefile_thread_callback): New funcion.
10265 (linux_make_corefile_notes): Likewise.
10266 (linux_make_corefile_notes_1): Likewise.
10267 (linux_init_abi): Install it.
10268
3030c96e
UW
102692012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10270
10271 * gdbarch.sh (info_proc): New callback.
10272 * gdbarch.c, gdbarch.h: Regenerate.
10273
10274 * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
10275 before falling back to the target info_proc callback.
10276
10277 * linux-nat.c: Do not include "cli/cli-utils.h".
10278 (linux_nat_info_proc): Remove.
10279 (linux_target_install_ops): No longer install it.
10280
10281 * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
10282 (read_mapping): New function.
10283 (linux_info_proc): Likewise.
10284 (linux_init_abi): Install it.
10285
145b16a9
UW
102862012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10287
10288 * defs.h (enum info_proc_what): Moved here from linux-nat.c
10289 * infcmd.c: (info_proc_cmd_1): New function.
10290 (info_proc_cmd): New function, moved here from equivalent routine
10291 orignally in linux-nat.c.
10292 (info_proc_cmd_mappings): Likewise.
10293 (info_proc_cmd_stat): Likewise.
10294 (info_proc_cmd_status): Likewise.
10295 (info_proc_cmd_cwd): Likewise.
10296 (info_proc_cmd_cmdline): Likewise.
10297 (info_proc_cmd_exe): Likewise.
10298 (info_proc_cmd_all): Likewise.
10299 (_initialize_infcmd): Install "info proc" command and subcommands.
10300
10301 * target.h (struct target_ops): Add to_info_proc.
10302 (target_info_proc): Add prototype.
10303 * target.c (target_info_proc): New function.
10304
10305 * procfs.c (procfs_info_proc): Add prototype.
10306 (info_proc_cmd): Rename into ...
10307 (procfs_info_proc): ... this. Update argument types as appropriate
10308 for a to_info_proc implementation. Handle "what" argument.
10309 (procfs_target): Install procfs_info_proc.
10310 (_initialize_procfs): No longer install "info proc" command.
10311
10312 * linux-nat.c: (enum info_proc_what): Remove.
10313 (linux_nat_info_proc_cmd_1): Rename into ...
10314 (linux_nat_info_proc): ... this. Update argument types as appropriate
10315 for a to_info_proc implementation.
10316 (linux_nat_info_proc_cmd): Remove.
10317 (linux_nat_info_proc_cmd_mappings): Likewise.
10318 (linux_nat_info_proc_cmd_stat): Likewise.
10319 (linux_nat_info_proc_cmd_status): Likewise.
10320 (linux_nat_info_proc_cmd_cwd): Likewise.
10321 (linux_nat_info_proc_cmd_cmdline): Likewise.
10322 (linux_nat_info_proc_cmd_exe): Likewise.
10323 (linux_nat_info_proc_cmd_all): Likewise.
10324 (linux_target_install_ops): Install linux_nat_info_proc.
10325 (_initialize_linux_nat): No longer install "info proc" command
10326 and subcommands.
10327
b9e7b9c3
UW
103282012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10329
10330 * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
10331 * config.in, configure: Regenerate.
10332
10333 * target.h (struct target_ops): Add to_fileio_readlink.
10334 (target_fileio_readlink): Add prototype.
10335 * target.c (target_fileio_readlink): New function.
10336
10337 * inf-child.c: Conditionally include <sys/param.h>.
10338 (inf_child_fileio_readlink): New function.
10339 (inf_child_target): Install it.
10340
10341 * remote.c (PACKET_vFile_readlink): New enum value.
10342 (remote_hostio_readlink): New function.
10343 (init_remote_ops): Install it.
10344 (_initialize_remote): Handle vFile:readlink packet type.
10345
7313baad
UW
103462012-01-20 Pedro Alves <palves@redhat.com>
10347 Ulrich Weigand <ulrich.weigand@linaro.org>
10348
10349 * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
10350 * config.in, configure: Regenerate.
10351
10352 * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
10353 to_fileio_pread, to_fileio_close, to_fileio_unlink.
10354 (target_fileio_open): Add prototype.
10355 (target_fileio_pwrite): Likewise.
10356 (target_fileio_pread): Likewise.
10357 (target_fileio_close): Likewise.
10358 (target_fileio_unlink): Likewise.
10359 (target_fileio_read_alloc): Likewise.
10360 (target_fileio_read_stralloc): Likewise.
10361
10362 * target.c: Include "gdb/fileio.h".
10363 (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
10364 (default_fileio_target): New function.
10365 (target_fileio_open): Likewise.
10366 (target_fileio_pwrite): Likewise.
10367 (target_fileio_pread): Likewise.
10368 (target_fileio_close): Likewise.
10369 (target_fileio_unlink): Likewise.
10370 (target_fileio_close_cleanup): Likewise.
10371 (target_fileio_read_alloc_1): Likewise.
10372 (target_fileio_read_alloc): Likewise.
10373 (target_fileio_read_stralloc): Likewise.
10374
10375 * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
10376 <fcntl.h>, and <unistd.h>.
10377 (inf_child_fileio_open_flags_to_host): New function.
10378 (inf_child_errno_to_fileio_error): Likewise.
10379 (inf_child_fileio_open): Likewise.
10380 (inf_child_fileio_pwrite): Likewise.
10381 (inf_child_fileio_pread): Likewise.
10382 (inf_child_fileio_close): Likewise.
10383 (inf_child_fileio_unlink): Likewise.
10384 (inf_child_target): Install to_fileio routines.
10385
10386 * remote.c (init_remote_ops): Install to_fileio routines.
10387
901f9912
UW
103882012-01-20 Pedro Alves <palves@redhat.com>
10389 Ulrich Weigand <ulrich.weigand@linaro.org>
10390
10391 * remote.c (remote_multi_process_p): Only check for multi-process
10392 protocol feature, do not check for extended protocol.
10393 (remote_supports_multi_process): Check for extended protocol here.
10394 (set_general_process): Likewise.
10395 (extended_remote_kill): Likewise.
10396 (remote_pid_to_str): Likewise.
10397 (remote_query_supported): Always query multiprocess mode.
10398
e714e1bf
UW
103992012-01-20 Pedro Alves <palves@redhat.com>
10400 Ulrich Weigand <ulrich.weigand@linaro.org>
10401
10402 * inferior.h (struct inferior): Add fake_pid_p.
10403 * inferior.c (exit_inferior_1): Clear fake_pid_p.
10404 * remote.c (remote_start_remote): Set fake_pid_p if we have to use
10405 magic_null_ptid since the remote side doesn't provide a real PID.
10406
50897289
TT
104072012-01-19 Tom Tromey <tromey@redhat.com>
10408
10409 * NEWS: Combine the two Python sections.
10410
1afc2033
JK
104112012-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
10412
10413 * target.h (target_close): Update comment on the target's unpush state.
10414
305436e0
PA
104152012-01-19 Pedro Alves <palves@redhat.com>
10416
10417 * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
10418 linux_nat_async directly instead of going through the target
10419 vector.
10420 * target.c (unpush_target): Close target after unpushing it, not
10421 before.
10422
49323895
GB
104232012-01-19 Gary Benson <gbenson@redhat.com>
10424
10425 * mdebugread.c (sort_blocks): Replace integer constants with ones
10426 derived from FIRST_LOCAL_BLOCK.
10427
1db33378
PP
104282012-01-18 Paul Pluzhnikov <ppluzhnikov@google.com>
10429 Jan Kratochvil <jan.kratochvil@redhat.com>
10430
10431 PR gdb/9538
10432 * symfile.c (find_separate_debug_file): New function.
10433 (terminate_after_last_dir_separator): Likewise.
10434 (find_separate_debug_file_by_debuglink): Also try realpath.
10435 * configure.ac (AC_CHECK_FUNCS): Add lstat.
10436 * configure: Regenerate.
10437 * config.in: Regenerate.
10438
f83d8a90
DE
104392012-01-18 Doug Evans <dje@google.com>
10440
10441 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
10442 (main.o): Remove rule.
10443 * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
10444 (--with-sysroot): Rewrite.
10445 * configure: Regenerate.
10446 * config.in: Regenerate.
10447
2dbca4d6
SDJ
104482012-01-18 Sergio Durigan Junior <sergiodj@redhat.com>
10449
10450 * parse.c (initialize_expout): New function.
10451 (reallocate_expout): Likewise.
10452 (parse_exp_in_context): Use `initialize_expout' and
10453 `reallocate_expout' when appropriate.
10454
0695b514
PA
104552012-01-18 Pedro Alves <palves@redhat.com>
10456
10457 * record.c (struct record_breakpoint, record_breakpoint_p)
10458 (record_breakpoints): New.
10459 (record_insert_breakpoint, record_remove_breakpoint): Manage
10460 record breakpoints list. Only remove breakpoints from the
10461 inferior if they had been inserted there in the first place.
10462
136e1c30
DE
104632012-01-17 Doug Evans <dje@google.com>
10464
10465 * linespec.c (decode_line_internal): Don't call symtabs_from_filename
10466 if we know we don't have a file name to look for.
10467
c0bf857d
PA
104682012-01-17 Pedro Alves <palves@redhat.com>
10469
10470 * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
10471 the frame's stop reason is UNWIND_UNAVAILABLE.
10472
b486de60
JK
104732012-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
10474
10475 Fix compilation error.
10476 * m2-exp.y (yyerror): Use ANSI C prototype.
10477
d04550a6
SDJ
104782012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
10479
10480 * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
10481 (growbuf_by_size): Likewise.
10482 (yyerror): Likewise.
10483 * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
10484 (modblock): Remove variable (was #if 0'ed).
10485 (parse_number): Convert prototype from K&R to ANSI C.
10486 (yyerror): Likewise.
10487 * objc-exp.y (parse_number): Likewise.
10488 (yyerror): Likewise.
10489 (yylex): Remove #if 0'ed code.
10490 * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
10491 (yyerror): Likewise.
10492
4aac40c8
TT
104932012-01-16 Tom Tromey <tromey@redhat.com>
10494
10495 * NEWS: Add item.
10496 * symtab.h (compare_filenames_for_search): Declare.
10497 * symtab.c (compare_filenames_for_search): New function.
10498 (iterate_over_some_symtabs): Use it.
10499 * symfile.h (struct quick_symbol_functions)
10500 <map_symtabs_matching_filename>: Change spec.
10501 * psymtab.c (partial_map_symtabs_matching_filename): Use
10502 compare_filenames_for_search. Update for new spec.
10503 * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
10504 compare_filenames_for_search. Update for new spec.
10505 * breakpoint.c (clear_command): Use compare_filenames_for_search.
10506
cafec441
TT
105072012-01-16 Tom Tromey <tromey@redhat.com>
10508
10509 PR python/13281:
10510 * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
10511 (struct main_type) <flag_flag_enum>: New field.
10512 * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
10513 * NEWS: Add entries.
10514 * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
10515 enums.
10516 * python/lib/gdb/printing.py (_EnumInstance): New class.
10517 (FlagEnumerationPrinter): Likewise.
10518
983af33b
SDJ
105192012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
10520
10521 * breakpoint.c (create_sals_from_address_default): New function.
10522 (create_breakpoints_sal_default): Likewise.
10523 (decode_linespec_default): Likewise.
10524 (is_marker_spec): Removed.
10525 (strace_marker_p): New function.
10526 (init_breakpoint_sal): Using `strace_marker_p' instead of
10527 `is_marker_spec'.
10528 (create_breakpoint): Call method `create_sals_from_address' from
10529 breakpoint_ops, replacing code that created SALs conditionally
10530 on the type of the breakpoint. Call method `create_breakpoints_sal',
10531 replacing code that created breakpoints conditionally on the type
10532 wanted.
10533 (base_breakpoint_create_sals_from_address): New function.
10534 (base_breakpoint_create_breakpoints_sal): Likewise.
10535 (base_breakpoint_decode_linespec): Likewise.
10536 (base_breakpoint_ops): Add methods
10537 `base_breakpoint_create_sals_from_address',
10538 `base_breakpoint_create_breakpoints_sal' and
10539 `base_breakpoint_decode_linespec'.
10540 (bkpt_create_sals_from_address): New function.
10541 (bkpt_create_breakpoints_sal): Likewise.
10542 (bkpt_decode_linespec): Likewise.
10543 (tracepoint_create_sals_from_address): Likewise.
10544 (tracepoint_create_breakpoints_sal): Likewise.
10545 (tracepoint_decode_linespec): Likewise.
10546 (strace_marker_create_sals_from_address): Likewise.
10547 (strace_marker_create_breakpoints_sal): Likewise.
10548 (strace_marker_decode_linespec): Likewise.
10549 (strace_marker_breakpoint_ops): New variable.
10550 (addr_string_to_sals): Remove `marker_spec'. Call method
10551 `decode_linespec' from breakpoint_ops, replacing code that decoded
10552 an address string into a SAL. Use `strace_marker_p' instead of
10553 `marker_spec'.
10554 (strace_command): Decide whether we are dealing with a static
10555 tracepoint with marker or not. Use the appropriate breakpoint_ops.
10556 (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
10557 * breakpoint.h (linespec_result, linespec_sals): New forward
10558 declarations.
10559 (breakpoint_ops) <create_sals_from_address>,
10560 <create_breakpoints_sal>, <decode_linespec>: New methods.
10561
4795f398
DE
105622012-01-14 Doug Evans <dje@google.com>
10563
10564 * NEWS: Update text for "maint set python print-stack".
10565 It is deprecated in gdb 7.4 and deleted in 7.5.
10566
ee5106fe
EZ
105672012-01-13 Eli Zaretskii <eliz@gnu.org>
10568
10569 * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
10570 including curses.h.
10571
b161e06f
JK
105722012-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
10573
10574 * configure: Regenerate.
10575 * config.in: Regenerate.
10576
85254831
KS
105772012-01-12 Keith Seitz <keiths@redhat.com>
10578
10579 PR mi/10586
10580 * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
10581 (ANONYMOUS_UNION_NAME): Define.
10582 (is_path_expr_parent): New function.
10583 (get_path_expr_parent): New function.
10584 (is_anonymous_child): New function.
10585 (create_child_with_value): If the child is anonymous and without
10586 a name, assign an object name to it.
10587 (c_describe_child): Use get_path_expr_parent to determine
10588 the parent expression.
10589 If there field represents an anonymous struct or union and
10590 has no name, set an appropriate display name and expression.
10591 (cplus_describe_child): Likewise.
10592
620fa63a
PA
105932012-01-12 Pedro Alves <palves@redhat.com>
10594
10595 * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
10596 available when %ebp is found to be zero (outermost).
10597
2efa2c79
AT
105982012-01-11 Andreas Tobler <andreast@fgznet.ch>
10599
10600 * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
10601 an internal gdb_static_assert.
10602 * mi/mi-common.c: Rename static_assert to gdb_static_assert.
10603
88e7d25d
TT
106042012-01-11 Tom Tromey <tromey@redhat.com>
10605
10606 PR gdb/9598:
10607 * breakpoint.c (_initialize_breakpoint): Fix help for "catch
10608 catch" and "catch throw".
10609
72384ba3
PH
106102012-01-11 Paul Hilfinger <hilfingr@adacore.com>
10611
10612 * blockframe.c (block_innermost_frame): Start search from selected
10613 frame, if present, or otherwise the current frame.
10614
10615 * c-exp.y (variable): Update innermost_block for
10616 'block COLONCOLON NAME' clause.
10617 * m2-exp.y (variable): Ditto.
10618 * objc-exp.y (variable): Ditto.
10619
065a711f
TT
106202012-01-10 Tom Tromey <tromey@redhat.com>
10621
10622 PR python/13199:
10623 * python/python.c (finish_python_initialization): Set sys.argv.
10624
f3f5162e
DE
106252012-01-10 Doug Evans <dje@google.com>
10626
10627 * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd". New arg
10628 "want_line_info". All callers updated.
10629 (dwarf_decode_lines_1): New function.
10630 (handle_DW_AT_stmt_list): Add function comment.
10631 New arg "want_line_info". All callers updated.
10632 (read_file_scope,read_type_unit_scope): Move comment from
10633 handle_DW_AT_stmt_list to here.
10634
9934703b
JK
106352012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10636
10637 Fix regression after libiberty/ update for GCC PR 6057 and others.
10638 * c-exp.y (operator) <OPERATOR DELETE>
10639 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
10640 * cp-name-parser.y (fill_comp, make_operator, make_dtor)
10641 (make_builtin_type, make_name): New variable i, add gdb_assert.
10642 (operator) <OPERATOR NEW>: Update ARGS to 3.
10643 (operator) <OPERATOR DELETE>: Add trailing space.
10644 (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
10645 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
10646 * cp-support.c (cp_canonicalize_string): Check NULL from
10647 cp_comp_to_string, call warning and return.
10648
06b9f45f
JK
106492012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10650
10651 Fix duplicate .o files after omitting libbfd.a.
10652 * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
10653 (SFILES): Add corelow.c.
10654 (COMMON_OBS): Add corelow.o.
10655 (ALLDEPFILES): Remove corelow.c.
10656 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
10657 * config/alpha/alpha-osf3.mh: Likewise.
10658 * config/alpha/fbsd.mh: Likewise.
10659 * config/arm/nbsdaout.mh: Likewise.
10660 * config/arm/nbsdelf.mh: Likewise.
10661 * config/i386/i386gnu.mh: Likewise.
10662 * config/ia64/hpux.mh: Likewise.
10663 * config/ia64/linux.mh: Likewise.
10664 * config/m32r/linux.mh: Likewise.
10665 * config/m68k/linux.mh: Likewise.
10666 * config/mips/irix5.mh: Likewise.
10667 * config/mips/irix6.mh: Likewise.
10668 * config/pa/hpux.mh: Likewise.
10669 * config/pa/linux.mh: Likewise.
10670 * config/powerpc/aix.mh: Likewise.
10671 * config/sparc/linux.mh: Likewise.
10672 * config/sparc/linux64.mh: Likewise.
10673 * config/sparc/sol2.mh: Likewise.
10674 * config/vax/vax.mh: Likewise.
10675 * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
10676 (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
10677 (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
10678 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
10679 (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
10680 (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
10681 (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
10682 (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
10683 (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
10684 (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
10685 (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
10686 (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
10687 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
10688 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
10689 (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
10690 (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
10691 (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
10692 (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
10693 (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
10694 (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
10695 (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
10696 (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
10697 corelow.o from gdb_target_obs.
10698 * corefile.c (core_target): Update the comment on NULL value.
10699 (core_file_command): Replace error by gdb_assert on CORE_TARGET.
10700 * corelow.c (sniff_core_bfd): Call error instead of warning on zero
10701 MATCHES. Drop YUMMY set on NULL.
10702 (core_close): Do not call exit_inferior_silent on zero PID. Do not
10703 reclaim CORE_DATA if it is already NULL.
10704
34365054
DE
107052012-01-09 Doug Evans <dje@google.com>
10706
10707 * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
10708 * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
10709
696166a3
KS
107102012-01-09 Keith Seitz <keiths@redhat.com>
10711
10712 * breakpoint.c (wrapper.h): Don't include.
10713
8e7b59a5
KS
107142012-01-09 Keith Seitz <keiths@redhat.com>
10715
10716 * Makefile.in (SFILES): Remove wrapper.c.
10717 (HFILES_NO_SRCDIR): Remove wrapper.h.
10718 (COMMON_OBS): Remove wrapper.o.
10719 * cli/cli-interp.c: Don't inlude wrapper.h.
10720 * corelow.c: Likewise.
10721 (core_open): Replace gdb_target_find_new_threads with
10722 TRY_CATCH around target_find_new_threads.
10723 * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
10724 * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
10725 * varobj.c (varobj_create): Likewise for parse_exp_1 and
10726 evaluate_expression.
10727 (varobj_set_value): Likewise for evaluate_expression and
10728 value_assign.
10729 (install_new_variable): Likewise for value_fetch_lazy.
10730 (adjust_value_for_child_access): Likewise for value_ind.
10731 (c_describe_child): Likewise for value_subscript and
10732 value_ind.
10733 (c_value_of_root): Likewise for evaluate_expression.
10734 * wrapper.c: Remove.
10735 * wrapper.h: Remove.
10736
1a4eeb98
DE
107372012-01-09 Doug Evans <dje@google.com>
10738
9ff913ba
DE
10739 * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
10740 partial_read_comp_unit_head. Replace "buffer", "buffer_size" and
10741 "abfd" args with "section". All callers updated.
10742 Error checking code moved ...
10743 (error_check_comp_unit_head): ... here. New function.
10744 (read_and_check_type_unit_head): Renamed from read_type_unit_head.
10745 Delete arg "abfd". New arg "type_offset". All callers updated.
10746 (create_debug_types_hash_table): Simplify by using
10747 read_and_check_type_unit_head.
10748
1a4eeb98
DE
10749 * parser-defs.h (namecopy): Delete.
10750 * parse.c (namecopy, namecopy_size): Move into copy_name.
10751
2e6af8c0
JK
107522012-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10753
10754 Partially fix duplicate .o files after omitting libbfd.a.
10755 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
10756 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
10757 * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
10758 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
10759 * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
10760 * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
10761 * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
10762
9f2f828a
PA
107632012-01-09 Pedro Alves <palves@redhat.com>
10764
10765 * MAINTAINERS: Update my email address.
10766
4d72c0bc
DE
107672012-01-08 Doug Evans <dje@google.com>
10768
d467dd73
DE
10769 * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
10770 n_type_units. Rename type_comp_units to all_type_units.
10771 All uses updated.
10772 (add_signatured_type_cu_to_table): Renamed from
10773 add_signatured_type_cu_to_list. All callers updated.
10774
4d72c0bc
DE
10775 * gdbtypes.h (struct cplus_struct_type): Delete member
10776 nfn_fields_total. All uses removed.
10777
21b2bd31
DE
107782012-01-06 Doug Evans <dje@google.com>
10779
10780 * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
10781 to top of file.
10782 (dwarf2_find_comp_unit): Delete.
10783 (process_psymtab_comp_unit): Make result "void".
10784 Delete args buffer, info_ptr, buffer_size, and replace with
10785 "section". All callers updated.
10786 (dwarf2_build_psymtabs_hard): Simplify.
10787
bfd189b1
SDJ
107882012-01-06 Sergio Durigan Junior <sergiodj@redhat.com>
10789 Thiago Jung Bauermann <bauerman@br.ibm.com>
10790
10791 * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
10792 before `struct gdb_exception'.
10793 * breakpoint.c (update_global_location_list_nothrow)
10794 (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
10795 * cp-abi.c (value_rtti_type): Likewise.
10796 * cp-support.c (cp_validate_operator): Likewise.
10797 * infrun.c (insert_exception_resume_breakpoint)
10798 (check_exception_resume, keep_going): Likewise.
10799 * mi-interp.c (mi_breakpoint_created)
10800 (mi_breakpoint_modified): Likewise.
10801 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
10802 * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
10803 (ia64_hpux_handle_dld_breakpoint_1): Likewise.
10804
6b07635f
DE
108052012-01-05 Doug Evans <dje@google.com>
10806
0b30b85c
DE
10807 * dwarf2read.c (statement_prologue): Delete, unused.
10808
98714339
DE
10809 * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
10810 * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
10811
6b07635f
DE
10812 * dwarf2read.c (comp_unit_header): Delete, unused.
10813
761f4555
UW
108142012-01-05 Ulrich Weigand <uweigand@de.ibm.com>
10815
10816 * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
10817 * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
10818
2ca0b532
PA
108192012-01-05 Khoo Yit Phang <khooyp@cs.umd.edu>
10820
10821 * infrun.c (normal_stop): Don't skip calling the normal_stop
10822 observers if the thread was doing a multi-step, but stopped for
10823 some reason other than stepping.
10824
50aeff07
PA
108252012-01-05 Pedro Alves <alves.ped@gmail.com>
10826
10827 * cli/cli-decode.h: Add comments.
10828 (CMD_LIST_AMBIGUOUS): Moved to command.h
10829 (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
10830 (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
10831 (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
10832 (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
10833 (add_com, add_com_alias, add_info, add_info_alias)
10834 (complete_on_cmdlist, complete_on_enum, help_list): Remove
10835 declarations.
10836 * command.h: Add and adjust comments.
10837 (CMD_LIST_AMBIGUOUS): Moved here.
10838 (help_cmd, help_cmd_list): Delete declarations.
10839
5953832c
DE
108402012-01-04 Doug Evans <dje@google.com>
10841
e5fe5e75
DE
10842 * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
10843 All callers updated.
10844 (load_full_type_unit): Renamed from read_signatured_type_at_offset.
10845 Replace all arguments with "per_cu". All callers updated.
10846
28dee7f5
DE
10847 * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
10848
23745b47
DE
10849 * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
10850 New arg "per_cu". All callers updated.
10851
5953832c
DE
10852 Delete #if 0'd out code.
10853 * language.c (binop_result_type): Delete.
10854 (simple_type, ordered_type, same_type, integral_type): Delete.
10855 (numeric_type, character_type, string_type, boolean_type): Delete.
10856 (float_type, structured_type): Delete.
10857 * language.h: Update.
10858
0f5b7562
TT
108592012-01-04 Tom Tromey <tromey@redhat.com>
10860
10861 * python/py-value.c (valpy_binop): Initialize 'res_val'.
10862
78218f56
JB
108632012-01-04 Joel Brobecker <brobecker@adacore.com>
10864
10865 * corefile.c (close_exec_file): Delete.
10866 (reopen_exec_file): Remove commented out code that seems related
10867 to close_exec_file, which is being deleted here.
10868 * inferior.h (close_exec_file): Delete.
10869 * fork-child.c (fork_inferior): Remove call to fork_inferior.
10870
0fcd72ba
JB
108712012-01-04 Joel Brobecker <brobecker@adacore.com>
10872
10873 * ada-lang.c: #include "cli/cli-utils.h".
10874 (get_selections): Use skip_spaces.
10875 (ada_get_next_arg): Use skip_spaces and skip_to_space.
10876 (catch_ada_exception_command_split): Use skip_spaces.
10877 (ada_decode_assert_location): Likewise.
10878
1dabb4c4
JB
108792012-01-04 Joel Brobecker <brobecker@adacore.com>
10880
10881 * linespec.c (decode_line_internal): Check for C++ or Java
10882 compound constructs only if the current language is C, C++
10883 or Java.
10884
5931a2fa
JK
108852012-01-04 Jan Kratochvil <jan.kratochvil@redhat.com>
10886
10887 Revert:
10888 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10889 Joel Brobecker <brobecker@adacore.com>
10890 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
10891 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
10892 3 times.
10893 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
10894 fall through into AT_ENTRY_POINT.
10895 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
10896 DUMMY_ADDR with it.
10897 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
10898 PPC_INSN_SIZE skip to 3 times.
10899
1a2da5ee
JB
109002012-01-04 Joel Brobecker <brobecker@adacore.com>
10901
10902 * linespec.c (add_minsym): Preserve function descriptors.
10903
8645ff69
UW
109042012-01-04 Ulrich Weigand <uweigand@de.ibm.com>
10905
10906 * breakpoint.c (all_locations_are_pending): Consider locations
10907 in program spaces executing during startup pending as well.
10908
0b302171
JB
109092012-01-04 Joel Brobecker <brobecker@adacore.com>
10910
10911 Copyright year update in most files of the GDB Project.
10912
8ba098ad
JB
109132012-01-04 Joel Brobecker <brobecker@adacore.com>
10914
10915 * copyright.sh: Delete.
10916 * copyright.py: Rewrite.
10917
09c01c30
JB
109182012-01-04 Joel Brobecker <brobecker@adacore.com>
10919
10920 * gnulib/extra/update-copyright: New file, imported from gnulib.
10921
3c36c0af
JB
109222012-01-04 Joel Brobecker <brobecker@adacore.com>
10923
10924 * README (Copyright and License Notices): New section.
10925
888fe1e1
TT
109262012-01-03 Tom Tromey <tromey@redhat.com>
10927
10928 PR python/12533:
10929 * python/py-value.c (valpy_dereference, valpy_get_address
10930 valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
10931 (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
10932 (valpy_absolute, valpy_richcompare): Free intermediate values.
10933
6e681866
JB
109342011-01-03 Joel Brobecker <brobecker@adacore.com>
10935
10936 * ada-lang.c: Reformat the copyright notice.
10937
0cd09acb
JK
109382012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10939
10940 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
10941 * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
10942 (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
10943 (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
10944 Revert this part of:
10945 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10946 Build gdb directly from *.o files not using libgdb.a.
10947 * Makefile.in (COMMON_OBS): Remove solib-target.o.
10948
12c3e59c
JB
109492012-01-02 Joel Brobecker <brobecker@adacore.com>
10950
10951 * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
10952 gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
10953 Reformat the copyright header.
10954
11bf1490
JK
109552012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10956
10957 Revert this part of:
10958 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10959 Remove the gdbtui binary.
10960 * gdb.c (main): Remove args.interpreter_p initialization.
10961 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
10962 * main.h (struct captured_main_args): Remove interpreter_p.
10963
1fef196f
JB
109642012-01-02 Joel Brobecker <brobecker@adacore.com>
10965
10966 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
10967
67827812
JB
109682012-01-02 Joel Brobecker <brobecker@adacore.com>
10969
10970 * top.c (print_gdb_version): Update copyright year.
10971
a4d0b831
YQ
109722012-01-02 Yao Qi <yao@codesourcery.com>
10973
10974 * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
10975
b5914469
JK
109762012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10977 Joel Brobecker <brobecker@adacore.com>
10978
10979 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
10980 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
10981 3 times.
10982 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
10983 fall through into AT_ENTRY_POINT.
10984 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
10985 DUMMY_ADDR with it.
10986 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
10987 PPC_INSN_SIZE skip to 3 times.
10988
8da828f7
JK
109892012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10990
10991 * amd64-linux-nat.c (update_debug_registers_callback): New comment on
10992 the return value.
10993 * i386-linux-nat.c (update_debug_registers_callback): Likewise.
10994
8574e74b
JK
109952012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10996
10997 Build gdb directly from *.o files not using libgdb.a.
10998 * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
10999 (COMMON_OBS): Remove solib-target.o.
11000 (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
11001 (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
11002 (LIBGDB_OBS, libgdb.a): Move it above.
11003 * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
11004 (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
11005 (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
11006 (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
11007 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
11008 (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
11009 (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
11010 (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
11011 (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
11012 (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
11013 (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
11014 (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
11015 (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
11016 (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
11017 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
11018 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
11019 (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
11020 (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
11021 (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
11022 (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
11023 (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
11024 (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
11025 (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
11026 (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
11027 (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
11028 (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
11029 (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
11030
217bff3e
JK
110312012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11032
11033 Remove the gdbtui binary.
11034 * .gitignore (/gdbtui): Remove.
11035 * Makefile.in (TUI): Remove.
11036 (SUBDIR_TUI_OBS): Remove tui-main.o.
11037 (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
11038 (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
11039 (tui-main.o): Remove.
11040 (all_object_files): Remove tui-main.o.
11041 * NEWS: New note for the gdbtui removal.
11042 * configure: Rebuilt.
11043 * configure.ac: No longer add all-tui, clean-tui, install-tui and
11044 uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
11045 CONFIG_UNINSTALL respectively.
11046 * gdb.c (main): Remove args.interpreter_p initialization.
11047 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
11048 * main.h (struct captured_main_args): Remove interpreter_p.
11049 * tui/tui-main.c: Remove.
11050
9cdd5dbd
DE
110512012-01-01 Doug Evans <dje@google.com>
11052
bb5ed363
DE
11053 * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
11054 (dwarf2_physname, read_import_statement): Ditto.
11055 (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
11056 (process_structure_scope read_subroutine_type): Ditto.
11057 (read_typedef, load_partial_dies, read_partial_die): Ditto.
11058 (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
11059 (dwarf2_fetch_die_location_block): Ditto.
11060 (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
11061
a0f42c21
DE
11062 * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
11063 All callers updated.
11064 (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
11065 (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
11066 (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
11067
2dc860c0
DE
11068 * dwarf2read.c (load_cu): Move assert to more useful location.
11069
68dc6402
DE
11070 * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
11071 All callers updated.
11072
9cdd5dbd
DE
11073 * dwarf2read.c (dwarf2_per_objfile): Add comment.
11074 (dwarf2_elf_names): Minor reformat.
11075 (dwarf2_per_cu_data): Tweak comment.
11076 (dwarf2_read_section): Fix comment.
11077 (create_all_comp_units): Fix comment.
11078 (load_full_comp_unit): Fix comment.
11079 (process_full_comp_unit): Fix comment.
11080 (read_signatured_type): Fix comment.
11081
0c10e53e 11082For older changes see ChangeLog-2011.
c906108c
SS
11083\f
11084Local Variables:
11085mode: change-log
11086left-margin: 8
11087fill-column: 74
11088version-control: never
57da7796 11089coding: utf-8
c906108c 11090End:
This page took 1.877627 seconds and 4 git commands to generate.