2012-10-26 Pedro Alves <palves@redhat.com>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
940c3c06
PA
12012-10-26 Pedro Alves <palves@redhat.com>
2
3 * infrun.c (handle_inferior_event): Merge handling of
4 TARGET_WAITKIND_EXITED and TARGET_WAITKIND_SIGNALLED into a single
5 switch case.
6
47b19065
PA
72012-10-26 Pedro Alves <palves@redhat.com>
8
9 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_SIGNALLED>:
10 Remove comment.
11
87d2d2a4
PA
122012-10-26 Pedro Alves <palves@redhat.com>
13
14 * target.c (target_waitstatus_to_string): Handle
15 TARGET_WAITKIND_VFORK_DONE.
16
fed708ed
PA
172012-10-26 Pedro Alves <palves@redhat.com>
18
19 * infrun.c (handle_inferior_event): Print TARGET_WAITKIND_VFORKED
20 as "TARGET_WAITKIND_VFORKED", not "TARGET_WAITKIND_FORKED".
21
2590b645
JB
222012-10-24 Tristan Gingold <gingold@adacore.com>
23
24 * ravenscar-sparc-thread.c (ravenscar_sparc_fetch_registers):
25 Add comments.
26
bed0c243
JB
272012-10-24 Joel Brobecker <brobecker@adacore.com>
28
29 * ravenscar-thread.c (ravenscar_wait): Only update the list
30 of threads and inferior_ptid if the inferior is still alive.
31
f69c91ad
JB
322012-10-24 Joel Brobecker <brobecker@adacore.com>
33
34 * ada-lang.c (is_known_support_routine): Use lbasename when
35 matching the symtab's filename against
36 known_runtime_file_name_patterns.
37
d99dcf51
JB
382012-10-24 Joel Brobecker <brobecker@adacore.com>
39
40 * ada-lang.c (ada_same_array_size_p): New function.
41 (ada_promote_array_of_integrals): New function.
42 (coerce_for_assign): Add handling of arrays where the elements
43 are integrals of a smaller size than the size of the target
44 array element type.
45
32560274
JB
462012-10-24 Joel Brobecker <brobecker@adacore.com>
47
48 * doublest.c (convert_doublest_to_floatformat): Fix comparison
49 against maximum exponent value.
50
5a04cc98
JB
512012-10-24 Joel Brobecker <brobecker@adacore.com>
52
53 * ada-lang.h (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Add entry for
54 "unwind-seh.c".
55
5ded5331
JB
562012-10-24 Joel Brobecker <brobecker@adacore.com>
57
58 * ada-lang.c (ada_template_to_fixed_record_type_1): Do not
59 strip typedef layer when computing the fixed type's field type,
60 only when computing its size.
61
2445fd7b
MK
622012-10-24 Mark Kettenis <kettenis@gnu.org>
63
64 PR gdb/12783
65 * i386-tdep.c (i386_return_value): Handle complex double and long
66 double.
67
8f205f9c
JB
682012-10-24 Joel Brobecker <brobecker@adacore.com>
69
70 * windows-nat.c (windows_create_inferior) [!__CYGWIN__]:
71 New local variable args_len.
72 Quote the name of the executable when computing the command line.
73
7f7930dd
MK
742012-10-23 Mark Kettenis <kettenis@gnu.org>
75
76 PR gdb/12796
77 PR gdb/12798
78 PR gdb/12800
79 * amd64-tdep.h (enum amd64_regnum): Add AMD64_ST1_REGNUM and
80 AMD64_FTAG_REGNUM.
81 * amd64-tdep.c (amd64_classify): Classify complex types.
82 (amd64_return_value): Handle the COMPLEX_X87 class.
83
38a69d0a
JB
842012-10-23 Joel Brobecker <brobecker@adacore.com>
85
86 * rs6000-aix-tdep.c (rs6000_aix_auto_wide_charset): New function.
87 (rs6000_aix_init_osabi): Set auto_wide_charset gdbarch method.
88
83ab93c6
JB
892012-10-23 Joel Brobecker <brobecker@adacore.com>
90
91 * amd64-windows-tdep.c (amd64_windows_auto_wide_charset): New
92 function.
93 (amd64_windows_init_abi): Set auto_wide_charset gdbarch method
94 to amd64_windows_auto_wide_charset.
95
f6fbab7d
YQ
962012-10-23 Yao Qi <yao@codesourcery.com>
97
98 * event-top.c (mark_async_signal_handler_wrapper): Remove.
99 * event-top.h: Remove its declaration.
100 (async_request_quit): Call mark_async_signal_handler instead of
101 mark_async_signal_handler_wrapper.
102 (async_do_nothing, async_disconnect): Likewise.
103 (async_stop_sig): Likewise.
104 * remote.c (handle_remote_sigint): Likewise.
105 (handle_remote_sigint_twice): Likewise.
106
05fa9251
YQ
1072012-10-23 Yao Qi <yao@codesourcery.com>
108
109 * event-top.c (sigint_token, sighup_token): Replace 'void *'
110 with 'static struct async_signal_handler *'.
111 (sighup_token, sigquit_token, sigstp_token): Likewise.
112
08af7a40
AA
1132012-10-22 Ali Anwar <ali_anwar@codesourcery.com>
114
115 * gdbarch.sh (function_list): Use 'pstring' when printing
116 a variable which could return NULL.
117 * gdbarch.c: Regenerate.
118
beb4b03c
JB
1192012-10-10 Joel Brobecker <brobecker@adacore.com>
120 Tom Tromey <tromey@redhat.com>
121
122 * rs6000-aix-tdep.c (rs6000_aix_osabi_sniffer): Replace
123 inneffective if condition by gdb assertion. Add function
124 description comment.
125
a5b12627
JB
1262012-10-19 Joel Brobecker <brobecker@adacore.com>
127
128 * parser-defs.h (struct exp_descriptor): Document constraint
129 on return value for "op_name" callbacks.
130
0b0865da
TT
1312012-10-18 Tom Tromey <tromey@redhat.com>
132
133 * tracepoint.c (print_one_static_tracepoint_marker): Constify.
134 * symtab.c (iterate_over_some_symtabs): Constify.
135 * source.h (symtab_to_fullname): Return 'const char *'.
136 * source.c (symtab_to_fullname): Return 'const char *'.
137 * python/py-symtab.c (stpy_fullname): Constify.
138 * cli/cli-cmds.c (edit_command): Constify.
139 * breakpoint.c (print_breakpoint_location)
140 (update_static_tracepoint): Constify.
141
94b0e70d
TT
1422012-10-18 Tom Tromey <tromey@redhat.com>
143
144 * breakpoint.c (compare_breakpoints): Fix comparison.
145
fff10684
TT
1462012-10-18 Tom Tromey <tromey@redhat.com>
147
148 * valprint.c (generic_emit_char, generic_printstr): Pass size of
149 gdb_wchar_t to convert_between_encodings.
150
8de0566d
YQ
1512012-10-17 Yao Qi <yao@codesourcery.com>
152
153 * breakpoint.c (invalidate_bp_value_on_memory_change): Add one
154 more parameter 'inferior'.
155 * corefile.c (write_memory_with_notification): Caller update.
156
157 * mi/mi-cmd-var.c: Include "mi-main.h".
158 (mi_cmd_var_assign): Set mi_suppress_notification.data_write_memory
159 to 1 and restore it later.
160 * mi/mi-cmds.c (mi_cmd mi_cmds): Update for "data-write-memory"
161 and "data-write-memory-bytes.
162 * mi/mi-interp.c: Include objfiles.h.
163 (mi_interpreter_init): Call observer_attach_memory_changed.
164 (mi_memory_changed): New.
165 * mi/mi-main.h (struct mi_suppress_notification) <memory>:
166 New field.
167
168 * NEWS: Mention new MI notification "memory-changed".
169
6235cdd1
JK
1702012-10-16 Jan Kratochvil <jan.kratochvil@redhat.com>
171
172 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Remove comment.
173
07540c15
DE
1742012-10-15 Doug Evans <dje@google.com>
175
176 New option -nh: inhibit loading of ~/.gdbinit.
177 * NEWS: Mention -nh.
178 * main.c (captured_main): Recognize and process -nh.
179 (print_gdb_help): Mention -nh.
180 * gdb.1: Mention -nh. Remove erroneous docs on -nx behavior.
181
eab09350
L
1822012-10-15 H.J. Lu <hongjiu.lu@intel.com>
183
184 PR backtrace/14646
185 PR gdb/14647
186 * i386-tdep.h (gdbarch_tdep): Remove sp_regnum_from_eax and
187 pc_regnum_from_eax.
188 * i386-tdep.c (i386_gdbarch_init): Don't use sp_regnum_from_eax
189 nor pc_regnum_from_eax.
190 * amd64-tdep.c (amd64_x32_init_abi): Don't set sp_regnum_from_eax
191 nor pc_regnum_from_eax.
192
9e3a7d65
JK
1932012-10-15 Jan Kratochvil <jan.kratochvil@redhat.com>
194
195 Fix entry values resolving in inlined frames.
196 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Move func_addr,
197 gdbarch and caller_frame initialization later. Skip INLINE_FRAME
198 entries of FRAME.
199
c83393b9
JB
2002012-10-15 Joel Brobecker <brobecker@adacore.com>
201
202 * configure.ac: Build with -DMS_WIN64 if building with Python
203 enabled using GCC on amd64-windows.
204 * configure: Regenerate.
205
801e4185
TT
2062012-10-15 Tom Tromey <tromey@redhat.com>
207
208 PR python/14635:
209 * python/py-symtab.c (del_objfile_sal): Set 'symtab' field
210 to Py_None.
211
74f910c8
TT
2122012-10-15 Tom Tromey <tromey@redhat.com>
213
214 PR python/14634:
215 * python/py-symbol.c (sympy_dealloc): Check for NULL symbol.
216
2a7c8fd5
AB
2172012-10-11 Andrew Burgess <aburgess@broadcom.com>
218
219 * remote-sim.c (gdbsim_create_inferior): Call init_thread_list to
220 reset thread numbering back to 1.
221
7c09e5a0
DE
2222012-10-11 Doug Evans <dje@google.com>
223
224 PR breakpoints/14643.
225 * linespec.c (struct ls_parser): New member keyword_ok.
226 (linespec_lexer_lex_string): Add comment.
227 (linespec_lexer_lex_one): Ignore keywords if it's the wrong place
228 for one.
229 (parse_linespec): Set keyword_ok.
230
a1855c1d
DE
2312012-10-10 Doug Evans <dje@google.com>
232
844226d6
DE
233 * dwarf2read.c (process_psymtab_comp_unit_reader): Remove duplicate
234 "0x" prefix on address in log message.
235
a1855c1d
DE
236 * dwarf2read.c (read_1_byte): Add const to buf parameter.
237 (read_1_signed_byte, read_2_bytes, read_2_signed_bytes): Ditto.
238 (read_4_bytes, read_4_signed_bytes, read_8_bytes): Ditto.
239 (lookup_dwo_file): Add const to dwo_name parameter.
240 (lookup_dwo_comp_unit, lookup_dwo_type_unit): Ditto.
241
2e24f4aa
JK
2422012-10-06 Jan Kratochvil <jan.kratochvil@redhat.com>
243
244 Fix crash during stepping on ppc32.
245 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Test NULL
246 SYM.
247
aa14df25
DE
2482012-10-03 Doug Evans <dje@google.com>
249
250 PR symtab/14601
251 * buildsym.c (buildsym_init): Reset using_directives to NULL.
252
3d468296
AB
2532012-10-02 Andrew Burgess <aburgess@broadcom.com>
254
255 * remote-sim.c (dump_mem): Always dump buffer contents, zero fill
256 output and use uint32_t not long to ensure 4 byte size.
257
8f0ee2eb
JB
2582012-10-02 Joel Brobecker <brobecker@adacore.com>
259
260 * rs6000-nat.c (add_vmap): Set "last" to "next" after having
261 unref'ed it.
262
b3dc46ff
AB
2632012-10-01 Andrew Burgess <aburgess@broadcom.com>
264
265 * target.c (simple_search_memory): Include access length in
266 warning message.
267
f712f01f
EBM
2682012-09-28 Nathan Miller <nathanm2@us.ibm.com>
269 Edjunior Machado <emachado@linux.vnet.ibm.com>
270
271 PR gdb/13989
272 * solib.c (solib_find): Prevent GDB from loading native libraries when
273 debugging a cross-target corefile.
274
39181896
PA
2752012-09-28 selven <pcthegreat@gmail.com>
276
277 Make definition match declaration.
278
279 * regcache.c (regcache_register_status): Change return type to
280 enum register_status.
281
4c2786ba
YQ
2822012-09-28 Yao Qi <yao@codesourcery.com>
283
284 * mi/mi-main.c (mi_cmd_data_write_memory): Call
285 write_memory_with_notification instead of write_memory.
286 (mi_cmd_data_write_memory_bytes): Call write_memory_with_notification
287 instead of target_write_memory.
288
1ae0c35e
YQ
2892012-09-28 Yao Qi <yao@codesourcery.com>
290
291 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Emit error
292 when the length of content is not an even number.
293
7977e5d2
TT
2942012-09-27 Tom Tromey <tromey@redhat.com>
295
296 Fix https://bugzilla.redhat.com/show_bug.cgi?id=849357
297 * cp-valprint.c (cp_print_value_fields): Use get_vptr_fieldno.
298
807160da
JB
2992012-09-27 Joel Brobecker <brobecker@adacore.com>
300
301 * sol-thread.c (sol_thread_fetch_registers)
302 (sol_thread_store_registers): Delete commented out code.
303
43c75337
JB
3042012-09-27 Joel Brobecker <brobecker@adacore.com>
305
306 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
307 Move these functions to sparc-sol-thread.c.
308 * sparc-sol-thread.c: New file.
309 * configure.ac: Add sparc-sol-thread.o to CONFIG_OBS and
310 sparc-sol-thread.c to CONFIG_SRCS for sparc-solaris native
311 configurations.
312 * configure: Regenerate.
313
d292a972
JB
3142012-09-27 Joel Brobecker <brobecker@adacore.com>
315
316 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
317 Remove commented-out code.
318
8c3da003
JB
3192012-09-27 Joel Brobecker <brobecker@adacore.com>
320
321 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
322 Enable this code for sparc hosts only.
323
f00482b6
JB
3242012-09-27 Joel Brobecker <brobecker@adacore.com>
325
326 * procfs.h (procfs_find_LDT_entry): Add declaration.
327 * sol-thread.c (ps_lgetLDT): Delete local declaration of
328 function procfs_find_LDT_entry.
329
337c776f
JB
3302012-09-27 Joel Brobecker <brobecker@adacore.com>
331
332 * procfs.c (proc_get_LDT_entry): Make static.
333
1a04d88f
JB
3342012-09-27 Joel Brobecker <brobecker@adacore.com>
335
336 * procfs.c (proc_find_memory_regions): Fix declaration.
337
bad43aa5
SP
3382012-09-27 Siddhesh Poyarekar <siddhesh@redhat.com>
339
340 * amd64-tdep.c (amd64_return_value): Revert previous change
341 that used TYPE_LENGTH directly.
342 * bfin-tdep.c (bfin_extract_return_value): Likewise.
343 (bfin_store_return_value): Likewise.
344 * cris-tdep.c (cris_store_return_value): Likewise.
345 (cris_extract_return_value): Likewise.
346 * h8300-tdep.c (h8300_extract_return_value): Likewise.
347 * hppa-tdep.c (hppa64_return_value): Likewise.
348 * lm32-tdep.c (lm32_store_return_value): Likewise.
349 * microblaze-tdep.c (microblaze_store_return_value): Likewise.
350 * spu-tdep.c (spu_value_from_register): Likewise.
351 * vax-tdep.c (vax_return_value): Likewise.
352
63375b74
SP
3532012-09-27 Siddhesh Poyarekar <siddhesh@redhat.com>
354
355 * gdbtypes.c (lookup_array_range_type): Expand parameters
356 LOW_BOUND and HIGH_BOUND to LONGEST.
357 (lookup_string_range_type): Likewise.
358 * gdbtypes.h (lookup_array_range_type): Likewise.
359 (lookup_string_range_type): Likewise.
360 * valops.c (value_cstring): Expand parameter LEN to ssize_t.
361 Expand HIGHBOUND to ssize_t.
362 (value_string): Likewise.
363 * value.h (value_cstring): Expand parameter LEN to ssize_t.
364 (value_string): Likewise.
365
19ca11c5
YQ
3662012-09-27 Yao Qi <yao@codesourcery.com>
367
368 PR breakpoints/13898
369 * breakpoint.h (tracepoint_breakpoint_ops): Forward declaration.
370 * mi/mi-cmd-break.c (mi_cmd_break_insert): Set breakpoint_ops
371 per breakpoint type.
372
92107356
PM
3732012-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
374
375 * procfs.c: Add gdb_bfd header.
376 * rs6000-nat.c: Likewise.
377 * solib-pa64.c: Likewise.
378 * spu-linux-nat.c: Likewise.
379 * windows-nat.c: Likewise.
380
9742094a
TT
3812012-09-26 Tom Tromey <tromey@redhat.com>
382
383 * f-lang.h (BLANK_COMMON_NAME_LOCAL): Remove.
384
0971de02
TT
3852012-09-26 Tom Tromey <tromey@redhat.com>
386
387 * dwarf2read.c (mark_common_block_symbol_computed): New function.
388 (read_common_block): Handle child DIEs with
389 DW_AT_data_member_location.
390 (new_symbol_full): Add special case for common blocks.
391
4357ac6c
TT
3922012-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
393 Tom Tromey <tromey@redhat.com>
394
395 * dwarf2read.c (read_common_block): Rewrite.
396 (new_symbol_full): Handle DW_TAG_common_block.
397 * f-lang.c (head_common_list, find_common_for_function):
398 Remove.
399 * f-lang.h (struct common_entry, struct saved_f77_common,
400 SAVED_F77_COMMON, SAVED_F77_COMMON_PTR, COMMON_ENTRY,
401 COMMON_ENTRY_PTR, head_common_list, find_common_for_function,
402 BLANK_COMMON_NAME_LOCAL): Remove.
403 (struct common_block): New.
404 * f-valprint.c (list_all_visible_commons): Remove.
405 (info_common_command_for_block): New function.
406 (info_common_command): Use it.
407 * stack.c (iterate_over_block_locals): Special case for
408 COMMON_BLOCK_DOMAIN.
409 * symtab.h (enum domain_enum_tag) <COMMON_BLOCK_DOMAIN>: New
410 constant.
411 (struct general_symbol_info) <value.common_block>: New field.
412 (SYMBOL_VALUE_COMMON_BLOCK): New define.
413
965f07a8
TT
4142012-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
415 Tom Tromey <tromey@redhat.com>
416
417 * f-lang.c (allocate_saved_bf_node,
418 allocate_saved_function_node, allocate_saved_f77_common_node,
419 allocate_common_entry_node, tail_common_list, current_common,
420 saved_bf_list, saved_bf_list_end, current_head_bf_list,
421 tmp_bf_ptr, add_common_block, add_common_entry,
422 find_first_common_named, patch_common_entries,
423 patch_all_commons_by_name, ADD_BF_SYMNUM, clear_bf_list,
424 global_remote_debug, get_bf_for_fcn, saved_function_list,
425 saved_function_list_end, clear_function_list, struct saved_fcn,
426 struct saved_bf_symnum, SAVED_FUNCTION, SAVED_FUNCTION_PTR,
427 SAVED_BF, SAVED_BF_PTR): Remove.
428 * f-lang.h (tail_common_list, current_common,
429 UNINITIALIZED_SECNUM, COMMON_NEEDS_PATCHING,
430 BLANK_COMMON_NAME_ORIGINAL, BLANK_COMMON_NAME_MF77,
431 DEFAULT_UPPER_BOUND, DEFAULT_LOWER_BOUND, real_main_name,
432 real_main_c_value): Remove.
433 * f-valprint.c (there_is_a_visible_common_named): Remove.
434
6f380991
AB
4352012-09-26 Andrew Burgess <aburgess@broadcom.com>
436
437 * breakpoint.c (update_global_location_list): Ignore previous
438 duplicate status of a breakpoint when starting a new scan for
439 duplicate breakpoints.
440
9ead7ae4 4412012-09-26 Karthik Bhat <kv.bhat@samsung.com>
8b3d5494 442 PR breakpoints/14419
2536b51c
YQ
443 * arm-tdep.c (arm_skip_prologue): Extending producer check to
444 support LLVM compiler.
9ead7ae4 445
8f8a23a2
SP
4462012-09-26 Siddhesh Poyarekar <siddhesh@redhat.com>
447
448 * amd64-tdep.c (amd64_return_value): Use TYPE_LENGTH directly.
449 * bfin-tdep.c (bfin_extract_return_value): Likewise.
450 (bfin_store_return_value): Likewise.
451 * cris-tdep.c (cris_store_return_value): Likewise.
452 (cris_extract_return_value): Likewise.
453 * h8300-tdep.c (h8300_extract_return_value): Likewise.
454 * hppa-tdep.c (hppa64_return_value): Likewise.
455 * lm32-tdep.c (lm32_store_return_value): Likewise.
456 * microblaze-tdep.c (microblaze_store_return_value): Likewise.
457 * spu-tdep.c (spu_value_from_register): Likewise.
458 * vax-tdep.c (vax_return_value): Likewise.
459
d7019589
SP
4602012-09-26 Siddhesh Poyarekar <siddhesh@redhat.com>
461
462 * breakpoint.c (invalidate_bp_value_on_memory_change): Expand
463 parameter LEN to ssize_t.
464
744a8059
SP
4652012-09-25 Siddhesh Poyarekar <siddhesh@redhat.com>
466
467 * ada-valprint.c (ada_val_print_1): Eliminate single-use
468 variable LEN.
469 * alpha-tdep.c (alpha_extract_return_value): Use TYPE_LENGTH
470 directly.
471 (alpha_store_return_value): Likewise.
472 * amd64-tdep.c (amd64_classify_aggregate): Likewise.
473 (amd64_push_arguments): Likewise.
474 * ax-gdb.c (gen_trace_static_fields): Likewise.
475 (gen_traced_pop): Likewise.
476 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
477 * breakpoint.c (update_watchpoint): Likewise.
478 * findcmd.c (parse_find_args): Use local variable for type
479 instead of length.
480 * findvar.c (default_read_var_value): Use TYPE_LENGTH directly.
481 * h8300-tdep.c (h8300h_extract_return_value): Likewise.
482 (h8300_store_return_value): Likewise.
483 * i386-darwin-tdep.c (i386_darwin_push_dummy_call): Likewise.
484 Use i386_darwin_arg_type_alignment directly.
485 * infcall.c (call_function_by_hand): Use TYPE_LENGTH directly.
486 * lm32-tdep.c (lm32_push_dummy_call): Likewise.
487 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
488 (m68hc11_extract_return_value): Likewise.
489 * mep-tdep.c (mep_push_dummy_call): Likewise.
490 * printcmd.c (float_type_from_length): Likewise.
491 * s390-tdep.c (s390_value_from_register): Likewise.
492 * stack.c (read_frame_arg): Likewise.
493 * tracepoint.c (encode_actions_1): Likewise.
494 * valops.c (value_fetch_lazy): Use local variable for type
495 instead of length. Use TYPE_LENGTH directly.
496 * value.c (value_contents_equal): Use TYPE_LENGTH directly.
497
a4b411d6
JB
4982012-09-25 Joel Brobecker <brobecker@adacore.com>
499
500 * symtab.c (skip_prologue_sal): Fix typo in comment.
501
11dba07a
JB
5022012-09-25 Joel Brobecker <brobecker@adacore.com>
503
504 * linespec.c (create_sals_line_offset): Fix typo in comment.
505
318102b9
SP
5062012-09-25 Siddhesh Poyarekar <siddhesh@redhat.com>
507
508 * c-typeprint.c (c_type_print_varspec_suffix): Remove cast and
509 use plongest to print the array size.
510
b4aa388a
SP
5112012-09-24 Siddhesh Poyarekar <siddhesh@redhat.com>
512
513 * m2-typeprint.c (m2_enum): Expand LASTVAL to LONGEST.
514 * p-valprint.c (pascal_type_print_base): Likewise.
515
84cebc4a
YQ
5162012-09-22 Yao Qi <yao@codesourcery.com>
517
518 * remote.c (remote_get_trace_status): Remove setting default
519 values of fields of 'ts'.
520
04e7407c
JK
5212012-09-21 Jan Kratochvil <jan.kratochvil@redhat.com>
522
523 Fix internal error on canonicalization of clang types.
524 * cp-name-parser.y (operator): New comment at make_operator call for
525 new, delete, new[] and delete[].
526 (exp): Use "sizeof ". Add new comment at make_operator call.
527
9bf4bce9
JK
5282012-09-21 Jan Kratochvil <jan.kratochvil@redhat.com>
529
530 Fix disassemble without parameters in tailcall frame.
531 * cli/cli-cmds.c (disassemble_current_function): Use
532 get_frame_address_in_block.
533
1c5b7826
TT
5342012-09-21 Tom Tromey <tromey@redhat.com>
535
536 * c-typeprint.c (c_type_print_base) <TYPE_CODE_STRUCT,
537 TYPE_CODE_UNION>: Unify, removing a goto.
538
62a49610
TT
5392012-09-21 Tom Tromey <tromey@redhat.com>
540
541 * c-typeprint.c (cp_type_print_derivation_info): Fix comment.
542
2603f7ee
AB
5432012-09-21 Andrew Burgess <aburgess@broadcom.com>
544
545 * findvar.c (read_frame_register_value): Mark the result value as
546 optimized out if any of the input registers have been optimized out.
547
810849a3
AS
5482012-09-21 Andreas Schwab <schwab@linux-m68k.org>
549
550 * python/python.c (finalize_python): Only define if HAVE_PYTHON.
551
0953dec1
SP
5522012-09-21 Siddhesh Poyarekar <siddhesh@redhat.com>
553
554 * eval.c (evaluate_subexp_standard): Eliminate single-use
555 variable LOWER.
556
82a90ccf
YQ
5572012-09-21 Yao Qi <yao@codesourcery.com>
558
559 * mi/mi-interp.c: Declare mi_record_changed.
560 (mi_interpreter_init): Call observer_attach_record_changed.
561 (mi_record_changed): New.
562 * record.c (record_open): Call observer_notify_record_changed.
563 (cmd_record_stop): Call observer_notify_record_changed.
564 * NEWS: Mention it.
565
d7de8e3c
TT
5662012-09-20 Tom Tromey <tromey@redhat.com>
567
568 * NEWS: Update.
569 * python/python.c (finalize_python): New function.
570 (_initialize_python): Make a final cleanup.
571
43c7c83d
DE
5722012-09-19 Doug Evans <dje@google.com>
573
574 * buildsym.h (param_symbols): Delete, unused.
575 (context_stack): Delete member "params", unused.
576 * buildsym.c (push_context): Update.
577 * dwarf2read.c (read_func_scope): Update.
578
aa9259cc
TS
5792012-09-19 Thomas Schwinge <thomas@codesourcery.com>
580
a6521d9a
TS
581 * sh-tdep.c (sh_register_convert_to_virtual)
582 (sh_register_convert_to_raw): Add a gdbarch parameter. Update
583 all callers. Just do a memcpy if not the little-endian case.
584
f92589cb
TS
585 * h8300-tdep.c (h8300_gdbarch_init): Invoke
586 set_gdbarch_double_format and set_gdbarch_long_double_format.
587 * m68hc11-tdep.c (m68hc11_gdbarch_init): Invoke
588 set_gdbarch_double_format.
589 * sh-tdep.c (sh_gdbarch_init): Likewise.
590
aa9259cc
TS
591 * NEWS: Document the removal of SH's 'regs' command.
592 * sh-tdep.c (_initialize_sh_tdep): Remove the deprecated 'regs'
593 command.
594
c1d780c2
SDJ
5952012-09-18 Sergio Durigan Junior <sergiodj@redhat.com>
596
597 * infcmd.c (_initialize_infcmd): Register `j' as an alias for
598 `jump'.
599
4ae24af0
JB
6002012-09-18 Joel Brobecker <brobecker@adacore.com>
601
602 * linespec.c (iterate_over_all_matching_symtabs): Use the correct
603 language when iterating over symbols.
604
bb25a15c
YQ
6052012-09-18 Yao Qi <yao@codesourcery.com>
606
607 * mi/mi-interp.c: Declare mi_tsv_created and mi_tsv_deleted.
608 (mi_interpreter_init): Call observer_attach_tsv_created and
609 observer_attach_tsv_deleted.
610 (mi_tsv_created, mi_tsv_deleted): New.
611 * tracepoint.c (delete_trace_state_variable): Call
612 observer_notify_tsv_deleted.
613 (trace_variable_command): Call observer_notify_tsv_created.
614 (delete_trace_variable_command): Call
615 observer_notify_tsv_deleted.
616 (create_tsv_from_upload): Call observer_notify_tsv_created.
617 * NEWS: Mention it.
618
201b4506
YQ
6192012-09-18 Yao Qi <yao@codesourcery.com>
620
621 * tracepoint.c (tfind_1): Call observer_notify_traceframe_changed
622 if traceframe changed.
623 * mi/mi-cmds.c (mi_cmd mi_cmds): Adjust for command
624 "trace-find".
625 * mi/mi-interp.c: Declare 'mi_traceframe_changed'.
626 (mi_interpreter_init): Hook mi_traceframe_changed to observer
627 'traceframe_changed'.
628 (mi_traceframe_changed): New.
629 * mi/mi-main.h (struct mi_suppress_notification) <traceframe>:
630 New field.
631 * NEWS: Mention the new MI notification.
632
eaeb12db
MW
6332012-09-17 Mike Wrighton <wrighton@codesourcery.com>
634
635 * MAINTAINERS (Write After Approval): Add "Mike Wrighton".
636
6e3c039e
JK
6372012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
638
639 * common/linux-ptrace.c: Change __i386__ to __i386__ || __x86_64__.
640 (linux_ptrace_test_ret_to_nx): Extend comment for x86_64. Change
641 __i386__ to __i386__ || __x86_64__. Extend code also for __x86_64__.
642 Extend code also for PaX support. Convert all gdb_assert to warning
643 calls.
644
9a950c7c
JK
6452012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
646
647 Implement auto-load user conveniences suggested by Doug Evans.
648 * auto-load.c: Include top.h.
649 (file_is_auto_load_safe): New variable advice_printed. Print advice.
650 (_initialize_auto_load): New variable scripts_directory_help. Mention
651 GDBPY_AUTO_FILE_NAME and GDB_AUTO_FILE_NAME for set auto-load
652 scripts-directory. Document in online help one can use also files for
653 set auto-load safe-path.
654 * python/py-auto-load.c: (GDBPY_AUTO_FILE_NAME): Move it from here ...
655 * python/python.h (GDBPY_AUTO_FILE_NAME): ... to here.
656
deec9a9d
SP
6572012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
658
659 * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused definition
660 of LEN.
661
354ecfd5
SP
6622012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
663
664 * m2-valprint.c (m2_print_array_contents): Eliminate variable
665 ELTLEN and use TYPE_LENGTH directly.
666 (m2_val_print): Likewise.
667 * m68k-tdep.c (m68k_svr4_extract_return_value): Eliminate
668 variable LEN and use TYPE_LENGTH directly.
669 (m68k_svr4_store_return_value): Likewise.
670 * mips-tdep.c (mips_o32_push_dummy_call): Eliminate variable
671 ARGLEN and use TYPE_LENGTH directly.
672 (mips_o64_push_dummy_call): Likewise.
673 * s390-tdep (s390_function_arg_pass_by_reference): Eliminate
674 variable LENGTH and use TYPE_LENGTH directly.
675 (s390_function_arg_float): Likewise.
676 (s390_function_arg_integer): Likewise.
677 (s390_push_dummy_call): Likewise.
678 (s390_return_value_convention): Likewise.
679 * spu-tdep.c (spu_push_dummy_call): Eliminate LEN and use
680 TYPE_LENGTH directly.
681
6fc1c773
YQ
6822012-09-17 Yao Qi <yao@codesourcery.com>
683
684 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): New.
685 Update comment to add_setshow_integer_cmd.
686 * cli/cli-setshow.c (do_set_command): Handle case
687 'var_zuinteger_unlimited'.
688 (do_show_command): Likewise.
689 * cli/cli-cmds.c (init_cmds): Call add_setshow_zuinteger_unlimited_cmd
690 for command 'remotetimeout'.
691 * command.h (enum var_types): New zuinteger_unlimited. Update comment
692 to var_integer.
693 * source.c (_initialize_source): Call add_setshow_zuinteger_unlimited_cmd
694 for command 'set listsize'.
695
6acef6cd
SP
6962012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
697
698 * infrun.c (restore_infcall_suspend_state): Eliminate single-use
699 variable LEN.
700
1ab3b62c
JK
7012012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
702
703 PR 14119
704 * frame.c (skip_inlined_frames): Skip also TAILCALL_FRAME frames.
705 (frame_pop): Drop also TAILCALL_FRAME frames.
706 * infcmd.c (finish_command): Ignore also TAILCALL_FRAME frames.
707
acf9414f
JK
7082012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
709 Pedro Alves <palves@redhat.com>
710
711 PR 14548
712 * infrun.c (handle_inferior_event): Do not reverse-continue back to the
713 function start if we are already at function start. Both for
714 reverse-next and for reverse-step into function without line number
715 info.
716
193facb3
JK
7172012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
718
719 Code cleanup - rename 'inline' depth to 'artificial' depth.
720 * breakpoint.c (set_momentary_breakpoint): Rename at a caller to
721 frame_id_artificial_p, extend the comment.
722 * dwarf2-frame-tailcall.c (tailcall_frame_this_id): Rename at a user.
723 * frame.c (fprint_frame_id): Rename at a user, change debug output
724 text to "artificial=".
725 (skip_inlined_frames): Rename to ...
726 (skip_artificial_frames): ... here. Extend the comment.
727 (get_stack_frame_id, frame_unwind_caller_id): Rename at a caller.
728 (frame_id_inlined_p): Rename to ...
729 (frame_id_artificial_p): ... here. Rename at a user.
730 (frame_id_eq, frame_id_inner, frame_unwind_caller_pc)
731 (frame_unwind_caller_pc_if_available, frame_unwind_caller_arch): Rename
732 at a user.
733 * frame.h (struct frame_id): Rename inline_depth to artificial_depth.
734 Extend the comment.
735 (frame_id_inlined_p): Rename to ...
736 (frame_id_artificial_p): ... here.
737 * inline-frame.c (inline_frame_this_id): Rename at a user.
738
42056501
AB
7392012-09-14 Andrew Burgess <aburgess@broadcom.com>
740
741 * c-typeprint.c (c_type_print_varspec_suffix): Display the size of
742 vector variables using vector_size syntax rather than array
743 syntax.
744
84c47588
SP
7452012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
746
747 * valarith.c (value_concat): Replace unsafe ALLOCA with
748 XMALLOC/XFREE.
749
f4045bcb
PA
7502012-09-14 Pedro Alves <palves@redhat.com>
751
752 * gdb.1 (SEE ALSO): Expand pointer to GDB's Texinfo manual.
753
63b46266
YPK
7542012-09-14 Khoo Yit Phang <khooyp@cs.umd.edu>
755
756 Point contrib/cc-with-tweaks.sh to the build-local data-directory.
757 * contrib/cc-with-tweaks.sh (GDB): Add -data-directory
758 data-directory as appropriate.
759
ddd7a8e7
SP
7602012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
761
762 * printcmd.c (ui_printf): Eliminate single-use variable
763 PARAM_LEN.
764
d649a38e
YQ
7652012-09-14 Yao Qi <yao@codesourcery.com>
766 Pedro Alves <palves@redhat.com>
767
768 * valops.c (value_assign): Move observer_notify_target_changed
769 below to replace reinit_frame_cache.
770
b9516fa1
YPK
7712012-09-13 Khoo Yit Phang <khooyp@cs.umd.edu>
772
773 Refactor Python "gdb" module into a proper Python package, by
774 introducing a new "_gdb" module for code implemented in C, and
775 using reload/__import__ instead of exec.
776 * python/lib/gdb/__init__.py: Import * from _gdb.
777 (GdbOutputFile, sys.stdout, GdbOutputErrorFile, sys.stderr,
778 prompt_hook, sys.argv): Moved from finish_python_initialization.
779 (pretty_printers, PYTHONDIR): Moved from _initialize_python.
780 (packages, auto_load_packages): New list and function replacing
781 module_dict and auto-loading code, using __file__ instead of
782 gdb.PYTHONDIR and reload/__import__ instead of exec.
783 (GdbSetPythonDirectory): Replacing function of the same name
784 from finish_python_initialization, using reload/__import__ instead
785 of exec, as well as call auto_load_packages.
786 * python/py-prettyprint.c (find_pretty_printer_from_gdb): Check
787 gdb_python_module and not gdb_module.
788 * python/python-internal.h (gdb_python_module): Declare.
789 * python/python.c (gdb_python_module): New global.
790 (before_prompt_hook): Check gdb_python_module and not gdb_module.
791 (_initialize_python): Rename gdb module to _gdb.
792 Move gdb.PYTHONDIR and gdb.pretty_printer to lib/gdb/__init__.py.
793 (finish_python_initialization): Move Python code to
794 lib/gdb/__init__.py; instead, set up sys.path and import gdb into
795 __main__.
796
aa0fbdd8
PA
7972012-09-13 Pedro Alves <palves@redhat.com>
798
799 * Makefile.in (COMMON_OBS): Add registry.o.
800 * registry.c: New file.
801 * registry.h (struct registry_container): Declare.
802 (registry_data_callback): New typedef.
803 (struct registry_data, struct registry_data_registration, struct
804 registry_data_registry): New type.
805 (register_data_with_cleanup, registry_alloc_data)
806 (registry_callback_adaptor, registry_clear_data)
807 (registry_container_free_data, registry_set_data, registry_data):
808 Declare.
809 (DEFINE_REGISTRY): Refactor structures and functions as shims over
810 the new common structures and functions.
811 (DECLARE_REGISTRY): Declare struct TAG ## _data. Use the tagged
812 callback typedefs.
813
42b5c53d
MW
8142012-09-12 Mike Wrighton <wrighton@codesourcery.com>
815
816 * remote.c (remote_insert_hw_breakpoint): Throw exception if
817 there is an error inserting hardware breakpoints and use the
818 error message from the target.
819
820 * breakpoint.c (insert_bp_location, insert_breakpoint_locations):
821 Catch this exception and print the error message contained within. Do not
822 print the default hardware error breakpoint message in this case.
823
a1b64ce1
DE
8242012-09-12 Doug Evans <dje@google.com>
825
826 * dwarf2read.c (dwarf2_read_addr_index): Fix handling the case where
827 cu == NULL.
828
83a788b8
DE
8292012-09-11 Doug Evans <dje@google.com>
830
831 * dwarf2read.c (dw2_do_expand_symtabs_matching): Don't examine
832 .gdb_index symbol attributes if there are none.
833
d9eaeb59
JB
8342012-09-11 Joel Brobecker <brobecker@adacore.com>
835
836 * symtab.h (struct minimal_symbol) [has_size]: New field.
837 (MSYMBOL_SIZE): Adjust to forbid macro from being used as lvalue.
838 (SET_MSYMBOL_SIZE, MSYMBOL_HAS_SIZE): New macros.
839 * printcmd.c (build_address_symbolic): Only filter out zero-sized
840 minimal symbols if the symbol's size is actually known.
841 * minsyms.c (prim_record_minimal_symbol_full): Adjust setting
842 of msymbol's size field. Add comment.
843 * elfread.c (elf_symtab_read, elf_rel_plt_read): Use
844 SET_MSYMBOL_SIZE to set the minimal symbol size.
845
a83e9154
JB
8462012-09-11 Joel Brobecker <brobecker@adacore.com>
847
848 * minsyms.c (install_minimal_symbols): Use memset to fill entire
849 minimal_symbol struct object, rather than setting some of its
850 fields one by one.
851
350b1b26
AB
8522012-09-11 Andrew Burgess <aburgess@broadcom.com>
853
854 * c-typeprint.c (c_type_print_varspec_prefix): Pass through the
855 passed_a_ptr flag when displaying typedef types.
856
2fa15f23
JB
8572012-09-10 Joel Brobecker <brobecker@adacore.com>
858
859 * ada-lang.c (coerce_unspec_val_to_type): Make sure that
860 the optimized_out flag is preserved.
861
5152ff90
AG
8622012-09-10 Anthony Green <green@moxielogic.com>
863
864 * moxie-tdep.c (moxie_analyze_prologue): Update for function
865 prologue changes in GCC.
866
5b4f6e25
KS
8672012-09-10 Keith Seitz <keiths@redhat.com>
868
869 PR gdb/13483
870 * gdbtypes.h (BOOL_PTR_CONVERSION_BADNESS): Rename to ...
871 (BOOL_CONVERSION_BADNESS): ... this.
872 * gdbtypes.c (BOOL_PTR_CONVERSION_BADNESS): Likewise.
873 (rank_one_type): Allow all boolean conversions
874 permitted by the standard.
875
f1070426
TT
8762012-09-06 Tom Tromey <tromey@redhat.com>
877
878 * python/py-newobjfileevent.c (create_new_objfile_event_object):
879 Don't decref py_objfile.
880
a8db4212
YPK
8812012-09-02 Khoo Yit Phang <khooyp@cs.umd.edu>
882
883 Do not enable -lmcheck by default when Python is enabled with
884 threading support.
885 * configure.ac: (python_has_threads) New variable, by testing
886 if WITH_THREAD is defined in Python.h.
887 Move --enable-lmcheck after --with-python.
888 Do not enable -lmcheck by default if python_has_threads=yes.
889 Warn if --enable-lmcheck and python_has_threads=yes.
890 * configure: Regenerate.
891
648beb2b
YQ
8922012-08-31 Yao Qi <yao@codesourcery.com>
893
894 * mi/mi-cmds.c (mi_cmds): New macros DEF_MI_CMD_CLI
895 DEF_MI_CMD_MI DEF_MI_CMD_CLI_1 and DEF_MI_CMD_CLI_1.
896 Update some commands.
897 * mi/mi-cmds.h (struct mi_cmd) <suppress_notification>: New field.
898 * mi/mi-main.c (mi_cmd_execute): Set '*parse->cmd->suppress_notification'
899 to 1.
900
ef07a9f7
YQ
9012012-08-31 Yao Qi <yao@codesourcery.com>
902
903 * mi/mi-cmds.c (mi_cmds): Add 'static'.
904
fda395cf
YPK
9052012-08-30 Khoo Yit Phang <khooyp@cs.umd.edu>
906
907 * MAINTAINERS (Write After Approval): Add "Khoo Yit Phang".
908
8efd8e78
DE
9092012-08-29 Doug Evans <dje@google.com>
910
911 * main.c (print_gdb_help): Remove reference to
912 --use-deprecated-index-sections.
913
883b9c6c
YQ
9142012-08-28 Yao Qi <yao@codesourcery.com>
915
916 * cli/cli-cmds.c (max_user_call_depth): Add 'unsigned'.
917 (init_cmds): Call add_setshow_uinteger_cmd for command
918 'max-user-call-depth'.
919 * cli/cli-script.c (execute_user_command): Add 'unsigned' to the
920 declaration of 'max_user_call_depth'.
921 * frame.c (backtrace_limit): Add 'unsigned'.
922 (_initialize_frame): Call add_setshow_uinteger_cmd for command
923 'limit'.
924 * remote.c (remoteaddresssize): Add 'unsigned'.
925 (remote_address_masked): Change local var 'address_size' to
926 'unsigned'.
927 (_initialize_remote): Call add_setshow_uinteger_cmd for
928 'remoteaddresssize'.
929 * top.c (history_size): Add 'unsigned'.
930 (show_commands): Change local variables to 'unsigned'.
931 (set_history_size_command): Don't check history_size is negative.
932 Adjust the condition to call unstifle_history and set history_size
933 to UNIT_MAX.
934
1292279a
PA
9352012-08-28 Pedro Alves <palves@redhat.com>
936
937 PR gdb/14428
938
939 * infcmd.c (default_print_one_register_info): New, factored out
940 from default_print_registers_info.
941 (default_print_registers_info): Use it. Mark value unavailable if
942 necessary.
943 (registers_info): Print user registers with
944 default_print_one_register_info.
945
f629cd75
L
9462010-08-27 H.J. Lu <hongjiu.lu@intel.com>
947
948 PR tui/14486
949 * tui/tui-source.c (tui_source_is_displayed): Check if TUI_SRC_WIN
950 is not NULL before referencing it.
951
1c8cdcb1
JK
9522012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
953
954 * breakpoint.c (parse_breakpoint_sals) <(*address) == NULL>: New
955 variable pc. Call find_pc_line instead of find_pc_overlay, restore
956 original PC for it.
957
e9687799
JK
9582012-08-27 Eli Zaretskii <eliz@gnu.org>
959 Jan Kratochvil <jan.kratochvil@redhat.com>
960
961 * auto-load.c (auto_load_objfile_script): Rename to ...
962 (auto_load_objfile_script_1): ... here, change variable realname to
963 parameter realname, document it, add return value, add variable retval.
964 (auto_load_objfile_script): New function.
965
7afa1642
JK
9662012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
967
968 * cli/cli-decode.c (print_doc_line): Keep skipping '.' and ',' not
969 followed by a whitespace.
970
dc7650b8
JK
9712012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
972
28e66c70 973 PR gdb/14494.
dc7650b8
JK
974 * dwarf2read.c (dwarf2_locate_sections): Move variable aflag here.
975 Move the SEC_HAS_CONTENTS check here - for any NAMES use.
976 (dwarf2_locate_sections) <eh_frame>: Move the variable and check from
977 here.
978
1591a1e8
PA
9792012-08-27 Wei-cheng Wang <cole945@gmail.com>
980
981 * memattr.c (create_mem_region): Fix memory region overlapping
982 checking.
983
ecfb0d68
SP
9842012-08-24 Siddhesh Poyarekar <siddhesh@redhat.com>
985
986 * h8300-tdep.c (h8300_push_dummy_call): Replace unsafe alloca
987 with xmalloc/cleanup.
988 * mt-tdep.c (mt_push_dummy_call): Likewise.
989 * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
990 * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
991
8c56c1b9
YQ
9922012-08-24 Yao Qi <yao@codesourcery.com>
993
994 * jv-exp.y (push_expression_name): Add "." at the end of error
995 message.
996
e3480f4a
YPK
9972012-08-23 Khoo Yit Phang <khooyp@cs.umd.edu>
998
999 Document how to return from "python-interactive" to GDB.
e3480f4a
YPK
1000 * python/python.c (_initialize_python): Update documentation.
1001
dfbd5e7b
PA
10022012-08-23 Pedro Alves <palves@redhat.com>
1003
1004 * infrun.c (_initialize_infrun) <handle command help text>:
1005 Mention that multiple signals are supported.
1006
2edda2ff
PA
10072012-08-23 Pedro Alves <palves@redhat.com>
1008
1009 * infcmd.c (_initialize_infcmd) <signal command>: Fix typo in help
1010 string.
1011
8d735b87
YQ
10122012-08-23 Yao Qi <yao@codesourcery.com>
1013
1014 * tracepoint.c (disconnect_tracing): Call set_tracepoint_num.
1015 (tfind_1): Don't call registers_changed, set_traceframe_num,
1016 and clear_traceframe_info.
1017 Call set_current_traceframe.
1018 (set_current_traceframe): call set_traceframe_num.
1019
c5d9b215
SDJ
10202012-08-22 Sergio Durigan Junior <sergiodj@redhat.com>
1021
1022 * remote-sim.c (_initialize_remote_sim): Pass NULL argument to
1023 `register_inferior_data_with_cleanup', fixing regression on PowerPC64.
1024
037bbc8e
YPK
10252012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
1026
1027 Enable readline in Python in a GDB-specific way and block the
1028 standard Python readline module to prevent conflicts with GDB.
1029 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-gdb-readline.o.
1030 (SUBDIR_PYTHON_SRCS): Add python/py-gdb-readline.c.
1031 (py-gdb-readline.o): Add rule to compile python/py-gdb-readline.c.
1032 * python/py-gdb-readline.c: New file.
1033 * python/python-internal.h (gdbpy_initialize_gdb_readline): New
1034 prototype.
1035 * python/python.c (_initialize_python): Call
1036 gdbpy_initialize_gdb_readline.
1037
406b1477
KS
10382012-08-22 Keith Seitz <keiths@redhat.com>
1039
1040 * defs.h: Include build-gnulib/config.h
1041
6ca1b147
JM
10422012-08-22 Joseph Myers <joseph@codesourcery.com>
1043
1044 * arm-tdep.c (thumb_get_next_pc_raw): Mask off low bits for bx pc
1045 and blx pc.
1046
8315665e
YPK
10472012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
1048
1049 Add a new "python-interactive" command that starts a standard
1050 Python interactive prompt with "pi" as alias, and add "py" as
1051 an alias to "python".
1052 * NEWS: Mention the new commands.
8315665e
YPK
1053 * python/python.c (eval_python_command): New function.
1054 (python_interactive_command): For "python-interactive" with
1055 arguments, call eval_python_command. For "python-interactive"
1056 without arguments, call PyRun_InteractiveLoop.
1057 (_initialize_python): Add "python-interactive" command with
1058 "pi" as alias, and add "py" as an alias to "python".
1059
522002f9
TT
10602012-08-22 Tom Tromey <tromey@redhat.com>
1061
1062 * defs.h (quit_flag): Don't declare.
1063 (clear_quit_flag, check_quit_flag, set_quit_flag): Declare.
1064 (QUIT): Use new functions.
1065 * event-top.c (command_handler): Use clear_quit_flag.
1066 (handle_sigint): Use set_quit_flag.
1067 (async_request_quit): Use check_quit_flag. Don't check
1068 immediate_quit.
1069 * exceptions.c (throw_exception): Use clear_quit_flag.
1070 * main.c (captured_main): Use clear_quit_flag.
1071 * python/python.c (clear_quit_flag, set_quit_flag)
1072 (check_quit_flag): New functions.
1073 * remote-sim.c (gdb_os_poll_quit): Use check_quit_flag,
1074 clear_quit_flag.
1075 * remote.c (remote_wait_as): Use check_quit_flag,
1076 clear_quit_flag.
1077 (remote_start_remote): Call QUIT.
1078 * symfile.c (load_progress): Use check_quit_flag.
1079 * top.c (command_loop): Use clear_quit_flag.
1080 (command_line_input): Call QUIT.
1081 * utils.c (quit_flag): Conditionally define.
1082 (clear_quit_flag, check_quit_flag, set_quit_flag): New
1083 functions.
1084 (prompt_for_continue): Call QUIT. Use quit, not
1085 async_request_quit.
1086 * remote-mips.c (mips_expect_timeout): Call QUIT.
1087 * monitor.c (monitor_expect): Call QUIT.
1088
b583003e
TT
10892012-08-22 Tom Tromey <tromey@redhat.com>
1090
1091 * event-top.c (sigwinch_token, handle_sigwinch): Remove.
1092 (async_init_signals): Update.
1093 * utils.c (init_page_info): Don't use SIGWINCH_HANDLER.
1094 (SIGWINCH_HANDLER_BODY): Remove.
1095
e1507e95
TT
10962012-08-22 Tom Tromey <tromey@redhat.com>
1097
1098 * jit.c (jit_object_close_impl): Don't malloc the objfile
1099 name.
1100 * objfiles.c (allocate_objfile): Don't malloc the objfile
1101 name.
1102 (free_objfile): Don't free the objfile name.
1103 * objfiles.h (struct objfile) <name>: Update comment.
1104 * symfile.c (reread_symbols): Fix reference counting. Don't
1105 malloc objfile name.
1106
1c00ec6b
TT
11072012-08-22 Tom Tromey <tromey@redhat.com>
1108
1109 * windows-nat.c (windows_make_so): Use gdb_bfd_open.
1110 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_open.
1111 (symfile_bfd_open): Likewise.
1112 (generic_load): Likewise.
1113 * solib.c (solib_bfd_fopen): Use gdb_bfd_open.
1114 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
1115 gdb_bfd_open.
1116 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
1117 Use gdb_bfd_open.
1118 * rs6000-nat.c (add_vmap): Use gdb_bfd_open.
1119 * remote-mips.c (mips_load_srec): Use gdb_bfd_open.
1120 (pmon_load_fast): Likewise.
1121 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_open.
1122 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_open.
1123 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_open.
1124 (macho_check_dsym): Likewise.
1125 * m32r-rom.c (m32r_load): Use gdb_bfd_open.
1126 (m32r_upload_command): Likewise.
1127 * gdb_bfd.h (gdb_bfd_cache): Declare.
1128 * gdb_bfd.c (struct gdb_bfd_data): New.
1129 (gdb_bfd_cache): New global.
1130 (struct gdb_bfd_cache_search): New.
1131 (hash_bfd): New function.
1132 (eq_bfd): Likewise.
1133 (gdb_bfd_open): Likewise.
1134 (gdb_bfd_ref): Allocate a gdb_bfd_data and attach to the BFD.
1135 (gdb_bfd_unref): Remove closed BFD from cache. Update for
1136 gdb_bfd_data.
1137 * exec.c (exec_file_attach): Use gdb_bfd_open.
1138 * dsrec.c (load_srec): Use gdb_bfd_open.
1139
6532ff36
TT
11402012-08-22 Tom Tromey <tromey@redhat.com>
1141
1142 * dwarf2read.c (macro_start_file): Update.
1143 * objfiles.c (get_objfile_bfd_data): Initialize macro_cache.
1144 (free_objfile_per_bfd_storage): Destroy macro_cache.
1145 (allocate_objfile, free_objfile): Update.
1146 * objfiles.h (struct objfile_per_bfd_storage) <macro_cache>:
1147 New field.
1148 (struct objfile) <macro_cache>: Remove.
1149 * symfile.c (reread_symbols): Update.
1150 * symmisc.c (print_symbol_bcache_statistics): Update.
1151 (print_objfile_statistics): Update.
1152
706e3705
TT
11532012-08-22 Tom Tromey <tromey@redhat.com>
1154
1155 * elfread.c (elf_symtab_read): Update.
1156 * objfiles.c (objfiles_bfd_data): New global.
1157 (get_objfile_bfd_data, free_objfile_per_bfd_storage)
1158 (objfile_bfd_data_free, set_objfile_per_bfd): New functions.
1159 (allocate_objfile, free_objfile): Update.
1160 (_initialize_objfiles): Initialize objfiles_bfd_data.
1161 * objfiles.h (struct objfile_per_bfd_storage): New.
1162 (struct objfile) <per_bfd>: New field.
1163 <filename_cache>: Remove.
1164 (set_objfile_per_bfd): Declare.
1165 * symfile.c (reread_symbols): Update. Call
1166 set_objfile_per_bfd.
1167 (allocate_symtab): Update.
1168 * symmisc.c (print_symbol_bcache_statistics): Update.
1169 (print_objfile_statistics): Print the size of the BFD obstack.
1170
e992eda4
TT
11712012-08-22 Tom Tromey <tromey@redhat.com>
1172
1173 * gdb_bfd.h: Include registry.h. Use DECLARE_REGISTRY.
1174 * gdb_bfd.c: Use DEFINE_REGISTRY.
1175 (struct gdb_bfd_data): Add REGISTRY_FIELDS.
1176 (gdb_bfd_ref): Call bfd_alloc_data.
1177 (gdb_bfd_unref): Call bfd_free_data.
1178
6b81941e
TT
11792012-08-22 Tom Tromey <tromey@redhat.com>
1180
1181 * registry.h (struct registry_fields): New.
1182 (REGISTRY_FIELDS): Redefine.
1183 (REGISTRY_ACCESS_FIELD): New macro.
1184 (DEFINE_REGISTRY): Add ACCESS argument. Update defined
1185 functions.
1186
8e260fc0
TT
11872012-08-22 Tom Tromey <tromey@redhat.com>
1188
1189 * auto-load.c (_initialize_auto_load): Update.
1190 * solib-svr4.c (_initialize_svr4_solib): Update
1191 * solib-dsbt.c (_initialize_dsbt_solib): Update.
1192 * solib-darwin.c (_initialize_darwin_solib): Update.
1193 * registry.h: New file.
1194 * python/py-progspace.c (gdbpy_initialize_pspace): Update.
1195 * python/py-inferior.c (gdbpy_initialize_inferior): Update.
1196 * progspace.h: Include registry.h. Use DECLARE_REGISTRY.
1197 (register_program_space_data_with_cleanup)
1198 (register_program_space_data, program_space_alloc_data)
1199 (clear_program_space_data, set_program_space_data)
1200 (program_space_data): Don't declare.
1201 * progspace.c: Use DEFINE_REGISTRY.
1202 (struct program_space_data, struct
1203 program_space_data_registration, struct
1204 program_space_data_registry, program_space_data_registry)
1205 (register_program_space_data_with_cleanup)
1206 (register_program_space_data, program_space_alloc_data)
1207 (program_space_free_data, clear_program_space_data)
1208 (set_program_space_data, program_space_data): Remove.
1209 * objfiles.h: Include registry.h. Use DECLARE_REGISTRY.
1210 (struct objfile) <data, num_data>: Replace with REGISTRY_FIELDS.
1211 (register_objfile_data_with_cleanup, register_objfile_data)
1212 (clear_objfile_data, set_objfile_data, objfile_data): Don't
1213 declare.
1214 * objfiles.c: Use DEFINE_REGISTRY.
1215 (struct objfile_data, struct objfile_data_registration, struct
1216 objfile_data_registry, objfile_data_registry)
1217 (register_objfile_data_with_cleanup, register_objfile_data)
1218 (objfile_alloc_data, objfile_free_data, clear_objfile_data)
1219 (set_objfile_data, objfile_data): Remove.
1220 (_initialize_objfiles): Update.
1221 * jit.c (_initialize_jit): Update.
1222 * inflow.c (_initialize_inflow): Update.
1223 * inferior.h: Include registry.h. Use DECLARE_REGISTRY.
1224 (struct inferior) <data, num_data>: Replace with REGISTRY_FIELDS.
1225 (register_inferior_data_with_cleanup, register_inferior_data)
1226 (clear_inferior_data, set_inferior_data, inferior_data): Don't
1227 declare.
1228 * inferior.c: Use DEFINE_REGISTRY.
1229 (struct inferior_data, struct inferior_data_registration, struct
1230 inferior_data_registry, inferior_data_registry)
1231 (register_inferior_data_with_cleanup, register_inferior_data)
1232 (inferior_alloc_data, inferior_free_data clear_inferior_data)
1233 (set_inferior_data, inferior_data): Remove.
1234 * auxv.c (_initialize_auxv): Update.
1235 * ada-lang.c (_initialize_ada_language): Update.
1236 * breakpoint.c (_initialize_breakpoint): Update.
1237 * i386-nat.c (i386_use_watchpoints): Update.
1238
ed9eebaf
TT
12392012-08-22 Tom Tromey <tromey@redhat.com>
1240
1241 * exec.c (exec_close, exec_file_attach): Update.
1242 (add_to_section_table): Initialize 'key' field.
1243 (add_target_sections, remove_target_sections): Add 'key' argument.
1244 * exec.h (add_target_sections, remove_target_sections): Add
1245 'key' argument.
1246 * solib.c (solib_map_sections, update_solib_list, clear_solib)
1247 (reload_shared_libraries_1): Update.
1248 * target.h (struct target_section) <key>: New field.
1249
2f2e97fa
TT
12502012-08-22 Tom Tromey <tromey@redhat.com>
1251
1252 * cli/cli-cmds.c (filter_sals): Handle nelts == 0 case.
1253
b3dbbd6f
PM
12542012-08-21 Pierre Muller <muller@ics.u-strasbg.fr>
1255
1256 * symfile.c (allocate_symtab): Use host_address_to_string
1257 function instead of cast of pointer to long which is not
1258 compatible with x86_64-w64-mingw32 build.
1259
f94363d7
AP
12602012-08-19 Andrew Pinski <apinski@cavium.com>
1261
1262 * mips-tdep.c (is_octeon): New function.
1263 (is_octeon_bbit_op): New function.
1264 (mips32_next_pc): Handle Octeon's bbit instructions.
1265 (mips32_instruction_has_delay_slot): Likewise.
1266
78a59c2f
AP
12672012-08-19 Andrew Pinski <apinski@cavium.com>
1268
1269 * mips-tdep.c (mips32_next_pc): Fix line spacing of the comment
1270 before the function.
1271
4f5bcb50
AP
12722012-08-19 Andrew Pinski <apinski@cavium.com>
1273
1274 * mips-tdep.c (mips32_next_pc): Consolidate calls to itype_op.
1275
e5afdbd7
KS
12762012-08-19 Keith Seitz <keiths@redhat.com>
1277
1278 PR c++/14365
1279 * c-typeprint.c (c_type_print_varspec_prefix): Pass
1280 -1 for SHOW to c_type_print_base for METHODPTR and MEMBERPTR.
1281
13c9750e
EZ
12822012-08-18 Eli Zaretskii <eliz@gnu.org>
1283
1284 * Makefile.in (HFILES_NO_SRCDIR): Fix a typo: golang.h -> go-lang.h.
1285 The typo broke "make TAGS".
1286
db761810 12872012-08-17 Joel Brobecker <brobecker@adacore.com>
1288
1289 GDB 7.5 released.
1290
a451cb65
KS
12912012-08-17 Keith Seitz <keiths@redhat.com>
1292
1293 PR c++/13356
1294 * gdbtypes.c (strict_type_checking): New variable.
1295 (show_strict_type_checking): New function.
1296 (rank_one_type): Return NS_POINTER_INTEGER_CONVERSION_BADNESS
1297 if strict type checking is disabled.
1298 (_initialize_gdbtypes): Add "check type" subcommand.
1299 * gdbtypes.h (NS_INTEGER_POINTER_CONVERSION_BADNESS): New struct.
1300
13012012-08-17 Keith Seitz <keiths@redhat.com>
1302
1303 * language.h (type_mode): Remove.
1304 (type_check): Remove.
1305 (struct language_defn): Remove la_type_check.
1306 (STRICT_TYPE): Remove unused macro.
1307 (type_error): Remove.
1308 * language.c (set_type_range_case): Renamed to ...
1309 (set_range_case): ... this. Update all callers.
1310 Remove type_mode/type_check.
1311 (type_mode): Remove.
1312 (type_check): Remove.
1313 (show_type_command): Remove.
1314 (set_type_command): Remove.
1315 (language_info): Remove type checking output.
1316 (type_error): Remove unused function.
1317 (range_error): Update comment.
1318 (unknown_language_defn): Remove la_type_check.
1319 (auto_language_defn): Likewise.
1320 (local_language_defn): Likewise.
1321 (_initialize_language): Remove "check type" subcommand.
1322 * ada-lang.c (ada_language_defn): Remove la_type_check.
1323 * c-lang.c (c_language_defn): Likewise.
1324 (cplus_language_defn): Likewise.
1325 (asm_language_defn): Likewise.
1326 (minimal_language_defn): Likewise.
1327 * d-lang.c (d_language_defn): Likewise.
1328 * f-lang.c (f_language_defn): Likewise.
1329 * go-lang.c (go_language_defn): Likewise.
1330 * jv-lang.c (java_language_defn): Likewise.
1331 * m2-lang.c (m2_language_defn): Likewise.
1332 * objc-lang.c (objc_language_defn): Likewise.
1333 * opencl-lang.c (opencl_language_defn): Likewise.
1334 * p-lang.c (pascal_language_defn): Likewise.
1335
dbf6a605
MF
13362012-08-16 Mike Frysinger <vapier@gentoo.org>
1337
1338 * infcmd.c (_initialize_infcmd): Remove trailing ) in next help text.
1339
973e3cf7
JB
13402012-08-16 Joel Brobecker <brobecker@adacore.com>
1341
1342 * ia64-hpux-nat.c (ia64_hpux_get_register_from_save_state_t):
1343 New function.
1344 (ia64_hpux_xfer_memory): Check if inferior_ptid is known before
1345 using the regache. Use ia64_hpux_get_register_from_save_state_t
1346 to access the bsp and bspstore registers if not.
1347
d80ee84f
JB
13482012-08-16 Joel Brobecker <brobecker@adacore.com>
1349
1350 * breakpoint.h (detach_breakpoints): pid parameter is now a ptid.
1351 * breakpoint.c (detach_breakpoints): Change pid parameter into
1352 a ptid. Adjust code accordingly.
1353 * infrun.c (handle_inferior_event): Delete variable child_pid.
1354 Update call to detach_breakpoints to pass the child ptid for
1355 fork events.
1356 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Remove
1357 assert that inferior_ptid's lwp is zero.
1358 (linux_handle_extended_wait): Update call to detach_breakpoints.
1359 * inf-ttrace.c (inf_ttrace_follow_fork): Update call to
1360 detach_breakpoints.
1361
2dcc6086
JB
13622012-08-16 Joel Brobecker <brobecker@adacore.com>
1363
1364 * inf-ttrace.c (inf_ttrace_follow_fork): When following the
1365 parent, only call detach_breakpoints if tts.tts_event ==
1366 TTEVT_VFORK.
1367
0c92d8c1
JB
13682012-08-16 Joel Brobecker <brobecker@adacore.com>
1369
1370 * dwarf2-frame.c (dwarf2_frame_cache): Use
1371 get_frame_address_in_block instead of get_frame_pc as
1372 the bound for executing the frame's FDE.
1373
6b1755ce
YQ
13742012-08-16 Yao Qi <yao@codesourcery.com>
1375
1376 * gdbtypes.h (enum type_code): Define TYPE_CODE_BITSTRING -1.
1377 * arm-tdep.c (arm_type_align): Remove code handling TYPE_CODE_BITSTRING.
1378 * c-typeprint.c (c_type_print_varspec_prefix): Likewise.
1379 (c_type_print_varspec_suffix): Likewise.
1380 * eval.c (evaluate_subexp_standard): Likewise.
1381 * f-typeprint.c (f_type_print_varspec_prefix): Likewise.
1382 (f_type_print_varspec_suffix): Likewise.
1383 * gdbtypes.c (is_scalar_type): Likewise.
1384 (recursive_dump_type): Likewise.
1385 * infcall.c (value_arg_coerce): Likewise.
1386 * m2-valprint.c (m2_val_print): Likewise.
1387 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
1388 (pascal_type_print_varspec_suffix): Likewise.
1389 (pascal_type_print_base): Likewise.
1390 * p-valprint.c (pascal_val_print): Likewise.
1391 (pascal_val_print): Likewise.
1392 * valops.c (value_slice): Likewise.
1393 * valprint.c (scalar_type_p): Likewise.
1394 * valarith.c (value_bitstring_subscript): Remove.
1395 (value_concat): Remove code handling TYPE_CODE_BITSTRING.
1396 Remove comment on TYPE_CODE_BITSTRING.
1397
1398 * stabsread.c (read_type): Don't set TYPE_CODE (type) to
1399 TYPE_CODE_BITSTRING.
1400
1401 * python/py-type.c (pyty_codes): Move ENTRY (TYPE_CODE_BITSTRING) to
1402 slot 0.
1403
8acc4065
YQ
14042012-08-16 Yao Qi <yao@codesourcery.com>
1405
1406 * tracepoint.c (trace_find_none_command): Remove.
1407 (_initialize_tracepoint): Call add_alias_cmd for "tfind none".
1408
8128fd8e
YQ
14092012-08-16 Yao Qi <yao@codesourcery.com>
1410
1411 * remote.c (handle_notification): Remove parameter 'length'.
1412 (putpkt_binary, getpkt_or_notif_sane_1): Caller update.
1413
2873700e
KS
14142012-08-15 Keith Seitz <keiths@redhat.com>
1415
1416 * gdbtypes.c (opaque_type_resolution): Make static.
1417 Add missing comment.
1418 (overload_debug): Add missing comment.
1419 (show_opaque_type_resolution): Likewise.
1420 (show_overload_debug): Likewise.
1421 (print_bit_vector): Remove unnecessary forward declaration.
1422 (print_arg_types): Likewise.
1423 (dump_fn_fieldlists): Likewise.
1424 (print_cplus_stuff): Likewise.
1425
b82d08cd
TT
14262012-08-15 Tom Tromey <tromey@redhat.com>
1427
1428 * gdb_bfd.c (struct gdb_bfd_data) <archive_bfd>: New field.
1429 (gdb_bfd_ref): Initialize new field.
1430 (gdb_bfd_unref): Unref the archive BFD.
1431 (gdb_bfd_openr_next_archived_file): Acquire a reference to the
1432 parent archive.
1433
db6573d6
TT
14342012-08-15 Tom Tromey <tromey@redhat.com>
1435
1436 PR python/14387:
1437 * python/py-bpevent.c (create_breakpoint_event_object): Update
1438 comment.
1439 * python/py-event.c (evpy_add_attribute): Update comment.
1440 * python/py-exitedevent.c (create_exited_event_object): Fix
1441 reference counting and error handling.
1442 * python/py-newobjfileevent.c (create_new_objfile_event_object):
1443 Fix reference counting.
1444 * python/py-signalevent.c (create_signal_event_object): Fix
1445 reference counting and error handling.
1446 * python/py-stopevent.c (emit_stop_event): Fix reference
1447 counting.
1448 * python/py-threadevent.c (get_event_thread): Return a
1449 borrowed reference.
1450 * python/py-type.c (convert_field): Fix reference counting.
1451
a036ba48
TT
14522012-08-15 Tom Tromey <tromey@redhat.com>
1453
1454 * dwarf2read.c (dwarf_decode_macro_bytes)
1455 <DW_MACRO_GNU_transparent_include>: Use pointer to included data
1456 as hash key.
1457
486c7739
MF
14582012-08-14 Mike Frysinger <vapier@gentoo.org>
1459
1460 * infcmd.c (_initialize_infcmd): Update help text for the signal,
1461 stepi, nexti, finish, next, step, jump, and continue commands.
1462 * infrun.c (_initialize_infrun): Update help text for the handle
1463 command.
1464
4cf93a03
DE
14652012-08-14 Doug Evans <dje@google.com>
1466
70b099cf
DE
1467 * gdbtypes.c (struct extra): Delete, unused.
1468
5212577a
DE
1469 * gdbtypes.c: Whitespace cleanup.
1470 (address_space_name_to_int): Remove "extern" from definition.
1471 (_initialize_gdbtypes): Declare with initialize_file_ftype.
1472
4cf93a03
DE
1473 * gdbtypes.c (make_pointer_type): Remove redundant setting of
1474 TYPE_POINTER_TYPE (type).
1475
3756ef7e
GB
14762012-08-14 Gary Benson <gbenson@redhat.com>
1477
1478 * solib-svr4.c (svr4_free_library_list): Use free_so.
1479
40d72643
MF
14802012-08-13 Mike Frysinger <vapier@gentoo.org>
1481
1482 * .gitignore: Add go-exp.c.
1483
f47f77df
DE
14842012-08-13 Doug Evans <dje@google.com>
1485
1486 * value.c (show_convenience): Tweak comment.
1487 (_initialize_values): Mention convenience functions in the help text
1488 for "show convenience".
1489
7507c54a
YQ
14902012-08-13 Yao Qi <yao@codesourcery.com>
1491
1492 * std-operator.def: Remove TERNOP_SLICE_COUNT.
1493 * breakpoint.c (watchpoint_exp_is_const): Remove handling to
1494 TERNOP_SLICE_COUNT.
1495 * eval.c (evaluate_subexp_standard): Likewise.
1496 * expprint.c (print_subexp_standard): Likewise.
1497 (dump_subexp_body_standard): Likewise.
1498 * parse.c (operator_length_standard): Likewise.
1499
5cad9736
YQ
15002012-08-13 Yao Qi <yao@codesourcery.com>
1501
1502 * std-operator.def: Remove OP_BITSTRING.
1503 * breakpoint.c (watchpoint_exp_is_const): Update.
1504 * eval.c (evaluate_subexp_standard): Remove handling to
1505 OP_BITSTRING.
1506 * expprint.c (print_subexp_standard): Likewise.
1507 (dump_subexp_body_standard): Likewise.
1508 * parse.c (operator_length_standard): Likewise.
1509 * valops.c (value_bitstring): Remove.
1510 * value.h: Remove the declaration of 'value_bitstring'.
1511
bad7670a
SDJ
15122012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
1513
1514 * linespec.c (find_methods): Remove unused variables `i1' and
1515 `name_len'.
1516 (decode_line_full): Likewise for `arg_start'.
1517
d9dce7fa
SDJ
15182012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
1519
1520 * gdb_bfd.c (gdb_bfd_unref): Remove unused variable `slot'.
1521 (zlib_decompress_section): Likewise for `section_data'.
1522 (gdb_bfd_map_section): Likewise for `buf' and `retbuf'.
1523
a72c3253
DE
15242012-08-10 Doug Evans <dje@google.com>
1525
1526 Add $_memeq, $_regex, $_streq, $_strlen convenience functions.
1527 * NEWS: Document them.
1528 * data-directory/Makefile.in (PYTHON_FILES): Add function/__init__.py,
1529 function/strfns.py.
1530 * python/py-type.c (typy_array_1): New function.
1531 (typy_array): Call it.
1532 (typy_vector): New function.
1533 (type_object_methods): Add "vector".
1534 * python/lib/gdb/function/__init__.py: New file.
1535 * python/lib/gdb/function/strfns.py: New file.
1536
200bc880
SP
15372012-08-10 Siddhesh Poyarekar <siddhesh@redhat.com>
1538
1539 * python/py-type.c (convert_field): Use gdb_py_long_from_longest
1540 for TYPE_FIELD_BITPOS.
1541 (typy_get_sizeof): Likewise for TYPE_LENGTH.
1542
de0bea00
MF
15432012-08-10 Mike Frysinger <vapier@gentoo.org>
1544
1545 PR cli/10436:
1546 * common/vec.h (VEC_merge): Define.
1547 (DEF_VEC_ALLOC_FUNC_I): Add a merge helper.
1548 (DEF_VEC_ALLOC_FUNC_P): Likewise.
1549 (DEF_VEC_ALLOC_FUNC_O): Likewise.
1550 * completer.c: Include gdb_signals.h.
1551 (signal_completer): Define.
1552 * completer.h (signal_completer): Add prototype.
1553 * infcmd.c (_initialize_infcmd): Assign the command
1554 completer for "signal" to handle_completer.
1555 * infrun.c: Include completer.h.
1556 (handle_completer): Define.
1557 (_initialize_infrun): Declare a new local variable c. Store the
1558 result of add_com("handle") to it. Assign the command
1559 completer for "handle" to handle_completer.
1560
5b9afe8a
YQ
15612012-08-09 Yao Qi <yao@codesourcery.com>
1562
1563 * cli/cli-decode.c (set_cmd_prefix): New.
1564 (lookup_cmd_for_prefixlist): New.
1565 (add_prefix_cmd): Call set_cmd_prefix and update field 'prefix'
1566 of each cmd_list_element in *prefixlist.
1567 (add_setshow_cmd_full): set_cmd_prefix.
1568 (add_alias_cmd): Likewise.
1569 * cli/cli-decode.h (struct cmd_list_element) <prefix>: New field.
1570 Declare 'auto_boolean_enums'.
1571 * cli/cli-setshow.c: Include "observer.h".
1572 (notify_command_param_changed_p): New.
1573 (add_setshow_auto_boolean_cmd): Move auto_boolean_enums out.
1574 Remove 'static'.
1575 (do_setshow_command): Split it to ...
1576 (do_set_command, do_show_command): ... them. New.
1577 (do_set_command): Call observer_notify_command_param_changed if
1578 notify_command_param_changed_p returns true.
1579 (cmd_show_list): Caller update.
1580 * auto-load.c (set_auto_load_cmd): Likewise.
1581 * remote.c (show_remote_cmd): Likewise.
1582 * cli/cli-setshow.h: Update declarations.
1583 * top.c (execute_command): Call do_set_command and do_show_command.
1584
1585 * NEWS: Mention new MI notification.
1586 * mi/mi-interp.c: Declare mi_command_param_changed.
1587 (mi_interpreter_init): Attach mi_command_param_changed to
1588 observer command_param_changed.
1589 (mi_command_param_changed): New.
1590 Remove mi_suppress_breakpoint_notifications.
1591 Define global variable mi_suppress_notification.
1592 (mi_breakpoint_created): Update.
1593 (mi_breakpoint_deleted): Likewise.
1594 (mi_breakpoint_modified): Likewise.
1595 * mi/mi-main.c (mi_cmd_execute): Likewise. Check command
1596 'gdb-set' and set mi_suppress_notification.
1597 * mi/mi-main.h: (mi_suppress_notification): New struct.
1598
1969df89
JK
15992012-08-09 Andreas Tobler <andreast@fgznet.ch>
1600 Jan Kratochvil <jan.kratochvil@redhat.com>
1601
1602 * fbsd-nat.h (fbsd_find_memory_regions): Use find_memory_region_ftype.
1603
8bfd80db
YQ
16042012-08-09 Yao Qi <yao@codesourcery.com>
1605
1606 * cli/cli-cmds.c (enablebreaklist): Move it to breakpoint.c.
1607 (skiplist): Move it to skip.c.
1608 (init_cmd_lists): Remove code setting enablebreaklist and
1609 skiplist to NULL.
1610 * breakpoint.c (enablebreaklist): Moved from cli/cli-cmds.c.
1611 * cli/cli-cmds.h: Remove declaration of enablebreaklist and
1612 skiplist.
1613 * gdbcmd.h: Likewise.
1614 * skip.c (_initialize_step_skip): Move 'skiplist' from
1615 cli/cli-cmds.c.
1616
28578e6b
YQ
16172012-08-09 Yao Qi <yao@codesourcery.com>
1618
1619 * cli/cli-dump.c: Add 'static' to some cmd_list_element variables.
1620 * gnu-nat.c, symfile.c: Likewise.
1621
260c0b2a
DE
16222012-08-08 Aaron Gamble <agamble@google.com>
1623
1624 * utils.c (prompt_for_continue_wait_time): New static global.
1625 (make_command_stats_cleanup): Initialize it.
1626 (report_command_stats): Subtract time waiting for user.
1627 (prompt_for_continue): Track time waiting for user.
1628 (defaulted_query): Track time waiting for user.
1629
4f485ebc
DE
16302012-08-08 Doug Evans <dje@google.com>
1631
1632 * eval.c (evaluate_subexp_standard): Fix thinko in handling
1633 UNOP_MEMVAL_TYPE.
1634 * expprint.c (print_subexp_standard, case OP_TYPE): New.
1635 (print_subexp_standard, case UNOP_CAST_TYPE): Don't increment pos.
1636 (print_subexp_standard, case UNOP_DYNAMIC_CAST): Ditto.
1637 (print_subexp_standard, case UNOP_REINTERPRET_CAST): Ditto.
1638 (print_subexp_standard, case UNOP_MEMVAL_TYPE): Ditto.
1639 (dump_subexp_body_standard, case UNOP_DYNAMIC_CAST): Don't increment
1640 elt.
1641 (dump_subexp_body_standard, case UNOP_REINTERPRET_CAST): Ditto.
1642 (dump_subexp_body_standard, case UNOP_CAST_TYPE): Ditto.
1643 (dump_subexp_body_standard, case UNOP_MEMVAL_TYPE): Ditto.
1644 (dump_prefix_expression): Handle OP_TYPE.
1645
2acf2b39
KS
16462012-08-08 Keith Seitz <keiths@redhat.com>
1647
1648 * breakpoint.c (parse_breakpoint_sals): Remove unused variable
1649 addr_start.
1650
e6712ff1
DE
16512012-08-08 Doug Evans <dje@google.com>
1652
1653 * linux-thread-db.c: #include "gdb_vecs.h".
1654 (try_thread_db_load_from_pdir_1): New arg "subdir". All callers
1655 updated.
1656 (try_thread_db_load_from_pdir): New arg "subdir". All callers updated.
1657 (thread_db_load_search): Use a vector to iterate over path elements.
1658 Handle text appearing after "$pdir".
1659
1660 * gdb_string.h: Moved to ...
1661 * common/gdb_string.h: ... here.
1662 * common/vec.h: Remove #ifndef GDBSERVER conditional inclusion of
1663 gdb_string.h and gdb_assert.h.
1664
ab854e54
YQ
16652012-08-08 Yao Qi <yao@codesourcery.com>
1666
1667 * tic6x-tdep.c (tic6x_register_to_value): Remove.
1668 (tic6x_value_to_register): Likewise.
1669 (tic6x_gdbarch_init): Don't call set_gdbarch_register_to_value
1670 and set_gdbarch_value_to_register.
1671
4f69f4c2
JK
16722012-08-07 Jan Kratochvil <jan.kratochvil@redhat.com>
1673 Jean-Marc Saffroy <saffroy@gmail.com>
1674
1675 PR 11804
1676 * defs.h (find_memory_region_ftype): New comment. New arg modified.
1677 * fbsd-nat.c (fbsd_find_memory_regions): Add the passed modified value.
1678 * gcore.c (gcore_create_callback): New function comment. Add modified
1679 parameter. Only write modified regions. Set SEC_READONLY exactly
1680 according to MODIFIED.
1681 (objfile_find_memory_regions): Ignore separate debug info files. Ass
1682 the passed modified value to FUNC.
1683 * gnu-nat.c (gnu_find_memory_regions): Add the passed modified value.
1684 * linux-tdep.c (linux_find_memory_regions): Try to reads smaps file
1685 first. New variables modified and has_anonymous. Parse the lines of
1686 smaps file. Add the passed MODIFIED value to FUNC.
1687 * procfs.c (find_memory_regions_callback): Add the passed modified
1688 value.
1689
78ac5f83
TT
16902012-08-06 Tom Tromey <tromey@redhat.com>
1691
1692 * dwarf2-frame.c (clear_pointer_cleanup): New function.
1693 (dwarf2_frame_cache): Use it.
1694 * frame-unwind.h (frame_sniffer_ftype): Document prologue
1695 cache initialization constraint.
1696
2c12abee
TT
16972012-08-06 Tom Tromey <tromey@redhat.com>
1698
1699 PR python/14386:
1700 * varobj.c (update_dynamic_varobj_children): Don't call
1701 PyIter_Check.
1702
4979d7f0
TT
17032012-08-06 Tom Tromey <tromey@redhat.com>
1704
1705 PR cli/14392:
1706 * cli/cli-cmds.c (list_command): Filter 'sals_end'.
1707
f3c8a52a
JK
17082012-08-06 Nathaniel Flath <flat0103@gmail.com>
1709
1710 * NEWS: New entry for 'cd' default parameters.
1711 * cli/cli-cmds.c (cd_command): Replace error_no_arg by DIR assignment.
1712
5a1cf4d6
TT
17132012-08-03 Tom Tromey <tromey@redhat.com>
1714
1715 * dwarf2-frame.c (dwarf2_frame_cache): Call do_cleanups before
1716 return.
1717
7c3270ae
UW
17182012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
1719
1720 * inf-child.c (inf_child_fileio_pwrite): If pwrite fails, fall back
1721 to attempting lseek/write.
1722 (inf_child_fileio_pread): Likewise for pread.
1723
ccce17b0
YQ
17242012-08-02 Yao Qi <yao@codesourcery.com>
1725
1726 * dwarf2loc.c (entry_values_debug): Add 'unsigned'.
1727 (_initialize_dwarf2loc): Call add_setshow_zuinteger_cmd instead of
1728 add_setshow_zinteger_cmd.
1729 * dwarf2loc.h: Update the declaration of 'entry_values_debug'.
1730 * dwarf2read.c (dwarf2_die_debug): Add 'unsigned'.
1731 (_initialize_dwarf2_read): Call add_setshow_zuinteger_cmd
1732 instead of add_setshow_zinteger_cmd.
1733 * darwin-nat.c (dwarwin_debug_flag): Add 'unsigned'.
1734 (_initialize_darwin_inferior): Call add_setshow_zuinteger_cmd
1735 instead of add_setshow_zinteger_cmd.
1736 * frame.c (frame_debug): Add 'unsigned'.
1737 (_intialize_frame): Call add_setshow_zuinteger_cmd instead of
1738 add_setshow_zinteger_cmd.
1739 * frame.h: Update the declaration of 'frame_debug'.
1740 * gdbtypes.c (overload_debug): Add 'unsigned'.
1741 (_initialize_gdbtypes): Call add_setshow_zuinteger_cmd instead of
1742 add_setshow_zinteger_cmd.
1743 * inferior.h: Update declaration of 'debug_infrun'.
1744 * infrun.c (debug_infrun): Add 'unsigned'.
1745 (_initialize_infrun): Call add_setshow_zuinteger_cmd instead of
1746 add_setshow_zinteger_cmd.
1747 * jit.c (jit_debug): Add 'unsigned'.
1748 (_initialize_jit): Call add_setshow_zuinteger_cmd instead of
1749 add_setshow_zinteger_cmd.
1750 * linux-nat.c (debug_linux_nat): Add 'unsigned'.
1751 (_initialize_linux_nat): Call add_setshow_zuinteger_cmd
1752 instead of add_setshow_zinteger_cmd.
1753 * linux-thread-db.c (libthread_db_debug): Add 'unsigned'.
1754 (_initialize_thread_db): Call add_setshow_zuinteger_cmd instead of
1755 add_setshow_zinteger_cmd.
1756 * machoread.c (mach_o_debug_level): Add 'unsigned'.
1757 (_initialize_machoread): Call add_setshow_zuinteger_cmd
1758 instead of add_setshow_zinteger_cmd.
1759 * mi/mi-cmd-var.c: Update the declaration of 'varobjdebug'.
1760 * microblaze-tdep.c (microblaze_debug_flag): Add 'unsigned'.
1761 (_initialize_microblaze_tdep): Call add_setshow_zuinteger_cmd
1762 intead of add_setshow_zinteger_cmd.
1763 * mips-tdep.c (mips_debug): Add 'unsigned'.
1764 (_initialize_mips_tdep): Call add_setshow_zuinteger_cmd
1765 instead of add_setshow_zinteger_cmd.
1766 * monitor.c (monitor_debug): Add 'unsigned'.
1767 (_initialize_remote_monitors): Call add_setshow_zuinteger_cmd instead of
1768 add_setshow_zinteger_cmd.
1769 * observer.c (observer_debug): Add 'unsigned'.
1770 (_initialize_observer): Call add_setshow_zuinteger_cmd instead of
1771 add_setshow_zinteger_cmd.
1772 * parse.c (expressiondebug): Add 'unsigned'.
1773 (_initialize_parse): Call add_setshow_zuinteger_cmd instead of
1774 add_setshow_zinteger_cmd.
1775 * record.c (record_debug): Add 'unsigned'.
1776 (_initialize_record): Call add_setshow_zuinteger_cmd instead of
1777 add_setshow_zinteger_cmd.
1778 * record.h: Update the declaration of 'record_debug'.
1779 * stap-probe.c (stap_expression_debug): Add 'unsigned'.
1780 (_initialize_stap_probe): Call add_setshow_zuinteger_cmd instead of
1781 add_setshow_zinteger_cmd.
1782 * serial.c (global_serial_debug_p): Add 'unsigned'.
1783 (_initialize_serial): Call add_setshow_zuinteger_cmd instead of
1784 add_setshow_zinteger_cmd.
1785 * solib-dsbt.c (solib_dsbt_debug): Add 'unsigned'.
1786 (_initialize_dsbt_solib): Call add_setshow_zuinteger_cmd instead of
1787 add_setshow_zinteger_cmd.
1788 * solib-frv.c (solib_frv_debug): Add 'unsigned'.
1789 (_initialize_frv_solib): Call add_setshow_zuinteger_cmd instead of
1790 add_setshow_zinteger_cmd.
1791 * target.c (targetdebug): Add 'unsigned'.
1792 (initialize_targets): Call add_setshow_zuinteger_cmd instead of
1793 add_setshow_zinteger_cmd.
1794 * valops.c (overload_debug): Add 'unsigned'.
1795 * varobj.c (varobjdebug): Add 'unsigned'.
1796 (_initialize_varobj): Call add_setshow_zuinteger_cmd instead of
1797 add_setshow_zinteger_cmd.
1798 * xtensa-tdep.c (xtensa_debug_level): Add 'unsigned'.
1799 (_initialize_xtensa_tdep): Call add_setshow_zuinteger_cmd
1800 instead of add_setshow_zinteger_cmd.
1801
1802 * arch-utils.h: Remove the declaration of 'gdbarch_debug'.
1803 * gdbarch.sh (gdbarch_debug): Add 'unsigned'.
1804 (extern void _initialize_gdbarch): Call add_setshow_zuinteger_cmd
1805 instead of add_setshow_zinteger_cmd.
1806 * gdbarch.c, gdbarch.h: Re-generated.
1807
95b07c96
YQ
18082012-08-02 Yao Qi <yao@codesourcery.com>
1809
1810 * nto-tdep.c: Don't include cli/cli-decode.h and
1811 cli/cli-cmds.h.
1812 (_initialize_nto_tdep): Remove.
1813 * nto-tdep.h (struct nto_target_ops) <internal_debugging>:
1814 Remove field.
1815 Remove macro nto_internal_debugging.
1816
57295b0b
RH
18172012-08-01 Richard Henderson <rth@redhat.com>
1818
1819 * configure.tgt (m32c-*-*) [gdb_target_obs]: Remove prologue-value.o.
1820 (mep-*-*) [gdb_target_obs]: Likewise.
1821
f782ad9b
AS
18222012-07-31 Andreas Schwab <schwab@linux-m68k.org>
1823
1824 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
1825 linux_get_siginfo_type.
1826
a14dd77e
JK
18272012-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
1828
1829 * infcall.c (call_function_by_hand): Move BP_ADDR comment to
1830 AT_ENTRY_POINT.
1831 (call_function_by_hand) <ON_STACK>: Call write_memory with
1832 gdbarch_breakpoint_from_pc, if possible.
1833 (call_function_by_hand) <AT_ENTRY_POINT>: The BP_ADDR comment is moved
1834 here.
1835
1467929f
YQ
18362012-07-31 Yao Qi <yao@codesourcery.com>
1837
1838 * tracepoint.c: Add 'static' for some variables.
1839
70976b65
YQ
18402012-07-31 Yao Qi <yao@codesourcery.com>
1841
1842 * go32-nat.c: Declare _initialize_go32_nat.
1843 * ser-go32.c: Declare _initialize_ser_dos.
1844 * top.c (do_chdir_cleanup): Add 'static'.
1845
eff9c3e6
KS
18462012-07-30 Keith Seitz <keiths@redhat.com>
1847
1848 * linespec.c (linespec_lex_number): A number followed
1849 by quotes is a valid number, too.
1850
728400d7
TT
18512012-07-30 Tom Tromey <tromey@redhat.com>
1852
1853 * remote-sim.c (gdb_os_poll_quit): Don't check immediate_quit.
1854
fcf303ab
UW
18552012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
1856
1857 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Do not
1858 attempt to 4-byte-align HW breakpoint addresses for Thumb.
1859
4e969b4f
AB
18602012-07-30 Andrew Burgess <aburgess@broadcom.com>
1861
1862 * varobj.c (varobj_invalidate_iter): All varobj must be marked as
1863 invalid or reevaluated to prevent prevent references to possibly
1864 delete'd type objects being left in the varobj.
1865
c4bfde41
JK
18662012-07-27 Tom Tromey <tromey@redhat.com>
1867 Jan Kratochvil <jan.kratochvil@redhat.com>
1868
1869 * copying.awk: Print buffer-read-only and vi ro markers.
1870 * copying.c: Rebuild.
1871 * gdbarch.sh (copyright): Print buffer-read-only and vi ro markers.
1872 * gdbarch.c, gdbarch.h: Rebuild.
1873 * target-descriptions.c (maint_print_c_tdesc_cmd): Print
1874 buffer-read-only and vi ro markers.
1875 * features/arm-with-iwmmxt.c: Rebuild.
1876 * features/arm-with-m-fpa-layout.c: Rebuild.
1877 * features/arm-with-m-vfp-d16.c: Rebuild.
1878 * features/arm-with-m.c: Rebuild.
1879 * features/arm-with-neon.c: Rebuild.
1880 * features/arm-with-vfpv2.c: Rebuild.
1881 * features/arm-with-vfpv3.c: Rebuild.
1882 * features/i386/amd64-avx-linux.c: Rebuild.
1883 * features/i386/amd64-avx.c: Rebuild.
1884 * features/i386/amd64-linux.c: Rebuild.
1885 * features/i386/amd64.c: Rebuild.
1886 * features/i386/i386-avx-linux.c: Rebuild.
1887 * features/i386/i386-avx.c: Rebuild.
1888 * features/i386/i386-linux.c: Rebuild.
1889 * features/i386/i386-mmx-linux.c: Rebuild.
1890 * features/i386/i386-mmx.c: Rebuild.
1891 * features/i386/i386.c: Rebuild.
1892 * features/i386/x32-avx-linux.c: Rebuild.
1893 * features/i386/x32-avx.c: Rebuild.
1894 * features/i386/x32-linux.c: Rebuild.
1895 * features/i386/x32.c: Rebuild.
1896 * features/mips-dsp-linux.c: Rebuild.
1897 * features/mips-linux.c: Rebuild.
1898 * features/mips64-dsp-linux.c: Rebuild.
1899 * features/mips64-linux.c: Rebuild.
1900 * features/rs6000/powerpc-32.c: Rebuild.
1901 * features/rs6000/powerpc-32l.c: Rebuild.
1902 * features/rs6000/powerpc-403.c: Rebuild.
1903 * features/rs6000/powerpc-403gc.c: Rebuild.
1904 * features/rs6000/powerpc-405.c: Rebuild.
1905 * features/rs6000/powerpc-505.c: Rebuild.
1906 * features/rs6000/powerpc-601.c: Rebuild.
1907 * features/rs6000/powerpc-602.c: Rebuild.
1908 * features/rs6000/powerpc-603.c: Rebuild.
1909 * features/rs6000/powerpc-604.c: Rebuild.
1910 * features/rs6000/powerpc-64.c: Rebuild.
1911 * features/rs6000/powerpc-64l.c: Rebuild.
1912 * features/rs6000/powerpc-7400.c: Rebuild.
1913 * features/rs6000/powerpc-750.c: Rebuild.
1914 * features/rs6000/powerpc-860.c: Rebuild.
1915 * features/rs6000/powerpc-altivec32.c: Rebuild.
1916 * features/rs6000/powerpc-altivec32l.c: Rebuild.
1917 * features/rs6000/powerpc-altivec64.c: Rebuild.
1918 * features/rs6000/powerpc-altivec64l.c: Rebuild.
1919 * features/rs6000/powerpc-cell32l.c: Rebuild.
1920 * features/rs6000/powerpc-cell64l.c: Rebuild.
1921 * features/rs6000/powerpc-e500.c: Rebuild.
1922 * features/rs6000/powerpc-e500l.c: Rebuild.
1923 * features/rs6000/powerpc-isa205-32l.c: Rebuild.
1924 * features/rs6000/powerpc-isa205-64l.c: Rebuild.
1925 * features/rs6000/powerpc-isa205-altivec32l.c: Rebuild.
1926 * features/rs6000/powerpc-isa205-altivec64l.c: Rebuild.
1927 * features/rs6000/powerpc-isa205-vsx32l.c: Rebuild.
1928 * features/rs6000/powerpc-isa205-vsx64l.c: Rebuild.
1929 * features/rs6000/powerpc-vsx32.c: Rebuild.
1930 * features/rs6000/powerpc-vsx32l.c: Rebuild.
1931 * features/rs6000/powerpc-vsx64.c: Rebuild.
1932 * features/rs6000/powerpc-vsx64l.c: Rebuild.
1933 * features/rs6000/rs6000.c: Rebuild.
1934 * features/s390-linux32.c: Rebuild.
1935 * features/s390-linux32v1.c: Rebuild.
1936 * features/s390-linux32v2.c: Rebuild.
1937 * features/s390-linux64.c: Rebuild.
1938 * features/s390-linux64v1.c: Rebuild.
1939 * features/s390-linux64v2.c: Rebuild.
1940 * features/s390x-linux64.c: Rebuild.
1941 * features/s390x-linux64v1.c: Rebuild.
1942 * features/s390x-linux64v2.c: Rebuild.
1943 * features/tic6x-c62x-linux.c: Rebuild.
1944 * features/tic6x-c62x.c: Rebuild.
1945 * features/tic6x-c64x-linux.c: Rebuild.
1946 * features/tic6x-c64x.c: Rebuild.
1947 * features/tic6x-c64xp-linux.c: Rebuild.
1948 * features/tic6x-c64xp.c: Rebuild.
1949
826f0041
TT
19502012-07-27 Tom Tromey <tromey@redhat.com>
1951
1952 * c-exp.y (classify_name): Avoid assignment in condition.
1953
84552b16
PA
19542012-07-27 Roland Schwingel <roland.schwingel@onevision.com>
1955
1956 * amd64-windows-tdep.c: Include "frame.h".
1957 (amd64_windows_skip_trampoline_code): New function.
1958 (amd64_windows_init_abi): Add trampoline registration.
1959
a8a64aa8
YQ
19602012-07-27 Yao Qi <yao@codesourcery.com>
1961
1962 * tracepoint.c (cur_traceframe_number): Remove.
1963 (set_tfile_traceframe): Remove.
1964 (tfile_trace_find, tfile_fetch_registers): Update callers.
1965 (tfile_xfer_partial, tfile_get_trace_state_variable_value): Likewise.
1966 (tfile_open, tfile_trace_find): Likewise.
1967
d99067cb
YQ
19682012-07-27 Yao Qi <yao@codesourcery.com>
1969
1970 * thread.c (switch_to_thread): Don't call registers_changed.
1971
f2e8016f
TT
19722012-07-26 Tom Tromey <tromey@redhat.com>
1973
f782ad9b
AS
1974 * Makefile.in (SFILES): Remove objc-exp.y.
1975 (YYFILES): Remove objc-exp.c.
1976 (YYOBJ): Remove objc-exp.o.
1977 (local-maintainer-clean): Don't mention objc-exp.c.
1978 * c-exp.y: Include objc-lang.h.
1979 (%union) <class>: New field.
1980 (NSSTRING, SELECTOR, CLASSNAME, OBJC_LBRAC): New tokens.
1981 (exp): Clone subscript production for OBJC_LBRAC. Add various
1982 Objective C productions.
1983 (msglist, msgarglist, msgarg): New productions.
1984 (array_mod, func_mod, operator): Clone productions for
1985 OBJC_LBRAC.
1986 (parse_string_or_char): Handle '@' strings.
1987 (lex_one_token): Return OBJC_LBRAC. Recognize @selector.
1988 (classify_name): Check la_name_of_this. Recognize ObjC class
1989 names.
1990 * objc-exp.y: Remove.
1991 * objc-lang.c (objc_language_defn): Use c_parse, c_error.
1992 * objc-lang.h (objc_parse, objc_error): Don't declare.
f2e8016f 1993
f66713d2
JK
19942012-07-26 Markus Metzger <markus.t.metzger@intel.com>
1995
1996 * python/py-inferior.c (infpy_threads): Call update_thread_list ().
1997
7cfe01b4
JK
19982012-07-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1999
2000 * auto-load.c (auto_load_info_scripts): Remove immediate_quit increment
2001 and decrement.
2002
5ba19b4c
TT
20032012-07-26 Tom Tromey <tromey@redhat.com>
2004
2005 * copying.c: Rebuild.
2006 * copying.awk: Don't use immediate_quit. Use 'no_set_class', not
2007 'no_class'.
2008
27618ce4
TT
20092012-07-26 Tom Tromey <tromey@redhat.com>
2010
2011 * symmisc.c (print_symbol_bcache_statistics): Use QUIT, not
2012 immediate_quit.
2013 (print_objfile_statistics): Likewise.
2014 (maintenance_print_symbols): Likewise.
2015 (maintenance_print_msymbols): Likewise.
2016 (maintenance_print_objfiles): Likewise.
2017 * psymtab.c (print_partial_symbols): Call QUIT.
2018 (maintenance_print_psymbols): Likewise. Don't modify
2019 immediate_quit.
2020 * copying.c (show_copying_command): Don't modify immediate_quit.
2021 (show_warranty_command): Likewise.
2022 * cli/cli-cmds.c (show_version): Don't modify immediate_quit.
2023
dd3818c8
KS
20242012-07-26 Keith Seitz <keiths@redhat.com>
2025
2026 * linespec.c (linespec_lexer_lex_number): The input
2027 is also a valid number if the next character is a comma
2028 or colon.
2029
23a80689
JB
20302012-07-26 Joel Brobecker <brobecker@adacore.com>
2031
2032 * NEWS: Document new --enable-libmcheck/--disable-libmcheck
2033 configure options.
2034
29f77997
TG
20352012-07-26 Tristan Gingold <gingold@adacore.com>
2036
2037 * machoread.c: Include gdb_bfd.h.
2038
a55c1f32
TG
20392012-07-26 Tristan Gingold <gingold@adacore.com>
2040
2041 * dwarf2loc.c (locexpr_describe_location_piece): Use uint64_t for
2042 offset.
2043
56eb65bd
SP
20442012-07-26 Siddhesh Poyarekar <siddhesh@redhat.com>
2045
2046 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Expand parameter
2047 SIZE to size_t.
2048 (dwarf2_evaluate_loc_desc): Likewise.
2049 (dwarf2_loc_desc_needs_frame): Likewise.
2050 (locexpr_describe_location_1): Likewise.
2051 * dwarf2loc.h (struct dwarf2_locexpr_baton): Make SIZE as
2052 size_t.
2053 (struct dwarf2_loclist_baton): Likewise.
2054 * dwarf2read.c (struct dwarf_block): Likewise.
2055 (dump_die_shallow): Use pulongest to print dwarf_block.size.
2056 (decode_locdesc): Expand SIZE and I to size_t.
2057
aec8845c
JK
20582012-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
2059
2060 * contrib/cc-with-tweaks.sh: Put into comment path gdb/contrib/.
2061
33d7655b
JB
20622012-07-25 Joel Brobecker <brobecker@adacore.com>
2063
2064 * doublest.c (convert_doublest_to_floatformat): If the exponent
2065 is too small, treat the value as zero. If the exponent is too
2066 large, treat the value as infinity.
2067
a22d44ff
JB
20682012-07-25 Joel Brobecker <brobecker@adacore.com>
2069
2070 * configure.ac: Add --enable-lmcheck configure option.
2071 * configure: Regenerate.
2072
d6b28940
TT
20732012-07-25 Tom Tromey <tromey@redhat.com>
2074
f782ad9b
AS
2075 * NEWS: Mention maint info bfds.
2076 * gdb_bfd.c (all_bfds): New global.
2077 (gdb_bfd_ref, gdb_bfd_unref): Update all_bfds.
2078 (print_one_bfd, maintenance_info_bfds, _initialize_gdb_bfd):
2079 New functions.
d6b28940 2080
6e73ba20
RC
20812012-07-25 Ralf Corsépius <ralf.corsepius@rtems.org>
2082
2083 * configure.tgt: Add v850*-*-rtems*.
2084
d560eebd
TT
20852012-07-25 Tom Tromey <tromey@redhat.com>
2086
2087 * macrotab.c (macro_bcache_str): Remove cast.
2088
d7cbec71
HZ
20892012-07-25 Hui Zhu <hui_zhu@mentor.com>
2090
2091 * linespec.c (linespec_lexer_lex_number): Update comments,
2092 change the return and add check to make sure the input is
2093 the decimal numbers.
2094 (linespec_lexer_lex_one): If linespec_lexer_lex_number return
2095 false, call linespec_lexer_lex_string.
2096
882f447f
TT
20972012-07-24 Tom Tromey <tromey@redhat.com>
2098
2099 * symfile.c (symbol_file_add): Don't open BFD twice.
2100
53ab4066 21012012-07-24 Marc Khouzam <marc.khouzam@ericsson.com>
e12c7713
MK
2102
2103 * breakpoint.c (create_breakpoint): Store condition for pending
2104 breakpoints.
2105
108fb0f7
AS
21062012-07-24 Andreas Schwab <schwab@linux-m68k.org>
2107
2108 * m68k-tdep.c (m68k_reg_struct_return_p): Accept complex types.
2109 (m68k_return_value): Handle complex types like structures.
2110 (m68k_svr4_return_value): Likewise.
2111
1634dcbe
JK
21122012-07-24 Marcus Shawcroft <marcus.shawcroft@arm.com>
2113
2114 * gdb_bfd.c (zlib_decompress_section) <!HAVE_ZLIB_H>: Adjust
2115 parameters to bfd_get_section_name.
2116
e2d12c21
YQ
21172012-07-24 Yao Qi <yao@codesourcery.com>
2118
2119 * cli/cli-setshow.c: Handle case 'var_uinteger'
2120 and 'var_zuninteger' together. Handle case 'var_integer' and
2121 'var_zinteger' together.
2122
64b92e45
KS
21232012-07-23 Keith Seitz <keiths@redhat.com>
2124
2125 * linespec.c (convert_linespec_to_sal): Don't add
2126 any symbols to the result vector if symbol_to_sal
2127 returns zero.
2128
0f5f4ffe
KS
21292012-07-23 Keith Seitz <keiths@redhat.com>
2130
2131 * linespec.c (decode_objc): Record the function name
2132 in the linespec.
2133
da1cc82f
TT
21342012-07-23 Tom Tromey <tromey@redhat.com>
2135
2136 * rs6000-nat.c (add_vmap): Rewrite archive loop. Fix reference
2137 counting.
2138 * exec.c (exec_close_1): Unconditionally release vmap's BFD.
2139 (map_vmap): Acquire a reference to the BFD.
2140
6c18f3e0
SP
21412012-07-23 Siddhesh Poyarekar <siddhesh@redhat.com>
2142
2143 * p-valprint.c (pascal_object_print_value): Replace potentially
2144 unsafe alloca with xmalloc/xfree.
2145 * valops.c (search_struct_method): Likewise.
2146
695c3173
TT
21472012-07-23 Tom Tromey <tromey@redhat.com>
2148
2149 * solib-svr4.c (enable_break): Update.
2150 * bfd-target.h (target_bfd_reopen): Update documentation.
2151
08d2cd74
TT
21522012-07-23 Tom Tromey <tromey@redhat.com>
2153
2154 * symfile.c (separate_debug_file_exists): Update.
2155 (gdb_bfd_open_maybe_remote): Rename from bfd_open_maybe_remote.
2156 (reread_symbols): Update.
2157 * elfread.c (build_id_verify): Update.
2158 * symfile.h (gdb_bfd_open_maybe_remote): Rename from
2159 bfd_open_maybe_remote.
2160
596f7d67
TT
21612012-07-23 Tom Tromey <tromey@redhat.com>
2162
2163 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Fix comment.
2164
8ac244b4
TT
21652012-07-23 Tom Tromey <tromey@redhat.com>
2166
2167 * coffread.c (coff_symfile_read): Make a cleanup for 'debugfile'
2168 and 'abfd'.
2169 * elfread.c (elf_symfile_read): Make a cleanup for 'debugfile'
2170 and 'abfd'.
2171 * jit.c (jit_bfd_try_read_symtab): Make a cleanup for 'nbfd'.
2172 * machoread.c (macho_add_oso_symfile): Make a cleanup for
2173 'abfd'.
2174 (macho_symfile_read): Make a cleanup for 'dsym_bfd'.
2175 * objfiles.c (allocate_objfile): Acquire a new reference.
2176 * rs6000-nat.c (add_vmap): Don't acquire a BFD reference.
2177 * solib.c (solib_read_symbols): Don't acquire a BFD reference.
2178 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Make
2179 a cleanup for 'nbfd'.
2180 * symfile-mem.c (symbol_file_add_from_memory): Make a cleanup
2181 for 'nbfd'.
2182 * symfile.c (symbol_file_add_with_addrs_or_offsets): Don't
2183 make a cleanup for 'abfd'.
2184 (symbol_file_add): Make a BFD cleanup.
2185
64c31149
TT
21862012-07-23 Tom Tromey <tromey@redhat.com>
2187
2188 * cli/cli-dump.c (bfd_openr_with_cleanup): Use gdb_bfd_openr.
2189 (bfd_openw_with_cleanup): Use gdb_bfd_openw.
2190 * corelow.c (core_open): Use gdb_bfd_fopen.
2191 * dsrec.c (load_srec): Use gdb_bfd_openr.
2192 * exec.c (exec_file_attach): Use gdb_bfd_fopen.
2193 * gcore.c (gcore_memory_sections): Use gdb_bfd_openw.
2194 * gdb_bfd.c (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
2195 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
2196 (gdb_bfd_fdopenr): New functions.
2197 * gdb_bfd.h (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
2198 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
2199 (gdb_bfd_fdopenr): Declare.
2200 * jit.c (bfd_open_from_target_memory): Use gdb_bfd_openr_iovec.
2201 * m32-rom.c (m32r_load, m32r_upload_command): Use gdb_bfd_openr.
2202 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_openr,
2203 gdb_bfd_openr_next_archived_file.
2204 (macho_check_dsym): Use gdb_bfd_openr.
2205 (macho_add_oso_symfile): Don't call gdb_bfd_stash_filename.
2206 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_fdopenr.
2207 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_openr.
2208 * remote-mips.c (mips_load_srec, pmon_load_fast): Use
2209 gdb_bfd_openr.
2210 * remote.c (remote_bfd_open): Use gdb_bfd_openr_iovec.
2211 * rs6000-nat.c (add_vmap): Use gdb_bfd_openr, gdb_bfd_fdopenr,
2212 gdb_bfd_openr_next_archived_file.
2213 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2214 Use gdb_bfd_openr.
2215 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
2216 gdb_bfd_openr.
2217 * solib-spu.c (spu_bfd_fopen): Use gdb_bfd_openr_iovec.
2218 * solib.c (solib_bfd_fopen): Use gdb_bfd_fopen.
2219 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_openr_iovec.
2220 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_openr.
2221 (symfile_bfd_open): Use gdb_bfd_fopen.
2222 (generic_load): Use gdb_bfd_openr.
2223 * windows-nat.c (windows_make_so): Use gdb_bfd_openr.
2224
520b0001
TT
22252012-07-23 Tom Tromey <tromey@redhat.com>
2226
2227 * bfd-target.c (target_bfd_reopen): Update.
2228 * cli/cli-dump.c (bfd_openr_with_cleanup)
2229 (bfd_openw_with_cleanup): Update.
2230 * corelow.c (core_open): Update.
2231 * dsrec.c (load_srec): Update.
2232 * exec.c (exec_file_attach): Update.
2233 * gcore.c (create_gcore_bfd): Update.
2234 * gdb_bfd.c (gdb_bfd_ref): Return void.
2235 (gdb_bfd_open): Update.
2236 * gdb_bfd.h (gdb_bfd_ref): Return void.
2237 Update comments.
2238 * jit.c (jit_bfd_try_read_symtab): Update.
2239 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
2240 * machoread.c (macho_symfile_read_all_oso): Update.
2241 (macho_check_dsym): Update.
2242 * procfs.c (insert_dbx_link_bpt_in_file): Update.
2243 * remote-m32r-sdi.c (m32r_load): Update.
2244 * remote-mips.c (mips_load_srec, pmon_load_fast): Update.
2245 * rs6000-nat.c (add_vmap): Update.
2246 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2247 Update.
2248 * solib-pa64.c (pa64_solib_create_inferior_hook): Update.
2249 * solib-spu.c (spu_bfd_open): Update.
2250 * solib.c (solib_bfd_fopen, solib_read_symbols): Update.
2251 * spu-linux-nat.c (spu_bfd_open): Update.
2252 * symfile.c (bfd_open_maybe_remote, symfile_bfd_open)
2253 (generic_load): Update.
2254 * windows-nat.c (windows_make_so): Update.
2255
2322ff16
SP
22562012-07-22 Siddhesh Poyarekar <siddhesh@redhat.com>
2257
2258 * sh-tdep.c (sh_treat_as_flt_p): Remove unused variable LEN.
2259
3def0b36
PA
22602012-07-20 Jeff Kenton <jkenton@tilera.com>
2261
2262 * tilegx-linux-tdep.c (tilegx_linux_sigframe_init): Fix
2263 SIGTRAMP_FRAME unwinding.
2264
e615022a
DE
22652012-07-20 Doug Evans <dje@google.com>
2266
2267 * NEWS: Document new options "set/show use-deprecated-index-sections",
2268 and delete reference to --use-deprecated-index-sections.
2269 * symfile.h (use_deprecated_index_sections): Delete.
2270 * dwarf2read.c (use_deprecated_index_sections): Make static.
2271 (read_index_from_section): Update wording of how to load
2272 deprecated index sections.
2273 (_initialize_dwarf2_read): New options
2274 "set/show use-deprecated-index-sections".
2275 * main.c (captured_main): Delete --use-deprecated-index-sections.
2276
64776a0b
PA
22772012-07-20 Pedro Alves <palves@redhat.com>
2278
2279 PR threads/11692
2280 PR gdb/12203
2281
2282 * infrun.c (handle_inferior_event) <new thread>: Don't special
2283 case minus_one_ptid.
2284 <TARGET_WAITKIND_SPURIOUS>: Ditto.
2285 * linux-thread-db.c (thread_get_info_callback): Don't return early
2286 if the thread is zombie.
2287 (thread_from_lwp): Change return type to void. Rewrite stale
2288 comment.
2289 (attach_thread): Don't return early if the thread is zombie,
2290 instead set its "dying" flag.
2291 (thread_db_wait): Don't return TARGET_WAITKIND_SPURIOUS anymore.
2292 (find_new_threads_callback): Don't return early if the thread is
2293 zombie.
2294
09826ec5
PA
22952012-07-20 Pedro Alves <palves@redhat.com>
2296
2297 * linux-nat.c (linux_nat_wait): Dump the passed in target options.
2298 * target.c (target_wait): Likewise.
2299 (str_comma_list_concat_elem, do_option, target_options_to_string):
2300 New functions.
2301 * target.h (target_options_to_string): Declare.
2302
f7a35f02
TT
23032012-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2304 Tom Tromey <tromey@redhat.com>
2305
2306 * dwarf2read.c (dwarf_decode_macros)
2307 <DW_MACRO_GNU_define_indirect_alt, DW_MACRO_GNU_undef_indirect_alt,
2308 DW_MACRO_GNU_transparent_include_alt>: New cases.
2309 (dwarf_decode_macro_bytes) <DW_MACRO_GNU_define_indirect,
2310 DW_MACRO_GNU_undef_indirect>: Examine 'section_is_dwz'.
2311
b81e1ee0
TT
23122012-07-20 Tom Tromey <tromey@redhat.com>
2313
2314 * dwarf2read.c (try_open_dwo_file): Don't call
2315 gdb_bfd_stash_filename.
2316
99c1624c
PA
23172012-07-20 Pedro Alves <palves@redhat.com>
2318
2319 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
2320 (i386_record_lea_modrm, i386_record_push, i386_record_floats)
2321 (i386_process_record): Tweak description comments.
2322
4ffa4fc7
PA
23232012-07-20 Pedro Alves <palves@redhat.com>
2324
2325 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
2326 (i386_process_record): Use record_read_memory.
2327 * record.c (record_read_memory): New function.
2328 (record_arch_list_add_mem, record_exec_insn): Use
2329 record_read_memory.
2330 * record.h (record_read_memory): Declare.
2331
c24343e2
YQ
23322012-07-20 Yao Qi <yao@codesourcery.com>
2333
2334 * cli/cli-setshow.c (do_setshow_command): Don't check pointer is
2335 NULL for xfree.
2336
90f47860
PA
23372012-07-19 Pedro Alves <palves@redhat.com>
2338
2339 * record.c (record_resume): Ask the target beneath to report all
2340 signals.
2341
01093045
DE
23422012-07-19 Doug Evans <dje@google.com>
2343
2344 * dwarf2read.c (dwarf2_ranges_read): Ignore ranges starting at zero if
2345 there's no section at address zero.
2346 (dwarf2_record_block_ranges): Ditto.
2347
a7c3d162
YQ
23482012-07-19 Yao Qi <yao@codesourcery.com>
2349
2350 * command.h, remote.c: Fix a typo in comment.
2351
608b4967
TT
23522012-07-19 Tom Tromey <tromey@redhat.com>
2353
2354 PR exp/13206:
2355 * ax-gdb.c (gen_expr) <OP_TYPEOF, OP_DECLTYPE>: New cases.
2356 * breakpoint.c (watchpoint_exp_is_const) <OP_TYPEOF,
2357 OP_DECLTYPE>: New cases.
2358 * c-exp.y (TYPEOF, DECLTYPE): New tokens.
2359 (type_exp): Add new productions.
2360 (ident_tokens): Add __typeof__, typeof, __typeof, __decltype,
2361 and decltype.
2362 * eval.c (evaluate_subexp_standard) <OP_TYPEOF, OP_DECLTYPE>:
2363 New case.
2364 * expprint.c (dump_subexp_body_standard) <OP_TYPEOF,
2365 OP_DECLTYPE>: New case.
2366 * parse.c (operator_length_standard) <OP_TYPEOF, OP_DECLTYPE>:
2367 New case.
2368 * std-operator.def (OP_TYPEOF, OP_DECLTYPE): New constants.
2369 * varobj.c (varobj_create): Handle OP_TYPEOF, OP_DECLTYPE.
2370
274b54d7
TT
23712012-07-19 Tom Tromey <tromey@redhat.com>
2372
2373 * c-exp.y (enum token_flags): New.
2374 (struct token) <cxx_only>: Remove.
2375 <flags>: New field.
2376 (tokentab3, tokentab2, ident_tokens): Update.
2377 (lex_one_token): Update. Handle FLAG_SHADOW.
2378
9eaf6705
TT
23792012-07-19 Tom Tromey <tromey@redhat.com>
2380
2381 * ax-gdb.c (gen_expr): Handle UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE.
2382 * breakpoint.c (watchpoint_exp_is_const): Handle UNOP_CAST_TYPE,
2383 UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST.
2384 * c-exp.y (exp): Emit UNOP_MEMVAL_TYPE, UNOP_CAST_TYPE. Update
2385 for changes to UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST. Use
2386 type_exp production where appropriate.
2387 * eval.c (evaluate_subexp_standard) <UNOP_CAST_TYPE>: New case.
2388 <UNOP_DYNAMIC_CAST, UNOP_REINTERPRET_CAST>: Update.
2389 <UNOP_MEMVAL_TYPE>: New case.
2390 (evaluate_subexp_for_address) <UNOP_MEMVAL_TYPE>: New case.
2391 (evaluate_subexp_for_sizeof) <UNOP_MEMVAL_TYPE>: New case.
2392 * expprint.c (print_subexp_standard) <UNOP_CAST_TYPE>: New case.
2393 <UNOP_MEMVAL_TYPE>: New case.
2394 (dump_subexp_body_standard) <UNOP_DYNAMIC_CAST,
2395 UNOP_REINTERPRET_CAST>: Update.
2396 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
2397 * parse.c (operator_length_standard) <UNOP_DYNAMIC_CAST,
2398 UNOP_REINTERPRET_CAST>: Update.
2399 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
2400 * stack.c (return_command): Also check for UNOP_CAST_TYPE.
2401 * std-operator.def (UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE): New
2402 constants.
2403
6ace3df1
YQ
24042012-07-19 Yao Qi <yao@codesourcery.com>
2405 Jan Kratochvil <jan.kratochvil@redhat.com>
2406
2407 * cli/cli-setshow.c (do_setshow_command): Handle case 'var_filename'
2408 and case 'var_optional_filename' together.
2409 * infcmd.c (_initialize_infcmd): Call add_setshow_string_noescape_cmd
2410 instead of add_setshow_optional_filename_cmd for setshow command
2411 'args'. Set completer for 'set args'.
2412
48faced0
DE
24132012-07-18 Doug Evans <dje@google.com>
2414
2415 * common/gdb_vecs.h: Moved here from ./gdb_vecs.h.
2416 * common/gdb_vecs.c: New file, contents from utils.c.
2417 * common/host-defs.h: New file, contents from defs.h.
2418 * utils.h: New file, contents from defs.h.
2419 * defs.h: Move all declarations of objects defined in utils.c
2420 to utils.h (except QUIT() and related).
2421 #include "utils.h", "host-defs.h".
2422 * probe.h (probe_p): Move here from gdb_vecs.h.
2423 * symfile.c: #include "probe.h" instead of "gdb_vecs.h".
2424 * utils.c (free_char_ptr_vec): Moved to common/gdb_vecs.c.
2425 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): Ditto.
2426 * Makefile.in (SFILES): Add common/gdb_vecs.c.
2427 (HFILES_NO_SRCDIR): Add common/gdb_vecs.h, common/host-defs.h, utils.h.
2428 (COMMON_OBS): Add gdb_vecs.o.
2429 (gdb_vecs.o): New rule.
2430
66f1999b
KS
24312012-07-18 Keith Seitz <keiths@redhat.com>
2432
2433 * linespec.c (add_sal_to_sals): Add LITERAL_CANONICAL
2434 parameter. If non-zero, use SYMNAME as the canonical name
2435 for the SaL.
2436 Update all callers.
2437 (convert_linespec_to_sals): Use add_sal_to_sals for
2438 expressions, too.
2439 (decode_line_full): No need to "fill in missing canonical names"
2440 anymore. Simply make cleanups for the allocated names.
2441
5d94e27b
KS
24422012-07-18 Keith Seitz <keiths@redhat.com>
2443
2444 * linespec.c (struct linespec): Constify expression,
2445 source_filename, function_name, and label_name.
2446 (symbol_not_found_error): Make all parameters const.
2447 (linespec_parser_delete): No need to check for NULL
2448 when using xfree. Cast const char * to char * for xfree.
2449
af4908ba
KS
24502012-07-18 Keith Seitz <keiths@redhat.com>
2451
2452 * breakpoint.c (invalid_thread_id_error): New function.
2453 (find_condition_and_thread): Use invalid_thread_id_error.
2454 (watch_command_1): Likewise.
2455
853254db
TT
24562012-07-18 Tom Tromey <tromey@redhat.com>
2457
2458 * cc-with-index.sh, cc-with-dwz.sh: Remove.
2459 * contrib/cc-with-tweaks.sh: New file.
2460
2ec9a5e0
TT
24612012-07-18 Tom Tromey <tromey@redhat.com>
2462
2463 * dwarf2read.c (struct dwz_file) <gdb_index>: New field.
2464 (locate_dwz_sections): Recognize .gdb_index.
2465 (create_cus_from_index_list): New function.
2466 (create_cus_from_index): Use it. Handle .dwz data.
2467 (read_index_from_section): New function, extracted from
2468 dwarf2_read_index.
2469 (dwarf2_read_index): Use it. Read .gdb_index from dwz file,
2470 if needed.
2471
36586728
TT
24722012-07-18 Tom Tromey <tromey@redhat.com>
2473
2474 * dwarf2read.c (struct dwarf2_per_objfile) <dwz_file>: New field.
2475 (struct dwarf2_per_cu_data) <length>: No longer bitfield.
2476 <is_dwz>: New field.
2477 (struct dwz_file): New.
2478 (struct partial_die_info) <is_dwz, spec_is_dwz>: New fields.
2479 (locate_dwz_sections, dwarf2_get_dwz_file)
2480 (get_abbrev_section_for_cu): New functions.
2481 (error_check_comp_unit_head, read_and_check_comp_unit_head)
2482 (read_and_check_type_unit_head): Add abbrev_section argument.
2483 (create_debug_types_hash_table): Update.
2484 (init_cutu_and_read_dies): Use proper abbrev section.
2485 (init_cutu_and_read_dies_no_follow): Likewise.
2486 (set_partial_user): Do nothing if PST==NULL.
2487 (read_comp_units_from_section): New function.
2488 (create_all_comp_units): Use it.
2489 (scan_partial_symbols, partial_die_parent_scope): Update.
2490 (skip_one_die): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
2491 (process_imported_unit_die, read_partial_die): Handle .dwz files.
2492 (find_partial_die): Add offset_in_dwz argument. Update.
2493 (guess_partial_die_structure_name, fixup_partial_die): Update.
2494 (read_attribute_value): Handle DW_FORM_GNU_ref_alt,
2495 DW_FORM_GNU_strp_alt.
2496 (read_indirect_string_from_dwz): New function.
2497 (dwarf2_const_value_attr): Handle DW_FORM_GNU_strp_alt.
2498 (dump_die_shallow): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
2499 (is_ref_attr): Handle DW_FORM_GNU_ref_alt.
2500 (follow_die_offset): Add offset_in_dwz argument.
2501 (follow_die_ref, dwarf2_fetch_die_location_block): Update.
2502 (skip_form_bytes): Handle DW_FORM_GNU_strp_alt.
2503 (dwarf_decode_macro_bytes): Add section_is_dwz argument.
2504 Handle new macro forms.
2505 (dwarf_decode_macros): Update.
2506 (dwarf2_find_containing_comp_unit): Add offset_in_dwz argument.
2507 (dwarf2_per_objfile_free): Unref dwz_bfd, if it exists
2508 (lookup_die_type): Handle DW_FORM_GNU_ref_alt.
2509 (create_debug_types_hash_table): Use correct abbrev section.
2510 (get_debug_line_section): New function.
2511 (dwarf_decode_line_header, dwarf_decode_lines_1): Use it.
2512 (process_full_comp_unit): Pass 'required' argument to
2513 end_symtab_get_static_block.
2514 * buildsym.h (end_symtab_get_static_block): Update.
2515 * buildsym.c (end_symtab_get_static_block): Add 'required'
2516 argument.
2517 (end_symtab, end_expandable_symtab): Update.
2518
4bf44c1c
TT
25192012-07-18 Tom Tromey <tromey@redhat.com>
2520
2521 * dwarf2read.c: Don't include zlib.h or sys/mman.h.
2522 (pagesize): Remove.
2523 (struct dwarf2_section_info) <map_addr, map_len>: Remove.
2524 (zlib_decompress_section): Remove.
2525 (dwarf2_read_section): Use gdb_bfd_map_section.
2526 (munmap_section_buffer): Remove.
2527 (free_dwo_file, dwarf2_per_objfile_free): Don't use
2528 munmap_section_buffer.
2529 * gdb_bfd.c: Include zlib.h, sys/mman.h.
2530 (struct gdb_bfd_section_data): New.
2531 (free_one_bfd_section): New function.
2532 (gdb_bfd_close_or_warn): Use free_one_bfd_section.
2533 (get_section_descriptor, zlib_decompress_section)
2534 (gdb_bfd_map_section): New functions.
2535 * gdb_bfd.h (gdb_bfd_map_section): Declare.
2536
bb397797
TT
25372012-07-18 Tom Tromey <tromey@redhat.com>
2538
2539 * dwarf2read.c (try_open_dwo_file): use gdb_bfd_open.
2540
6ec53d05
TT
25412012-07-18 Tom Tromey <tromey@redhat.com>
2542
2543 * gdb_bfd.c (struct gdb_bfd_data): New.
2544 (gdb_bfd_cache): New global.
2545 (struct gdb_bfd_cache_search): New.
2546 (hash_bfd, eq_bfd, gdb_bfd_open): New functions.
2547 (gdb_bfd_ref, gdb_bfd_unref): Use gdb_bfd_data.
2548 * gdb_bfd.h (gdb_bfd_open): Declare.
2549
f9a062ff
TT
25502012-07-18 Tom Tromey <tromey@redhat.com>
2551
2552 * utils.c (make_cleanup_bfd_unref): Rename from
2553 make_cleanup_bfd_close.
2554 * defs.h (make_cleanup_bfd_unref): Rename from
2555 make_cleanup_bfd_close.
2556 * cli/cli-dump.c (bfd_openr_with_cleanup): Update.
2557 (bfd_openw_with_cleanup): Update.
2558 * corelow.c (core_open): Update.
2559 * dsrec.c (load_srec): Update.
2560 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
2561 * remote-m32r-sdi.c (m32r_load): Update.
2562 * remote-mips.c (mips_load_srec): Update.
2563 (pmon_load_fast): Update.
2564 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2565 Update.
2566 (darwin_bfd_open): Update.
2567 * solib.c (solib_bfd_fopen): Update.
2568 * symfile-mem.c (symbol_file_add_from_memory): Update.
2569 * symfile.c (symbol_file_add_with_addrs_or_offsets): Update.
2570 (symfile_bfd_open): Update.
2571 (generic_load): Update.
2572
d6ad71ba
TT
25732012-07-18 Tom Tromey <tromey@redhat.com>
2574
2575 * remote-mips.c (mips_load_srec): Use make_cleanup_bfd_close.
2576 (pmon_load_fast): Likewise.
2577 * m32r-rom.c (m32r_load): Use make_cleanup_bfd_close.
2578 (m32r_upload_command): Likewise.
2579 * dsrec.c (load_srec): Use make_cleanup_bfd_close.
2580 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2581 Use make_cleanup_bfd_close.
2582
a4453b7e
TT
25832012-07-18 Tom Tromey <tromey@redhat.com>
2584
2585 * symfile.c (symfile_bfd_open): Don't copy name. Call
2586 gdb_bfd_stash_filename.
2587 (load_command): Open the new BFD before freeing the old.
2588 (bfd_open_maybe_remote): Call gdb_bfd_stash_filename.
2589 * symfile-mem.c (symbol_file_add_from_memory): Don't copy name.
2590 Call gdb_bfd_stash_filename.
2591 * spu-linux-nat.c (spu_bfd_open): Don't copy name.
2592 * solib-spu.c (spu_bfd_fopen): Don't copy name. Call
2593 gdb_bfd_stash_filename.
2594 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2595 Free found_pathname.
2596 * rs6000-nat.c (add_vmap): Don't copy filename. Call
2597 gdb_bfd_stash_filename.
2598 * remote.c (remote_bfd_open): Call gdb_bfd_stash_filename.
2599 * machoread.c (macho_add_oso_symfile): Call
2600 gdb_bfd_stash_filename.
2601 (macho_symfile_read_all_oso): Arrange to free archive_name. Call
2602 gdb_bfd_stash_filename.
2603 (macho_check_dsym): Don't copy filename. Call
2604 gdb_bfd_stash_filename.
2605 * jit.c (bfd_open_from_target_memory): Don't copy the filename.
2606 * gdb_bfd.c (gdb_bfd_stash_filename): New function.
2607 * gdb_bfd.h (gdb_bfd_stash_filename): Declare.
2608 * gcore.c (create_gcore_bfd): Call gdb_bfd_stash_filename.
2609 * exec.c (exec_close): Don't free the BFD's filename.
2610 (exec_file_attach): Don't copy the filename. Call
2611 gdb_bfd_stash_filename.
2612 * corelow.c (core_close): Don't free the BFD's filename.
2613 (core_open): Call gdb_bfd_stash_filename.
2614 * corefile.c (reopen_exec_file): Remove #if 0 code.
2615 * solib.c (solib_bfd_fopen): Call gdb_bfd_stash_filename. Free
2616 pathname.
2617 * dwarf2read.c (try_open_dwo_file): Call gdb_bfd_stash_filename.
2618
cbb099e8
TT
26192012-07-18 Tom Tromey <tromey@redhat.com>
2620
2621 * dwarf2read.c (try_open_dwo_file): Use gdb_bfd_ref and
2622 gdb_bfd_unref.
2623 (free_dwo_file): Use gdb_bfd_unref.
2624 * cli/cli-dump.c: Include gdb_bfd.h.
2625 (bfd_openw_with_cleanup): Use gdb_bfd_ref.
2626 (bfd_openr_with_cleanup): Likewise.
2627 * windows-nat.c (windows_make_so): Use gdb_bfd_ref,
2628 gdb_bfd_unref.
2629 * utils.c: Include gdb_bfd.h.
2630 (do_bfd_close_cleanup): Use gdb_bfd_unref.
2631 * symfile.c: Include gdb_bfd.h.
2632 (separate_debug_file_exists): Use gdb_bfd_unref.
2633 (bfd_open_maybe_remote): Use gdb_bfd_ref.
2634 (symfile_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
2635 (generic_load): Use gdb_bfd_ref.
2636 (reread_symbols): Use gdb_bfd_unref.
2637 * symfile-mem.c: Include gdb_bfd.h.
2638 (symbol_file_add_from_memory): Use make_cleanup_bfd_close.
2639 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
2640 * solib.c: Include gdb_bfd.h.
2641 (solib_bfd_fopen): Use gdb_bfd_ref.
2642 (solib_bfd_open): Use gdb_bfd_unref.
2643 (free_so_symbols): Use gdb_bfd_unref.
2644 (reload_shared_libraries_1): Use gdb_bfd_unref.
2645 * solib-spu.c: Include gdb_bfd.h.
2646 (spu_bfd_fopen): Use gdb_bfd_ref, gdb_bfd_unref.
2647 * solib-pa64.c (pa64_solib_create_inferior_hook): Use gdb_bfd_ref,
2648 gdb_bfd_unref.
2649 * solib-frv.c: Include gdb_bfd.h.
2650 (enable_break2): Use gdb_bfd_unref.
2651 * solib-dsbt.c: Include gdb_bfd.h.
2652 (enable_break2): Use gdb_bfd_unref.
2653 * solib-darwin.c: Include gdb_bfd.h.
2654 (darwin_solib_get_all_image_info_addr_at_init): Use gdb_bfd_ref,
2655 gdb_bfd_unref.
2656 (darwin_bfd_open): Use gdb_bfd_unref.
2657 * rs6000-nat.c (add_vmap): Use gdb_bfd_ref, gdb_bfd_unref.
2658 * remote-mips.c: Include gdb_bfd.h.
2659 (mips_load_srec): Use gdb_bfd_ref.
2660 (pmon_load_fast): Use gdb_bfd_ref.
2661 * remote-m32r-sdi.c: Include gdb_bfd.h.
2662 (m32r_load): Use gdb_bfd_ref.
2663 * record.c: Include gdb_bfd.h.
2664 (record_save_cleanups): Use gdb_bfd_unref.
2665 (cmd_record_save): Use gdb_bfd_unref.
2666 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_ref,
2667 gdb_bfd_unref.
2668 * objfiles.h (gdb_bfd_close_or_warn): Remove.
2669 (gdb_bfd_ref, gdb_bfd_unref): Move to gdb_bfd.h.
2670 * objfiles.c: Include gdb_bfd.h.
2671 (free_objfile): Use gdb_bfd_unref.
2672 (gdb_bfd_close_or_warn, gdb_bfd_ref, gdb_bfd_unref): Move to
2673 gdb_bfd.c.
2674 * machoread.c (macho_add_oso_symfile): Use gdb_bfd_unref.
2675 (macho_symfile_read_all_oso): Use gdb_bfd_ref, gdb_bfd_unref.
2676 (macho_check_dsym): Likewise.
2677 * m32r-rom.c: Include gdb_bfd.h.
2678 (m32r_load): Use gdb_bfd_ref.
2679 (m32r_upload_command): Use gdb_bfd_ref.
2680 * jit.c: Include gdb_bfd.h.
2681 (jit_bfd_try_read_symtab): Use gdb_bfd_ref, gdb_bfd_unref.
2682 * gdb_bfd.h: New file.
2683 * gdb_bfd.c: New file.
2684 * gcore.c: Include gdb_bfd.h.
2685 (create_gcore_bfd): Use gdb_bfd_ref.
2686 (do_bfd_delete_cleanup): Use gdb_bfd_unref.
2687 (gcore_command): Use gdb_bfd_unref.
2688 * exec.c: Include gdb_bfd.h.
2689 (exec_close): Use gdb_bfd_unref.
2690 (exec_close_1): Use gdb_bfd_unref.
2691 (exec_file_attach): Use gdb_bfd_ref.
2692 * elfread.c: Include gdb_bfd.h.
2693 (build_id_verify): Use gdb_bfd_unref.
2694 * dsrec.c: Include gdb_bfd.h.
2695 (load_srec): Use gdb_bfd_ref.
2696 * corelow.c: Include gdb_bfd.h.
2697 (core_close): Use gdb_bfd_unref.
2698 (core_open): Use gdb_bfd_ref.
2699 * bfd-target.c: Include gdb_bfd.h.
2700 (target_bfd_xclose): Use gdb_bfd_unref.
2701 (target_bfd_reopen): Use gdb_bfd_ref.
2702 * Makefile.in (SFILES): Add gdb_bfd.c.
2703 (HFILES_NO_SRCDIR): Add gdb_bfd.h.
2704 (COMMON_OBS): Add gdb_bfd.o.
2705
ed1d1739
KS
27062012-07-18 Keith Seitz <keiths@redhat.com>
2707
2708 * breakpoint.c (find_condition_and_thread): Initialize
2709 TASK and REST.
2710 (create_breakpiont): find_condition_and_thread will now
2711 initialize COND_STRING, THREAD, and REST (and TASK).
2712 (addr_string_to_sals): Likewise.
2713
eab402df
PA
27142012-07-18 Pedro Alves <palves@redhat.com>
2715
2716 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_NO_HISTORY>:
2717 Pull the single step breakpoints out of the target.
2718
2b963b68
SDJ
27192012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
2720
2721 * probe.c (probe_safe_evaluate_at_pc): Rename variable `n_probes'.
2722 * stap-probe.c (compile_probe_arg): Likewise.
2723
6bac7473
SDJ
27242012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
2725
2726 * elfread.c (elf_get_probe_argument_count): Remove `objfile' argument.
2727 (elf_compile_to_ax): Likewise.
2728 * infrun.c (insert_exception_resume_from_probe): Likewise.
2729 (check_exception_resume): Remove `objfile' variable.
2730 * probe.c (find_probe_by_pc): Remove `objfile' argument.
2731 (struct probe_and_objfile, probe_and_objfile_s): Delete.
2732 (collect_probes): Adjust return value to `VEC (probe_p) *'.
2733 (compare_entries): Rename to...
2734 (compare_probes): ...this. Adjust function to work with
2735 `struct probe *'. Rename variables `ea' and `eb' to `pa' and `pb'
2736 respectively.
2737 (gen_ui_out_table_header_info): Adjust `probes' argument to be
2738 `VEC (probe_p) *'.
2739 (print_ui_out_info): Adjust argument to be `struct probe *'.
2740 (info_probes_for_ops): Adjust internal computations to use
2741 `VEC (probe_p) *'.
2742 (probe_safe_evaluate_at_pc): Refactor to not pass `objfile' anymore.
2743 * probe.h (struct probe_ops) <get_probe_argument_count, compile_to_ax,
2744 gen_info_probes_table_values>: Remove `objfile' argument.
2745 (struct probe) <objfile>: New field.
2746 (find_probe_by_pc): Remove `objfile' argument.
2747 * stap-probe.c (stap_parse_probe_arguments): Likewise.
2748 (stap_get_probe_argument_count): Likewise.
2749 (stap_get_arg): Likewise.
2750 (stap_evaluate_probe_argument): Likewise.
2751 (stap_compile_to_ax): Likewise.
2752 (compile_probe_arg): Refactor not to pass `objfile' anymore.
2753 (handle_stap_probe): Fill `objfile' field from `struct probe'.
2754 (stap_gen_info_probes_table_header): Remove `objfile' argument.
2755 * symfile.h (struct sym_probe_fns) <sym_evaluate_probe_argument,
2756 sym_compile_to_ax>: Likewise.
2757
3347eb1a 27582012-07-18 Terry Guo <terry.guo@arm.com>
2759
2760 PR 14329
2761 * defs.h (GDB_MI_MSG_WIDTH): New.
2762 * ser_base (ser_base_read_error_fd): New function.
2763 (do_ser_base_readchar): Poll error file descriptor as well as
2764 standard output.
f782ad9b 2765 (generic_readchar): Refactor error handling.
3347eb1a 2766
80c8d323
JB
27672012-07-18 Joel Brobecker <brobecker@adacore.com>
2768
2769 * NEWS: Create a new section for the next release branch.
2770 Rename the section of the current branch, now that it has
2771 been cut.
2772
b45a0664 27732012-07-18 Joel Brobecker <brobecker@adacore.com>
2774
2775 GDB 7.5 branch created (branch timestamp: 2012-07-18 03:22 UTC)
2776 * version.in: Bump version to 7.5.50.20120718-cvs.
2777
09cf2b22
KS
27782012-07-17 Keith Seitz <keiths@redhat.com>
2779
2780 * linespec.c (linespec_parse_line_offset): Make parameter
2781 const.
2782
8f043999
JK
27832012-07-16 Jan Kratochvil <jan.kratochvil@redhat.com>
2784
2785 PR 11914
2786 * f-valprint.c (info_common_command): New variable frame_id.
2787 Reinitialize FI form FRAME_ID after each print_variable_and_value.
2788 * printcmd.c (print_variable_and_value): Extend function comment.
2789 Add comment for invalidated FRAME.
2790 * stack.c (backtrace_command_1): New variable frame_id. Reinitialize
2791 FI form FRAME_ID after each print_frame_local_vars.
2792 (struct print_variable_and_value_data): Change frame to frame_id.
2793 (do_print_variable_and_value): New variable frame, initialize it from
2794 p->frame_id. Add comment for invalidated FRAME.
2795 (print_frame_local_vars, print_frame_arg_vars): New function comment.
2796 Update CB_DATA.FRAME to CB_DATA.FRAME_ID initialization. Add comment
2797 for invalidated FRAME.
2798
ae5e0686
MK
27992012-07-16 Marc Khouzam <marc.khouzam@ericsson.com>
2800 Pedro Alves <palves@redhat.com>
2801
2802 * linux-nat.c (linux_nat_detach): Don't unregister from the event
2803 loop.
2804
5049c5be
TT
28052012-07-16 Tom Tromey <tromey@redhat.com>
2806
2807 * jv-typeprint.c (c_type_print_varspec_suffix): Don't declare.
2808
2908cac6
DE
28092012-07-15 Doug Evans <dje@google.com>
2810
094b34ac
DE
2811 * dwarf2read.c (stmt_list_hash): New struct.
2812 (type_unit_group): Embed "per_cu" member, remove pointer.
2813 New union member "t", move member "tus" into it, all uses updated.
2814 New member "hash", replaces member "line_offset, all uses updated.
2815 (quick_file_names): Replace member "offset" with "hash", all uses
2816 updated.
2817 (hash_stmt_list_entry, eq_stmt_list_entry): New functions.
2818 (hash_file_name_entry, eq_file_name_entry): Call them.
2819 (hash_type_unit_group, eq_type_unit_group): Ditto.
2820 (dw2_get_cu, dw2_get_primary_cu): Replace assert with a better one.
2821 (dw2_get_file_names_reader): Fix file name table calculation for TUs.
2822 (dw2_get_file_names): Update.
2823 (create_type_unit_group): Replace "per_cu" arg with "cu".
2824 All callers updated. Fix "quick" (.gdb_index) handling.
2825 (get_type_unit_group): Replace "per_cu" arg with "cu".
2826 All callers updated.
2827 (build_type_unit_groups): Don't reset tu_stats.
2828
2908cac6
DE
2829 * symtab.c (filename_seen_cache): Delete members "tab_alloc_size",
2830 "tab_cur_size". Change member "tab" to be a htab_t.
2831 (create_filename_seen_cache): Update.
2832 (clear_filename_seen_cache, delete_filename_seen_cache): Update.
2833 (filename_seen): Update.
2834
a2b6eff5
DE
28352012-07-13 Doug Evans <dje@google.com>
2836
2837 * symtab.c (filename_seen): Update comment.
2838
4359dff1
JK
28392012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2840 Doug Evans <dje@google.com>
2841
2842 * buildsym.c (end_symtab_1): Split it to ...
2843 (end_symtab_get_static_block): ... this ...
2844 (end_symtab_from_static_block): ... and this function.
2845 (end_symtab, end_expandable_symtab): Call them.
2846 * buildsym.h (end_symtab_get_static_block)
2847 (end_symtab_from_static_block): New declarations.
2848 * dwarf2read.c (process_full_comp_unit): New variable static_block.
2849 Set its valid CU ranges.
2850
a24f71ab
JK
28512012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2852
2853 * dwarf2loc.c (disassemble_dwarf_expression): Handle
2854 DW_OP_GNU_parameter_ref.
2855
d76b7dbc
JK
28562012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2857
2858 * dwarf2read.c (read_call_site_scope): Do not gdb_assert for invalid
2859 read-in CALL_SITE_PARAMETER_PARAM_OFFSET.
2860
9fdc877b
DE
28612012-07-13 Doug Evans <dje@google.com>
2862
2863 * symtab.c (output_source_filename): Delete unnecessary forward decl.
2864 (filename_seen_cache): New struct.
2865 (INITIAL_FILENAME_SEEN_CACHE_SIZE): New macro.
2866 (create_filename_seen_cache): New function.
2867 (clear_filename_seen_cache, delete_filename_seen_cache): New functions.
2868 (filename_seen): Delete arg "first". New arg "cache". All callers
2869 updated.
2870 (output_source_filename_data): New struct.
2871 (output_source_filename): Delete arg "first". New arg "data".
2872 All callers updated.
2873 (sources_info): Delete local "first". New locals "data", "cleanups".
2874 Rewrite to use filename_seen_cache.
2875 (add_partial_filename_data): Delete member "first". New member
2876 "filename_seen_cache". All uses updated.
2877 (make_source_files_completion_list): Rewrite to use
2878 filename_seen_cache.
2879
f80c6f3f
DE
28802012-07-12 Doug Evans <dje@google.com>
2881
2882 * psymtab.c (map_symbol_filenames_psymtab): Skip shared psymtabs.
2883
0bfa869d
DE
28842012-07-10 Doug Evans <dje@google.com>
2885
f4dc4d17
DE
2886 PR gdb/13498
2887 * dwarf2read.c (dwarf2_per_objfile): New members n_type_unit_groups,
2888 all_type_unit_groups, type_unit_groups, tu_stats.
2889 (dwarf2_per_cu_data): Move "imported_symtabs" into new union "s".
2890 All uses updated. Add type_unit_group to union "s".
2891 (type_unit_group): New struct.
2892 (IS_TYPE_UNIT_GROUP): New macro.
2893 (abbrev_table): Delete unused member "section".
2894 (dw2_do_instantiate_symtab): Early exit if type_unit_group.
2895 (dw2_get_cu): Assert not used with type_unit_group.
2896 (dw2_get_primary_cu): New function.
2897 (dw2_build_type_unit_groups_reader): New function.
2898 (dw2_build_type_unit_groups): New function.
2899 (dw2_get_file_names): Assert not called on type units.
2900 (dw2_map_symtabs_matching_filename): Call dw2_build_type_unit_groups.
2901 Redo loop to iterate over type unit groups instead of type units.
2902 (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Ditto.
2903 (read_abbrev_offset): New function.
2904 (init_cutu_and_read_dies): New arg "abbrev_table". All callers
2905 updated.
2906 (create_partial_symtab): New function.
2907 (process_psymtab_comp_unit_reader): Assert not used with type units.
2908 Call create_partial_symtab.
2909 (process_psymtab_type_unit): Delete.
2910 (hash_type_unit_group, eq_type_unit_group): New functions.
2911 (allocate_type_unit_groups_table): New function.
2912 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB): New macro.
2913 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB_SIZE): New macro.
2914 (create_type_unit_group, get_type_unit_group): New functions.
2915 (tu_abbrev_offset): New struct.
2916 (sort_tu_by_abbrev_offset): New function.
2917 (add_type_unit_group_to_table): New function.
2918 (build_type_unit_groups): New function.
2919 (build_type_psymtabs_reader): New function.
2920 (build_type_psymtab_dependencies): New function.
2921 (build_type_psymtabs): Rewrite.
2922 (scan_partial_symbols): Flag an error if a DW_TAG_imported_unit
2923 is seen in a type unit.
2924 (process_queue): Move symtab expansion debugging printfs here.
2925 Call process_full_type_unit for type units.
2926 (compute_symtab_includes): Assert not called for type units.
2927 (process_cu_includes): Don't call compute_symtab_includes for
2928 type units.
2929 (process_full_type_unit): New function.
2930 (process_imported_unit_die): Flag an error if called for type units.
2931 (handle_DW_AT_stmt_list): Delete arg "want_line_info". All callers
2932 updated. Assert not called for type units.
2933 (read_file_scope): Call dwarf2_start_symtab.
2934 (setup_type_unit_groups): New function.
2935 (read_type_unit_scope): Rewrite.
2936 (abbrev_table_read_table): Initialize abbrev_table->offset.
2937 (abbrev_table_free_cleanup): New function.
2938 (dwarf2_start_symtab): New function.
2939 (load_full_type_unit): Assert not called for type unit groups.
6d30eef8
DE
2940 * buildsym.c (finish_block_internal): New arg "expandable".
2941 All callers updated.
2942 (start_symtab): Move most contents to ...
2943 (restart_symtab): ... here. New function.
2944 (reset_symtab_globals): New function.
2945 (end_symtab_1): Renamed from end_symtab. New arg "expandable".
2946 Call reset_symtab_globals.
2947 (end_symtab, end_expandable_symtab): New functions.
2948 (set_missing_symtab, augment_type_symtab): New functions.
2949 * buildsym.h (end_expandable_symtab): Declare.
2950 (augment_type_symtab, restart_symtab): Declare.
b4c41fc7
DE
2951 * psympriv.h (struct partial_symtab): New member "anonymous".
2952 * psymtab.c (partial_map_symtabs_matching_filename): Ignore
2953 anonymous psymtabs.
2954 (read_psymtabs_with_filename): Ditto.
2955 (map_symbol_filenames_psymtab, psymtab_to_fullname): Ditto.
2956 (expand_symtabs_matching_via_partial): Ditto.
2957 (dump_psymtab): Update.
0bfa869d
DE
2958 * dictionary.c (dict_add_pending): New function.
2959 * dictionary.h (dict_add_pending): Declare.
2960
45e58e77
DE
29612012-07-09 Doug Evans <dje@google.com>
2962
b74db436
DE
2963 * buildsym.c (start_subfile): Remove unnecessary check for
2964 name == NULL.
2965
fd55216c
DE
2966 * psymtab.c (allocate_psymtab): Use host_address_to_string.
2967
6721b2ec
DE
2968 * dwarf2read.c (load_full_type_unit): Simplify.
2969
b4dd5633
DE
2970 * dwarf2read.c (dwarf2_per_objfile): Change type of all_type_units
2971 to struct signatured_type **. All uses updated.
2972
45e58e77
DE
2973 * dwarf2read.c (dwarf2_attr_no_follow): Delete unused arg "cu".
2974 All callers updated.
2975
e314d629
TT
29762012-07-09 Tom Tromey <tromey@redhat.com>
2977
2978 * c-exp.y (check_parameter_typelist): New function.
2979 (parameter_typelist): Call it.
2980 * eval.c (make_params): Handle '(void)' case.
2981 * gdbtypes.c (lookup_function_type_with_arguments): Handle
2982 '(void)' case.
2983
aa7c7447
JK
29842012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2985
2986 * common/linux-ptrace.c: Include gdb_assert.h.
2987 <__i386__> (linux_ptrace_test_ret_to_nx_instr): New declaration.
2988 <__i386__>: Include sys/reg.h, sys/mman.h, signal.h, sys/wait.h and
2989 stdint.h.
2990 (linux_ptrace_test_ret_to_nx, linux_ptrace_init_warnings): New
2991 functions.
2992 * common/linux-ptrace.h (linux_ptrace_init_warnings): New declarations.
2993 * linux-nat.c (linux_child_post_attach)
2994 (linux_child_post_startup_inferior): Call linux_ptrace_init_warnings.
2995
889003ed
JK
29962012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2997
2998 * linux-thread-db.c (thread_db_find_new_threads_silently): Do not apply
2999 nptl <2.7 bug workaround for core files.
3000
da559b09
JK
30012012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3002
3003 * linux-nat.c (resume_lwp, linux_nat_resume): Remove LP->SIGINFO
3004 clearing.
3005 (save_siginfo): Remove.
3006 (stop_wait_callback, linux_nat_filter_event): Remove the save_siginfo
3007 call.
3008 (resume_stopped_resumed_lwps): Remove LP->SIGINFO clearing.
3009 (linux_nat_get_siginfo): Use PTRACE_GETSIGINFO.
3010 * linux-nat.h (struct lwp_info): Remove field siginfo.
3011
f865ee35
JK
30122012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3013
3014 Code cleanup for the next patch.
3015 * arm-linux-nat.c (arm_linux_stopped_data_address): Change variable
3016 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
3017 call for it.
3018 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
3019 (ia64_linux_stopped_data_address):
3020 * linux-nat.c (linux_nat_get_siginfo): Add parameter siginfo, change
3021 the return value.
3022 * linux-nat.h (linux_nat_get_siginfo): Likewise.
3023 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Change variable
3024 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
3025 call for it.
3026
76b83c51
JK
30272012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3028
3029 PR 14321
3030 * findcmd.c (parse_find_args): New variable pattern_buf_size_need.
3031 Increase buffer sizes to 2x we need, not just 2x of the previous size.
3032
a6fb9c08
TT
30332012-07-06 Tom Tromey <tromey@redhat.com>
3034
3035 * c-exp.y (DOTDOTDOT): New token.
3036 (func_mod, exp): Use parameter_typelist.
3037 (parameter_typelist): New production.
3038 (tokentab3): Add "..." token.
3039 * eval.c (make_params): Handle varargs.
3040 * gdbtypes.c (lookup_function_type_with_arguments): Handle
3041 varargs.
3042
71918a86
TT
30432012-07-06 Tom Tromey <tromey@redhat.com>
3044
3045 PR exp/9608:
3046 * c-exp.y (%union) <tvec>: Change type.
3047 (func_mod): Now uses <tvec> type.
3048 (exp): Update for tvec change.
3049 (direct_abs_decl): Push the typelist.
3050 (func_mod): Return a typelist.
3051 (nonempty_typelist): Update for tvec change.
3052 * gdbtypes.c (lookup_function_type_with_arguments): New function.
3053 * gdbtypes.h (lookup_function_type_with_arguments): Declare.
3054 * parse.c (pop_type_list): New function.
3055 (push_typelist): New function.
3056 (follow_types): Handle tp_function_with_arguments.
3057 * parser-defs.h (type_ptr): New typedef. Define a VEC.
3058 (enum type_pieces) <tp_function_with_arguments>: New constant.
3059 (union type_stack_elt) <typelist_val>: New field.
3060 (push_typelist): Declare.
3061
fcde5961
TT
30622012-07-06 Tom Tromey <tromey@redhat.com>
3063
3064 * c-exp.y (%union) <type_stack>: New field.
3065 (abs_decl, direct_abs_decl): Use <type_stack> type. Update.
3066 (ptr_operator_ts): New production.
3067 (ptype): Update.
3068 * parse.c (type_stack_reserve): New function.
3069 (check_type_stack_depth): Use it.
3070 (pop_type_stack, append_type_stack, push_type_stack)
3071 (get_type_stack, type_stack_cleanup): New functions.
3072 (follow_types): Handle tp_type_stack.
3073 (_initialize_parse): Simplify initialization.
3074 * parser-defs.h (enum type_pieces) <tp_type_stack>: New
3075 constant.
3076 (union type_stack_elt) <stack_val>: New field.
3077 (get_type_stack, append_type_stack, push_type_stack)
3078 (type_stack_cleanup): Declare.
3079
1a7d0ce4
TT
30802012-07-06 Tom Tromey <tromey@redhat.com>
3081
3082 * parser-defs.h (type_stack, type_stack_size, type_stack_depth):
3083 Remove.
3084 (struct type_stack): New.
3085 * parse.c (type_stack, type_stack_size, type_stack_depth):
3086 Remove.
3087 (type_stack): New global.
3088 (parse_exp_in_context, check_type_stack_depth)
3089 (insert_into_type_stack, insert_type, push_type, push_type_int)
3090 (insert_type_address_space, pop_type, pop_type_int)
3091 (_initialize_parse): Update.
3092
16d01384
TT
30932012-07-06 Tom Tromey <tromey@redhat.com>
3094
3095 * c-exp.y (func_mod, direct_abs_decl, abs_decl, ptr_operator):
3096 Remove %type.
3097
9bfc60bf
SP
30982012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
3099
3100 * c-lang.c (c_printstr): Remove ununsed variable WIDTH.
3101
d5161074
SP
31022012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
3103 Jan Kratochvil <jan.kratochvil@redhat.com>
3104
3105 * cp-valprint.c (cp_print_value): Replace potentially unsafe
3106 alloca with xmalloc/xfree.
3107
a74bc576
SP
31082012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
3109
3110 * MAINTAINERS (Write After Approval): Add myself to the list.
3111
667e0a4b
DE
31122012-07-05 Doug Evans <dje@google.com>
3113
3114 * dwarf2read.c (dw2_expand_symtabs_matching): Fix typo.
3115
34b536a8
HZ
31162012-07-05 Hui Zhu <hui_zhu@mentor.com>
3117
3118 * ax-gdb.c (cli/cli-utils.h): New include.
3119 (linespec.h): Ditto.
3120 (agent_eval_command_one): New function.
3121 (agent_command_1): Ditto.
3122 (agent_command): Call function agent_command_1.
3123 (agent_eval_command): Ditto.
3124 (_initialize_ax_gdb): Change help for "maint agent"
3125 and "maint agent-eval".
3126
e6f0bce7
HZ
31272012-07-05 Hui Zhu <hui_zhu@mentor.com>
3128
3129 * breakpoint.c (check_for_argument): Move to file cli/cli-utils.c.
3130 * cli/cli-utils.c (check_for_argument): New function.
3131 * cli/cli-utils.h (check_for_argument): Ditto.
3132
1b3371b1
L
31332012-07-04 H.J. Lu <hongjiu.lu@intel.com>
3134
3135 * NEWS: Mention x32 ABI support.
3136
23e2d720
L
31372012-07-04 H.J. Lu <hongjiu.lu@intel.com>
3138
3139 * amd64-tdep.c (amd64_x32_init_abi): Set sp_regnum_from_eax to
3140 AMD64_RSP_REGNUM and pc_regnum_from_eax to AMD64_RIP_REGNUM.
3141
3142 * i386-tdep.c (i386_gdbarch_init): Initialize sp_regnum_from_eax
3143 and pc_regnum_from_eax to -1. Update SP regnum from
3144 sp_regnum_from_eax and PC regnum from pc_regnum_from_eax if
3145 needed.
3146
3147 * i386-tdep.h (gdbarch_tdep): Add sp_regnum_from_eax and
3148 pc_regnum_from_eax.
3149
836bf454
JK
31502012-07-03 Jan Kratochvil <jan.kratochvil@redhat.com>
3151
3152 Fix 'warning: parameter has incomplete type' with gcc-3.4.6.
3153 * dwarf2expr.h: Include gdbtypes.h.
3154 (enum call_site_parameter_kind, union call_site_parameter_u): Remove
3155 these forward declarations.
3156 (cu_offset, sect_offset): Move these ...
3157 * gdbtypes.h: Remove include dwarf2expr.h.
3158 (cu_offset, sect_offset): ... here.
3159
1e55e04f
L
31602012-07-03 H.J. Lu <hongjiu.lu@intel.com>
3161
3162 * amd64-linux-tdep.c (linux_sigtramp_code): Renamed to ...
3163 (amd64_linux_sigtramp_code): This.
3164 (amd64_x32_linux_sigtramp_code): New.
3165 (LINUX_SIGTRAMP_LEN): Updated.
3166 (amd64_linux_sigtramp_start): Check x32 sigtramp.
3167
7d0e21ad
JK
31682012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3169
3170 * linux-thread-db.c (thread_db_new_objfile): Fix comment typos.
3171
8775fd2d
JK
31722012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3173
3174 * config.in: Regenerate.
3175 * configure: Regenerate.
3176 * configure.ac: Remove check for gnu/libc-version.h.
3177 * linux-thread-db.c <HAVE_GNU_LIBC_VERSION_H>: Remove include of
3178 gnu/libc-version.h.
3179 (enable_thread_event_reporting) <HAVE_GNU_LIBC_VERSION_H>: Remove
3180 variables libc_version, libc_major and libc_minor. Replace sscanf by
3181 inferior_has_bug. Extend the comment.
3182
fcb44371
JK
31832012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3184
3185 * linux-thread-db.c (inferior_has_bug): New function.
3186 (thread_db_find_new_threads_silently): Return boolean as checked by
3187 inferior_has_bug, describe it in the comments.
3188 (try_thread_db_load_1): Move call to thread_db_find_new_threads_silently
3189 earlier. Abort the initialization if it returned non-zero.
7d0e21ad 3190 (thread_db_new_objfile): Exclude debug files.
fcb44371
JK
3191 (thread_db_find_new_threads_2): Preinitialize ERR. Check errors also
3192 if UNTIL_NO_NEW,
3193
09406207
DE
31942012-07-02 Doug Evans <dje@google.com>
3195
0907af0c
DE
3196 * dwarf2read.c (maybe_queue_comp_unit): Move definition next to others
3197 related to queue management.
3198
09406207
DE
3199 * dwarf2read.c (create_debug_types_hash_table): Use "debug dwarf2-read"
3200 instead of "debug dwarf2-die" in debugging printfs.
3201 (create_debug_info_hash_table_reader): Ditto.
3202 (create_debug_info_hash_table): Ditto.
3203 (init_dwo_file): Ditto.
3204 (init_cutu_and_read_dies): Add debugging printf.
3205 (init_cutu_and_read_dies_no_follow): Ditto.
3206 (process_psymtab_comp_unit_reader): Ditto.
3207
d3ce09f5
SS
32082012-07-02 Stan Shebs <stan@codesourcery.com>
3209
3210 Add target-side support for dynamic printf.
3211 * NEWS: Mention the additional style.
3212 * breakpoint.h (struct bp_target_info): New fields tcommands, persist.
3213 (struct bp_location): New field cmd_bytecode.
3214 * breakpoint.c: Include format.h.
3215 (disconnected_dprintf): New global.
3216 (parse_cmd_to_aexpr): New function.
3217 (build_target_command_list): New function.
3218 (insert_bp_location): Call it.
3219 (remove_breakpoints_pid): Skip dprintf breakpoints.
3220 (print_one_breakpoint_location): Ditto.
3221 (dprintf_style_agent): New global.
3222 (dprintf_style_enums): Add dprintf_style_agent.
3223 (update_dprintf_command_list): Add agent case.
3224 (agent_printf_command): New function.
3225 (_initialize_breakpoint): Add new commands.
3226 * common/ax.def (printf): New bytecode.
3227 * ax.h (ax_string): Declare.
3228 * ax-gdb.h (gen_printf): Declare.
3229 * ax-gdb.c: Include cli-utils.h, format.h.
3230 (gen_printf): New function.
3231 (maint_agent_print_command): New function.
3232 (_initialize_ax_gdb): Add maint agent-printf command.
3233 * ax-general.c (ax_string): New function.
3234 (ax_print): Add printf disassembly.
3235 * Makefile.in (SFILES): Add format.c
3236 (COMMON_OBS): Add format.o.
3237 * common/format.h: New file.
3238 * common/format.c: New file.
3239 * printcmd.c: Include format.h.
3240 (ui_printf): Call parse_format_string.
3241 * remote.c (remote_state): New field breakpoint_commands.
3242 (PACKET_BreakpointCommands): New enum.
3243 (remote_breakpoint_commands_feature): New function.
3244 (remote_protocol_features): Add new BreakpointCommands entry.
3245 (remote_can_run_breakpoint_commands): New function.
3246 (remote_add_target_side_commands): New function.
3247 (remote_insert_breakpoint): Call it.
3248 (remote_insert_hw_breakpoint): Ditto.
3249 (_initialize_remote): Add new packet configuration for
3250 target-side breakpoint commands.
3251 * target.h (struct target_ops): New field
3252 to_can_run_breakpoint_commands.
3253 (target_can_run_breakpoint_commands): New macro.
3254 * target.c (update_current_target): Handle
3255 to_can_run_breakpoint_commands.
3256
2d7b58e8
JK
32572012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3258
3259 Execute -ix and -iex only after system and user gdbinit files.
3260 * main.c (captured_main): Move CMDARG_INIT_FILE and CMDARG_INIT_COMMAND
3261 processing down after gdbinit files.
3262
8690e634
JK
32632012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3264
3265 Add fnmatch-gnu module.
3266 * gnulib/Makefile.in (aclocal_m4_deps): Add new files and remove one.
3267 * gnulib/configure.ac (AC_INIT): Use now import/memmem.c.
3268 * gnulib/aclocal.m4: Regenerate.
3269 * gnulib/config.in: Regenerate.
3270 * gnulib/configure: Regenerate.
3271 * gnulib/import/dummy.c: Remove.
3272 * gnulib/import/Makefile.am: Regenerate.
3273 * gnulib/import/Makefile.in: Likewise.
3274 * gnulib/import/m4/gnulib-cache.m4: Likewise.
3275 * gnulib/import/m4/gnulib-comp.m4: Likewise.
3276 * gnulib/import/alloca.c: New file.
3277 * gnulib/import/alloca.in.h: Likewise.
3278 * gnulib/import/config.charset: Likewise.
3279 * gnulib/import/fnmatch.c: Likewise.
3280 * gnulib/import/fnmatch.in.h: Likewise.
3281 * gnulib/import/fnmatch_loop.c: Likewise.
3282 * gnulib/import/localcharset.c: Likewise.
3283 * gnulib/import/localcharset.h: Likewise.
3284 * gnulib/import/m4/alloca.m4: Likewise.
3285 * gnulib/import/m4/codeset.m4: Likewise.
3286 * gnulib/import/m4/configmake.m4: Likewise.
3287 * gnulib/import/m4/fcntl-o.m4: Likewise.
3288 * gnulib/import/m4/fnmatch.m4: Likewise.
3289 * gnulib/import/m4/glibc21.m4: Likewise.
3290 * gnulib/import/m4/localcharset.m4: Likewise.
3291 * gnulib/import/m4/locale-fr.m4: Likewise.
3292 * gnulib/import/m4/locale-ja.m4: Likewise.
3293 * gnulib/import/m4/locale-zh.m4: Likewise.
3294 * gnulib/import/m4/mbrtowc.m4: Likewise.
3295 * gnulib/import/m4/mbsinit.m4: Likewise.
3296 * gnulib/import/m4/mbsrtowcs.m4: Likewise.
3297 * gnulib/import/m4/mbstate_t.m4: Likewise.
3298 * gnulib/import/m4/stdbool.m4: Likewise.
3299 * gnulib/import/m4/wchar_h.m4: Likewise.
3300 * gnulib/import/m4/wctype_h.m4: Likewise.
3301 * gnulib/import/m4/wint_t.m4: Likewise.
3302 * gnulib/import/mbrtowc.c: Likewise.
3303 * gnulib/import/mbsinit.c: Likewise.
3304 * gnulib/import/mbsrtowcs-impl.h: Likewise.
3305 * gnulib/import/mbsrtowcs-state.c: Likewise.
3306 * gnulib/import/mbsrtowcs.c: Likewise.
3307 * gnulib/import/ref-add.sin: Likewise.
3308 * gnulib/import/ref-del.sin: Likewise.
3309 * gnulib/import/stdbool.in.h: Likewise.
3310 * gnulib/import/streq.h: Likewise.
3311 * gnulib/import/strnlen1.c: Likewise.
3312 * gnulib/import/strnlen1.h: Likewise.
3313 * gnulib/import/verify.h: Likewise.
3314 * gnulib/import/wchar.in.h: Likewise.
3315 * gnulib/import/wctype.in.h: Likewise.
3316
202cbf1c
JK
33172012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3318
3319 Support shell wildcards for 'set auto-load safe-path'.
3320 * auto-load.c: Include fnmatch.h.
3321 (filename_is_in_dir): Rename to ...
3322 (filename_is_in_pattern_1, filename_is_in_pattern): ... here and split
3323 it. Update function comment. Rename dir_len to pattern_len. New
3324 variables filename_len, pattern and filename. Add more DEBUG_AUTO_LOAD
3325 messages. Use gdb_filename_fnmatch.
3326 (filename_is_in_auto_load_safe_path_vec): Rename variable dir to
3327 pattern.
3328 (_initialize_auto_load): Extend the "set auto-load safe-path" help text.
3329 * defs.h (gdb_filename_fnmatch): New declaration.
3330 * utils.c: Include fnmatch.h.
3331 (gdb_filename_fnmatch): New function.
3332
fb7b5af4
SDJ
33332012-07-02 Sergio Durigan Junior <sergiodj@redhat.com>
3334
3335 * breakpoint.c (BREAK_ARGS_HELP): Include help message for the new
3336 `-probe' and `-probe-stap' options.
3337
72d0e2c5
YQ
33382012-07-01 Yao Qi <yao@codesourcery.com>
3339
3340 * breakpoint.c: Removed always_inserted_auto, always_inserted_on,
3341 always_inserted_off, and always_inserted_enums.
3342 Change always_inserted_mode's type to 'enum auto_boolean'.
3343 (show_always_inserted_mode, breakpoint_always_inserted_mode): Update
3344 callers.
3345 (_initialize_breakpoint): Call add_setshow_auto_boolean_cmd instead
3346 of add_setshow_enum_cmd.
3347 * infrun.c: Remove can_use_displaced_stepping_auto,
3348 can_use_displaced_stepping_on, can_use_displaced_stepping_off, and
3349 can_use_displaced_stepping_enum.
3350 Change can_use_displaced_stepping's type to 'enum auto_boolean'.
3351 (show_can_use_displaced_stepping, use_displaced_stepping): Update callers.
3352 (_initialize_infrun): Call add_setshow_auto_boolean_cmd instead of
3353 add_setshow_enum_cmd.
3354
42e7ad6c
DE
33552012-06-30 Doug Evans <dje@google.com>
3356
3357 * dwarf2read.c (signatured_type): Make "per_cu" member first.
3358 (init_cutu_and_read_dies): Handle rereading a DWO CU while it's
3359 currently being read. Propagate DW_AT_comp_dir to DWO DIE.
3360
39cf75f7
DE
33612012-06-29 Doug Evans <dje@google.com>
3362
3363 * linespec.c: #include "stack.h".
3364 (decode_line_with_current_source): Moved here from symtab.c and
3365 renamed from decode_line_spec. All callers updated.
3366 (decode_line_with_last_displayed): Moved here from breakpoint.c and
3367 renamed from decode_line_spec_1. All callers updated.
3368 * linespec.h (decode_line_with_current_source): Move declaration here
3369 from symtab.h and renamed from decode_line_spec.
3370 (decode_line_with_last_displayed): Move declaration here from symtab.h
3371 and renamed from decode_line_spec_1.
3372 * macrocmd.c: #include "linespec.h".
3373 * symtab.c: Remove #include "linespec.h".
3374
433df2d4
DE
33752012-06-28 Doug Evans <dje@google.com>
3376
1ce1cefd
DE
3377 * dwarf2read.c (get_cu_length): New function.
3378 (offset_in_cu_p, error_check_comp_unit_head): Call it.
3379 (create_debug_types_hash_table): Ditto.
3380 (init_cutu_and_read_dies): Ditto.
3381 (init_cutu_and_read_dies_no_follow): Ditto.
3382
3b80fe9b
DE
3383 * dwarf2read.c (dwarf2_find_base_address): Move definition.
3384
433df2d4
DE
3385 * dwarf2read.c (ABBREV_HASH_SIZE): Remove enclosing #ifndef/#endif.
3386 (struct abbrev_table): Define.
3387 (dwarf2_cu): Replace members dwarf2_abbrevs, abbrev_obstack with
3388 abbrev_table.
3389 (init_cutu_and_read_dies): Update.
3390 (abbrev_table_alloc_abbrev): New function. Replaces
3391 dwarf_alloc_abbrev. All callers updated.
3392 (abbrev_table_add_abbrev): New function.
3393 (abbrev_table_lookup_abbrev): New function. Replaces
3394 dwarf2_lookup_abbrev. All callers updated.
3395 (abbrev_table_read_table): New function. Contents moved here from
3396 dwarf2_read_abbrevs.
3397 (dwarf2_read_abbrevs): Call it.
3398 (abbrev_table_free): New function.
3399 (dwarf2_free_abbrev_table): Call it.
3400
71caed83
SS
34012012-06-28 Stan Shebs <stan@codesourcery.com>
3402
3403 * osdata.c (info_osdata_command): Filter out "Title" columns
3404 from non-MI uses.
3405 * common/linux-osdata.c (struct osdata_type): Add title field.
3406 (osdata_table): Add titles to each entry.
3407 (linux_command_xfer_osdata): Add a column for title data.
3408
37ce89eb
SS
34092012-06-28 Stan Shebs <stan@codesourcery.com>
3410
3411 Make logging work for MI.
3412 * NEWS: Mention it.
3413 * interps.h (interp_set_logging_ftype): New typedef.
3414 (struct interp_procs): New field set_logging_proc.
3415 (current_interp_set_logging): Declare.
3416 * interps.c (current_interp_set_logging): New function.
3417 * cli/cli-logging.c: Include interps.h.
3418 (set_logging_redirect): Call current_interp_set_logging.
3419 (pop_output_files): Ditto.
3420 (handle_redirections): Ditto, plus skip ui-out redirect if MI.
3421 * mi/mi-console.h (mi_console_set_raw): Declare.
3422 * mi/mi-console.c (mi_console_set_raw): New function.
3423 * mi/mi-interp.c (saved_raw_stdout): New global.
3424 (mi_set_logging): New function.
3425 (_initialize_mi_interp): Add it to interp procs.
3426
659c9f3a
DE
34272012-06-28 Doug Evans <dje@google.com>
3428
a743abeb
DE
3429 * symtab.c (lookup_symbol_aux_objfile): Use
3430 ALL_OBJFILE_PRIMARY_SYMTABS.
3431
659c9f3a
DE
3432 * gdbtypes.c (lookup_typename): Rename local variable "tmp" to "type".
3433
da2d6d3d
JK
34342012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3435
3436 * common/buffer.c: Include inttypes.h and stdint.h.
3437 (buffer_xml_printf): Use PRId64, PRIu64, PRIx64 and PRIo64.
3438
e5ef252a
PA
34392012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3440 Pedro Alves <palves@redhat.com>
3441
3442 * gdbthread.h (ALL_THREADS): New macro.
3443 (thread_list): Declare.
3444 * infrun.c (handle_inferior_event) <spurious signal>: Don't keep
3445 going, but instead fall through to the stepping handling.
3446 * linux-nat.c (resume_lwp): New parameter 'signo'. Resume with
3447 the passed in signal. Adjust debug output.
3448 (resume_callback): Rename to ...
3449 (linux_nat_resume_callback): ... this. Pass the thread's last
3450 stop signal, if in "pass" state.
3451 (linux_nat_resume): Adjust to rename.
3452 (stop_wait_callback): New assertion. Don't respawn signals;
3453 instead let the LWP remain with SIGNALLED set.
3454 (linux_nat_wait_1): Remove flushing of pending SIGSTOPs.
3455 * remote.c (append_pending_thread_resumptions): New.
3456 (remote_vcont_resume): Call it.
3457 * target.h (target_resume): Extend comment.
3458
1d7975eb
IS
34592012-06-28 Iain Sandoe <iain@codesourcery.com>
3460
3461 * auxv.c (fprint_target_auxv): Handle extended cache data tags.
3462
2e3cf129
DE
34632012-06-27 Doug Evans <dje@google.com>
3464
3465 * dwarf2read.c (dwarf2_cu): Add ranges_base.
3466 Delete have_addr_base, unused. All uses updated.
3467 (init_cutu_and_read_dies): Process DW_AT_GNU_ranges_base.
3468 (dwarf2_get_pc_bounds): Add ranges_base.
3469 (dwarf2_record_block_ranges): Ditto.
3470
1bb9788d
TT
34712012-06-27 Tom Tromey <tromey@redhat.com>
3472
3473 PR macros/7961:
3474 * varobj.c (varobj_create): Update.
3475 (varobj_set_value): Update.
3476 * tracepoint.c (validate_actionline): Update.
3477 (encode_actions_1): Update.
3478 * parse.c (parse_exp_1): Add 'pc' argument.
3479 (parse_exp_in_context): Add 'pc' argument. Change how
3480 expression_context_pc is set.
3481 (parse_expression): Update.
3482 (parse_field_expression): Update.
3483 * expression.h (parse_exp_1): Update.
3484 * eval.c (parse_to_comma_and_eval): Update.
3485 * breakpoint.c (set_breakpoint_condition): Update.
3486 (update_watchpoint): Update.
3487 (init_breakpoint_sal): Update
3488 (find_condition_and_thread): Update.
3489 (watch_command_1): Update.
3490 (update_breakpoint_locations): Update.
3491 * ada-lang.c (ada_read_renaming_var_value): Update.
3492 (create_excep_cond_exprs): Update.
3493
0bc3a05c
DE
34942012-06-27 Doug Evans <dje@google.com>
3495
3496 * dwarf2read.c (per_cu_header_read_in): Simplify, and handle
3497 type units.
3498
4bdcc0c1
DE
34992012-06-26 Doug Evans <dje@google.com>
3500
3501 * dwarf2read.c (read_and_check_comp_unit_head): Delete unnecessary
3502 prototype.
3503 (error_check_comp_unit_head): New arg abbrev_section. All callers
3504 updated.
3505 (read_and_check_comp_unit_head): Ditto.
3506 (read_and_check_type_unit_head): Ditto.
3507
ee0bf529
SCR
35082012-06-26 Siva Chandra Reddy <sivachandra@google.com>
3509
3510 New attribute 'last' for gdb.Symtab_and_line.
3511 * NEWS (Python Scripting): Add entry about the new attribute.
3512 * python/py-symtab.c (salpy_get_last): New function which
3513 implements the get method for the 'last' attribute of
3514 gdb.Symtab_and_line.
3515 (sal_object_getset): Add entry for the 'last' attribute.
3516
1c658ad5
DE
35172012-06-26 Doug Evans <dje@google.com>
3518
09262596
DE
3519 * dwarf2read.c (dwo_section_names): Add macinfo_dwo, macro_dwo.
3520 (dwo_sections): Add macinfo, macro.
3521 (dwarf2_locate_dwo_sections): Watch for macro sections.
3522 (dwarf_decode_macros): Remove args lh, abfd, section, section_name.
3523 All callers updated. Handle DWO files.
3524
45cfd468
DE
3525 * NEWS: Mention new options "set debug dwarf2-read" and
3526 "set debug symtab-create".
3527 * dwarf2read.c (dwarf2_read_debug): New static global.
3528 (dwarf2_build_psymtabs_hard): Add debugging printfs.
3529 (process_queue): Ditto.
3530 (process_full_comp_unit): Ditto.
3531 (_initialize_dwarf2_read): Add new option "set debug dwarf2-read".
3532 * elfread.c (elf_symfile_read): Add debugging printf.
3533 * minsyms.c (install_minimal_symbols): Ditto.
3534 * psymtab.c (allocate_psymtab): Ditto.
3535 * symfile.c (allocate_symtab): Ditto.
3536 * symtab.c (symtab_create_debug): New global.
3537 (_initialize_symtab): Add new option "set debug symtab-create".
3538 * symtab.h (symtab_create_debug): Declare.
3539
1c658ad5
DE
3540 * dwarf2read.c (lookup_dwo_comp_unit): Enhance comment.
3541 (lookup_dwo_type_unit): Ditto.
3542
6fea9e18
L
35432012-06-26 Roland McGrath <roland@hack.frob.com>
3544 H.J. Lu <hongjiu.lu@intel.com>
3545
3546 * amd64-linux-nat.c: Include <sys/user.h>.
3547 (ps_get_thread_area): Use PTRACE_PEEKUSER to get fs_base/gs_base
3548 if HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE or
3549 HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE is defined.
3550
3551 * configure.ac: Check if the fs_base and gs_base members of
3552 `struct user_regs_struct' exist.
3553 * config.in: Regenerated.
3554 * configure: Likewise.
3555
adb4fe3b
ME
35562012-06-25 Michael Eager <eager@eagercon.com>
3557
3558 PR python/14291
f782ad9b 3559 * python/python.c (gdbpy_write): Check for interrupted output.
adb4fe3b 3560
fc51cce1
MGD
35612012-06-25 Greta Yorsh <greta.yorsh@arm.com>
3562
3563 * arm-tdep.c (arm_in_function_epilogue_p): Recognize POP with a single
3564 register as a stack alignment in ARM mode.
3565
40a73391
JK
35662012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3567
3568 Update gnulib to GIT commit a39f53ccb70a613e647e1019fb4c63645220267e.
3569 * gnulib/config.in: Regenerate.
3570 * gnulib/configure: Likewise.
3571 * gnulib/import/m4/extensions.m4: Update it.
3572 * gnulib/import/m4/gnulib-common.m4: Likewise.
3573 * gnulib/import/m4/memmem.m4: Likewise.
3574 * gnulib/import/m4/mmap-anon.m4: Likewise.
3575 * gnulib/import/m4/multiarch.m4: Likewise.
3576 * gnulib/import/stdint.in.h: Likewise.
3577
972daa01
YQ
35782012-06-24 Yao Qi <yao@codesourcery.com>
3579
3580 * corefile.c (write_memory_with_notification): New.
3581 * gdbcore.h: Declare write_memory_with_notification.
3582 * ada-lang.c (ada_value_assign): Replace 'write_memory' and
3583 'observer_notify_memory_changed' with 'write_memory_with_notification'.
3584 * valops.c (value_assign): Likewise.
3585 * python/py-inferior.c (infpy_write_memory): Call
3586 'write_memory_with_notification'.
3587
8d6e0714
JK
35882012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3589
3590 * cc-with-index.sh: Use also -ex "set auto-load no".
3591
156942c7
DE
35922012-06-23 Doug Evans <dje@google.com>
3593
3594 PR 14125
3595 * NEWS: Document additions to .gdb_index.
3596 * dwarf2read.c: #include "gdb/gdb-index.h".
3597 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): New macro.
3598 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): New macro.
3599 (DW2_GDB_INDEX_CU_SET_VALUE): New macro.
3600 (dwarf2_read_index): Recognize version 7.
3601 (dw2_do_expand_symtabs_matching): New args want_specific_block,
3602 block_kind, domain): All callers updated.
3603 (dw2_find_symbol_file): Handle new index CU values.
3604 (dw2_expand_symtabs_matching): Match symbol kind if requested.
3605 (add_index_entry): New args is_static, kind. All callers updated.
3606 (offset_type_compare, uniquify_cu_indices): New functions
3607 (symbol_kind): New function.
3608 (write_psymtabs_to_index): Remove duplicate CU values.
3609 (write_psymtabs_to_index): Write .gdb_index version 7.
3610
352b3eda
JB
36112012-06-22 Joel Brobecker <brobecker@adacore.com>
3612
3613 * configure.ac (build_warnings): Add -Wdeclaration-after-statement.
3614 * configure: Regenerate.
3615
2678e2af
YQ
36162012-06-20 Yao Qi <yao@codesourcery.com>
3617
3618 * python/py-inferior.c: Update comments of infpy_read_memory
3619 and infpy_write_memory.
3620
95c391b6
TT
36212012-06-19 Tom Tromey <tromey@redhat.com>
3622
3623 PR exp/9514:
3624 * parser-defs.h (insert_type, insert_type_address_space): Declare.
3625 (push_type_address_space): Remove.
3626 * parse.c (insert_into_type_stack): New function.
3627 (insert_type): Likewise.
3628 (insert_type_address_space): Rename from push_type_address_space.
3629 Insert tp_space_identifier.
3630 * c-exp.y (ptr_operator): New production.
3631 (abs_decl): Use ptr_operator.
3632 (space_identifier): Call insert_type_address_space.
3633 (ptype): Don't use const_or_volatile_or_space_identifier.
3634 (const_or_volatile_noopt): Call insert_type.
3635 (conversion_type_id, conversion_declarator): New productions.
3636 (operator): Use conversion_type_id.
3637
6ac9ef80
DE
36382012-06-18 Doug Evans <dje@google.com>
3639
422d65e7
DE
3640 * symtab.h (minimal_symbol): New member created_by_gdb.
3641 * elfread.c (elf_symtab_read): Set created_by_gdb for @plt minsym
3642 created by gdb.
3643 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): New function.
3644 (search_symbols): Call it instead of lookup_symbol.
3645 Skip symbols created by gdb. Only scan minsyms if nfiles == 0.
3646
49f6c839
DE
3647 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_const_index.
3648 Adjust address for DW_OP_GNU_addr_index.
3649 * dwarf2expr.h (dwarf_expr_context): Update comment.
3650 * dwarf2loc.c (locexpr_describe_location_piece): New arg per_cu,
3651 all callers updated. Handle TLS vars described with
3652 DW_OP_GNU_const_index.
3653 (disassemble_dwarf_expression): Handle DW_OP_GNU_addr_index
3654 and DW_OP_GNU_const_index.
3655 * dwarf2read.c (decode_locdesc): Handle DW_OP_GNU_addr_index.
3656
6ac9ef80
DE
3657 * block.c (find_block_in_blockvector): Make explicit the fact that we
3658 ignore GLOBAL_BLOCK.
3659
4cd18215
TT
36602012-06-18 Tom Tromey <tromey@redhat.com>
3661
3662 * c-exp.y (operator): Remove trailing space after "delete" and
3663 "delete[]".
3664
a9b8d892
JK
36652012-06-18 Mark Kettenis <kettenis@gnu.org>
3666 Jan Kratochvil <jan.kratochvil@redhat.com>
3667
3668 Switch i386 and derived targets to ON_STACK.
3669 * amd64-dicos-tdep.c (amd64_dicos_push_dummy_code): Remove.
3670 (amd64_dicos_init_abi): Remove its installment.
3671 * dicos-tdep.c (dicos_init_abi): Remove the
3672 set_gdbarch_call_dummy_location call. Update the comment here.
3673 * i386-dicos-tdep.c (i386_dicos_push_dummy_code): Remove.
3674 (i386_dicos_init_abi): Remove its installment.
3675 * i386-tdep.c (i386_push_dummy_code): New function.
3676 (i386_gdbarch_init): Call set_gdbarch_call_dummy_location, install
3677 i386_push_dummy_code.
3678
e2e4d78b
JK
36792012-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
3680
3681 Remove stale dummy frames.
3682 * breakpoint.c: Include dummy-frame.h.
3683 (longjmp_breakpoint_ops): New variable.
3684 (update_breakpoints_after_exec, breakpoint_init_inferior): Delete also
3685 bp_longjmp_call_dummy.
3686 (bpstat_what, bptype_string, print_one_breakpoint_location)
3687 (init_bp_location): Support bp_longjmp_call_dummy.
3688 (set_longjmp_breakpoint): Use longjmp_breakpoint_ops. Comment why.
3689 (set_longjmp_breakpoint_for_call_dummy)
3690 (check_longjmp_breakpoint_for_call_dummy, longjmp_bkpt_dtor): New
3691 functions.
3692 (initialize_breakpoint_ops): Initialize longjmp_breakpoint_ops.
3693 * breakpoint.h (enum bptype): New item bp_longjmp_call_dummy. Delete
3694 FIXME comment and extend the other comment for bp_call_dummy.
3695 (set_longjmp_breakpoint_for_call_dummy)
3696 (check_longjmp_breakpoint_for_call_dummy): New declarations.
3697 * dummy-frame.c: Include gdbthread.h.
3698 (pop_dummy_frame_bpt): New function.
3699 (pop_dummy_frame): Call pop_dummy_frame_bpt.
3700 (dummy_frame_discard): New function.
3701 (cleanup_dummy_frames): Update the comment about longjmps.
3702 * dummy-frame.h (dummy_frame_discard): New declaration.
3703 * gdbthread.h (struct thread_info): Extend initiating_frame comment.
3704 * infcall.c (call_function_by_hand): New variable longjmp_b. Call
3705 set_longjmp_breakpoint_for_call_dummy. Chain its breakpoints with BPT.
3706 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>:
3707 Add case 4 comment. Call check_longjmp_breakpoint_for_call_dummy and
3708 keep_going if IS_LONGJMP and there is no other reason to stop.
3709
09d5912c
TT
37102012-06-18 Greta Yorsh <Greta.Yorsh@arm.com>
3711
3712 * remote-sim.c (sim_command_completer): Initialize
3713 variable 'result'.
3714
1788b2d3
JK
37152012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3716
3717 * dwarf2expr.c (execute_stack_op): Support DW_OP_GNU_parameter_ref.
3718 * dwarf2loc.c (call_site_parameter_matches): Support
3719 CALL_SITE_PARAMETER_PARAM_OFFSET.
3720 (needs_dwarf_reg_entry_value): Push stub value.
3721 * dwarf2read.c (read_call_site_scope): New variable origin. Support
3722 CALL_SITE_PARAMETER_PARAM_OFFSET and its DW_AT_abstract_origin.
3723 * gdbtypes.h (enum call_site_parameter_kind): New item
3724 CALL_SITE_PARAMETER_PARAM_OFFSET.
3725 (struct call_site.parameter.u): New field param_offset.
3726
24c5c679
JK
37272012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3728
3729 Code cleanup: Generalize call_site.parameter key.
3730 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_entry_value>: Remove
3731 variable dwarf_reg. New variable kind_u. Update parameters to
3732 push_dwarf_reg_entry_value.
3733 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
3734 * dwarf2expr.h (enum call_site_parameter_kind)
3735 (union call_site_parameter_u): Forward declarations.
3736 (struct dwarf_expr_context_funcs): Update parameters and their
3737 description for push_dwarf_reg_entry_value.
3738 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
3739 * dwarf2loc.c (call_site_parameter_matches): New function.
3740 (dwarf_expr_reg_to_entry_parameter): Update parameters and their
3741 description. Use call_site_parameter_matches.
3742 (dwarf_expr_push_dwarf_reg_entry_value, value_of_dwarf_reg_entry):
3743 Update parameters and their description.
3744 (value_of_dwarf_block_entry): Remove variables dwarf_reg and fb_offset.
3745 New variable kind_u. Adjust the caller for updated parameters.
3746 (needs_dwarf_reg_entry_value): Update parameters.
3747 * dwarf2read.c (read_call_site_scope): New variable loc. Use it
3748 instead of attr. Update for the changed fields of struct
3749 call_site_parameter.
3750 * gdbtypes.h: Include dwarf2expr.h.
3751 (enum call_site_parameter_kind): New.
3752 (struct call_site.parameter): New field kind. Wrap dwarf_reg and
3753 fb_offset into new union u.
3754
ac142d96
L
37552012-06-16 H.J. Lu <hongjiu.lu@intel.com>
3756
3757 * amd64-tdep.c (amd64_x32_analyze_stack_align): New function.
3758 (amd64_analyze_prologue): Call amd64_x32_analyze_stack_align
3759 for x32.
3760
ba224c70
L
37612012-06-16 H.J. Lu <hongjiu.lu@intel.com>
3762
3763 * amd64-linux-nat.c (compat_x32_clock_t): New.
3764 (compat_x32_siginfo_t): Likewise.
3765 (compat_x32_siginfo_from_siginfo): Likewise.
3766 (siginfo_from_compat_x32_siginfo): Likewise.
3767 (amd64_linux_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
3768 and siginfo_from_compat_x32_siginfo for x32.
3769
7ecbc825
HZ
37702012-06-15 Hui Zhu <hui_zhu@mentor.com>
3771
3772 * tracepoint.c (tfile_xfer_partial): Add a lseek.
3773
233dfcf0
L
37742012-06-15 H.J. Lu <hongjiu.lu@intel.com>
3775
3776 * amd64-linux-nat.c (ps_get_thread_area): Check bits_per_word
3777 instead of gdbarch_ptr_bit.
3778 * amd64-nat.c (amd64_native_gregset_reg_offset): Likewise.
3779 (amd64_supply_native_gregset): Likewise.
3780 (amd64_collect_native_gregset): Likewise.
3781 * amd64-tdep.c (amd64_supply_fxsave): Likewise.
3782 (amd64_supply_xsave): Likewise.
3783 (amd64_collect_fxsave): Likewise.
3784 (amd64_collect_xsave): Likewise.
3785
6da38f42
L
37862012-06-15 H.J. Lu <hongjiu.lu@intel.com>
3787
3788 * amd64-linux-nat.c (AMD64_LINUX_X32_DS): New.
3789 (amd64_linux_read_description): Check DS segment register for
3790 x32 process.
3791
663b969e
TT
37922012-06-15 Tom Tromey <tromey@redhat.com>
3793
3794 * dwarf2read.c (dw2_find_symbol_file): Unconditionally use
3795 init_cutu_and_read_dies.
3796
d6f05027
IS
37972012-06-15 Iain Sandoe <iain@codesourcery.com>
3798
3799 * MAINTAINERS (Write After Approval): Add myself to the list.
3800
6598ed07
TT
38012012-06-15 Tom Tromey <tromey@redhat.com>
3802
3803 * valops.c (value_find_oload_method_list): Now static.
3804 * value.h (value_find_oload_method_list): Don't declare.
3805
2b214ea6
TT
38062012-06-15 Tom Tromey <tromey@redhat.com>
3807
3808 * valops.c (find_overload_match): Use value_ind.
3809
a210c238
MR
38102012-06-15 Maciej W. Rozycki <macro@codesourcery.com>
3811
3812 * infrun.c (handle_inferior_event): Correct indentation.
3813
3771a44c
DE
38142012-06-14 Doug Evans <dje@google.com>
3815
3816 * dwarf2loc.c (debug_loc_kind): Add DEBUG_LOC_START_LENGTH.
3817 (DEBUG_LOC_START_END): Renamed from DEBUG_LOC_NORMAL.
3818 All uses updated.
3819 (decode_debug_loc_dwo_addresses): New arg "byte_order". All callers
3820 updated. Handle DEBUG_LOC_START_LENGTH.
3821 (dwarf2_find_location_expression): Handle DEBUG_LOC_START_LENGTH.
3822 (loclist_describe_location): Ditto.
3823
1c5a993e
MR
38242012-06-14 Maciej W. Rozycki <macro@codesourcery.com>
3825
3826 PR backtrace/13866
3827 * infrun.c (handle_inferior_event): Re-fetch frame and gdbarch
3828 after hiding inline functions.
3829
0b155465
JB
38302012-06-13 Joel Brobecker <brobecker@adacore.com>
3831
3832 * inf-ttrace.c (_initialize_hppa_hpux_nat): Rename into
3833 _initialize_inf_ttrace.
3834
45717bac
JB
38352012-06-13 Joel Brobecker <brobecker@adacore.com>
3836
3837 * ia64-hpux-nat.c (_initialize_ia64_hpux_nat): Renames
3838 _initialize_hppa_hpux_nat.
3839
34370865
JB
38402012-06-13 Joel Brobecker <brobecker@adacore.com>
3841
3842 * remote-sim.c (sim_command_completer): Change type of return
3843 value to "VEC (char_ptr) *". Adjust implementation accordingly.
3844
284c5a60
MK
38452012-06-13 Mark Kettenis <kettenis@gnu.org>
3846 Jan Kratochvil <jan.kratochvil@redhat.com>
3847
3848 PR tdep/14222
3849 * i386-tdep.c (i386_push_dummy_call): Unconditionally align the
3850 stack on a 16-byte boundary.
3851
2535757a
TT
38522012-06-13 Kaushik Srenevasan <kaushik@twitter.com>
3853
3854 * jit.c (finalize_symtab): Set function's return type to 'void' by
3855 default.
3856
fff4548b
MK
38572012-06-13 Mark Kettenis <kettenis@gnu.org>
3858 H.J. Lu <hongjiu.lu@intel.com>
3859
5a83521a
MK
3860 * amd64-linux-tdep.c (amd64_linux_init_abi_common): New function.
3861 Move bits common to both the classic LP64 and the new x32 ILP32
3862 ABI here.
3863 (amd64_linux_init_abi): Call amd64_linux_init_abi_common.
3864 (amd64_x32_linux_init_abi): New function.
3865 (_initialize_amd64_linux_tdep): Register osabi for bfd_mach_x64_32
3866 subtype.
3867
fff4548b
MK
3868 * i386-tdep.h (i386_pseudo_register_name): New prototype.
3869 * i386-tdep.c (i386_pseudo_register_name): Make public.
3870 * amd64-tdep.h (amd64_x32_init_abi): New prototype.
3871 * amd64-tdep.c (amd64_dword_names): Add "eip".
3872 (amd64_x32_pseudo_register_type): New function
3873 (amd64_x32_init_abi): New function.
3874
dd80ea3c
JK
38752012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3876
3877 PR build/14003
3878 * inferior.h (struct inferior_suspend_state): Comment out.
3879 (struct inferior): Comment out the field suspend.
3880 * infrun.c (struct infcall_suspend_state): Comment out the field
3881 inferior_suspend.
3882 (save_infcall_suspend_state, restore_infcall_suspend_state): Comment
3883 out its assignment.
3884
50af5481
JK
38852012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3886
3887 PR c++/14177 - Fix parsing TYPENAME:: in parentheses.
3888 * c-exp.y (classify_inner_name): Remove caller assumptions in the
3889 function comment. Return ERROR for unresolved cases. Implement
3890 returning proper NAME.
3891 (yylex): Accept also NAME from classify_inner_name.
3892 * cp-namespace.c (cp_lookup_nested_type): Rename to ...
3893 (cp_lookup_nested_symbol): ... here. Return any found symbol, not just
3894 LOC_TYPEDEF type.
3895 * cp-support.h (cp_lookup_nested_type): Update its declaration.
3896
d55637df
TT
38972012-06-13 Tom Tromey <tromey@redhat.com>
3898
3899 * breakpoint.c (condition_completer): New function.
3900 (_initialize_breakpoint): Use it.
3901 * value.c (complete_internalvar): New function.
3902 * value.h (complete_internalvar): Declare.
3903
49c4e619
TT
39042012-06-13 Tom Tromey <tromey@redhat.com>
3905
3906 * ada-lang.c (ada_make_symbol_completion_list): Return a VEC.
3907 * breakpoint.c (catch_syscall_completer): Return a VEC.
3908 * cli/cli-cmds.c (complete_command): Update.
3909 * cli/cli-decode.c (complete_on_cmdlist): Return a VEC.
3910 (complete_on_enum): Likewise.
3911 * command.h: Include gdb_vecs.h.
3912 (completer_ftype): Change return type.
3913 (complete_on_cmdlist, complete_on_enum): Likewise.
3914 * completer.c (noop_completer, filename_completer)
3915 (location_completer): Return a VEC.
3916 (add_struct_fields): Remove 'nextp' argument. Change 'output'
3917 to a VEC.
3918 (expression_completer, complete_line_internal, complete_line)
3919 (command_completer): Return a VEC.
3920 (gdb_completion_word_break_characters, line_completion_function):
3921 Update.
3922 * completer.h: Include gdb_vecs.h.
3923 (complete_line, noop_completer, filename_completer)
3924 (expression_completer, location_completer, command_completer):
3925 Update.
3926 * f-lang.c (f_word_break_characters): Return a VEC.
3927 * interps.c (interpreter_completer): Return a VEC.
3928 * language.h (struct language_defn)
3929 <la_make_symbol_completion_list>: Return a VEC.
3930 * python/py-cmd.c (cmdpy_completer): Return a VEC.
3931 * symtab.c (free_completion_list): Take a VEC.
3932 (return_val_size, return_val_index): Remove.
3933 (return_val): Now a VEC.
3934 (completion_list_add_name): Update.
3935 (default_make_symbol_completion_list_break_on)
3936 (default_make_symbol_completion_list, make_symbol_completion_list)
3937 (make_symbol_completion_list_fn, make_file_symbol_completion_list):
3938 Return a VEC.
3939 (add_filename_to_list): Update.
3940 (struct add_partial_filename_data) <list_used, list_alloced>: Remove.
3941 <list>: Now a VEC.
3942 (maybe_add_partial_symtab_filename): Update.
3943 (make_source_files_completion_list): Return a VEC.
3944 * symtab.h (default_make_symbol_completion_list_break_on)
3945 (default_make_symbol_completion_list, make_symbol_completion_list)
3946 (make_symbol_completion_list_fn, make_file_symbol_completion_list)
3947 (make_source_files_completion_list): Update.
3948
625e8578
TT
39492012-06-13 Tom Tromey <tromey@redhat.com>
3950
3951 * breakpoint.c (add_catch_command): Use completer_ftype.
3952 * breakpoint.h: Include command.h.
3953 (add_catch_command): Use completer_ftype.
3954 * cli/cli-decode.c (set_cmd_completer): Use completer_ftype.
3955 * cli/cli-decode.h (struct cmd_list_element) <completer>:
3956 Use completer_ftype.
3957 * command.h (completer_ftype): New typedef.
3958 (set_cmd_completer): Use it.
3959 * python/py-cmd.c (struct cmdpy_completer) <completer>: Use
3960 completer_ftype.
3961
5eb3b062
PA
39622012-06-13 Pedro Alves <palves@redhat.com>
3963
3964 Partial revert of previous change.
3965
3966 * serial.c (scb_base): New global.
3967 (serial_for_fd): New.
3968 (serial_open, serial_fdopen_ops): Link new serial in open serials
3969 chain.
3970 (do_serial_close): Unlink serial from the open serials chain.
3971
8b3ee56d
PA
39722012-06-12 Pedro Alves <palves@redhat.com>
3973
3974 * infrun.c (infrun_thread_stop_requested_callback): Don't switch
3975 threads here.
3976 (prepare_for_detach): No longer context switch here in non-stop
3977 mode.
3978 (fetch_inferior_event): Ditto.
3979 (handle_inferior_event) <STOP_QUIETLY || NO_STOP_QUIETLY>: Switch
3980 to the event thread before removing breakpoints. Switch to the
3981 event thread before inserting breakpoints and resuming.
3982 (handle_inferior_event) <TARGET_WAITKIND_SPURIOUS>: Switch to the
3983 event thread before resuming.
3984 (handle_inferior_event) <stepping_past_singlestep_breakpoint>:
3985 Switch to the event thread before removing breakpoints.
3986
5d60742e
EZ
39872012-06-12 Eli Zaretskii <eliz@gnu.org>
3988
3989 * infcmd.c (construct_inferior_arguments) [__MINGW32__]: Quote
3990 special characters correctly for the Windows shells. See
3991 http://sourceware.org/ml/gdb/2012-06/msg00047.html for the bug
3992 report.
3993 [!__MINGW32__]: Remove extra double quote character from special
3994 characters.
3995
a6feecf7
SS
39962012-06-11 Stan Shebs <stan@codesourcery.com>
3997
3998 * ui-out.h: Remove #if 0 declarations.
3999 * ui-out.c: Remove #if 0 functions.
4000
ddefb60f
PA
40012012-06-11 Pedro Alves <palves@redhat.com>
4002
4003 * ser-base.c (run_async_handler_and_reschedule): New.
4004 (fd_event, push_event): Use it.
4005 * serial.c (serial_open, serial_fdopen_ops): Set the initial
4006 reference count to 1.
4007 (do_serial_close): Set the bufp field to NULL. Use serial_unref
4008 instead of xfree.
4009 (serial_is_open, serial_ref, serial_unref): New.
4010 * serial.h (serial_open): Adjust comment.
4011 (serial_is_open): Declare.
4012 (serial_close): Adjust comment.
4013 (serial_ref, serial_unref) Declare.
4014 (struct serial): New field 'refcnt'.
4015
d5ad6aa5
PA
40162012-06-11 Pedro Alves <palves@redhat.com>
4017
4018 Remove #if 0'd "connect" command, and unnecessary associated
4019 refcounting and serial reuse bits.
4020
4021 * serial.h (struct serial): Remove fields 'next' and 'refcnt'.
4022 * serial.c (last_serial_opened): Delete.
4023 (scb_base): Delete.
4024 (serial_open): Adjust.
4025 (serial_for_fd): Delete.
4026 (serial_fdopen_ops, do_serial_close): Adjust.
4027 (serial_fdopen_ops): Adjust.
4028
318aa544
PA
40292012-06-11 Pedro Alves <palves@redhat.com>
4030
4031 * serial.c (do_serial_close): Remove early return when SCB is
4032 null.
4033
07261596
TT
40342012-06-11 Tom Tromey <tromey@redhat.com>
4035
4036 * dwarf2read.c (dw2_get_file_names_reader): Ignore partial units.
4037
cc80f267
JK
40382012-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4039
4040 Fix regression by the "ambiguous linespec" series.
4041 * breakpoint.c (parse_breakpoint_sals): New variable cursal. Use
4042 get_last_displayed_symtab and get_last_displayed_line and depending
4043 on CURSAL.
4044
356d9f9d
TT
40452012-06-11 Tom Tromey <tromey@redhat.com>
4046
4047 * dwarf2read.c (dw2_get_primary_filename_reader): New function.
4048 (dw2_find_symbol_file): Use it.
4049
232b8704
ME
40502012-06-11 Michael Eager <eager@eagercon.com>
4051
4052 * mips-linux-tdep.c (mips_gdb_signal_from_target): New
4053 * mips-linux-tdep.h (mips_signals): New
4054
e81a37f7
TT
40552012-06-11 Tom Tromey <tromey@redhat.com>
4056
4057 * infrun.c (handle_inferior_event)
4058 <BPSTAT_WHAT_SET_LONGJMP_RESUME>: Don't delete the step-resume
4059 breakpoint.
4060 <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>: Remove longjmp logic; use
4061 exception logic in all cases. Update comments.
4062 (insert_longjmp_resume_breakpoint): Set the exception resume
4063 breakpoint.
4064
2e81047f
MR
40652012-06-11 Maciej W. Rozycki <macro@codesourcery.com>
4066
4067 * mips-tdep.c (mips_push_dummy_code): Handle microMIPS code.
4068
4e32eda7
SCR
40692012-06-09 Siva Chandra Reddy <sivachandra@google.com>
4070
4071 * valarith.c (binop_types_user_defined_p): Fix a typo.
4072
18648a37 40732012-06-08 Yao Qi <yao@codesourcery.com>
f782ad9b 4074 Chung-Lin Tang <cltang@codesourcery.com>
18648a37
YQ
4075
4076 * arch-utils.c (default_return_in_first_hidden_param_p): New.
4077 * arch-utils.h: Declare.
4078 * gdbarch.sh: Add return_in_first_hidden_param_p.
4079 * gdbarch.c, gdbarch.h: Regenerated.
4080 * infcall.c (call_function_by_hand): Call
4081 gdbarch_return_in_first_hidden_param_p instead of
4082 language_pass_by_reference.
4083
4084 * m68k-tdep.c (m68k_return_in_first_hidden_param_p): New.
4085 (m68k_gdbarch_init): Install m68k_return_in_first_hidden_param_p.
4086 * sh-tdep.c (sh_return_in_first_hidden_param_p): New.
4087 (sh_gdbarch_init): Install sh_return_in_first_hidden_param_p.
4088 * tic6x-tdep.c (tic6x_push_dummy_call): Remove local variable
4089 `cplus_return_struct_by_reference'.
4090 (tic6x_return_value): Handle language cplusplus.
4091 (tic6x_return_in_first_hidden_param_p): New.
4092 (tic6x_gdbarch_init): Install tic6x_return_in_first_hidden_param_p.
4093
034e5797
DE
40942012-06-07 Doug Evans <dje@google.com>
4095
4096 * dwarf2read.c (dwarf2_cu): Add comment.
4097
6a00aa1e
MR
40982012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
4099
4100 * mips-tdep.c (mips_pseudo_register_type): Remove tdep local
4101 variable.
4102 (mips_eabi_push_dummy_call): Likewise.
4103 (mips_n32n64_push_dummy_call): Likewise.
4104 (mips_o32_push_dummy_call): Likewise.
4105 (mips_o64_push_dummy_call): Likewise.
4106
eaa05d59
MR
41072012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
4108
4109 * mips-tdep.c (mips_convert_register_p): Correct coding style.
4110
de13fcf2
MR
41112012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
4112
4113 * mips-tdep.c (mips_pseudo_register_type): Use
4114 mips_float_register_p.
4115
c3a01a22
PA
41162012-06-06 Pedro Alves <palves@redhat.com>
4117
4118 * infrun.c (handle_inferior_event): Remove calls to
4119 reinit_frame_cache that follow a context_switch call.
4120
d25f45d9
PA
41212012-06-06 Pedro Alves <palves@redhat.com>
4122
4123 * infrun.c (handle_inferior_event) <deferred_step_ptid>: Use
4124 context_switch and remove stale comment.
4125
359f5fe6
PA
41262012-06-06 Pedro Alves <palves@redhat.com>
4127
4128 * infrun.c (struct execution_control_state): Remove
4129 `new_thread_event' field.
4130 (handle_inferior_event): Simplify new threads handling; don't
4131 resume the inferior if we find a new thread.
4132
2d4c29c5
TS
41332012-06-06 Thomas Schwinge <thomas@codesourcery.com>
4134
4135 * NEWS: Document the deprecation of SH's 'regs' command.
4136 * inferior.h (all_registers_info): Add function declaration.
4137 * sh-tdep.c (sh_show_regs): Remove variable.
4138 (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs, sh2a_show_regs)
4139 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
4140 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs)
4141 (sh_show_regs_command): Remove functions.
4142 (sh_gdbarch_init): Don't set sh_show_regs.
4143 (_initialize_sh_tdep): Make the 'regs' command an deprecated alias to
4144 'info all-registers'.
4145 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs)
4146 (sh64_show_regs): Remove functions.
4147 * sh64-tdep.h (sh64_show_regs): Remove function declaration.
4148
f5f1cdb6
JK
41492012-06-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4150
4151 * configure.ac: Move development=true below AC_INIT.
4152 * configure: Regenerate.
4153
bf6309af
SS
41542012-06-05 Stan Shebs <stan@codesourcery.com>
4155
4156 * mi/mi-interp.c (mi_interpreter_init): Set raw_stdout from
4157 gdb_stdout.
4158
45aa4659
JK
41592012-06-05 Siddhesh Poyarekar <siddhesh@redhat.com>
4160
4161 * corefile.c (read_memory, read_stack, write_memory): Accept LEN
4162 argument as ssize_t.
4163 * gdbcore.h (read_memory, read_stack, write_memory): Likewise.
4164 * remote.c (remote_write_bytes_aux, remote_write_bytes): Likewise.
4165 * target.c (target_read_stack, target_write_memory)
4166 (target_write_raw_memory): Likewise.
4167 * target.h (target_read_stack, target_write_memory)
4168 (target_write_raw_memory): Likewise.
4169
1b162304
JK
41702012-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
4171
4172 * symfile-mem.c: Change gdb_static_assert to ssize_t.
4173 (target_read_memory_bfd): Cast gdb_assert LEN to ssize_t.
4174 * target.c (target_read_memory): Change LEN to ssize_t.
4175 * target.h (target_read_memory): Change LEN to ssize_t.
4176
8556afb4
PA
41772012-06-05 Pedro Alves <palves@redhat.com>
4178
4179 PR backtrace/13866
4180
4181 * breakpoint.c (until_break_command): Only fetch the selected
4182 frame after decode_line_1.
4183
fb139f32
PA
41842012-06-05 Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
4185
4186 * solib-svr4.c (enable_break): Don't fallback to setting the solib
4187 event breakpoint at _start, __start or main if a program
4188 interpreter is not found.
4189
a8e1bb34
JB
41902012-06-05 Joel Brobecker <brobecker@adacore.com>
4191
4192 * windows-tdep.h (windows_iterate_over_objfiles_in_search_order):
4193 Add declaration.
4194 * windows-tdep.c: #include "objfiles.h".
4195 (windows_iterate_over_objfiles_in_search_order): New function.
4196 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
4197 iterate_over_objfiles_in_search_order gdbarch method to
4198 windows_iterate_over_objfiles_in_search_order.
4199 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
4200
19630284
JB
42012012-06-05 Joel Brobecker <brobecker@adacore.com>
4202
4203 * gdbarch.sh: Add generation of
4204 "iterate_over_objfiles_in_search_order_cb_ftype" typedef in
4205 gdbarch.h. Add include of "objfiles.h" in gdbarch.c.
4206 (iterate_over_objfiles_in_search_order): New gdbarch method.
4207 * gdbarch.h, gdbarch.c: Regenerate.
4208 * objfiles.h (default_iterate_over_objfiles_in_search_order):
4209 Add declaration.
4210 * objfiles.c (default_iterate_over_objfiles_in_search_order):
4211 New function.
4212 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
4213 out of lookup_symbol_aux_symtabs.
4214 (lookup_symbol_aux_symtabs): Replace extracted-out code by
4215 call to lookup_symbol_aux_objfile.
4216 (struct global_sym_lookup_data): New type.
4217 (lookup_symbol_global_iterator_cb): New function.
4218 (lookup_symbol_global): Search for symbol using
4219 gdbarch_iterate_over_objfiles_in_search_order and
4220 lookup_symbol_global_iterator_cb.
4221 * findvar.c (struct minsym_lookup_data): New type.
4222 (minsym_lookup_iterator_cb): New function.
4223 (default_read_var_value) [case LOC_UNRESOLVED]: Resolve the
4224 symbol's address via gdbarch_iterate_over_objfiles_in_search_order
4225 and minsym_lookup_iterator_cb.
4226
67ff19f7
JB
42272012-06-05 Joel Brobecker <brobecker@adacore.com>
4228
4229 Revert the following patch:
4230 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
4231 try locating the symbol in the symbol's own objfile first, before
4232 extending the search to all objfiles.
4233 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
4234 out of lookup_symbol_aux_symtabs.
4235 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
4236 Replace extracted-out code by call to lookup_symbol_aux_objfile.
4237 Do not search EXCLUDE_OBJFILE.
4238 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
4239 (lookup_symbol_global): Search for matches in the block's objfile
4240 first, before searching all other objfiles.
4241
ccab2054
JB
42422012-06-05 Joel Brobecker <brobecker@adacore.com>
4243
4244 * breakpoint.c (find_condition_and_thread): Stop parsing
4245 as soon as the first invalid keyword is found.
4246
e23d4a9c
JB
42472012-06-05 Joel Brobecker <brobecker@adacore.com>
4248
4249 * copyright.py (EXCLUDE_LIST): Add 'gdb/CONTRIBUTE' to list.
4250
70160166
JB
42512012-06-05 Joel Brobecker <brobecker@adacore.com>
4252
4253 * config/djgpp/djcheck.sh: Add copyright header.
4254
399501a5
JB
42552012-06-05 Joel Brobecker <brobecker@adacore.com>
4256
4257 * copyright.py (update_files, main): Fix path to update-copyright
4258 script.
4259
3770a159
JB
42602012-06-05 Joel Brobecker <brobecker@adacore.com>
4261
4262 * copyright.py (MULTIPLE_COPYRIGHT_HEADERS): New constant.
4263 (main): Add MULTIPLE_COPYRIGHT_HEADERS to the list of files
4264 for which a reminder to update by hand is printed.
4265
4aad0dfc
DE
42662012-06-04 Doug Evans <dje@google.com>
4267
4268 * buildsym.c (make_blockvector): Add comment.
4269
1f8cf220
PA
42702012-06-04 Pedro Alves <palves@redhat.com>
4271
4272 * arch-utils.c (default_gdb_signal_from_target): Delete.
4273 * arch-utils.h (default_gdb_signal_from_target): Delete.
4274 * corelow.c (core_open) <signal mapping>: Extended comment. Check
4275 gdbarch_gdb_signal_from_target_p.
4276 * gdbarch.sh (gdb_signal_from_target): Make it an M method (with
4277 predicate).
4278 * gdbarch.h: Regenerate.
4279 * gdbarch.c: Regenerate.
4280
86b49880
PA
42812012-06-04 Pedro Alves <palves@redhat.com>
4282
4283 * gdbarch.sh (gdb_signal_from_target): Mention that the
4284 implementation of the method must be host independent.
4285 * gdbarch.h: Regenerate.
4286
fe78531d
JK
42872012-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4288
4289 * symfile-mem.c: 3 new gdb_static_assert for target_read_memory_bfd
4290 parameters.
4291 (target_read_memory_bfd): New function.
4292 (symbol_file_add_from_memory): Use it.
4293
d790cf0a
DE
42942012-06-03 Doug Evans <dje@google.com>
4295
78e5175a
DE
4296 * symtab.c (lookup_global_symbol_from_objfile): Only scan blockvector
4297 of primary symtab.
4298 (basic_lookup_transparent_type): Ditto.
4299
d790cf0a
DE
4300 * objfiles.h (ALL_OBJFILE_PRIMARY_SYMTABS): New macro.
4301 (ALL_PRIMARY_SYMTABS): Use it.
4302 (ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
4303 * dwarf2read.c (dw2_find_symbol_file): Ditto.
4304 * linespec.c (iterate_over_all_matching_symtabs): Ditto.
4305 * symtab.c (lookup_symbol_aux_objfile): Ditto.
4306 (basic_lookup_transparent_type): Ditto.
4307
c6e5ee5e
SDJ
43082012-06-02 Sergio Durigan Junior <sergiodj@redhat.com>
4309
4310 * symtab.c (symbol_demangled_name): New variable `dem_name'. Use
4311 it to optimize resolution of demangled name.
4312
a68ffae9
JK
43132012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4314
4315 * configure.ac (development): Define new variable.
4316 Call AC_CHECK_LIB for mcheck if $development.
4317 (ERROR_ON_WARNING): Enable it by default only if $development.
4318 * config.in: Regenerate.
4319 * configure: Regenerate.
4320
5299c1c4
JK
43212012-06-01 Siddhesh Poyarekar <siddhesh@redhat.com>
4322
4323 * target.c (target_read_memory): Make LEN argument as size_t.
4324 * target.h (target_read_memory): Likewise.
4325
43262012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
7c71816c
JK
4327
4328 * tilegx-linux-tdep.c (tilegx_l): Use ULL for 64-bit values.
4329
0c56f59b
EBM
43302012-05-31 Edjunior Machado <emachado@linux.vnet.ibm.com>
4331
4332 * ppc-linux-nat.c (have_ptrace_booke_interface): Disable ptrace
4333 BookE interface for PowerPC server processors if not available
4334 in the Linux Kernel.
4335
71bdabee
KS
43362012-05-31 Keith Seitz <keiths@redhat.com>
4337
4338 * linespec.c (decode_objc): Add cleanup to free
4339 INFO.FILE_SYMTABS.
4340 (find_linespec_symbols): Add cleanup to free CLASSES.
4341 * symfile.c (find_separate_debug_file_by_debuglink): Add
4342 cleanup to free DEBUGLINK.
4343 * ui-out.c (clear_header_list): No need to check if
4344 HEADER_NEXT.COLHDR is NULL.
4345 Free HEADER_NEXT.COL_NAME.
4346
acbd605d
MGD
43472012-05-31 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
4348
4349 * ada-lang.c (standard_lookup): Prevent uninitialized variable
4350 warning.
4351
65662cde
PA
43522012-05-30 Jeff Kenton <jkenton@tilera.com>
4353
4354 * configure.host (gdb_host_cpu): Handle tilegx*.
4355 (gdb_host): Handle tilegx-*-linux*.
4356 * tilegx-linux-nat.c: New file.
4357 * config/tilegx/linux.mh: New file.
4358
ade64f0e
PA
43592012-05-30 Jeff Kenton <jkenton@tilera.com>
4360
4361 * Makefile.in (ALL_TARGET_OBJS): Add tilegx-tdep.o and
4362 tilegx-linux-tdep.o.
4363 (ALLDEPFILES): Add tilegx-linux-nat.c, tilegx-tdep.c and
4364 tilegx-linux-tdep.c.
4365 * configure.tgt: Handle tilegx-*-linux*.
4366 * tilegx-tdep.h: New file.
4367 * tilegx-tdep.c: New file.
4368 * tilegx-linux-tdep.c: New file.
4369 * regformats/reg-tilegx.dat: New file.
4370
bb08bdbd
EBM
43712012-05-30 Edjunior Machado <emachado@linux.vnet.ibm.com>
4372
4373 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): fix
4374 accounting of hw watchpoints on ppc.
4375
ebd86fb5
TJB
43762012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
4377
4378 * source.c (openp): Expand tilde in path entries.
4379
0a0edcd5
DE
43802012-05-29 Doug Evans <dje@google.com>
4381
98cc87bd
DE
4382 * buildsym.c (block_compar): Fix comment.
4383 (end_symtab): Fix and clarify some comments.
4384
0a0edcd5
DE
4385 * stabsread.h (cleanup_undefined_stabs_types): Renamed from
4386 cleanup_undefined_types.
4387 * stabsread.c (cleanup_undefined_stabs_types): Ditto.
4388 All callers updated.
4389
6f0c7050
TT
43902012-05-29 Tom Tromey <tromey@redhat.com>
4391
4392 * symfile.c (symfile_bfd_open): Don't close desc if bfd_fopen
4393 fails.
4394 * solib.c (solib_bfd_fopen): Don't close fd if bfd_fopen fails.
4395 * exec.c (exec_file_attach): Don't close scratch_chan if bfd_fopen
4396 fails.
4397 * dwarf2read.c (try_open_dwo_file): Don't close fd if bfd_fopen
4398 fails.
4399
ec95993c
TG
44002012-05-29 Tristan Gingold <gingold@adacore.com>
4401
4402 * solib-darwin.c (dyld_all_image_addr, dyld_all_image): Move into...
4403 (struct darwin_info): ... New struct.
4404 (solib_darwin_pspace_data): New variable.
4405 (darwin_pspace_data_cleanup): New function.
4406 (get_darwin_info): Likewise.
4407 (darwin_dyld_version_ok, darwin_load_image_infos)
4408 (darwin_solib_get_all_image_info_addr_at_init)
4409 (darwin_solib_read_all_image_info_addr): Add info argument.
4410 Adjust code.
4411 (darwin_current_sos): Use per pspace structure.
4412 (darwin_solib_create_inferior_hook): Likewise.
4413 (darwin_clear_solib): Likewise.
4414 (_initialize_darwin_solib): Initialize solib_darwin_pspace_data.
4415
ae25568b
PA
44162012-05-28 Pedro Alves <palves@redhat.com>
4417
4418 * infrun.c (wait_for_inferior): Move ecss and ecs locals to the
4419 block that uses them. Clear ecss before handling each event.
4420
0c5bf5a9
JK
44212012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4422
4423 * solib-svr4.c (svr4_current_sos): New comment on
4424 svr4_current_sos_via_xfer_libraries fall back.
4425
bfb05775
JK
44262012-05-24 Jan Kratochvil <jan.kratochvil@redhat.com>
4427
4428 * psymtab.c (lookup_symbol_aux_psymtabs): New variable stab_best. Use
4429 it as a fallback for TYPE_IS_OPAQUE.
4430 * symfile.h (struct quick_symbol_functions): Mention TYPE_OPAQUE
4431 symbols for lookup_symbol.
4432
685b1105
JK
44332012-05-24 John Steele Scott <toojays@toojays.net>
4434
4435 PR symtab/13277: Resolving opaque structures in ICC generated binaries.
4436 * dwarf2read.c (struct dwarf2_cu) <producer_is_icc>: New field.
4437 (producer_is_gxx_lt_4_6): Move the checking and caching to...
4438 (check_producer): ... this new function, which also checks for ICC
4439 and caches the result.
4440 (producer_is_icc): New function.
4441 (read_structure_type): Don't set TYPE_STUB_SUPPORTED if the
4442 producer was ICC.
4443
22203bbf
PA
44442012-05-24 Pedro Alves <palves@redhat.com>
4445
4446 PR gdb/7205
4447
4448 * arch-utils.c (default_gdb_signal_to_host): Rename to ...
4449 (default_gdb_signal_to_target): ... this. Add comment.
4450 (default_gdb_signal_from_host): Rename to ...
4451 (default_gdb_signal_from_target): ... this. Add comment.
4452 * arch-utils.h (default_gdb_signal_to_host): Rename to ...
4453 (default_gdb_signal_to_target): ... this.
4454 (default_gdb_signal_from_host): Rename to ...
4455 (default_gdb_signal_from_target): ... this.
4456 * corelow.c (core_open): Adjust to naming change. Replace comment.
4457 * gdbarch.sh (gdb_signal_from_host): Rename to ...
4458 (gdb_signal_from_target): ... this. Adjust to
4459 default_gdb_signal_from_host naming change. Extend comment.
4460 (gdb_signal_to_host): Rename to ...
4461 (gdb_signal_to_target): ... this. Adjust to
4462 default_gdb_signal_to_host naming change.
4463 * gdbarch.h, gdbarch.c: Renegerate.
4464
a493e3e2
PA
44652012-05-24 Pedro Alves <palves@redhat.com>
4466
4467 PR gdb/7205
4468
f782ad9b 4469 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
a493e3e2 4470
2ea28649
PA
44712012-05-24 Pedro Alves <palves@redhat.com>
4472
4473 PR gdb/7205
4474
4475 Replace target_signal with gdb_signal throughout.
4476
b09846a9
PA
44772012-05-24 Pedro Alves <palves@redhat.com>
4478
4479 PR tui/14159
4480
4481 * tui/tui-hooks.c (tui_query_hook): Pre-compute the question
4482 string, instead of reusing the va_list argument.
4483
e77c107e
TT
44842012-05-24 Tom Tromey <tromey@redhat.com>
4485
4486 * cp-support.h (cp_finalize_namespace, cp_initialize_namespace):
4487 Remove.
4488
9fccedf7
DE
44892012-05-23 Doug Evans <dje@google.com>
4490
d50bd42b
DE
4491 * symtab.c (search_symbols): Formatting fixes.
4492 (print_symbol_info): Formatting fixes.
4493
9fccedf7
DE
4494 * dwarf2-frame.c (execute_cfa_program): Update to handle long long ->
4495 int64_t change to leb128 API.
4496 (read_encoded_value, decode_frame_entry_1): Ditto.
4497 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Ditto.
4498 (dwarf_block_to_dwarf_reg, dwarf_block_to_dwarf_reg_deref): Ditto.
4499 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
4500 (execute_stack_op): Ditto.
4501 * dwarf2expr.h (gdb_read_uleb128, gdb_read_sleb128): Ditto.
4502 (safe_read_uleb128, safe_read_sleb128): Ditto.
4503 * dwarf2loc.c (decode_debug_loc_dwo_addresses): Ditto.
4504 (dwarf2_compile_expr_to_ax): Ditto.
4505 (locexpr_describe_location_piece): Ditto.
4506 (disassemble_dwarf_expression): Ditto.
4507 (locexpr_describe_location_1): Ditto.
4508
f3e0e960
SS
45092012-05-23 Stan Shebs <stan@codesourcery.com>
4510 Kwok Cheung Yeung <kcy@codesourcery.com>
4511
4512 * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-info.o.
4513 (SUBDIR_MI_SRCS): Add mi-cmd-info.c.
4514 (mi-cmd-info.o): New rule.
4515 * osdata.h (info_osdata_command): New declaration.
4516 * osdata.c (info_osdata_command): Change to non-static.
4517 * mi/mi-cmds.h (mi_cmd_info_os): New declaration.
4518 * mi/mi-cmds.c (mi_cmds): Add -info-os MI command.
4519 * mi/mi-cmd-info.c: New file.
4520
c51fe631
DE
45212012-05-23 Doug Evans <dje@google.com>
4522
71cddcc1
DE
4523 * symtab.c (search_symbols): Pass NULL for file_matcher to
4524 expand_symtabs_matching if there are no files to match.
4525
c51fe631
DE
4526 * gdbtypes.c (lookup_typename): Simplify.
4527
a79378d4
PA
45282012-05-23 Pedro Alves <palves@redhat.com>
4529
4530 * arch-utils.h (default_target_signal_to_host): Delete.
4531 * arch-utils.c (default_target_signal_to_host): Delete.
4532 * gdbarch.sh (target_signal_to_host): Remove.
4533 * gdbarch.h, gdbarch.c: Regenerate.
4534
f664829e
DE
45352012-05-22 Doug Evans <dje@google.com>
4536
4537 * dwarf2-frame.c (struct dwarf2_cie): Make initial_instructions, end
4538 "const gdb_byte *".
4539 (struct dwarf2_fde): Make instructions, end "const gdb_byte *".
4540 (execute_cfa_program): Update to match API of leb128 functions.
4541 (read_1_byte, read_4_bytes, read_8_bytes): Make buf parameter
4542 "const gdb_byte *".
4543 (read_unsigned_leb128, read_signed_leb128): Delete.
4544 (read_initial_length): Change type of buf argument to
4545 "const gdb_byte *".
4546 (read_encoded_value): Update to match API of leb128 functions.
4547 (decode_frame_entry): Change result to "const gdb_byte *", and
4548 similarly for "start" parameter.
4549 (decode_frame_entry_1): Ditto. Use new leb128 reader functions.
4550 (dwarf2_build_frame_info): Change local frame_ptr to
4551 "const gdb_byte *".
4552 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Replaces
4553 read_uleb128, read_sleb128. All callers updated.
4554 (safe_skip_leb128): New function.
4555 (dwarf_block_to_dwarf_reg): Update to match API of leb128 functions.
4556 Call gdb_read_uleb128, gdb_skip_leb128 instead of read_uleb128.
4557 (dwarf_block_to_dwarf_reg_deref): Update to match API of leb128
4558 functions. Call gdb_read_uleb128, gdb_read_sleb128 instead of
4559 read_uleb128, read_sleb128.
4560 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
4561 (execute_stack_op): Update to match API of leb128 functions.
4562 * dwarf2expr.h: #include "leb128.h".
4563 (read_uleb128, read_sleb128): Delete.
4564 (gdb_read_uleb128, gdb_read_sleb128, gdb_skip_leb128): New functions.
4565 (safe_read_uleb128, safe_read_sleb128, safe_skip_leb128): Declare.
4566 * dwarf2loc.c (debug_loc_kind): New enum.
4567 (decode_debug_loc_addresses): New function.
4568 (decode_debug_loc_dwo_addresses): New function.
4569 (dwarf2_find_location_expression): Rewrite.
4570 (dwarf2_compile_expr_to_ax): Update to match API of leb128 functions.
4571 (locexpr_describe_location_piece): Ditto.
4572 (disassemble_dwarf_expression): Ditto.
4573 (locexpr_describe_location_1): Ditto.
4574 (loclist_describe_location): Rewrite.
4575 * dwarf2loc.h (dwarf2_loclist_baton): New member "from_dwo".
4576 * dwarf2read.c (die_reader_specs): New member "buffer_end".
4577 (dwarf2_section_buffer_overflow_complaint): Renamed from
4578 dwarf2_macros_too_long_complaint. All callers updated.
4579 (skip_leb128): Delete.
4580 (init_cu_die_reader): Initialize reader->buffer_end.
4581 (skip_one_die): Replace call to skip_leb128 with safe_skip_leb128.
4582 (skip_form_bytes): New arg buffer_end. All callers updated.
4583 Replace call to skip_leb128 with gdb_skip_leb128.
4584 (skip_unknown_opcode): New arg mac_end. All callers updated.
4585 (fill_in_loclist_baton): Initialize baton->from_dwo.
4586
837a1b32
MR
45872012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
4588
4589 * mips-linux-nat.c (mips_linux_read_description): Use a more
4590 verbose error message.
4591
d0e64392
MR
45922012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
4593
4594 * NEWS: Add MIPS/Linux DSP support.
4595 * mips-linux-tdep.c: Document post-2.6.12 o32 sigcontext layout.
4596 (SIGCONTEXT_DSPCTL): New macro.
4597 (SIGCONTEXT_HI1, SIGCONTEXT_LO1): Likewise.
4598 (SIGCONTEXT_HI2, SIGCONTEXT_LO2): Likewise.
4599 (SIGCONTEXT_HI3, SIGCONTEXT_LO3): Likewise.
4600 (N64_SIGCONTEXT_HI1, N64_SIGCONTEXT_HI2): Likewise.
4601 (N64_SIGCONTEXT_HI3): Likewise.
4602 (N64_SIGCONTEXT_LO1, N64_SIGCONTEXT_LO2): Likewise.
4603 (N64_SIGCONTEXT_LO3): Likewise.
4604 (N64_SIGCONTEXT_DSPCTL): Likewise.
4605 (N64_SIGCONTEXT_FPCSR): Clarify definition.
4606 (mips_linux_o32_sigframe_init): Handle DSP registers.
4607 (mips_linux_n32n64_sigframe_init): Likewise.
4608
8bea7ed1
PM
46092012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
4610
4611 * common/buffer.c (buffer_grow): ARI fix: Remove unneeded
4612 call to abort.
4613
dab06dbe
PA
46142012-05-22 Pedro Alves <palves@redhat.com>
4615
4616 * target.h (store_waitstatus): Move declaration ...
4617 * inf-child.h (store_waitstatus): ... here.
4618 * target.c: Move inclusion of gdb_wait.h, and ...
4619 (store_waitstatus): ... this ...
4620 * inf-child.c: ... here.
4621 * linux-nat.c: Include inf-child.h.
4622 * rs6000-nat.c: Include inf-child.h.
4623 * spu-linux-nat.c: Include inf-child.h.
4624
43011e52
PM
46252012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
4626
4627 * tracepoint.c (start_tracing): Add missing i18n markup.
4628 (stop_tracing, set_trace_user): Ditto.
4629 (set_trace_notes, set_trace_stop_notes): Ditto.
4630
b1af9e97
TT
46312012-05-21 Tom Tromey <tromey@redhat.com>
4632
4633 PR c++/7173:
4634 * gnu-v3-abi.c (gnuv3_baseclass_offset): Return early for Java
4635 types.
4636 * value.h (value_cast_pointers): Update.
4637 * valops.c (value_cast_pointers): Add 'subclass_check' argument.
4638 (value_cast): Update.
4639 (update_search_result): New function.
4640 (do_search_struct_field): New, from search_struct_field. Check
4641 for ambiguous results.
4642 (search_struct_field): Rewrite.
4643 * infcall.c (value_arg_coerce): Update.
4644 * eval.c (evaluate_subexp_standard) <STRUCTOP_MEMBER>: Use
4645 value_cast_pointers.
4646 * ada-lang.c (ada_convert_actual): Update.
4647
e9e5e6b3
TT
46482012-05-21 Tom Tromey <tromey@redhat.com>
4649
4650 * macroexp.c (macro_stringify): Terminate the string.
4651
1564a261
JK
46522012-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4653
4654 * NEWS (--with-auto-load-dir): Prepend $debugdir to the default path.
4655 Describe it.
4656 * auto-load.c (auto_load_expand_dir_vars): New function.
4657 (auto_load_safe_path_vec_update): Use it, remove the
4658 substitute_path_component call thanks to it.
4659 (auto_load_objfile_script): Remove the debug_file_directory processing.
4660 Use auto_load_expand_dir_vars, remove the substitute_path_component
4661 call thanks to it.
4662 * configure: Regenerate.
4663 * configure.ac (--with-auto-load-dir): Prepend $debugdir to the default
4664 path. Escape $ also for $debugdir.
4665 (--with_auto_load_safe_path): Escape $ also for $debugdir.
4666 * utils.c (substitute_path_component): Accept also DIRNAME_SEPARATOR.
4667
a3ec0bb1
DE
46682012-05-20 Doug Evans <dje@google.com>
4669
4670 * dwarf2read.c (recursively_find_pc_sect_symtab): Initialize "s"
4671 before use. Check for symtab->includes == NULL before scanning it.
4672
d467df4e
MR
46732012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
4674
4675 * mips-tdep.c (mips_reg3_to_reg): Optimize storage.
4676
4cc0665f
MR
46772012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
4678
4679 * NEWS: Add microMIPS support and "set mips compression",
4680 "show mips compression" commands.
4681 * mips-tdep.h (mips_isa): New enum.
4682 (gdbarch_tdep): Add mips_isa.
4683 (mips_pc_is_mips16): Update prototype.
4684 (mips_pc_is_mips, mips_pc_is_micromips): New prototypes.
4685 * mips-tdep.c (mips_compression_mips16): New variable.
4686 (mips_compression_micromips): Likewise.
4687 (mips_compression_strings): Likewise.
4688 (mips_compression_string): Likewise.
4689 (is_mips16_isa, is_micromips_isa): New functions.
4690 (is_mips16_addr): Rename to...
4691 (is_compact_addr): ... this.
4692 (unmake_mips16_addr): Likewise to...
4693 (unmake_compact_addr): ... this.
4694 (make_mips16_addr): Likewise to...
4695 (make_compact_addr): ... this.
4696 (is_mips_addr, is_mips16_addr, is_micromips_addr): New
4697 functions.
4698 (mips_elf_make_msymbol_special): Handle microMIPS code.
4699 (msymbol_is_special): Rename to...
4700 (msymbol_is_mips16): ... this.
4701 (mips_make_symbol_special, mips_pc_is_mips16): Update
4702 accordingly.
4703 (msymbol_is_mips, msymbol_is_micromips): New functions.
4704 (mips16_to_32_reg): Rename to...
4705 (mips_reg3_to_reg): ... this.
4706 (mips_pc_is_mips, mips_pc_is_micromips): New functions.
4707 (mips_pc_isa): Likewise.
4708 (mips_read_pc, mips_unwind_pc, mips_write_pc): Handle microMIPS
4709 code.
4710 (mips_fetch_instruction): Pass return status instead of printing
4711 an error message if requested. Handle microMIPS code. Bail out
4712 on an invalid ISA.
4713 (micromips_op): New macro.
4714 (b0s4_imm, b0s5_imm, b0s5_reg, b0s7_imm, b0s10_imm): Likewise.
4715 (b1s9_imm, b2s3_cc, b4s2_regl, b5s5_op, b5s5_reg): Likewise.
4716 (b6s4_op, b7s3_reg): Likewise.
4717 (b0s6_op, b0s11_op, b0s12_imm, b0s16_imm, b0s26_imm): Likewise.
4718 (b6s10_ext, b11s5_reg, b12s4_op): Likewise.
4719 (mips_insn_size): New function.
4720 (mips32_next_pc): Update mips_fetch_instruction call.
4721 (micromips_relative_offset7): New function.
4722 (micromips_relative_offset10): Likewise.
4723 (micromips_relative_offset16): Likewise.
4724 (micromips_pc_insn_size): Likewise.
4725 (micromips_bc1_pc): Likewise.
4726 (micromips_next_pc): Likewise.
4727 (unpack_mips16): Update mips_fetch_instruction call.
4728 (extended_mips16_next_pc): Update according to change to
4729 mips16_to_32_reg.
4730 (mips_next_pc): Update mips_pc_is_mips16 call. Handle microMIPS
4731 code.
4732 (mips16_scan_prologue): Update mips_fetch_instruction call.
4733 Update according to change to mips16_to_32_reg.
4734 (mips_insn16_frame_sniffer): Update mips_pc_is_mips16 call.
4735 (mips_insn16_frame_base_sniffer): Likewise.
4736 (micromips_decode_imm9): New function.
4737 (micromips_scan_prologue): Likewise.
4738 (mips_micro_frame_cache): Likewise.
4739 (mips_micro_frame_this_id): Likewise.
4740 (mips_micro_frame_prev_register): Likewise.
4741 (mips_micro_frame_sniffer): Likewise.
4742 (mips_micro_frame_unwind): New variable.
4743 (mips_micro_frame_base_address): New function.
4744 (mips_micro_frame_base): New variable.
4745 (mips_micro_frame_base_sniffer): New function.
4746 (mips32_scan_prologue): Update mips_fetch_instruction call.
4747 (mips_insn32_frame_sniffer): Check for the standard MIPS ISA
4748 rather than for MIPS16.
4749 (mips_insn32_frame_base_sniffer): Likewise.
4750 (mips_addr_bits_remove): Handle microMIPS code.
4751 (deal_with_atomic_sequence): Rename to...
4752 (mips_deal_with_atomic_sequence): ... this. Update the type
4753 of the variable used to hold an instruction. Remove the ISA bit
4754 check. Update mips_fetch_instruction call.
4755 (micromips_deal_with_atomic_sequence): New function.
4756 (deal_with_atomic_sequence): Likewise.
4757 (mips_about_to_return): Handle microMIPS code. Update
4758 mips_fetch_instruction call.
4759 (heuristic_proc_start): Check for the standard MIPS ISA rather
4760 than for MIPS16. Update mips_pc_is_mips16 and
4761 mips_fetch_instruction calls. Handle microMIPS code.
4762 (mips_push_dummy_code): Handle microMIPS code.
4763 (mips_eabi_push_dummy_call): Likewise.
4764 (mips_o32_return_value): Update mips_pc_is_mips16 call.
4765 (mips_o64_push_dummy_call): Handle microMIPS code.
4766 (mips_o64_return_value): Update mips_pc_is_mips16 call.
4767 (is_delayed): Remove function.
4768 (mips_single_step_through_delay): Replace the call to is_delayed
4769 with mips32_instruction_has_delay_slot. Correct MIPS16 handling.
4770 Handle microMIPS code.
4771 (mips_skip_prologue): Update mips_pc_is_mips16 call. Handle
4772 microMIPS code.
4773 (mips32_in_function_epilogue_p): Update mips_fetch_instruction
4774 call.
4775 (micromips_in_function_epilogue_p): New function.
4776 (mips16_in_function_epilogue_p): Update mips_fetch_instruction
4777 call.
4778 (mips_in_function_epilogue_p): Update mips_pc_is_mips16 call.
4779 Handle microMIPS.
4780 (gdb_print_insn_mips): Likewise.
4781 (mips_breakpoint_from_pc): Likewise.
4782 (mips_remote_breakpoint_from_pc): New function.
4783 (mips32_instruction_has_delay_slot): Simplify making use of the
4784 updated mips_fetch_instruction interface.
4785 (micromips_instruction_has_delay_slot): New function.
4786 (mips16_instruction_has_delay_slot): Simplify making use of the
4787 updated mips_fetch_instruction interface.
4788 (mips_adjust_breakpoint_address): Check for the standard MIPS
f782ad9b 4789 ISA rather than for MIPS16 ISA. Update for unmake_compact_addr
4cc0665f
MR
4790 calls. Handle microMIPS code.
4791 (mips_get_mips16_fn_stub_pc): Update mips_fetch_instruction call.
4792 (mips_skip_trampoline_code): Handle microMIPS code.
4793 (global_mips_compression): New function.
4794 (mips_gdbarch_init): Handle the compressed ISA setting from ELF
4795 file flags. Register the microMIPS remote breakpoint handler
4796 and heuristic frame unwinder.
4797 (show_mips_compression): New function.
4798 (_initialize_mips_tdep): Add the "set mips compression" and
4799 "show mips compression" commands.
4800
22e048c9
SDJ
48012012-05-18 Sergio Durigan Junior <sergiodj@redhat.com>
4802
4803 * ada-lang.c:
4804 * ada-tasks.c:
4805 * ada-varobj.c:
4806 * amd64-darwin-tdep.c:
4807 * arm-symbian-tdep.c:
4808 * arm-tdep.c:
4809 * avr-tdep.c:
4810 * ax-gdb.c:
4811 * bfin-linux-tdep.c:
4812 * breakpoint.c:
4813 * c-valprint.c:
4814 * cli/cli-cmds.c:
4815 * coffread.c:
4816 * cp-support.c:
4817 * cris-tdep.c:
4818 * dwarf2-frame-tailcall.c:
4819 * dwarf2-frame.c:
4820 * dwarf2expr.c:
4821 * dwarf2loc.c:
4822 * dwarf2read.c:
4823 * elfread.c:
4824 * eval.c:
4825 * expprint.c:
4826 * f-valprint.c:
4827 * frv-tdep.c:
4828 * h8300-tdep.c:
4829 * hppa-hpux-tdep.c:
4830 * hppa-tdep.c:
4831 * hppanbsd-tdep.c:
4832 * i386-nto-tdep.c:
4833 * i386-tdep.c:
4834 * i387-tdep.c:
4835 * ia64-tdep.c:
4836 * jit.c:
4837 * linespec.c:
4838 * linux-tdep.c:
4839 * lm32-tdep.c:
4840 * m2-valprint.c:
4841 * m32c-tdep.c:
4842 * m32r-rom.c:
4843 * m32r-tdep.c:
4844 * m68k-tdep.c:
4845 * m68klinux-tdep.c:
4846 * mi/mi-main.c:
4847 * microblaze-tdep.c:
4848 * mips-linux-tdep.c:
4849 * mips-tdep.c:
4850 * mn10300-tdep.c:
4851 * p-valprint.c:
4852 * parse.c:
4853 * ppc-linux-tdep.c:
4854 * ppc-sysv-tdep.c:
4855 * printcmd.c:
4856 * python/py-finishbreakpoint.c:
4857 * python/py-inferior.c:
4858 * python/py-infthread.c:
4859 * python/py-type.c:
4860 * python/python.c:
4861 * remote-fileio.c:
4862 * remote-m32r-sdi.c:
4863 * remote-mips.c:
4864 * reverse.c:
4865 * rl78-tdep.c:
4866 * rs6000-aix-tdep.c:
4867 * rs6000-tdep.c:
4868 * s390-tdep.c:
4869 * score-tdep.c:
4870 * sh64-tdep.c:
4871 * skip.c:
4872 * solib-darwin.c:
4873 * solib-dsbt.c:
4874 * solib-frv.c:
4875 * sparc-tdep.c:
4876 * spu-multiarch.c:
4877 * spu-tdep.c:
4878 * stack.c:
4879 * symfile.c:
4880 * symtab.c:
4881 * tic6x-tdep.c:
4882 * tracepoint.c:
4883 * v850-tdep.c:
4884 * valarith.c:
4885 * valprint.c:
4886 * value.c:
4887 * xcoffread.c:
4888 * xtensa-tdep.c:
4889 * ada-lang.c:
4890 * ada-tasks.c:
4891 * ada-varobj.c:
4892 * amd64-darwin-tdep.c:
4893 * arm-symbian-tdep.c:
4894 * arm-tdep.c: Delete unused variables.
4895
aff139ff
JK
48962012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4897
4898 Rename $ddir to $datadir.
4899 * NEWS (--with-auto-load-dir): Rename $ddir to $datadir.
4900 * auto-load.c (auto_load_safe_path_vec_update)
4901 (auto_load_gdb_datadir_changed, auto_load_objfile_script): Likewise.
4902 * configure: Regenerate.
4903 * configure.ac (--with-auto-load-dir, --with-auto-load-safe-path):
4904 Likewise. Remove the 'use $ddir' help string.
4905
f7bfa992
JK
49062012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4907
4908 * auto-load.c (show_auto_load_safe_path): Accept any combination of
4909 DIRNAME_SEPARATOR and IS_DIR_SEPARATOR for wild-match.
4910
9cb709b6
TT
49112012-05-18 Tom Tromey <tromey@redhat.com>
4912
4913 PR exp/13907:
4914 * valprint.h (struct value_print_options) <symbol_print>: New
4915 field.
4916 * valprint.c (user_print_options): Add default for symbol_print.
4917 (show_symbol_print): New function.
4918 (generic_val_print): Respect symbol_print.
4919 (_initialize_valprint): Add "print symbol" setting.
4920 * f-valprint.c (f_val_print): Respect symbol_print.
4921 * c-valprint.c (c_val_print): Respect symbol_print.
4922 * NEWS: Update.
4923 * printcmd.c (print_address_symbolic): Return int. Ignore some
4924 zero-size symbols.
4925 (print_address_demangle): Return int.
4926 * defs.h: (print_address_symbolic): Return int.
4927 * value.h (print_address_demangle): Return int.
4928
b012acdd
TT
49292012-05-18 Tom Tromey <tromey@redhat.com>
4930
4931 * valprint.c (val_print_string): Don't print leading space.
4932 * p-valprint.c (pascal_val_print) <TYPE_CODE_PTR>: Optionally
4933 print space before string or vtbl.
4934 * m2-valprint.c (print_unpacked_pointer): Optionally print space
4935 before string.
4936 * jv-valprint.c (java_value_print): Print space before string.
4937 * go-valprint.c (print_go_string): Print space before string.
4938 * f-valprint.c (f_val_print) <TYPE_CODE_PTR>: Optionally print
4939 space before string.
4940 * c-valprint.c (c_val_print) <TYPE_CODE_PTR>: Optionally print
4941 space before string or vtbl.
4942 * auxv.c (fprint_target_auxv): Print space after address.
4943
1d51a733
TT
49442012-05-18 Tom Tromey <tromey@redhat.com>
4945
4946 * printcmd.c (print_address_demangle): Remove special case for 0.
4947
edf0c1b7
TT
49482012-05-18 Tom Tromey <tromey@redhat.com>
4949
4950 * printcmd.c (print_address_demangle): Add 'opts' argument.
4951 * p-valprint.c (pascal_val_print): Update.
4952 * jv-valprint.c (java_val_print): Update.
4953 * value.h: Update.
4954 * valprint.c (generic_val_print): Update.
4955 (print_function_pointer_address): Add 'options' argument. Remove
4956 'addressprint' argument. Update.
4957 * m2-valprint.c (print_unpacked_pointer): Update.
4958 * gnu-v3-abi.c (print_one_vtable): Update.
4959 (gnuv3_print_method_ptr): Update.
4960 * f-valprint.c (f_val_print): Update.
4961 * cp-valprint.c (cp_print_value_fields): Update.
4962 * valprint.h (print_function_pointer_address): Update.
4963 * c-valprint.c (c_val_print): Update.
4964
9703b513
TT
49652012-05-18 Tom Tromey <tromey@redhat.com>
4966
4967 * psymtab.c (find_pc_sect_symtab_from_partial): Return the symtab
4968 directly corresponding to the found psymtab.
4969 * dwarf2read.c (recursively_find_pc_sect_symtab): New function.
4970 (dw2_find_pc_sect_symtab): Use it.
4971 * block.h (blockvector_contains_pc): Declare.
4972 * block.c (find_block_in_blockvector): New function.
4973 (blockvector_for_pc_sect): Use it.
4974 (blockvector_contains_pc): New function.
4975
5a439849
MR
49762012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
4977
4978 * mips-tdep.h (mips_write_pc): New prototype.
4979 * mips-tdep.c (mips_write_pc): Make external, add description.
4980 * mips-linux-tdep.c (mips_linux_write_pc): Use mips_write_pc,
4981 add description.
4982
8376de04
MR
49832012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
4984
4985 * mips-tdep.c (mips_read_pc): Use gdbarch_pc_regnum instead of
4986 mips_regnum->pc.
4987 (mips_unwind_pc, mips_write_pc): Likewise.
4988 (mips_gdbarch_init): Remove a comment on gdbarch_pc_regnum and
4989 gdbarch_read_pc.
4990
d3581e61
JB
49912012-05-17 Joel Brobecker <brobecker@adacore.com>
4992
4993 * procfs.c (procfs_find_new_threads, procfs_pid_to_str,
4994 proc_warn, proc_error, proc_get_status, proc_flags,
4995 proc_why, proc_what, proc_nsysarg, proc_sysargs,
4996 proc_set_run_on_last_close, proc_unset_run_on_last_close,
4997 proc_unset_inherit_on_fork, proc_set_async, proc_unset_async,
4998 proc_stop_process, proc_wait_for_stop, proc_run_process,
4999 proc_set_traced_signals, proc_set_traced_faults,
5000 proc_set_traced_sysentry, proc_set_traced_sysexit,
5001 proc_set_held_signals, proc_get_held_signals,
5002 proc_get_traced_signals, proc_get_traced_faults,
5003 proc_get_traced_sysentry, proc_get_traced_sysexit,
5004 proc_clear_current_fault, proc_set_current_signal,
5005 proc_clear_current_signal, proc_get_gregs, proc_get_fpregs,
5006 proc_set_gregs, proc_set_fpregs, proc_kill, proc_parent_pid,
5007 proc_get_nthreads, proc_get_nthreads, proc_get_nthreads,
5008 proc_get_current_thread, proc_get_current_thread,
5009 proc_get_current_thread, proc_update_threads,
5010 proc_update_threads, proc_update_threads, proc_update_threads,
5011 proc_iterate_over_threads, procfs_find_new_threads,
5012 procfs_pid_to_str): Make static. Remove advance declaration.
5013 (proc_cursig): Make static. Conditionalized defintion on
5014 PROCFS_DONT_PIOCSSIG_CURSIG being defined.
5015 (proc_syscall, proc_set_kill_on_last_close,
5016 proc_unset_kill_on_last_close, proc_set_inherit_on_fork,
5017 proc_get_pending_signals, proc_get_signal_actions,
5018 proc_trace_signal, proc_ignore_signal): Delete.
5019
81b9b86e
SDJ
50202012-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
5021
5022 * coffread.c (cs_section_address): Passing proper argument for
5023 `bfd_get_section_vma'.
5024 * dwarf2read.c (dwarf2_locate_sections): Likewise, for
5025 `bfd_get_section_flags'.
5026 * remote.c (remote_trace_set_readonly_regions): Likewise, for
5027 `bfd_get_section_vma'.
5028
abc9d0dc
TT
50292012-05-16 Tom Tromey <tromey@redhat.com>
5030
5031 PR macros/13205:
5032 * macrotab.h: (macro_define_special): Declare.
5033 (enum macro_special_kind): New.
5034 (struct macro_definition) <argc, replacement>: Update comments.
5035 * macrotab.c (new_macro_definition): Unconditionally set 'argc'.
5036 (macro_define_object_internal): New function.
5037 (macro_define_object): Use it.
5038 (macro_define_special): New function.
5039 (fixup_definition): New function.
5040 (macro_lookup_definition, foreach_macro_in_scope)
5041 (foreach_macro): Use fixup_definition.
5042 * macroexp.h (macro_stringify): Declare.
5043 * macroexp.c (free_buffer_return_text): New function.
5044 (stringify): Constify "arg".
5045 (macro_stringify): New function.
5046 * dwarf2read.c (macro_start_file): Call macro_define_special.
5047
6a3a010b 50482012-05-16 Maciej W. Rozycki <macro@codesourcery.com>
f782ad9b 5049 Maciej W. Rozycki <macro@mips.com>
6a3a010b
MR
5050
5051 * breakpoint.h (bp_location): Add related_address member.
5052 * inferior.h (get_return_value): Take a pointer to struct value
5053 instead of struct type for the function requested.
5054 * value.h (using_struct_return): Likewise.
5055 * gdbarch.sh (return_value): Take a pointer to struct value
5056 instead of struct type for the function requested.
5057 * breakpoint.c (set_breakpoint_location_function): Initialize
5058 related_address for bp_gnu_ifunc_resolver breakpoints.
5059 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the
5060 requested function's address to gdbarch_return_value.
5061 * eval.c (evaluate_subexp_standard): Pass the requested
5062 function's address to using_struct_return.
5063 * infcall.c (call_function_by_hand): Pass the requested
5064 function's address to using_struct_return and
5065 gdbarch_return_value.
5066 * infcmd.c (get_return_value): Take a pointer to struct value
5067 instead of struct type for the function requested.
5068 (print_return_value): Update accordingly.
5069 (finish_command_continuation): Likewise.
5070 * stack.c (return_command): Pass the requested function's
5071 address to using_struct_return and gdbarch_return_value.
5072 * value.c (using_struct_return): Take a pointer to struct value
5073 instead of struct type for the function requested. Pass the
5074 requested function's address to gdbarch_return_value.
5075 * python/py-finishbreakpoint.c (finish_breakpoint_object):
5076 New function_value member, replacing function_type.
5077 (bpfinishpy_dealloc): Update accordingly.
5078 (bpfinishpy_pre_stop_hook): Likewise.
5079 (bpfinishpy_init): Likewise. Record the requested function's
5080 address.
5081 * mips-tdep.c (mips_fval_reg): New enum.
5082 (mips_o32_push_dummy_call): For MIPS16 FP doubles do not swap
5083 words put in GP registers.
5084 (mips_o64_push_dummy_call): Update a comment.
5085 (mips_o32_return_value): Take a pointer to struct value instead
5086 of struct type for the function requested and use it to check if
5087 using the MIPS16 calling convention. Return the designated
5088 general purpose registers for floating-point values returned in
5089 MIPS16 mode.
5090 (mips_o64_return_value): Likewise.
5091 * ppc-tdep.h (ppc_sysv_abi_return_value): Update prototype.
5092 (ppc_sysv_abi_broken_return_value): Likewise.
5093 (ppc64_sysv_abi_return_value): Likewise.
5094 * alpha-tdep.c (alpha_return_value): Take a pointer to struct
5095 value instead of struct type for the function requested.
5096 * amd64-tdep.c (amd64_return_value): Likewise.
5097 * amd64-windows-tdep.c (amd64_windows_return_value): Likewise.
5098 * arm-tdep.c (arm_return_value): Likewise.
5099 * avr-tdep.c (avr_return_value): Likewise.
5100 * bfin-tdep.c (bfin_return_value): Likewise.
5101 * cris-tdep.c (cris_return_value): Likewise.
5102 * frv-tdep.c (frv_return_value): Likewise.
5103 * h8300-tdep.c (h8300_return_value): Likewise.
5104 (h8300h_return_value): Likewise.
5105 * hppa-tdep.c (hppa32_return_value): Likewise.
5106 (hppa64_return_value): Likewise.
5107 * i386-tdep.c (i386_return_value): Likewise.
5108 * ia64-tdep.c (ia64_return_value): Likewise.
5109 * iq2000-tdep.c (iq2000_return_value): Likewise.
5110 * lm32-tdep.c (lm32_return_value): Likewise.
5111 * m32c-tdep.c (m32c_return_value): Likewise.
5112 * m32r-tdep.c (m32r_return_value): Likewise.
5113 * m68hc11-tdep.c (m68hc11_return_value): Likewise.
5114 * m68k-tdep.c (m68k_return_value): Likewise.
5115 (m68k_svr4_return_value): Likewise.
5116 * m88k-tdep.c (m88k_return_value): Likewise.
5117 * mep-tdep.c (mep_return_value): Likewise.
5118 * microblaze-tdep.c (microblaze_return_value): Likewise.
5119 * mn10300-tdep.c (mn10300_return_value): Likewise.
5120 * moxie-tdep.c (moxie_return_value): Likewise.
5121 * mt-tdep.c (mt_return_value): Likewise.
5122 * ppc-linux-tdep.c (ppc_linux_return_value): Likewise.
5123 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Likewise.
5124 (ppc_sysv_abi_broken_return_value): Likewise.
5125 (ppc64_sysv_abi_return_value): Likewise.
5126 * ppcnbsd-tdep.c (ppcnbsd_return_value): Likewise.
5127 * rl78-tdep.c (rl78_return_value): Likewise.
5128 * rs6000-aix-tdep.c (rs6000_return_value): Likewise.
5129 * rx-tdep.c (rx_return_value): Likewise.
5130 * s390-tdep.c (s390_return_value): Likewise.
5131 * score-tdep.c (score_return_value): Likewise.
5132 * sh-tdep.c (sh_return_value_nofpu): Likewise.
5133 (sh_return_value_fpu): Likewise.
5134 * sh64-tdep.c (sh64_return_value): Likewise.
5135 * sparc-tdep.c (sparc32_return_value): Likewise.
5136 * sparc64-tdep.c (sparc64_return_value): Likewise.
5137 * spu-tdep.c (spu_return_value): Likewise.
5138 * tic6x-tdep.c (tic6x_return_value): Likewise.
5139 * v850-tdep.c (v850_return_value): Likewise.
5140 * vax-tdep.c (vax_return_value): Likewise.
5141 * xstormy16-tdep.c (xstormy16_return_value): Likewise.
5142 * xtensa-tdep.c (xtensa_return_value): Likewise.
5143 * gdbarch.c: Regenerate.
5144 * gdbarch.h: Regenerate.
5145
29ca12b3
TT
51462012-05-15 Tom Tromey <tromey@redhat.com>
5147
5148 * python/python.c (gdbpy_find_pc_line): Use gdb_py_ulongest.
5149
588ae58c
JB
51502012-05-15 Joel Brobecker <brobecker@adacore.com>
5151
5152 * breakpoint.c (init_breakpoint_sal): Add quotes around part
5153 of command in two error message.
5154
855a6e68
JB
51552012-05-15 Joel Brobecker <brobecker@adacore.com>
5156
5157 * breakpoint.c (init_breakpoint_sal): Remove trailing spaces.
5158
d634f2de
JB
51592012-05-15 Joel Brobecker <brobecker@adacore.com>
5160
5161 * breakpoint.c (find_condition_and_thread): Minor reformatting.
5162
9cc815f5
JK
51632012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
5164
5165 * NEWS (show auto-load scripts-directory): Add forgotten command.
5166
6a609e58
JK
51672012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
5168
5169 * spu-tdep.c (spu_catch_start): Update create_breakpoint caller
5170 parameters.
5171
ac1438b5
L
51722012-05-14 H.J. Lu <hongjiu.lu@intel.com>
5173
5174 * amd64-tdep.c: Include features/i386/x32.c and
5175 features/i386/x32-avx.c.
5176 (_initialize_amd64_tdep): Call initialize_tdesc_x32 and
5177 initialize_tdesc_x32_avx.
5178
e7e0cddf
SS
51792012-05-14 Stan Shebs <stan@codesourcery.com>
5180
5181 Add dynamic printf.
5182 * breakpoint.h (enum bptype): New type bp_dprintf.
5183 (struct breakpoint): New field extra_string.
5184 (struct breakpoint_ops): Add arg to create_breakpoints_sal.
5185 (create_breakpoint): Add extra_string arg.
5186 * breakpoint.c (dprintf_breakpoint_ops): New.
5187 (is_breakpoint): Add bp_dprintf.
5188 (bpstat_what): Add dprintf case.
5189 (bptype_string): Ditto.
5190 (print_one_breakpoint_location): Ditto.
5191 (init_bp_location): Ditto.
5192 (bkpt_print_mention): Ditto.
5193 (dprintf_style_enums): New array.
5194 (dprintf_style): New global.
5195 (dprintf_function): New global.
5196 (dprintf_channel): New global.
5197 (update_dprintf_command_list): New function.
5198 (update_dprintf_commands): New function.
5199 (init_breakpoint_sal): Add extra_string argument, handle it.
5200 (create_breakpoint_sal): Add extra_string argument.
5201 (create_breakpoints_sal): Add extra_string argument, update callers.
5202 (find_condition_and_thread): Add extra argument.
5203 (create_breakpoint): Add extra_string argument, record it.
5204 (dprintf_command): New function.
5205 (break_command_1): Add arg to create_breakpoint call.
5206 (handle_gnu_v3_exceptions): Ditto.
5207 (trace_command): Ditto.
5208 (ftrace_command): Ditto.
5209 (strace_command): Ditto.
5210 (bkpt_print_mention): Add dprintf case.
5211 (create_breakpoint_sal_default): Add extra_string argument.
5212 (_initialize_breakpoint): Add new commands.
5213 * mi/mi-cmd-break.c (mi_cmd_break_insert): Add arg to call.
5214 * python/py-breakpoint.c (bppy_init): Ditto.
5215 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
5216
8ae38c14
MR
52172012-05-14 Maciej W. Rozycki <macro@codesourcery.com>
5218
5219 * mips-tdep.c (mips_push_dummy_code): Correct description typo.
5220
9f676e66
SCR
52212012-05-14 Siva Chandra Reddy <sivachandra@google.com>
5222
5223 * python/python.c (gdbpy_find_pc_line): Use ULONGEST instead of
5224 unsigned long long.
5225
7efc75aa
SCR
52262012-05-13 Siva Chandra Reddy <sivachandra@google.com>
5227
5228 Add a new function gdb.find_pc_line to the Python API.
5229 * NEWS (Python Scripting): Add entry about the new function.
5230 * python/python.c (gdbpy_find_pc_line): New function which
5231 implements gdb.find_pc_line.
5232 (GdbMethods): Add entry for the new function.
5233
70af3797
PA
52342012-05-12 Pedro Alves <palves@redhat.com>
5235
5236 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Call
5237 initialize_tdesc_x32_linux and initialize_tdesc_x32_avx_linux.
5238
06da564e
EZ
52392012-05-12 Eli Zaretskii <eliz@gnu.org>
5240
5241 * inferior.c: Include completer.h
5242 (initialize_inferiors): Set completer of add-inferior to
5243 filename_completer.
5244
0288cee2
L
52452012-05-11 H.J. Lu <hongjiu.lu@intel.com>
5246
5247 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
5248 gdbarch_ptr_bit for x32 core dump.
5249
f6537a2c
L
52502012-05-11 H.J. Lu <hongjiu.lu@intel.com>
5251
5252 * amd64-linux-tdep.c: Include features/i386/x32-linux.c
5253 and features/i386/x32-avx-linux.c.
5254
85d4a676
SS
52552012-05-11 Stan Shebs <stan@codesourcery.com>
5256 Kwok Cheung Yeung <kcy@codesourcery.com>
5257
5258 * NEWS: Describe new info os commands.
5259 * common/linux-osdata.c (PID_T, TIME_T): Define.
5260 (MAX_PID_T_STRLEN): New.
5261 (linux_common_core_of_thread): Add comment. Change to use PID_T and
5262 MAX_PID_T_STRLEN.
5263 (command_from_pid): Add comment. Change to use PID_T.
5264 (commandline_from_pid): Change to use PID_T.
5265 (user_from_pid): Add comment.
5266 (get_process_owner): Add comment. Change to use PID_T and
5267 MAX_PID_T_STRLEN.
5268 (get_number_of_cpu_cores): Add comment.
5269 (get_cores_used_by_process): Add comment. Change to use PID_T and
5270 MAX_PID_T_STRLEN.
5271 (linux_xfer_osdata_processes): Change to use PID_T and
5272 MAX_PID_T_STRLEN.
5273 (compare_processes): New function.
5274 (linux_xfer_osdata_processgroups): New function.
5275 (linux_xfer_osdata_threads): Change to use PID_T.
5276 (linux_xfer_osdata_fds): New function.
5277 (format_socket_state, print_sockets): New functions.
5278 (union socket_addr): New union.
5279 (linux_xfer_osdata_isockets): New function.
5280 (time_from_time_t, group_from_gid): New functions.
5281 (linux_xfer_osdata_shm): New function.
5282 (linux_xfer_osdata_sem): New function.
5283 (linux_xfer_osdata_msg): New function.
5284 (linux_xfer_osdata_modules): New function.
5285 (osdata_table): Add new entries.
5286 * common/buffer.c (buffer_xml_printf): Add support for long and
5287 long long format specifiers.
5288
f24afd6d
L
52892012-05-11 H.J. Lu <hongjiu.lu@intel.com>
5290
5291 * amd64-linux-tdep.h (tdesc_x32_linux): New.
5292 (tdesc_x32_avx_linux): Likewise.
5293
7349ff92
JK
52942012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5295
5296 Implement multi-component --with-auto-load-dir.
5297 * NEWS (set auto-load scripts-directory, --with-auto-load-dir): New
5298 entries.
5299 (--with-auto-load-safe-path): Update the default value description.
5300 * auto-load.c (auto_load_dir, set_auto_load_dir, show_auto_load_dir):
5301 New.
5302 (auto_load_objfile_script): Add DEBUG_AUTO_LOAD output. Remove
5303 GDB_DATADIR NULL check. Replace GDB_DATADIR/auto-load by
5304 AUTO_LOAD_DIR. Support $ddir and multiple components in it.
5305 (_initialize_auto_load): Initialize also auto_load_dir. Install new
5306 "set auto-load scripts-directory".
5307 * config.in: Regenerate.
5308 * configure: Regenerate.
5309 * configure.ac (--with-auto-load-dir): New configure option.
5310 (--auto-load-safe-path): Change the default to --with-auto-load-dir.
5311
6dea1fbd
JK
53122012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5313
5314 Provide $ddir substitution for --with-auto-load-safe-path.
5315 * NEWS (--with-auto-load-safe-path, --without-auto-load-safe-path): New
5316 entries.
5317 * auto-load.c: Include observer.h.
5318 (auto_load_safe_path_vec_update): Call substitute_path_component for
5319 each component. New variable ddir_subst.
5320 (auto_load_gdb_datadir_changed): New function.
5321 (set_auto_load_safe_path): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
5322 AUTO_LOAD_SAFE_PATH. New comment.
5323 (_initialize_auto_load): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
5324 AUTO_LOAD_SAFE_PATH. Install auto_load_gdb_datadir_changed.
5325 * config.in: Regenerate.
5326 * configure: Regenerate.
5327 * configure.ac (--auto-load-safe-path): Rename
5328 DEFAULT_AUTO_LOAD_SAFE_PATH to AUTO_LOAD_SAFE_PATH. Default to
5329 GDB_DATADIR/auto-load.
5330 * defs.h (substitute_path_component): New declaration.
5331 * top.c: Include observer.h.
5332 (set_gdb_datadir): New function.
5333 (init_main): Install it for "set data-directory".
5334 * utils.c (substitute_path_component): New function.
5335
b09aca3a
JK
53362012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5337
5338 Make auto-load handle multiple components of DEBUG_FILE_DIRECTORY.
5339 * auto-load.c (auto_load_objfile_script): Remove check for NULL
5340 DEBUG_FILE_DIRECTORY. Handle multiple components of
5341 DEBUG_FILE_DIRECTORY.
5342
95554aad
TT
53432012-05-10 Tom Tromey <tromey@redhat.com>
5344
5345 * dwarf2read.c (recursively_write_psymbols): New function.
5346 (write_psymtabs_to_index): Use it.
5347
5348 * dwarf2read.c (struct dwarf2_queue_item) <pretend_language>: New
5349 field.
5350 (load_cu, dw2_do_instantiate_symtab, process_psymtab_comp_unit)
5351 (load_partial_comp_unit): Update.
5352 (queue_comp_unit): Add argument 'pretend_language'.
5353 (process_queue): Update.
5354 (psymtab_to_symtab_1): Skip dependencies that have a user.
5355 (load_partial_comp_unit_reader): Give meaning to the 'data'
5356 argument.
5357 (load_full_comp_unit): Add 'pretend_language' argument.
5358 (process_full_comp_unit): Add 'pretend_language' argument. Set
5359 language on CU.
5360 (process_imported_unit_die, read_file_scope, read_type_unit_scope):
5361 Update.
5362 (maybe_queue_comp_unit): Add 'pretend_language' argument.
5363 (follow_die_offset, follow_die_sig, read_signatured_type_reader):
5364 Update.
5365 (prepare_one_comp_unit): Add 'pretend_language' argument.
5366
5367 * dwarf2read.c: (dwarf2_per_cu_ptr): New typedef.
5368 (struct dwarf2_per_objfile) <just_read_cus>: New field.
5369 (struct dwarf2_per_cu_data) <imported_symtabs>: New field.
5370 (dw2_do_instantiate_symtab): Check whether symtab was read in
5371 before queueing.
5372 (dw2_instantiate_symtab): Add assertion. Call
5373 process_cu_includes.
5374 (process_psymtab_comp_unit): Compute 'dependencies' for psymtab.
5375 (partial_symtab_p): New typedef.
5376 (set_partial_user): New function.
5377 (dwarf2_build_psymtabs_hard): Use set_partial_user.
5378 (scan_partial_symbols): Add imported CU to imported_symtabs.
5379 (dwarf2_psymtab_to_symtab): Call process_cu_includes.
5380 (psymtab_to_symtab_1): Do nothing if psymtab is readin.
5381 (get_symtab, recursively_compute_inclusions)
5382 (compute_symtab_includes, process_cu_includes)
5383 (process_imported_unit_die): New functions.
5384 (process_die) <DW_TAG_imported_unit>: New case.
5385 (dwarf2_per_objfile_free): Free 'imported_symtabs'.
5386
5387 * dwarf2read.c (struct dwarf2_per_cu_data) <psymtab>: Update
5388 comment.
5389 (struct partial_die_info) <locdesc>: Remove.
5390 <d>: New field.
5391 (process_psymtab_comp_unit): Add 'read_partial' argument.
5392 Update.
5393 (process_type_comp_unit, dwarf2_build_psymtabs_hard): Update.
5394 (scan_partial_symbols): Handle DW_TAG_imported_unit.
5395 (add_partial_symbol): Update.
5396 (process_die): Handle DW_TAG_partial_unit.
5397 (read_file_scope): Update comment.
5398 (load_partial_dies): Handle DW_TAG_imported_unit.
5399 (read_partial_die): Handle DW_TAG_partial_unit, DW_AT_import.
5400 (determine_prefix, dwarf2_name): Handle DW_TAG_partial_unit.
5401
e871fbb9
TT
54022012-05-10 Tom Tromey <tromey@redhat.com>
5403
5404 * cc-with-dwz.sh: New file.
5405
b5b04b5b
TT
54062012-05-10 Tom Tromey <tromey@redhat.com>
5407
5408 * symtab.h (struct symtab) <includes, user>: New fields.
5409 * block.h (struct block_iterator) <d, idx, which>: New fields.
5410 * block.c (initialize_block_iterator, find_iterator_symtab)
5411 (block_iterator_step, block_iter_name_step)
5412 (block_iter_match_step): New functions.
5413 (block_iterator_first, block_iterator_next)
5414 (block_iter_name_first, block_iter_name_next)
5415 (block_iter_match_first, block_iter_match_next): Rewrite.
5416 (get_block_symtab): New function.
5417
84a146c9
TT
54182012-05-10 Tom Tromey <tromey@redhat.com>
5419
5420 * jv-lang.c (get_java_class_symtab): Use allocate_global_block,
5421 set_block_symtab.
5422 * jit.c (finalize_symtab): Use allocate_global_block,
5423 set_block_symtab.
5424 * buildsym.c (finish_block_internal): New function, from old
5425 finish_block.
5426 (finish_block): Rewrite.
5427 (end_symtab): Use finish_block_internal, set_block_symtab.
5428 * block.h (struct global_block): New.
5429 (allocate_global_block, set_block_symtab): Declare.
5430 * block.c (allocate_global_block, set_block_symtab): New
5431 functions.
5432
9439a077
TT
54332012-05-10 Tom Tromey <tromey@redhat.com>
5434
5435 * psymtab.c (partial_map_expand_apply): Add assertion.
5436 (partial_map_symtabs_matching_filename): Skip included psymtabs.
5437 (psymtab_to_symtab): Find unshared psymtab.
5438 (dump_psymtab): Print including psymtabs.
5439 (recursively_search_psymtabs): New function.
5440 (expand_symtabs_matching_via_partial): Use it.
5441 * psympriv.h (struct partial_symtab) <user, searched_flag>: New
5442 fields.
5443 (enum psymtab_search_status): New.
5444
8157b174
TT
54452012-05-10 Tom Tromey <tromey@redhat.com>
5446
5447 * tracepoint.c (scope_info): Update.
5448 * symtab.c (lookup_block_symbol, iterate_over_symbols)
5449 (find_pc_sect_symtab, search_symbols)
5450 (default_make_symbol_completion_list_break_on)
5451 (make_file_symbol_completion_list): Update.
5452 * symmisc.c (dump_symtab_1): Update.
5453 * stack.c (print_frame_args, iterate_over_block_locals)
5454 (print_frame_labels, iterate_over_block_arg_vars): Update.
5455 * python/py-block.c (block_object) <dict>: Remove.
5456 <block>: New field.
5457 <iter>: Change type.
5458 (blpy_iter): Update.
5459 (blpy_block_syms_iternext): Update.
5460 * psymtab.c (map_block): Use block iterators.
5461 * objfiles.c (objfile_relocate1): Use ALL_DICT_SYMBOLS.
5462 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
5463 * mdebugread.c (parse_symbol, mylookup_symbol): Update.
5464 * infrun.c (check_exception_resume): Update.
5465 * cp-support.c (make_symbol_overload_list_block): Update.
5466 * coffread.c (patch_opaque_types): Update.
5467 * buildsym.c (finish_block, end_symtab): Use ALL_DICT_SYMBOLS.
5468 * block.h (struct block_iterator): New.
5469 (block_iterator_first, block_iterator_next, block_iter_name_first)
5470 (block_iter_name_next, block_iter_match_first)
5471 (block_iter_match_next): Declare.
5472 (ALL_BLOCK_SYMBOLS): Redefine.
5473 * block.c (block_iterator_first, block_iterator_next)
5474 (block_iter_name_first, block_iter_name_next)
5475 (block_iter_match_first, block_iter_match_next): New functions.
5476 * ada-lang.c (ada_add_block_symbols)
5477 (ada_make_symbol_completion_list): Use block iterator.
5478
a2ca7a52
TT
54792012-05-10 Tom Tromey <tromey@redhat.com>
5480
5481 * psymtab.c (PSYMTAB_TO_SYMTAB): Remove.
5482 (find_pc_sect_symtab_from_partial, lookup_symbol_aux_psymtabs)
5483 (lookup_partial_symbol, find_last_source_symtab_from_partial)
5484 (read_psymtabs_with_filename, map_matching_symbols_psymtab)
5485 (expand_symtabs_matching_via_partial, maintenance_check_symtabs):
5486 Update.
5487
64ea88dc
JB
54882012-05-10 Joel Brobecker <brobecker@adacore.com>
5489
5490 * config/djgpp/fnchange.lst: Add entries for print-file-var-lib1.c,
5491 print-file-var-lib2.c, print-file-var-main.c and
5492 print-file-var.exp (located in gdb/testsuite/gdb.base).
5493
99a547d6
JB
54942012-05-10 Joel Brobecker <brobecker@adacore.com>
5495
5496 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
5497 try locating the symbol in the symbol's own objfile first, before
5498 extending the search to all objfiles.
5499 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
5500 out of lookup_symbol_aux_symtabs.
5501 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
5502 Replace extracted-out code by call to lookup_symbol_aux_objfile.
5503 Do not search EXCLUDE_OBJFILE.
5504 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
5505 (lookup_symbol_global): Search for matches in the block's objfile
5506 first, before searching all other objfiles.
5507
0ece64fd
TG
55082012-05-10 Tristan Gingold <gingold@adacore.com>
5509
5510 * printcmd.c (set_command): Add pre/post inc/dec.
5511
3d16a105
FCE
55122012-05-09 Frank Ch. Eigler <fche@redhat.com>
5513
5514 * gdb.1: Document -ex option.
5515
2efbc0f7
JB
55162012-05-09 Joel Brobecker <brobecker@adacore.com>
5517
5518 * infcall.c (call_function_by_hand): Remove AT_SYMBOL handling.
5519 * inferior.h (AT_SYMBOL): Delete.
5520
2c76a0c7
JB
55212012-05-09 Joel Brobecker <brobecker@adacore.com>
5522
5523 * mips-tdep.c (mips_push_dummy_code): New function.
5524 (mips_gdbarch_init): Set the gdbarch call_dummy_location to
5525 ON_STACK and install mips_push_dummy_code as our gdbarch
5526 push_dummy_code routine.
5527
9401a810
PA
55282012-05-09 Pedro Alves <palves@redhat.com>
5529
5530 * target.c (set_maintenance_target_async_permitted): Rename to ...
5531 (set_target_async_command): ... this.
5532 (show_maintenance_target_async_permitted): Rename to ...
5533 (show_target_async_command): ... this.
5534 (initialize_targets): Adjust.
5535
3929b321
DE
55362012-05-08 Doug Evans <dje@google.com>
5537
5538 * go-exp.y (classify_name): Add missing assignment of fields of
5539 yylval.ssym.
5540
c41535fd
EZ
55412012-05-08 Eli Zaretskii <eliz@gnu.org>
5542
5543 Display the ">" prompt in interactive mode while reading canned
5544 commands, even when the current interpreter is MI.
5545
5546 * interps.c (interp_set_temp): New function.
5547
5548 * interps.h (interp_set_temp): Add prototype.
5549
5550 * cli/cli-script.c (restore_interp): New cleanup function.
5551 (read_command_lines): Temporarily override the current interpreter
5552 with CLI and arrange for restoring the original one.
5553
c0749c4d
JS
55542012-05-12 Joel Sherrill <joel.sherrill@oarcorp.com>
5555
5556 * microblaze-rom.c (_initialize_picobug_rom): Add prototype.
5557
d7333987
SDJ
55582012-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
5559
5560 * probe.c (parse_probes): Move conditional to check for
5561 debuginfo files from here...
5562 * stap-probe.c (stap_get_probes): ... to here.
5563
649e6d92
MK
55642012-05-07 Mark Kettenis <kettenis@gnu.org>
5565 H.J. Lu <hongjiu.lu@intel.com>
5566
5567 * amd64-tdep.c (amd64_analyze_prologue): Additionally check for
5568 `movl %esp, %ebp' for the X32 ABI.
5569
f39c6ffd
TT
55702012-05-07 Tom Tromey <tromey@redhat.com>
5571
5572 * dwarf2read.c (dwarf_tag_name): Return const char *. Use
5573 get_DW_TAG_name.
5574 (dwarf_attr_name): Return const char *. Use get_DW_AT_name.
5575 (dwarf_form_name): Return const char *. Use get_DW_FORM_name.
5576 (dwarf_stack_op_name): Remove.
5577 (dwarf_cfi_name): Return const char *. Use get_DW_ATE_name.
5578 (decode_locdesc): Use get_DW_OP_name.
5579 * dwarf2loc.c (unimplemented): Use get_DW_OP_name.
5580 (dwarf2_compile_expr_to_ax): Likewise.
5581 (disassemble_dwarf_expression): Likewise.
5582 * dwarf2expr.h: (dwarf_stack_op_name): Remove.
5583
1e1f6591
CLT
55842012-05-07 Chung-Lin Tang <cltang@codesourcery.com>
5585
5586 * sh-linux-tdep.c: Include trad-frame.h and tramp-frame.h.
5587 (sh_linux_sigtramp_cache): New function.
5588 (sh_linux_sigreturn_init): New function.
5589 (sh_linux_rt_sigreturn_init): New function.
5590 (SH_MOVW,SH_TRAP,SH_OR_R0_R0): New symbols for instruction
5591 patterns.
5592 (SH_NR_SIGRETURN,SH_NR_RT_SIGRETURN): New symbols for sigreturn
5593 syscall codes.
5594 (sh_linux_sigreturn_tramp_frame): New tramp_frame definition.
5595 (sh_linux_rt_sigreturn_tramp_frame): Likewise.
5596 (sh_linux_init_abi): Add init calls to register new tramp_frame
5597 definitions under 32-bit SH, update comments.
5598
545c08b4
PA
55992012-05-07 Pedro Alves <palves@redhat.com>
5600
daac165e
PA
5601 PR gdb/10952
5602
545c08b4
PA
5603 * amd64-linux-tdep.c: Include glibc-tdep.h.
5604 (amd64_linux_init_abi): Install glibc_skip_solib_resolver as
5605 gdbarch_skip_solib_resolver callback.
5606
af2c1515
JK
56072012-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5608
5609 * auto-load.c (set_auto_load_safe_path): Reset AUTO_LOAD_SAFE_PATH
5610 back to DEFAULT_AUTO_LOAD_SAFE_PATH if it is being set to "".
5611 (show_auto_load_safe_path): Check any-directory by comparison with "/".
5612 (add_auto_load_safe_path): Change the error message.
5613 (_initialize_auto_load): Change the "safe-path" help text.
5614 * configure: Regenerate
5615 * configure.ac (--without-auto-load-safe-path): Set
5616 WITH_AUTO_LOAD_SAFE_PATH to /.
5617
1067f998
SDJ
56182012-05-05 Sergio Durigan Junior <sergiodj@redhat.com>
5619
5620 * stap-probe.h: Do not include unecessary `probe.h'.
5621
45dfa85a
AM
56222012-05-05 Alan Modra <amodra@gmail.com>
5623
5624 * elfread.c (elf_symtab_read): Use bfd_abs_section_ptr and
5625 bfd_und_section_ptr.
5626 * machoread.c (macho_symtab_add_minsym): Use bfd_abs_section_ptr
5627 and bfd_com_section_ptr.
5628
cf093994
JB
56292012-05-04 Joel Brobecker <brobecker@adacore.com>
5630
762ebb75 5631 * MAINTAINERS (Past Maintainers): Add Chris Faylor.
cf093994 5632
d40dc7a8
JB
56332012-05-04 Joel Brobecker <brobecker@adacore.com>
5634
5635 * windows-nat.h (segment_register_p_ftype): New typedef.
5636 (windows_set_segment_register_p): Add declaration.
5637 * windows-nat.c (segment_register_p): New static global.
5638 (windows_set_segment_register_p): New function.
5639 (do_windows_fetch_inferior_registers): Add special handling
5640 for segment registers.
5641 * amd64-windows-nat.c: #include "amd64-tdep.h".
5642 (amd64_windows_segment_register_p): New function.
5643 (_initialize_amd64_windows_nat): Call windows_set_segment_register_p.
5644 * i386-windows-nat.c: #include "i386-tdep.h".
5645 (i386_windows_segment_register_p): New function.
5646 (_initialize_i386_windows_nat): Call windows_set_segment_register_p.
5647
52b3699b
TG
56482012-05-04 Tristan Gingold <gingold@adacore.com>
5649
5650 * printcmd.c (set_command): Emit a warning if the expression is not
5651 an assignment.
5652
94c74239
JB
56532012-05-03 Joel Brobecker <brobecker@adacore.com>
5654
5655 * nto-procfs.c (procfs_find_new_threads, procfs_pid_to_str):
5656 Make static.
5657
fcf57f19
SDJ
56582012-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
5659
5660 * stap-probe.c (stap_is_operator): Change declaration.
5661 (stap_get_opcode): Change return value.
5662 (stap_parse_argument_1): Update calls to `stap_get_opcode' and
5663 `stap_parse_argument_1'.
5664
27d2932e
PA
56652012-05-03 Pedro Alves <pedro@codesourcery.com>
5666
5667 * infrun.c (displaced_step_fixup): Add "displaced:" prefix to
5668 debug log.
5669
a20ee7a4
SCR
56702012-05-03 Siva Chandra Reddy <sivachandra@google.com>
5671
5672 Add two new methods global_block and static_block to gdb.Symtab
5673 objects.
5674 * NEWS (Python scripting): Add entry about the new methods.
5675 * python/py-symtab.c (stpy_global_block): New function which
5676 implements the gdb.Symtab.global_block() method.
5677 (stpy_static_block): New function which implements the
5678 gdb.Symtab.static_block() method.
5679 (symtab_object_methods): Add entries for the two new methods.
5680
943cb756
DE
56812012-05-03 Doug Evans <dje@google.com>
5682
5683 * dwarf2read.c (dw2_find_symbol_file): Don't crash if there are no
5684 files.
5685
f4644a3f
YQ
56862012-05-03 Yao Qi <yao@codesourcery.com>
5687
5688 * i386-tdep.c (i386_fetch_pointer_argument): Remove extra
5689 space.
5690 (i386_process_record): Ditto.
5691
ef61f180
JB
56922012-05-02 Joel Brobecker <brobecker@adacore.com>
5693
5694 * infcall.c (unwind_on_signal_p): Make static.
5695
02f1df11
JB
56962012-05-02 Joel Brobecker <brobecker@adacore.com>
5697
5698 * sol-thread.c (solaris_pid_to_str): Make static.
5699 (_initialize_sol_thread): Add prototype.
5700
39023530
JB
57012012-05-02 Joel Brobecker <brobecker@adacore.com>
5702
5703 * sol-thread.c (procfs_pid_to_str): Delete extern declaration.
5704
c6b0c501
CF
57052012-05-02 Christopher Faylor <me.cygwin2012@cgf.cx>
5706
5707 * MAINTAINERS: Remove myself.
5708
1ef71717
JK
57092012-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5710
5711 Fix --without-auto-load-safe-path for MS-Windows host platform.
5712 * auto-load.c (filename_is_in_dir): Return 1 for DIR_LEN 0.
5713
b31b86a7
EZ
57142012-05-02 Eli Zaretskii <eliz@gnu.org>
5715
5716 * gdb_curses.h: Undefine KEY_EVENT before including curses
5717 headers. Move "#undef MOUSE_MOVED" before any curses header
5718 inclusion.
5719
777532fc
SDJ
57202012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
5721
5722 * features/i386/i386-mmx-linux.c: Regenerate.
5723 * features/rs6000/powerpc-32.c: Likewise.
5724 * features/rs6000/powerpc-32l.c: Likewise.
5725 * features/rs6000/powerpc-403.c: Likewise.
5726 * features/rs6000/powerpc-403gc.c: Likewise.
5727 * features/rs6000/powerpc-405.c: Likewise.
5728 * features/rs6000/powerpc-505.c: Likewise.
5729 * features/rs6000/powerpc-601.c: Likewise.
5730 * features/rs6000/powerpc-602.c: Likewise.
5731 * features/rs6000/powerpc-603.c: Likewise.
5732 * features/rs6000/powerpc-604.c: Likewise.
5733 * features/rs6000/powerpc-64.c: Likewise.
5734 * features/rs6000/powerpc-64l.c: Likewise.
5735 * features/rs6000/powerpc-750.c: Likewise.
5736 * features/rs6000/powerpc-860.c: Likewise.
5737 * features/rs6000/powerpc-e500.c: Likewise.
5738 * features/rs6000/powerpc-e500l.c: Likewise.
5739 * features/rs6000/powerpc-isa205-32l.c: Likewise.
5740 * features/rs6000/powerpc-isa205-64l.c: Likewise.
5741 * features/rs6000/rs6000.c: Likewise.
5742
d71871bc
SDJ
57432012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
5744
5745 * i386-tdep.c (i386_stap_parse_special_token) <s>: Remove unused
5746 variable.
5747 * stap-probe.c (stap_parse_single_operand) <reg_suffix,
5748 reg_ind_suffix, reg_suffix_len, reg_ind_suffix_len>: Likewise.
5749 (stap_parse_argument) <e>: Likewise.
5750 (handle_stap_probe) <byte_order>: Likewise.
5751
fd820528
DE
57522012-04-30 Doug Evans <dje@google.com>
5753
5754 * dwarf2read.c (init_cutu_and_read_dies): Renamed from
5755 init_and_read_dies_worker. All callers updated.
5756 (init_cu_and_read_dies, init_tu_and_read_dies): Delete. All calls
5757 replaced with init_cutu_and_read_dies.
5758 (load_partial_comp_unit): Pass 1 for use_existing_cu.
5759 (find_partial_die): Remove FIXME. Don't free current CU.
5760
ec3f619d 57612012-04-30 Sterling Augustine <saugustine@google.com>
be36f02d
SA
5762
5763 * contrib: New directory.
5764 * contrib/test_pubnames_and_indexes.py: New file.
5765
fceca515
DE
57662012-04-30 Doug Evans <dje@google.com>
5767
5768 * dwarf2read.c (dwarf_decode_macros): New arg section_name.
5769 All callers updated.
5770 (init_cu_die_reader): Verify the section is non-empty.
5771 (dwarf_decode_line_header): Don't dereference section->asection
5772 until we know the section is present.
5773
311fe7e1
SDJ
57742012-04-29 Sergio Durigan Junior <sergiodj@redhat.com>
5775
5776 * tracepoint.c (start_tracing, stop_tracing): Checking for NULL
5777 probes.
5778
5977971a
YQ
57792012-04-29 Yao Qi <yao@codesourcery.com>
5780
5781 * gdb-code-style.el: New hook gdb-markup-hook
5782 and gdb-comment-hook.
5783
dee91e82
DE
57842012-04-28 Doug Evans <dje@google.com>
5785
3019eac3
DE
5786 Initial support for Fission. http://gcc.gnu.org/wiki/DebugFission
5787 * symfile.c (default_symfile_relocate): Use sectp->owner instead of
5788 objfile->obfd.
5789 * symfile.h (dwarf2_debug_sections): New member addr.
5790 * dwarf2expr.c (execute_stack_op): New case DW_OP_GNU_addr_index.
5791 (ctx_no_get_addr_index): New function.
5792 * dwarf2expr.h (dwarf_expr_context_funcs): New member get_addr_index.
5793 (ctx_no_get_addr_index): Declare.
5794 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Update.
5795 * dwarf2loc.c (dwarf_expr_get_addr_index): New function.
5796 (dwarf_expr_ctx_funcs): Update.
5797 (needs_get_addr_index): New function.
5798 (needs_frame_ctx_funcs): Update.
5799 * dwarf2loc.h (dwarf2_read_addr_index): Declare.
5800 * dwarf2read.c: #include "gdbcore.h".
5801 (dwarf2_per_objfile): New members addr, dwo_files.
5802 (dwarf2_elf_names): Add entry for addr.
5803 (struct dwo_section_names): New type.
5804 (dwo_section_names): New static global.
5805 (dwarf2_cu): New members dwo_unit, addr_base, have_addr_base.
5806 (dwarf2_per_cu_data): New member is_debug_types, all boolean uses of
5807 old debug_types_section member updated to use this.
5808 Rename member debug_types_section to info_or_types_section,
5809 all uses updated.
5810 (signatured_type): Rename member type_offset to type_offset_in_tu,
5811 all uses updated. New member type_offset_in_section.
5812 (struct dwo_sections): New type.
5813 (struct dwo_unit): New type.
5814 (struct dwo_file): New type.
5815 (die_reader_specs): New member dwo_file.
5816 (dwarf2_locate_sections): Watch for .debug_addr.
5817 (zlib_decompress_section): Use sectp->owner instead of objfile->obfd.
5818 (dwarf2_read_section): Get bfd of section from bfd's asection,
5819 instead of objfile.
5820 (create_cus_from_index): Initialize the_cu->info_or_types_section.
5821 (create_signatured_type_table_from_index): Initialize
5822 sig_type->info_or_types_section.
5823 (dw2_get_file_names): Statement lists for type units with DWO files
5824 live in the DWO file.
5825 (create_debug_types_hash_table): New function.
5826 (create_all_type_units): Rewrite.
5827 (init_cu_die_reader): New arg dwo_file, all callers updated.
5828 (init_and_read_dies_worker): Get section from
5829 this_cu->info_or_types_section. Set sig_type->type_offset_in_section.
5830 Watch for DW_AT_GNU_dwo_name and if present lookup the file and
5831 continue reading the CU/TU from there.
5832 (init_cutu_and_read_dies_no_follow): New arg dwo_file, all callers
5833 updated. Get section from this_cu->info_or_types_section.
5834 (create_all_comp_units): Initialize this_cu->info_or_types_section.
5835 (skip_one_die): New cases DW_FORM_GNU_addr_index,
5836 DW_FORM_GNU_str_index.
5837 (hash_dwo_file, eq_dwo_file): New functions.
5838 (allocate_dwo_file_hash_table): New function.
5839 (hash_dwo_unit, eq_dwo_unit): New functions.
5840 (allocate_dwo_unit_table): New function.
5841 (dwarf2_locate_dwo_sections): New function.
5842 (struct create_dwo_info_table_data): New type.
5843 (create_debug_info_hash_table_reader): New function.
5844 (create_debug_info_hash_table): New function.
5845 (try_open_dwo_file, open_dwo_file, init_dwo_file): New function.
5846 (lookup_dwo_file): New function.
5847 (lookup_dwo_comp_unit, lookup_dwo_type_unit): New functions.
5848 (free_dwo_file, free_dwo_file_cleanup): New functions.
5849 (free_dwo_file_from_slot, free_dwo_files): New functions.
5850 (dwarf2_get_pc_bounds): Handle DW_FORM_GNU_addr_index.
5851 (dwarf2_record_block_ranges): Ditto.
5852 (read_partial_die): Ditto.
5853 (process_enumeration_scope): Update to use type_offset_in_section.
5854 (read_full_die_1): New function.
5855 (read_full_die): Rewrite.
5856 (read_attribute_value): New cases DW_FORM_GNU_addr_index,
5857 DW_FORM_GNU_str_index.
5858 (read_addr_index_1, read_addr_index): New functions.
5859 (read_addr_index_from_leb128): New function.
5860 (struct dwarf2_read_addr_index_data): New type.
5861 (dwarf2_read_addr_index_reader): New function.
5862 (dwarf2_read_addr_index): New function.
5863 (read_str_index): New function.
5864 (leb128_size): New function.
5865 (dwarf_decode_line_header): Delete arg abfd, all callers updated.
5866 If processing a type unit from a DWO file, get the line section
5867 from the DWO file.
5868 (var_decode_location): Watch for DW_OP_GNU_addr_index.
5869 (dwarf2_const_value_attr): New cases DW_FORM_GNU_addr_index,
5870 DW_FORM_GNU_str_index.
5871 (lookup_die_type): Check whether section offset of type's die is
5872 known before looking it up. Remove assert. Condition can
5873 legimately happen for inter-cu type references.
5874 (dwarf_attr_name): Handle Fission attributes.
5875 (dwarf_form_name): Handle Fission forms.
5876 (dump_die_shallow): New cases DW_FORM_GNU_addr_index,
5877 DW_FORM_GNU_str_index.
5878 (follow_die_sig): Update to use type_offset_in_section.
5879 (decode_locdesc): New case DW_OP_GNU_addr_index.
5880 (skip_form_bytes): New cases DW_FORM_GNU_addr_index,
5881 DW_FORM_GNU_str_index.
5882 (cu_debug_loc_section): New function.
5883 (fill_in_loclist_baton, dwarf2_symbol_mark_computed): Call it.
5884 (dwarf2_per_objfile_free): Unmap .debug_addr section.
5885 Free DWO files if present.
5886 * xcoffread.c (dwarf2_xcoff_names): Add .debug_addr.
5887
dee91e82
DE
5888 Refactor DIE reading.
5889 * dwarf2read.c (dwarf2_per_objfile): Replace members
5890 debug_info_type_hash and debug_types_type_hash with die_type_hash.
5891 (die_reader_specs): New member "die_section". Temporarily make
5892 member "buffer" non-const, pending constifying all info_ptr uses.
5893 (die_reader_func_ftype): New typedef.
5894 (dw2_get_file_names_reader): New function.
5895 (dw2_get_file_names): Rewrite.
5896 (read_and_check_type_unit_head): Rename arg type_offset to
5897 type_offset_in_tu.
5898 (create_all_type_units): Improve debugging message.
5899 Improve dummy type unit check.
5900 (init_cu_die_reader): New arg "section". All callers updated.
5901 (init_and_read_dies_worker): New function.
5902 (init_cu_and_read_dies, init_tu_and_read_dies): New functions.
5903 (init_cutu_and_read_dies_no_follow): New function.
5904 (init_cutu_and_read_dies_simple): New function.
5905 (process_psymtab_comp_unit_reader): New function.
5906 (process_psymtab_comp_unit): Delete args section,
5907 is_debug_types_section. Rewrite. All callers updated.
5908 (process_psymtab_type_unit): Renamed from process_type_comp_unit.
5909 All callers updated. Rewrite.
5910 (load_partial_comp_unit_reader): New function.
5911 (load_partial_comp_unit): Rewrite.
5912 (skip_children): New arg reader. Delete args buffer, cu.
5913 All callers updated.
5914 (skip_one_die): New arg reader. Delete args buffer, cu.
5915 All callers updated.
5916 (locate_pdi_sibling): New arg reader. Delete args buffer, abfd, cu.
5917 All callers updated.
5918 (load_full_comp_unit_reader): New function.
5919 (load_full_comp_unit): Rewrite.
5920 (read_comp_unit): Delete.
5921 (read_die_and_children_1): Delete, contents moved ...
5922 (read_die_and_children): ... here.
5923 (dwarf2_read_abbrevs): New arg abbrev_section. All callers updated.
5924 (load_partial_dies): New arg reader. Delete args abfd, buffer, cu.
5925 All callers updated.
5926 (read_partial_die): New arg reader. Delete args abfd, buffer, cu.
5927 All callers updated.
5928 (find_partial_die): Rewrite load_all_dies support.
5929 (read_attribute_value): New arg reader. Delete args abfd, cu.
5930 All callers updated.
5931 (read_attribute): New arg reader. Delete args abfd, cu.
5932 All callers updated.
5933 (load_full_type_unit): Add assert.
5934 (read_signatured_type_reader): New function.
5935 (read_signatured_type): Rewrite.
5936 (free_stack_comp_unit): Remove call to age_cached_comp_units.
5937 (free_one_cached_comp_unit): Change target_cu arg to target_per_cu.
5938 All callers updated. Set per_cu->cu = NULL after freeing it.
5939 (dwarf2_per_cu_offset_and_type): Renamed from dwarf2_offset_and_type.
5940 (per_cu_offset_and_type_hash): Renamed from offset_and_type_hash.
5941 (per_cu_offset_and_type_eq): Renamed from offset_and_type_eq.
5942 (set_die_type): Update.
5943 (get_die_type_at_offset): Update.
5944 (read_file_scope): Call prepare_one_comp_unit.
5945 (read_type_unit_scope): Ditto.
5946 (prepare_one_comp_unit): Set producer if present.
5947
72d59e0d
SDJ
59482012-04-28 Sergio Durigan Junior <sergiodj@redhat.com>
5949
5950 * probe.c (compile_rx_or_error): Silence ARI warning about missing
5951 gettext function on `error'.
5952
0fefef59
DE
59532012-04-27 Doug Evans <dje@google.com>
5954
5955 * dwarf2read.c (dwarf2_read_index): Don't use index if symbol table
5956 is empty.
5957
28106bc2
SDJ
59582012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
5959 Tom Tromey <tromey@redhat.com>
5960
5961 * breakpoint.c (struct breakpoint_objfile_data)
5962 <longjmp_searched>,<longjmp_probes>,<exception_searched>,
5963 <exception_probes>: New fields.
5964 (free_breakpoint_probes): New function.
5965 (create_longjmp_master_breakpoint): Prefer SystemTap probe over
5966 `_Unwind_DebugHook'.
5967 (create_exception_master_breakpoint): Likewise.
5968 (_initialize_breakpoint): Registering cleanup for SystemTap probes.
5969 * infrun.c: Including necessary header files for handling SystemTap
5970 probes.
5971 (handle_inferior_event): Handling longjmp breakpoint and exceptions
5972 via SystemTap probes.
5973 (check_exception_resume): Remove `func' argument. Handle exception
5974 unwinding breakpoint set via a SystemTap probe.
5975 (insert_exception_resume_from_probe): New function.
5976
55aa24fb
SDJ
59772012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
5978 Tom Tromey <tromey@redhat.com>
5979 Jan Kratochvil <jan.kratochvil@redhat.com>
5980
5981 * Makefile.in (SFILES): Add `probe' and `stap-probe'.
5982 (COMMON_OBS): Likewise.
5983 (HFILES_NO_SRCDIR): Add `probe'.
5984 * NEWS: Mention support for static and SystemTap probes.
5985 * amd64-tdep.c (amd64_init_abi): Initializing proper fields used by
5986 SystemTap probes' arguments parser.
5987 * arm-linux-tdep.c: Including headers needed to perform the parsing
5988 of SystemTap probes' arguments.
5989 (arm_stap_is_single_operand): New function.
5990 (arm_stap_parse_special_token): Likewise.
5991 (arm_linux_init_abi): Initializing proper fields used by SystemTap
5992 probes' arguments parser.
5993 * ax-gdb.c (require_rvalue): Removing static declaration.
5994 (gen_expr): Likewise.
5995 * ax-gdb.h (gen_expr): Declaring function.
5996 (require_rvalue): Likewise.
5997 * breakpoint.c: Include `gdb_regex.h' and `probe.h'.
5998 (bkpt_probe_breakpoint_ops): New variable.
5999 (momentary_breakpoint_from_master): Set the `probe' value.
6000 (add_location_to_breakpoint): Likewise.
6001 (break_command_1): Using proper breakpoint_ops according to the
6002 argument passed by the user in the command line.
6003 (bkpt_probe_insert_location): New function.
6004 (bkpt_probe_remove_location): Likewise.
6005 (bkpt_probe_create_sals_from_address): Likewise.
6006 (bkpt_probe_decode_linespec): Likewise.
6007 (tracepoint_probe_create_sals_from_address): Likewise.
6008 (tracepoint_probe_decode_linespec): Likewise.
6009 (tracepoint_probe_breakpoint_ops): New variable.
6010 (trace_command): Using proper breakpoint_ops according to the
6011 argument passed by the user in the command line.
6012 (initialize_breakpoint_ops): Initializing breakpoint_ops for
6013 static probes on breakpoints and tracepoints.
6014 * breakpoint.h (struct bp_location) <probe>: New field.
6015 * cli-utils.c (skip_spaces_const): New function.
6016 (extract_arg): Likewise.
6017 * cli-utils.h (skip_spaces_const): Likewise.
6018 (extract_arg): Likewise.
6019 * coffread.c (coff_sym_fns): Add `sym_probe_fns' value.
6020 * configure.ac: Append `stap-probe.o' to be generated when ELF
6021 support is present.
6022 * configure: Regenerate.
6023 * dbxread.c (aout_sym_fns): Add `sym_probe_fns' value.
6024 * elfread.c: Include `probe.h' and `arch-utils.h'.
6025 (probe_key): New variable.
6026 (elf_get_probes): New function.
6027 (elf_get_probe_argument_count): Likewise.
6028 (elf_evaluate_probe_argument): Likewise.
6029 (elf_compile_to_ax): Likewise.
6030 (elf_symfile_relocate_probe): Likewise.
6031 (stap_probe_key_free): Likewise.
6032 (elf_probe_fns): New variable.
6033 (elf_sym_fns): Add `sym_probe_fns' value.
6034 (elf_sym_fns_lazy_psyms): Likewise.
6035 (elf_sym_fns_gdb_index): Likewise.
6036 (_initialize_elfread): Initialize objfile cache for static
6037 probes.
6038 * gdb_vecs.h (struct probe): New forward declaration.
6039 (probe_p): New VEC declaration.
6040 * gdbarch.c: Regenerate.
6041 * gdbarch.h: Regenerate.
6042 * gdbarch.sh (stap_integer_prefix): New variable.
6043 (stap_integer_suffix): Likewise.
6044 (stap_register_prefix): Likewise.
6045 (stap_register_suffix): Likewise.
6046 (stap_register_indirection_prefix): Likewise.
6047 (stap_register_indirection_suffix): Likewise.
6048 (stap_gdb_register_prefix): Likewise.
6049 (stap_gdb_register_suffix): Likewise.
6050 (stap_is_single_operand): New function.
6051 (stap_parse_special_token): Likewise.
6052 (struct stap_parse_info): Forward declaration.
6053 * i386-tdep.c: Including headers needed to perform the parsing
6054 of SystemTap probes' arguments.
6055 (i386_stap_is_single_operand): New function.
6056 (i386_stap_parse_special_token): Likewise.
6057 (i386_elf_init_abi): Initializing proper fields used by SystemTap
6058 probes' arguments parser.
6059 * i386-tdep.h (i386_stap_is_single_operand): New function.
6060 (i386_stap_parse_special_token): Likewise.
6061 * machoread.c (macho_sym_fns): Add `sym_probe_fns' value.
6062 * mipsread.c (ecoff_sym_fns): Likewise.
6063 * objfiles.c (objfile_relocate1): Support relocation for static
6064 probes.
6065 * parse.c (prefixify_expression): Remove static declaration.
6066 (initialize_expout): Likewise.
6067 (reallocate_expout): Likewise.
6068 * parser-defs.h (initialize_expout): Declare function.
6069 (reallocate_expout): Likewise.
6070 (prefixify_expression): Likewise.
6071 * ppc-linux-tdep.c: Including headers needed to perform the parsing
6072 of SystemTap probes' arguments.
6073 (ppc_stap_is_single_operand): New function.
6074 (ppc_stap_parse_special_token): Likewise.
6075 (ppc_linux_init_abi): Initializing proper fields used by SystemTap
6076 probes' arguments parser.
6077 * probe.c: New file, for generic statically defined probe support.
6078 * probe.h: Likewise.
6079 * s390-tdep.c: Including headers needed to perform the parsing of
6080 SystemTap probes' arguments.
6081 (s390_stap_is_single_operand): New function.
6082 (s390_gdbarch_init): Initializing proper fields used by SystemTap
6083 probes' arguments parser.
6084 * somread.c (som_sym_fns): Add `sym_probe_fns' value.
6085 * stap-probe.c: New file, for SystemTap probe support.
6086 * stap-probe.h: Likewise.
6087 * symfile.h: Include `gdb_vecs.h'.
6088 (struct sym_probe_fns): New struct.
6089 (struct sym_fns) <sym_probe_fns>: New field.
6090 * symtab.c (init_sal): Initialize `probe' field.
6091 * symtab.h (struct probe): Forward declaration.
6092 (struct symtab_and_line) <probe>: New field.
6093 * tracepoint.c (start_tracing): Adjust semaphore on breakpoints
6094 locations.
6095 (stop_tracing): Likewise.
6096 * xcoffread.c (xcoff_sym_fns): Add `sym_probe_fns' value.
6097
22d2b532
SDJ
60982012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
6099 Tom Tromey <tromey@redhat.com>
6100
6101 * ax-gdb.c (gen_expr): Clean up code to handle internal variables
6102 and to compile agent expressions.
6103 * infrun.c (siginfo_make_value): New argument `ignore'.
6104 (siginfo_funcs): New struct.
6105 (_initialize_infrun): New argument when calling
6106 `create_internalvar_type_lazy'.
6107 * thread.c (thread_id_make_value): New argument `ignore'.
6108 (thread_funcs): New struct.
6109 (_initialize_thread): New argument when calling
6110 `create_internalvar_type_lazy'.
6111 * tracepoint.c (sdata_make_value): New argument `ignore'.
6112 (sdata_funcs): New struct.
6113 (_initialize_tracepoint): New argument when calling
6114 `create_internalvar_type_lazy'.
6115 * value.c (make_value): New struct.
6116 (create_internalvar_type_lazy): New argument `data'.
6117 (compile_internalvar_to_ax): New function.
6118 (value_of_internalvar): Properly handling `make_value' case.
6119 (clear_internalvar): Likewise.
6120 (show_convenience): Adding `TRY_CATCH' block.
6121 * value.h (internalvar_make_value): Delete, replace by...
6122 (struct internalvar_funcs): ... this.
6123 (create_internalvar_type_lazy) <fun>: Delete argument.
6124 (create_internalvar_type_lazy) <funcs>, <data>: New arguments.
6125 (compile_internalvar_to_ax): New function.
6126 * windows-tdep.c (tlb_make_value): New argument `ignore'.
6127 (tlb_funcs): New struct.
6128 (_initialize_windows_tdep): New argument when calling
6129 `create_internalvar_type_lazy'.
6130
91da1414
MW
61312012-04-27 Mark Wielaard <mjw@redhat.com>
6132
6133 * dwarf2read.c (dwarf2_get_pc_bounds): Check DW_AT_high_pc form to
6134 see whether it is an address or a constant offset from DW_AT_low_pc.
6135 (dwarf2_record_block_ranges): Likewise.
6136 (read_partial_die): Likewise.
6137
4ab9d8ec
MW
61382012-04-26 Mark Wielaard <mjw@redhat.com>
6139
6140 * MAINTAINERS (Write After Approval): Add myself to the list.
6141
a0911fd0
MR
61422012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
6143
6144 * proc-utils.h (proc_prettyprint_signalset): New prototype.
6145 (proc_prettyprint_signal): Likewise.
6146 (proc_prettyprint_faultset): Likewise.
6147 (proc_prettyprint_fault): Likewise.
6148 (proc_prettyprint_actionset): Likewise.
6149 (proc_prettyprint_flags): Move to new proc-flags.c section.
6150 (proc_prettyfprint_flags): New prototype.
6151 * procfs.c (proc_nsysarg, proc_sysargs): Add prototypes.
6152 (proc_syscall, proc_cursig): Likewise.
6153 (proc_set_kill_on_last_close): Likewise.
6154 (proc_unset_kill_on_last_close): Likewise.
6155 (proc_set_watchpoint): Make static.
6156 (proc_delete_dead_threads): Likewise.
6157 (procfs_set_watchpoint): Likewise.
6158 (_initialize_procfs): Add prototype.
6159 * proc-events.c: Include proc-utils.h.
6160 (init_syscall_table): Make static.
6161 * proc-api.c (_initialize_proc_api): Add prototype.
6162 * proc-flags.c: Include proc-utils.h.
6163
9009e1ae
MR
61642012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
6165
6166 * configure.ac: Add AC_ARG_PROGRAM.
6167 * configure: Regenerate.
6168
4fae6e18
JK
61692012-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
6170
6171 Fix DW_AT_lower_bound defaults for DWARF-4+.
6172 * dwarf2read.c (read_subrange_type): Remove initialization of low and
6173 high. New variable low_default_is_valid. Implement DWARF-4+
6174 DW_AT_lower_bound defaults. Print complaint for DW_AT_lower_bound with
6175 no default by the DWARF standard.
6176
14132e89 61772012-04-26 Maciej W. Rozycki <macro@mips.com>
f782ad9b 6178 Maciej W. Rozycki <macro@codesourcery.com>
14132e89
MR
6179
6180 * infrun.c (handle_inferior_event): Move the check for return
6181 trampolines ahead of the check for function trampolines.
6182 * mips-tdep.h (MIPS_S2_REGNUM, MIPS_GP_REGNUM): New macros.
6183 * mips-tdep.c (mips_str_mips16_call_stub): New variable.
6184 (mips_str_mips16_ret_stub): Likewise.
6185 (mips_str_call_fp_stub): Likewise.
6186 (mips_str_call_stub): Likewise.
6187 (mips_str_fn_stub): Likewise.
6188 (mips_str_pic): Likewise.
6189 (mips_in_frame_stub): New function.
6190 (mips_unwind_pc): Return the return address rather than the PC
6191 if the PC of an intermediate frame is inside a call thunk.
6192 (mips_is_stub_suffix): New function.
6193 (mips_is_stub_mode): Likewise.
6194 (mips_get_mips16_fn_stub_pc): Likewise.
6195 (mips_skip_mips16_trampoline_code): Update to handle all the
6196 currently generated stub types. Don't recurse into __fn_stub
6197 thunks. Remove heuristics to handle stubs beyond etext/_etext.
6198 Use cooked register accesses.
6199 (mips_in_return_stub): Reintroduce function.
6200 (mips_skip_trampoline_code): Traverse trampolines recursively.
6201 (mips_gdbarch_init): Handle MIPS16 return trampolines.
6202
518f0db5 62032012-04-26 Joel Brobecker <brobecker@adacore.com>
6204
6205 GDB 7.4.1 released.
6206
3184d3f9
JL
62072012-04-26 Jonathan Larmour <jifl@eCosCentric.com>
6208
6209 * arm-tdep.h (VFP_REGISTER_SIZE): Define.
6210 * features/arm-with-m-vfp-d16.xml: New file. Describes
6211 Cortex-M with VFPv4-sp-d16 FPU register layout.
6212 * features/Makefile (WHICH): Add arm-with-m-vfp-d16.
6213 * features/arm-with-m-vfp-d16.c: New. Generated from above.
6214 * arm-tdep.c: Include arm-with-m-vfp-d16.c.
6215 (arm-register_g_packet_guesses): Add vfp-d16 guess.
6216 (_initialise_arm_tdep): Initialize arm-with-m-vfp-d16 tdesc.
6217
b6201d44
DE
62182012-04-25 Doug Evans <dje@google.com>
6219
6220 * cli/cli-decode.c (print_doc_line): Use stream instead of
6221 current_uiout.
6222
4e2f8df6
SDJ
62232012-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
6224
6225 * features/arm-with-iwmmxt.c: Regenerate.
6226 * features/arm-with-m-fpa-layout.c: Likewise.
6227 * features/arm-with-m.c: Likewise.
6228 * features/arm-with-neon.c: Likewise.
6229 * features/arm-with-vfpv2.c: Likewise.
6230 * features/arm-with-vfpv3.c: Likewise.
6231 * features/mips-dsp-linux.c: Likewise.
6232 * features/mips-linux.c: Likewise.
6233 * features/mips64-dsp-linux.c: Likewise.
6234 * features/mips64-linux.c: Likewise.
6235 * features/s390-linux32.c: Likewise.
6236 * features/s390-linux32v1.c: Likewise.
6237 * features/s390-linux32v2.c: Likewise.
6238 * features/s390-linux64.c: Likewise.
6239 * features/s390-linux64v1.c: Likewise.
6240 * features/s390-linux64v2.c: Likewise.
6241 * features/s390x-linux64.c: Likewise.
6242 * features/s390x-linux64v1.c: Likewise.
6243 * features/s390x-linux64v2.c: Likewise.
6244 * features/tic6x-c62x-linux.c: Likewise.
6245 * features/tic6x-c62x.c: Likewise.
6246 * features/tic6x-c64x-linux.c: Likewise.
6247 * features/tic6x-c64x.c: Likewise.
6248 * features/tic6x-c64xp-linux.c: Likewise.
6249 * features/tic6x-c64xp.c: Likewise.
6250 * target-descriptions.c: Only generate `field_type' and `type'
6251 variables when needed.
6252
2def3e66
JB
62532012-04-25 Fredrik Hederstierna <fredrikh.hederstierna@securitas-direct.com>
6254
6255 * cli/cli-cmds.c (cd_command): Use memmove instead of strcpy.
6256
a766d390
DE
62572012-04-25 Doug Evans <dje@google.com>
6258
6259 Initial pass at Go language support.
6260 * NEWS: Mention Go.
6261 * Makefile.in (SFILES): Add go-exp.y, go-lang.c, go-typeprint.c,
6262 go-valprint.c.
6263 (COMMON_OBS): Add go-lang.o, go-val.print.o, go-typeprint.o.
6264 (YYFILES): Add go-exp.c.
6265 (YYOBJ): Add go-exp.o.
6266 (local-maintainer-clean): Delete go-exp.c.
6267 * defs.h (enum language): Add language_go.
6268 * dwarf2read.c: #include "go-lang.h".
6269 (fixup_go_packaging): New function.
6270 (process_full_comp_unit): Call it when processing Go CUs.
6271 (dwarf2_physname): Add Go support.
6272 (read_file_scope): Handle missing language spec for GNU Go.
6273 (set_cu_language): Handle DW_LANG_Go.
6274 * go-exp.y: New file.
6275 * go-lang.h: New file.
6276 * go-lang.c: New file.
6277 * go-typeprint.c: New file.
6278 * go-valprint.c: New file.
6279 * symtab.c: #include "go-lang.h".
6280 (symbol_set_language): Handle language_go.
6281 (symbol_find_demangled_name, symbol_set_names): Ditto.
6282 (symbol_natural_name, demangle_for_lookup, find_main_name): Ditto.
6283
4e2af517
JM
62842012-04-24 Jim Meyering <meyering@redhat.com>
6285
6286 avoid a few strncpy-induced buffer overruns
6287 * procfs.c (procfs_make_note_section): Be sure to NUL-terminate
6288 fname and psargs before trying to concatenate.
6289 * tui/tui-stack.c (tui_get_function_from_frame): NUL-terminate
6290 "name" before applying strchr.
6291
b77b7f52
SCR
62922012-04-25 Siva Chandra Reddy <sivachandra@google.com>
6293
6294 * CONTRIBUTE: Use unified diff instead of context diff when
6295 generating patches.
6296
6321c22a
MR
62972012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
6298
6299 * mips-tdep.c (mips_about_to_return): Remove dead MIPS16 support
6300 code. Handle JR.HB correctly.
6301
742c84f6
MR
63022012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
6303
6304 * mips-tdep.c
6305 (is_mips16_addr, unmake_mips16_addr, make_mips16_addr): Group
6306 with the other MIPS16 helpers.
6307
7fc7e0c3
SDJ
63082012-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
6309
6310 * observer.sh: Conditionally declare `args', thus cleaning up
6311 unused instances of this variable.
6312
20388dd6
YQ
63132012-04-24 Yao Qi <yao@codesourcery.com>
6314
6315 Revert this patch to allow breakpoint always-inserted
6316 in record target.
6317 2011-12-05 Pedro Alves <pedro@codesourcery.com>
f782ad9b
AS
6318 * breakpoint.c: Include record.h.
6319 (breakpoints_always_inserted_mode): Return false when the record
6320 target is in use.
20388dd6
YQ
6321
6322 * breakpoint.c (iterate_over_bp_locations): New.
6323 * breakpoint.h: Declare.
6324 New typedef walk_bp_location_callback.
6325 * record.c (record_open): Call record_init_record_breakpoints.
6326 (record_sync_record_breakpoints): New.
6327 (record_init_record_breakpoints): New.
6328 * NEWS: Mention supporting breakpoint always-inserted mode in
6329 record target.
6330
4734f50e
MK
63312012-04-24 Marc Khouzam <marc.khouzam@ericsson.com>
6332
6333 * mi/mi-main.c (mi_cmd_execute): Choose a live thread not just
6334 any thread.
6335
c326b90e
YQ
63362012-04-24 Yao Qi <yao@codesourcery.com>
6337
6338 * breakpoint.c (ep_is_catchpoint): Renamed to ...
6339 (is_catchpoint): ... it.
6340 (print_one_breakpoint_location): Caller update.
6341 * breakpoint.h: Update declaration.
6342
d8fb5a1e
DM
63432012-04-23 David S. Miller <davem@davemloft.net>
6344
6345 * configure.tgt (sparc-*-linux*): Set build_gdbserver to yes.
6346
34431a2a
TT
63472012-04-23 Tom Tromey <tromey@redhat.com>
6348
6349 * buildsym.c (add_free_pendings): Remove.
6350 * buildsym.h (add_free_pendings): Remove.
6351
4568ecf9
DE
63522012-04-23 Doug Evans <dje@google.com>
6353
6354 * dwarf2read.c (partial_die_full_name): Record DW_FORM_ref_addr in
6355 attr.u.unsnd instead of attr.u.addr.
6356 (read_attribute_value) Ditto for cases DW_FORM_ref_addr,
6357 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4, DW_FORM_reg8,
6358 DW_FORM_ref_udata.
6359 (dump_die_shallow): Update cases DW_FORM_ref_addr,
6360 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4. Add cases DW_FORM_ref8,
6361 DW_FORM_ref_udata.
6362 (dwarf2_get_ref_die_offset): Use DW_UNSND for reference attributes.
6363
dca9aa3a
MR
63642012-04-23 Maciej W. Rozycki <macro@codesourcery.com>
6365
6366 * mips-tdep.c (mips_n32n64_return_value): Fix coding style.
6367 (mips_o32_return_value): Likewise.
6368 (mips_o64_return_value): Likewise.
6369
c8ea1972
PH
63702012-04-21 Paul Hilfinger <hilfinger@adacore.com>
6371
6372 * ada-lang.c (ada_evaluate_subexp): Add cases for
f782ad9b
AS
6373 TYPE_CODE_INTERNAL_FUNCTION and for TYPE_GNU_IFUNC, following
6374 their treatment in eval.c.
c8ea1972 6375
8d1b3521
DM
63762012-04-21 David S. Miller <davem@davemloft.net>
6377
6378 * sparc-tdep.c (X_DISP10): Define.
6379 (sparc_analyze_control_transfer): Handle compare-and-branch.
6380
03145bf4
JL
63812012-04-21 Jonathan Larmour <jifl@eCosCentric.com>
6382
6383 * features/Makefile (WHICH): Add arm-with-m and arm-with-m-fpa-layout.
6384 * arm-tdep.c (arm_register_g_packet_guesses): Fix comment.
6385
004159a2 63862012-04-20 Nigel Stephens <nigel@mips.com>
f782ad9b 6387 Maciej W. Rozycki <macro@codesourcery.com>
004159a2
MR
6388
6389 * mips-tdep.c (mips_float_register_p): New function.
6390 (mips_convert_register_float_case_p): Use mips_float_register_p.
6391 (mips_register_type): Likewise.
6392 (mips_print_register): Likewise.
6393 (print_gp_register_row): Likewise.
6394 (mips_print_registers_info): Likewise.
6395
7f0e6aae
MR
63962012-04-20 Shun-Yen Lu <dark.asparagus@gmail.com>
6397
6398 * mips-tdep.c (mips_elf_make_msymbol_special): Fix identification
6399 of mips16 symbols.
6400
bc17beea
AP
64012012-04-20 Andrew Pinski <apinski@cavium.com>
6402
6403 * MAINTAINERS (Write After Approval): Add myself to the list.
6404
1730a5a5
SDJ
64052012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
6406
6407 * MAINTAINERS: Update my e-mail address.
6408
38ea300a
PA
64092012-04-20 Pedro Alves <palves@redhat.com>
6410
6411 * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Handle absolute
6412 $srcdir.
6413 * configure: Regenerate.
6414
111dfaae
SDJ
64152012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
6416
6417 * cp-support.h: Include `gdb_vecs.h'. Delete `const_char_ptr' VEC
6418 declaration.
6419 * gdb_vecs.h: Declare `const_char_ptr' VEC.
6420
4fb2c64a
JK
64212012-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6422
6423 Fix compilation compatibility with python-2.4
6424 * python/py-type.c (convert_field): Cast ADDRSTRING for
6425 PyObject_SetAttrString as non-const. New comment.
6426
6328eb38
TT
64272012-04-19 Tom Tromey <tromey@redhat.com>
6428
6429 * top.c (quit_target): Use all_cleanups.
6430 * main.c (captured_command_loop): Use all_cleanups.
6431 * exceptions.c (throw_exception): Use all_cleanups.
6432
c971b7fa
PA
64332012-04-19 Pedro Alves <palves@redhat.com>
6434
6435 * Makefile.in (GNULIB_BUILDDIR): New.
6436 (LIBGNU, INCGNU, GNULIB_H): Adjust.
6437 (SUBDIRS): Add $(GNULIB_BUILDDIR).
6438 (CLEANDIRS). Remove gnulib/import.
6439 (REQUIRED_SUBDIRS): Replace gnulib/import with $(GNULIB_BUILDDIR).
6440 (all-lib): Ditto.
6441 (distclean): Remove the $(GNULIB_BUILDDIR) directory.
6442 (gnulib/import/Makefile): Replace gnulib/import with
6443 $(GNULIB_BUILDDIR). Set CONFIG_FILES to just Makefile.
6444 (ACLOCAL_AMFLAGS): Remove '-I gnulib/import/m4'.
6445 (aclocal_m4_deps): Remove the gnulib dependencies. Add
6446 acx_configure_dir.m4.
6447 * acinclude.m4: Include acx_configure_dir.m4.
6448 * acx_configure_dir.m4: New file.
6449 * aclocal.m4: Regenerate.
a09130f9
PA
6450 * configure.ac: Remove gl_EARLY, gl_INIT and AM_INIT_AUTOMAKE
6451 calls. Configure gnulib using ACX_CONFIGURE_DIR.
6452 (GNULIB): New variable.
6453 (GNULIB_STDINT_H): Adjust.
6454 (AC_OUTPUT): Don't output gnulib/Makefile.
6455 * gdb/defs.h: Include build-gnulib/config.h.
6456 * aclocal.m4: Regenerate.
6457 * config.in: Regenerate.
6458 * configure: Regenerate.
6459
6460 * gnulib/Makefile.in: New file.
6461 * gnulib/configure.ac: New file.
6462 * gnulib/aclocal.m4: New file.
6463 * gnulib/config.in: New file.
6464 * gnulib/configure: New file.
c971b7fa
PA
6465 * gnulib/: Re-run gnulib-tool to adjust.
6466
b10faa68
DE
64672012-04-19 Doug Evans <dje@google.com>
6468
6469 * cleanups.h (struct cleanup): Move to cleanups.c.
6470 (make_cleanup_dtor_ftype): New typedef.
6471 (make_cleanup_dtor): Use it.
6472 (ALL_CLEANUPS): Replace with ...
6473 (all_cleanups): ... this. Declare. All uses updated.
6474 * cleanups.c: #include "gdb_assert.h".
6475 (sentinel_cleanup): New static global.
6476 (SENTINEL_CLEANUP): Define.
6477 (cleanup_chain, final_cleanup_chain): Initialize to SENTINEL_CLEANUP.
6478 (make_my_cleanup2): Assert result is non-NULL.
6479 (all_cleanups): New function.
6480 (save_my_cleanups): Initialize new chain to SENTINEL_CLEANUP instead
6481 of NULL.
6482
d8c267cc
PA
64832012-04-19 Pedro Alves <palves@redhat.com>
6484
6485 * Makefile.in (HFILES_NO_SRCDIR): Remove gnulib/wchar.in.h.
6486 Adjust paths to gnulib imported files.
6487
809277f8
PA
64882012-04-19 Pedro Alves <palves@redhat.com>
6489
6490 * gnulib/: Move whole directory ...
6491 * gnulib/import/: ... here, and re-rerun gnulib-tool to adjust.
6492 * Makefile.in (LIBGNU, INCGNU, GNULIB_H, CLEANDIRS)
6493 (REQUIRED_SUBDIRS, all-lib, gnulib/Makefile, ACLOCAL_AMFLAGS)
6494 (aclocal_m4_deps): Adjust.
6495 * aclocal.m4: Regenerate.
6496 * configure: Regenerate.
6497 * configure.ac: Adjust AC_OUTPUT output.
6498
aad9eab9
YQ
64992012-04-19 Yao Qi <yao@codesourcery.com>
6500
6501 * Makefile.in (SFILES): Add common/vec.c and remove vec.c.
6502 (vec.o): New rule.
6503 * vec.c: Move it ...
6504 * common/vec.c: ... here.
6505 * vec.h: Move it ...
6506 * common/vec.h: ... here.
6507
48fe4669
YQ
65082012-04-19 Yao Qi <yao@codesourcery.com>
6509
6510 * gdb-code-style.el: New.
6511
770d76d7
PA
65122012-04-18 Pedro Alves <palves@redhat.com>
6513
6514 Update gnulib from latest git.
6515 (639ea5ae15e39fe48d43e04864b2997301e4b969)
6516
6517 * gnulib/Makefile.am: Update.
6518 * gnulib/dummy.c: Update.
6519 * gnulib/extra/arg-nonnull.h: Update.
6520 * gnulib/extra/c++defs.h: Update.
6521 * gnulib/extra/update-copyright: Update.
6522 * gnulib/extra/warn-on-use.h: Update.
6523 * gnulib/inttypes.in.h: Update.
6524 * gnulib/m4/00gnulib.m4: Update.
6525 * gnulib/m4/extensions.m4: Update.
6526 * gnulib/m4/gnulib-cache.m4: Update.
6527 * gnulib/m4/gnulib-common.m4: Update.
6528 * gnulib/m4/gnulib-comp.m4: Update.
6529 * gnulib/m4/gnulib-tool.m4: Update.
6530 * gnulib/m4/include_next.m4: Update.
6531 * gnulib/m4/inttypes-pri.m4: Update.
6532 * gnulib/m4/inttypes.m4: Update.
6533 * gnulib/m4/longlong.m4: Update.
6534 * gnulib/m4/memchr.m4: Update.
6535 * gnulib/m4/memmem.m4: Update.
6536 * gnulib/m4/mmap-anon.m4: Update.
6537 * gnulib/m4/multiarch.m4: Update.
6538 * gnulib/m4/onceonly.m4: Update.
6539 * gnulib/m4/stddef_h.m4: Update.
6540 * gnulib/m4/stdint.m4: Update.
6541 * gnulib/m4/string_h.m4: Update.
6542 * gnulib/m4/warn-on-use.m4: Update.
6543 * gnulib/m4/wchar_h.m4: Update.
6544 * gnulib/m4/wchar_t.m4: Update.
6545 * gnulib/m4/wint_t.m4: Update.
6546 * gnulib/memchr.c: Update.
6547 * gnulib/memmem.c: Update.
6548 * gnulib/stddef.in.h: Update.
6549 * gnulib/stdint.in.h: Update.
6550 * gnulib/str-two-way.h: Update.
6551 * gnulib/string.in.h: Update.
6552 * gnulib/wchar.in.h: Update.
6553
6554 * gnulib/extra/arg-nonnull.h: Delete.
6555 * gnulib/extra/c++defs.h: Delete.
6556 * gnulib/extra/warn-on-use.h: Delete.
6557 * gnulib/m4/wchar_h.m4: Delete.
6558 * gnulib/m4/wint_t.m4: Delete.
6559 * gnulib/wchar.in.h: Delete.
6560
6561 * gnulib/extra/snippets/arg-nonnull.h: New.
6562 * gnulib/extra/snippets/c++defs.h: New.
6563 * gnulib/extra/snippets/warn-on-use.h: New.
6564
6565 * aclocal.m4: Regenerate.
6566 * config.in: Regenerate.
6567 * configure: Regenerate.
6568 * gnulib/Makefile.in: Regenerate.
6569
174e088e
PA
65702012-04-18 Pedro Alves <palves@redhat.com>
6571
6572 Reimport the update-copyright module from gnulib
6573 (250b80067c1e1d8faa0c42fb572f721975b929c5).
6574
6575 * configure: Regenerate.
6576 * gnulib/Makefile.am: Update.
6577 * gnulib/Makefile.in: Regenerate.
6578 * gnulib/extra/update-copyright: Update.
6579 * gnulib/m4/gnulib-cache.m4: Update.
6580 * gnulib/m4/gnulib-comp.m4: Update.
6581
7f533142
JB
65822012-04-18 Tristan Gingold <gingold@adacore.com>
6583
6584 * configure.ac (aix): Put -lpthread into libs.
6585 * configure: Regenerate.
6586
001822aa
TT
65872012-04-18 Tom Tromey <tromey@redhat.com>
6588
6589 * linespec.c (convert_linespec_to_sals): Don't use
6590 SYMBOL_OBJ_SECTION.
6591 (compare_msymbols): Arguments are minsym_and_objfile, not
6592 minimal_symbol*. Don't use SYMBOL_OBJ_SECTION.
6593
db026a31
PA
65942012-04-18 Pedro Alves <palves@redhat.com>
6595
6596 Revert gnulib/ part of:
6597 2011-01-01 Joel Brobecker <brobecker@adacore.com>
6598 Copyright year update in most files (performed by copyright.sh).
6599
12df843f
JK
66002012-04-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6601
6602 Fix 64-bit constants on 32-bit hosts.
6603 * dwarf2read.c (read_unsigned_leb128): Change declaration return type
6604 from unsigned long to ULONGEST.
6605 (read_signed_leb128): Change declaration return type from long to
6606 LONGEST.
6607 (dwarf2_const_value_attr): Change declaration parameter value from long
6608 to LONGEST.
6609 (dwarf2_compute_name): Change variable value from long to LONGEST.
6610 (read_unsigned_leb128): Change return type, variable result and some
6611 casts from unsigned long to ULONGEST.
6612 (read_signed_leb128): Change return type, variable result and some
6613 casts from long to LONGEST.
6614 (dwarf2_const_value_data, dwarf2_const_value_attr): Change parameter
6615 value from long to LONGEST.
6616 (dwarf2_const_value): Change variable value from long to LONGEST.
6617 * symmisc.c (print_symbol): Change SYMBOL_VALUE format strings to use
6618 plongest and hex_string.
6619 * symtab.h (struct general_symbol_info): Change ivalue from long to
6620 LONGEST, remove the comment.
6621 * tracepoint.c (validate_actionline, collect_symbol, scope_info):
6622 Change SYMBOL_VALUE format strings to use plongest and hex_string.
6623
14e75d8e
JK
66242012-04-18 Siddhesh Poyarekar <siddhesh@redhat.com>
6625
6626 PR symtab/7259:
6627 * ada-exp.y (convert_char_literal): Use TYPE_FIELD_ENUMVAL.
6628 * ada-lang.c (ada_discrete_type_high_bound)
ac4ea3c2
JK
6629 (ada_discrete_type_low_bound): Fix function comment. Use
6630 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
14e75d8e
JK
6631 (ada_identical_enum_types_p): Use TYPE_FIELD_ENUMVAL.
6632 (pos_atr, value_val_atr): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6633 * ada-typeprint.c (print_enum_type): Change variable lastval to LONGEST.
6634 Use TYPE_FIELD_ENUMVAL.
6635 * ada-valprint.c (print_optional_low_bound, ada_print_scalar)
6636 (ada_val_print_1): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6637 * c-typeprint.c (c_type_print_base): Move variable lastval to inner
6638 block, change it to LONGEST. Use TYPE_FIELD_ENUMVAL for
6639 TYPE_CODE_ENUM.
6640 * coffread.c (coff_read_enum_type): Use SET_FIELD_ENUMVAL.
6641 * dwarf2read.c (process_enumeration_scope): Likewise.
6642 * gdb-gdb.py (TypeFlagsPrinter): Use field.enumval instead of
6643 field.bitpos.
6644 (class StructMainTypePrettyPrinter): Support also
6645 FIELD_LOC_KIND_ENUMVAL.
6646 * gdbtypes.c (get_discrete_bounds): Use TYPE_FIELD_ENUMVAL for
6647 TYPE_CODE_ENUM.
6648 (recursive_dump_type): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6649 (copy_type_recursive): Support also FIELD_LOC_KIND_ENUMVAL.
6650 * gdbtypes.h (enum field_loc_kind): New FIELD_LOC_KIND_ENUMVAL.
6651 (struct main_type.flds_bnds.fields.loc): Adjust bitpos comment. New
6652 field enumval.
6653 (struct main_type.flds_bnds.bields): Adjust loc_kind and bitsize to
6654 accommodate enumval.
6655 (struct call_site): Adjust loc_kind to accommodate enumval.
6656 (FIELD_ENUMVAL, FIELD_ENUMVAL_LVAL, SET_FIELD_ENUMVAL)
6657 (TYPE_FIELD_ENUMVAL): New macros.
6658 * m2-typeprint.c (m2_enum): Use TYPE_FIELD_ENUMVAL.
6659 * mdebugread.c (parse_symbol): Use TYPE_FIELD_ENUMVAL for
6660 TYPE_CODE_ENUM.
6661 * p-typeprint.c (pascal_type_print_base): Likewise.
6662 * python/lib/gdb/printing.py (class FlagEnumerationPrinter): Use
6663 enumval.
6664 * python/lib/gdb/types.py (make_enum_dict): Likewise.
6665 * python/py-type.c (convert_field): New variable addrstring. Use
6666 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6667 (check_types_equal): Support also FIELD_LOC_KIND_ENUMVAL.
6668 * stabsread.c (read_enum_type): Use SET_FIELD_ENUMVAL.
6669 * typepint.c (print_type_scalar): Use TYPE_FIELD_ENUMVAL for
6670 TYPE_CODE_ENUM.
6671 * valprint.c (generic_val_print): Likewise.
6672
380bca97
DE
66732012-04-17 Doug Evans <dje@google.com>
6674
dcc07052
DE
6675 * dwarf2read.c (lookup_signatured_type): Return NULL instead of 0.
6676
380bca97
DE
6677 * dwarf2read.c: Whitespace fixes.
6678 (lookup_signatured_type): Tweak comment.
6679 (get_die_type_at_offset): Fix comment.
6680
ec92004f
JB
66812012-04-17 Joel Brobecker <brobecker@adacore.com>
6682
6683 * xcoffread.c (xcoff_secnum_to_sections): New function.
6684 (secnum_to_section, secnum_to_bfd_section): Reimplement
6685 using xcoff_secnum_to_sections. Rename "secnum" parameter
6686 into "n_scnum".
6687 (RECORD_MINIMAL_SYMBOL): Delete.
6688 (record_minimal_symbol): New function.
6689 (scan_xcoff_symtab): Replace uses of RECORD_MINIMAL_SYMBOL
6690 by call to record_minimal_symbol and set misc_func_recorded
6691 to 1. Set last_csect_sec to the XCOFF section index instead
6692 of GDB's section_offset index. Update calls to
6693 prim_record_minimal_symbol_and_info to pass the BFD section
6694 as well.
6695
40301fb7
JB
66962012-04-17 Joel Brobecker <brobecker@adacore.com>
6697
6698 * xcoffread.c (read_xcoff_symtab): Delete variables
6699 last_csect_val and last_csect_sec and associated code.
6700
e0088cfd
DE
67012012-04-17 Doug Evans <dje@google.com>
6702
58d5e2c3
DE
6703 * cleanups.c (make_my_cleanup,make_my_cleanup2): Make static.
6704 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
6705 * cleanups.h (make_my_cleanup,make_my_cleanup2): Delete
6706 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Delete.
6707
c27f5738
DE
6708 * cleanups.h: New file.
6709 * cleanups.c: New file.
6710 * Makefile.in (SFILES): Add cleanups.c.
6711 (HFILES_NO_SRCDIR): Add cleanups.h.
6712 (COMMON_OBS): Add cleanups.o.
6713 * defs.h (struct cleanup): Moved to cleanups.h.
6714 (do_cleanups,do_final_cleanups): Ditto.
6715 (discard_cleanups,discard_final_cleanups): Ditto
6716 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
6717 (save_cleanups,save_final_cleanups): Ditto.
6718 (restore_cleanups,restore_final_cleanups): Ditto.
6719 (null_cleanup): Ditto.
6720 (make_my_cleanup,make_my_cleanup2): Ditto.
6721 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
6722 * utils.c (cleanup_chain,final_cleanup_chain): Moved to cleanups.c.
6723 (do_cleanups,do_final_cleanups): Ditto.
6724 (discard_cleanups,discard_final_cleanups): Ditto
6725 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
6726 (save_cleanups,save_final_cleanups): Ditto.
6727 (restore_cleanups,restore_final_cleanups): Ditto.
6728 (null_cleanup): Ditto.
6729 (make_my_cleanup,make_my_cleanup2): Ditto.
6730 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
6731
e0088cfd
DE
6732 * utils.c (make_cleanup_freeargv): Use make_cleanup instead of
6733 make_my_cleanup.
6734 (make_cleanup_dyn_string_delete): Ditto.
6735 (make_cleanup_ui_file_delete): Ditto.
6736 (make_cleanup_ui_out_redirect_pop): Ditto.
6737 (make_cleanup_free_section_addr_info): Ditto.
6738 (make_cleanup_restore_integer): Ditto.
6739 (make_cleanup_unpush_target): Ditto.
6740 (make_cleanup_value_free_to_mark): Ditto.
6741 (make_cleanup_value_free): Ditto.
6742 (make_cleanup_free_so): Ditto.
6743
4dc84fd1
JK
67442012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6745
6746 New option "set debug auto-load".
6747 * NEWS: New commands "set debug auto-load" and "show debug auto-load".
6748 * auto-load.c (debug_auto_load, show_debug_auto_load: New.
6749 (auto_load_safe_path_vec_update)
6750 (filename_is_in_auto_load_safe_path_vec): Call fprintf_unfiltered
6751 if DEBUG_AUTO_LOAD.
6752 (file_is_auto_load_safe): New parameters debug_fmt and ....
6753 Call fprintf_unfiltered if DEBUG_AUTO_LOAD.
6754 (source_gdb_script_for_objfile): Extend the file_is_auto_load_safe
6755 caller by explanatory string.
6756 (_initialize_auto_load): Register "set debug auto-load".
6757 * auto-load.h (file_is_auto_load_safe): New parameters debug_fmt
6758 and ....
6759 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
6760 (try_thread_db_load_from_dir): Extend the file_is_auto_load_safe caller
6761 by explanatory string.
6762 * main.c (captured_main): Likewise.
6763 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
6764 (source_section_scripts): Likewise.
6765
bccbefd2
JK
67662012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6767
6768 New option "set auto-load safe-path".
6769 * NEWS: New commands "set auto-load safe-path"
6770 and "show auto-load safe-path".
6771 * auto-load.c: Include gdb_vecs.h, readline/tilde.h and completer.h.
6772 (auto_load_safe_path, auto_load_safe_path_vec)
6773 (auto_load_safe_path_vec_update, set_auto_load_safe_path)
6774 (show_auto_load_safe_path, add_auto_load_safe_path, filename_is_in_dir)
6775 (filename_is_in_auto_load_safe_path_vec, file_is_auto_load_safe): New.
6776 (source_gdb_script_for_objfile): New variable is_safe. Call
6777 file_is_auto_load_safe. Return if it is not.
6778 (struct loaded_script): New field loaded.
6779 (maybe_add_script): Add parameter loaded. Initialize SLOT with it.
6780 (print_script): Use LOADED indicator instead of FULL_PATH. Change
6781 output "Missing" to "No".
6782 (_initialize_auto_load): New variable cmd. Initialize
6783 auto_load_safe_path. Register "set auto-load safe-path",
6784 "show auto-load safe-path" and "add-auto-load-safe-path".
6785 * auto-load.h (maybe_add_script): Add parameter loaded.
6786 (file_is_auto_load_safe): New declaration.
6787 * config.in: Regenerate.
6788 * configure: Regenerate.
6789 * configure.ac: New parameters --with-auto-load-safe-path
6790 and --without-auto-load-safe-path.
6791 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
6792 (try_thread_db_load_from_dir): Check file_is_auto_load_safe first.
6793 * main.c (captured_main): Check file_is_auto_load_safe for
6794 LOCAL_GDBINIT.
6795 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile): New
6796 variable is_safe. Call file_is_auto_load_safe. Return if it is not.
6797 (source_section_scripts): Call file_is_auto_load_safe. Return if it is
6798 not.
6799
bf88dd68
JK
68002012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6801
6802 auto-load: Implementation.
6803 * NEWS: New descriptions for "info auto-load",
6804 "info auto-load gdb-scripts", "info auto-load python-scripts",
6805 "info auto-load local-gdbinit" and "info auto-load libthread-db".
6806 Deprecate "info auto-load-scripts", "set auto-load-scripts on|off"
6807 and "show auto-load-scripts". New description for "set auto-load",
6808 "show auto-load", "set auto-load gdb-scripts",
6809 "show auto-load gdb-scripts", "set auto-load python-scripts",
6810 "show auto-load python-scripts", "set auto-load local-gdbinit",
6811 "show auto-load local-gdbinit", "set auto-load libthread-db" and
6812 "show auto-load libthread-db".
6813 * auto-load.c: Remove include python/python-internal.h. Add includes
6814 exceptions.h, cli/cli-script.h, gdbcmd.h, cli/cli-decode.h and
6815 cli/cli-setshow.h.
6816 (GDB_AUTO_FILE_NAME, source_gdb_script_for_objfile)
6817 (auto_load_gdb_scripts, show_auto_load_gdb_scripts): New.
6818 (gdbpy_global_auto_load): Rename to ...
6819 (global_auto_load): ... here.
6820 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
6821 (auto_load_local_gdbinit_loaded, show_auto_load_local_gdbinit)
6822 (script_language_gdb, source_gdb_script_for_objfile): New.
6823 (struct loaded_script): New field language.
6824 (hash_loaded_script_entry, eq_loaded_script_entry): Calculate also
6825 LANGUAGE.
6826 (maybe_add_script): Add parameter language. Drop redundant
6827 entry.full_path initialization. Initialize entry.language and
6828 (*slot)->language.
6829 (auto_load_objfile_script): Change parameter suffix to language.
6830 Remove the call of maybe_add_script.
6831 Call language->source_script_for_objfile.
6832 (load_auto_scripts_for_objfile, struct collect_matching_scripts_data):
6833 New.
6834 (collect_matching_scripts): Adjust it for
6835 struct collect_matching_scripts_data.
6836 (auto_load_info_scripts_pattern_nl): New variable.
6837 (info_auto_load_scripts): Rename to ...
6838 (auto_load_info_scripts): ... here, add parameter language. Adjust it
6839 for struct collect_matching_scripts_data.
6840 (info_auto_load_gdb_scripts, info_auto_load_local_gdbinit)
6841 (set_auto_load_cmd, auto_load_set_cmdlist_get, show_auto_load_cmd)
6842 (auto_load_show_cmdlist_get, info_auto_load_cmd)
6843 (auto_load_info_cmdlist_get): New.
6844 (_initialize_auto_load): Move add_info of "auto-load-scripts" to
6845 python/py-auto-load.c. New installment for "set auto-load gdb-scripts",
6846 "info auto-load gdb-scripts", "set auto-load local-gdbinit" and
6847 "info auto-load local-gdbinit".
6848 * auto-load.h (struct script_language): New.
6849 (gdbpy_global_auto_load): Rename to ...
6850 (global_auto_load): ... here.
6851 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
6852 (auto_load_local_gdbinit_loaded): New declarations.
6853 (maybe_add_script): New parameter language.
6854 (auto_load_objfile_script): Change parameter suffix to language.
6855 (load_auto_scripts_for_objfile, auto_load_info_scripts_pattern_nl)
6856 (auto_load_info_scripts, auto_load_set_cmdlist_get)
6857 (auto_load_show_cmdlist_get, auto_load_info_cmdlist_get): New
6858 declarations.
6859 * linux-thread-db.c: Include auto-load.h and ctype.h.
6860 (auto_load_thread_db, show_auto_load_thread_db): New.
6861 (struct thread_db_info): New field filename.
6862 (delete_thread_db_info): Call xfree for FILENAME.
6863 (try_thread_db_load): Initialize FILENAME.
6864 (try_thread_db_load_from_pdir, try_thread_db_load_from_dir): Return
6865 if !AUTO_LOAD_THREAD_DB.
6866 (info_auto_load_libthread_db_compare, info_auto_load_libthread_db): New.
6867 (_initialize_thread_db): Install auto_load_thread_db
6868 as "set auto-load libthread-db" and install info_auto_load_libthread_db
6869 as "info auto-load libthread-db".
6870 * main.c (captured_main): Rename gdbpy_global_auto_load to
6871 global_auto_load. Initialize AUTO_LOAD_LOCAL_GDBINIT_PATHNAME and
6872 AUTO_LOAD_LOCAL_GDBINIT_LOADED.
6873 (print_gdb_help): Extend the help for 'local init file'.
6874 * python/py-auto-load.c: Remove a comment about gdb scripts extension.
6875 (GDBPY_AUTO_SECTION_NAME): Extend the comment it is Python specific.
6876 (auto_load_scripts): Rename to ...
6877 (auto_load_python_scripts): ... here, update the comment.
6878 (gdbpy_load_auto_script_for_objfile): New declaration.
6879 (show_auto_load_python_scripts, script_language_python)
6880 (gdbpy_load_auto_script_for_objfile): New.
6881 (source_section_scripts): Refactor the code.
6882 (load_auto_scripts_for_objfile): Rename to ...
6883 (gdbpy_load_auto_scripts_for_objfile): ... here, update the
6884 auto_load_objfile_script caller, drop GDBPY_GLOBAL_AUTO_LOAD checking.
6885 (info_auto_load_python_scripts): New.
6886 (gdbpy_initialize_auto_load): New variables cmd and cmd_name.
6887 Rename "set auto-load-scripts" to "set auto-load python-scripts".
6888 Register "set auto-load-scripts" as its deprecated alias. Register
6889 "info auto-load python-scripts". Register "info auto-load-scripts" as
6890 its deprecated alias.
6891 (load_auto_scripts_for_objfile): Rename to ...
6892 (gdbpy_load_auto_scripts_for_objfile): ... here.
6893 * python/python.h (load_auto_scripts_for_objfile): Rename to ...
6894 (gdbpy_load_auto_scripts_for_objfile): ... here.
6895
e2207b9a
JK
68962012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6897
6898 auto-load: Move files.
6899 * Makefile.in (SFILES): Add auto-load.c.
6900 (HFILES_NO_SRCDIR): Add auto-load.h.
6901 (COMMON_OBS): Add auto-load.o.
6902 (distclean): Change .gdbinit for gdb-gdb.gdb.
6903 * auto-load.c: New file, with parts from python/py-auto-load.c.
6904 * auto-load.h: New file, with parts from python/python.h.
6905 * configure: Regenerate.
6906 * configure.ac (AC_OUTPUT): Change .gdbinit for gdb-gdb.gdb.
6907 * gdb-gdb.gdb.in: New file, renamed from gdbinit.in.
6908 * gdbinit.in: Remove file, rename it to gdb-gdb.gdb.in.
6909 * main.c: Include auto-load.h.
6910 * python/py-auto-load.c: Move include filenames.h, gdb_regex.h,
6911 command.h, observer.h and progspace.h to auto-load.c. Add include
6912 auto-load.h.
6913 (gdbpy_global_auto_load, struct auto_load_pspace_info)
6914 (struct loaded_script, auto_load_pspace_data)
6915 (auto_load_pspace_data_cleanup, get_auto_load_pspace_data)
6916 (hash_loaded_script_entry, eq_loaded_script_entry)
6917 (init_loaded_scripts_info, get_auto_load_pspace_data_for_loading)
6918 (maybe_add_script): Move to auto-load.c.
6919 (source_section_scripts): Change maybe_add_script parameters passing,
6920 use script_not_found_warning_print.
6921 (clear_section_scripts, auto_load_objfile_script)
6922 (auto_load_new_objfile, loaded_script_ptr)
6923 (DEF_VEC_P (loaded_script_ptr), collect_matching_scripts, print_script)
6924 (sort_scripts_by_name, info_auto_load_scripts): Move to auto-load.c.
6925 (gdbpy_initialize_auto_load): Move auto_load_pspace_data,
6926 auto_load_new_objfile and info_auto_load_scripts initizations to
6927 auto-load.c.
6928 * python/python.h (gdbpy_global_auto_load): Move to auto-load.h.
6929
e4ab2fad
JK
69302012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6931
6932 Code cleanup.
6933 * charset.c (find_charset_names): Remove variables ix and elt.
6934 Use free_char_ptr_vec.
6935 * elfread.c (build_id_to_debug_filename): New variables debugdir_vec,
6936 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
6937 debugdir_end. New variable debugdir_len.
6938 * gdb_vecs.h (free_char_ptr_vec, make_cleanup_free_char_ptr_vec)
6939 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): New
6940 declarations.
6941 * progspace.c (clear_program_space_solib_cache): Remove variables ix
6942 and elt. Use free_char_ptr_vec.
6943 * source.c (add_path): Remove variables argv, arg and argv_index.
6944 New variables dir_vec, back_to, ix and name.
6945 Use dirnames_to_char_ptr_vec_append. Use freeargv instead of
6946 make_cleanup_freeargv. Remove variable separator. Simplify the code
6947 no longer expecting DIRNAME_SEPARATOR.
6948 (openp): Remove variable p, p1 and len. New variables dir_vec,
6949 back_to, ix and dir. Use dirnames_to_char_ptr_vec. Simplify the code
6950 no longer expecting DIRNAME_SEPARATOR.
6951 * symfile.c (find_separate_debug_file): New variables debugdir_vec,
6952 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
6953 debugdir_end.
6954 * utils.c (free_char_ptr_vec, do_free_char_ptr_vec)
6955 (make_cleanup_free_char_ptr_vec, dirnames_to_char_ptr_vec_append)
6956 (dirnames_to_char_ptr_vec): New functions.
6957
5ee4ed9f
JK
69582012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6959
6960 Code cleanup.
6961 * source.c (add_path): Remove always true conditional 'p == 0' and
6962 unindent its code block.
6963
f41f5e61
PA
69642012-04-17 Pedro Alves <palves@redhat.com>
6965
6966 * gdbtypes.h (FIELD_BITPOS): Rename to ...
6967 (FIELD_BITPOS_LVAL): ... this.
6968 (FIELD_BITPOS): New.
6969 (SET_FIELD_BITPOS): Adjust to use FIELD_BITPOS_LVAL.
6970 * dwarf2read.c (dwarf2_add_field): Use SET_FIELD_BITPOS.
6971 * gdbtypes.c (append_composite_type_field_aligned): Adjust to use
6972 SET_FIELD_BITPOS.
6973 * gnu-v3-abi.c (build_gdb_vtable_type): Adjust to use
6974 SET_FIELD_BITPOS.
6975 * stabsread.c (read_cpp_abbrev, read_one_struct_field)
6976 (read_baseclasses): Adjust to use SET_FIELD_BITPOS.
6977 * target-descriptions.c (tdesc_gdb_type): Adjust to use
6978 SET_FIELD_BITPOS.
6979
945b3a32
JK
69802012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6981
6982 Do not rely on FIELD_LOC_KIND_BITPOS being zero.
6983 * ada-lang.c (ada_template_to_fixed_record_type_1): Replace
6984 TYPE_FIELD_BITPOS used as lvalue by SET_FIELD_BITPOS.
6985 * gdbtypes.c (append_flags_type_flag): Likewise, twice.
6986 * jv-lang.c (java_link_class_type): Likewise, once.
6987 * stabsread.c (read_enum_type): Likewise.
6988
42476b70
YQ
69892012-04-16 Yao Qi <yao@codesourcery.com>
6990
6991 * common/agent.c (agent_run_command): Add one more parameter `len'.
6992 Update callers.
6993 * common/agent.h: Update declaration.
6994 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
6995 Update.
6996 (linux_child_static_tracepoint_markers_by_strid): Ditto.
6997
8264ba82
AG
69982012-04-14 Anton Gorenkov <xgsa@yandex.ru>
6999
7000 PR mi/13393
7001 * value.c (value_actual_type): New function.
7002 * value.h (value_actual_type): New declaration.
7003 * varobj.c (update_type_if_necessary): New function.
7004 (varobj_create): Call value_actual_type instead of
7005 value_type.
7006 (install_dynamic_child): distinct changed and type changed MI variable
7007 objects.
7008 (update_dynamic_varobj_children): Updated for install_dynamic_child
7009 change. All callers updated.
a09130f9 7010 (varobj_update): Support for MI variable object type change if
8264ba82
AG
7011 the value changed and RTTI is used to determine the type.
7012 (create_child_with_value): Call value_actual_type instead of
7013 value_type.
a09130f9 7014 (adjust_value_for_child_access): Extended with a new parameter which
8264ba82
AG
7015 specify whether the given value should be casted to enclosing type.
7016 All callers updated.
7017
55a8c076
YQ
70182012-04-14 Yao Qi <yao@codesourcery.com>
7019
7020 Import gnulib module inttypes from git
7021 (250b80067c1e1d8faa0c42fb572f721975b929c5)
7022 * Makefile.in (HFILES_NO_SRCDIR): Add gnulib/inttypes.in.h.
a09130f9
PA
7023 (aclocal_m4_deps): Add gnulib/m4/inttypes.m4 and
7024 gnulib/m4/inttypes-pri.m4
55a8c076
YQ
7025 * aclocal.m4, config.in, configure: Regenerated.
7026 * gnulib/Makefile.am: Update.
7027 * gnulib/Makefile.in: Update.
7028 * gnulib/m4/gnulib-cache.m4: Update.
7029 * gnulib/m4/gnulib-comp.m4: Update.
7030 * gnulib/inttypes.in.h: New.
7031 * gnulib/m4/inttypes-pri.m4: New.
a09130f9 7032 * gnulib/m4/inttypes.m4: New.
55a8c076 7033
ca7781d2
LM
70342012-04-13 Luis Machado <lgustavo@codesourcery.com>
7035
7036 * infrun.c (resume): Update PC address to the real PC after
7037 preparing to do displaced stepping.
7038
e319fa28
DE
70392012-04-12 Doug Evans <dje@google.com>
7040
7041 * dwarf2read.c (lookup_signatured_type): Remove arg "objfile", unused.
7042 All callers updated.
7043
15add3f5
MK
70442012-04-12 Mark Kettenis <kettenis@gnu.org>
7045
7046 * i386bsd-nat.c (_initialize_i386bsd_nat): Add missing prototype.
7047
52dc124a
DE
70482012-04-12 Doug Evans <dje@google.com>
7049
0e50663e
DE
7050 * dwarf2read.c (create_all_type_units): Renamed from
7051 create_debug_types_hash_table. All callers updated.
7052
52dc124a
DE
7053 * dwarf2read.c (create_signatured_type_table_from_index): Rename
7054 local type_sig to sig_type, type_offset to type_offset_in_tu.
7055 (hash_signatured_type): Renamed from hash_type_signature,
7056 all callers updated.
7057 (eq_signatured_type): Renamed from eq_type_signature,
7058 all callers updated.
7059 (create_debug_types_hash_table): Rename local type_sig to sig_type.
7060 (process_enumeration_scope): Ditto.
7061 (lookup_signatured_type_at_offset): Ditto.
7062 (load_full_type_unit, read_signatured_type): Ditto.
7063
248fd3bf
YQ
70642012-04-12 Yao Qi <yao@codesourcery.com>
7065
7066 * remote.c (async_remote_interrupt): Correct function name in
7067 debug message.
7068 (async_remote_interrupt_twice): Ditto.
7069
bc3aa6c3
DE
70702012-04-11 Yuanhui Zhang <asmwarrior@gmail.com>
7071
7072 * source.c (find_and_open_source): Consistently pass resulting
7073 full path through xfullpath.
7074
9e529e1d
JK
70752012-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7076
7077 Provide more specific displaced-stepping memory error message.
7078 * infrun.c (displaced_step_prepare): New variable status. Call
7079 target_read_memory instead of read_memory, provide more specific
7080 error message.
7081
82e0cec1
TG
70822012-04-11 Tristan Gingold <gingold@adacore.com>
7083
7084 PR gdb/13901
7085 * darwin-nat.c (darwin_execvp): Revert previous patch.
7086
d987a266
TG
70872012-04-11 Tristan Gingold <gingold@adacore.com>
7088
7089 PR gdb/13901
7090 * darwin-nat.c (darwin_resume_thread): Call darwin_set_sstep only
7091 in case of change.
7092
016b7430
TG
70932012-04-11 Tristan Gingold <gingold@adacore.com>
7094
7095 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
7096 warning.
7097
06fc020f
SCR
70982012-04-11 Siva Chandra Reddy <sivachandra@google.com>
7099
7100 New command 'explore' which helps explore values and types in
7101 scope.
7102 * NEWS: Add an entry about the new 'explore' command.
7103 * data-directory/Makefile.in: Add gdb/command/explore.py
7104 * python/lib/gdb/command/explore.py: Implemention of the 'explore'
a09130f9 7105 command using the GDB Python API.
06fc020f 7106
de0919f8 71072012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
34b192ce
MR
7108
7109 * mips-tdep.c (mips_skip_pic_trampoline_code): Correct sign
7110 extension in jump target calculation.
7111
de0919f8 71122012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
9e8da49c
MR
7113
7114 * mips-tdep.c (mips32_next_pc): Handle JALX.
7115
2f26ef89
YQ
71162012-04-10 Yao Qi <yao@codesourcery.com>
7117
7118 * Makefile.in (gnulib/Makefile): Remove duplicated dependency.
7119
2e505b66
YQ
71202012-04-10 Yao Qi <yao@codesourcery.com>
7121
7122 * Makefile.in (aclocal_m4_deps): Add gnulib/m4/gnulib-cache.m4
7123 and gnulib/m4/gnulib-tool.m4.
7124
0d99eb77
DE
71252012-04-10 Doug Evans <dje@google.com>
7126
7127 * dwarf2read.c (dwarf2_per_cu_data). Clarify comment.
7128 (load_partial_dies): Clarify comment.
7129 (find_partial_die): Support rereading type units.
7130 Clarify CU handling, if we know offset is in CU, don't search for the
7131 containing CU. Add comment regarding memory waste.
7132
9a82b8ff
L
71332012-04-10 H.J. Lu <hongjiu.lu@intel.com>
7134
7135 * features/Makefile (WHICH): Add i386/x32, i386/x32-linux,
7136 i386/x32-avx and i386/x32-avx-linux.
7137 (i386/x32-expedite): New.
7138 (i386/x32-linux-expedite): Likewise.
7139 (i386/x32-avx-expedite): Likewise.
7140 (i386/x32-avx-linux-expedite): Likewise.
7141 ($(outdir)/i386/x32.dat): Likewise.
7142 ($(outdir)/i386/x32-linux.dat): Likewise.
7143 ($(outdir)/i386/x32-avx.dat): Likewise.
7144 ($(outdir)/i386/x32-avx-linux.dat): Likewise.
7145
7146 * features/i386/x32-avx-linux.xml: New file.
7147 * features/i386/x32-avx.xml: Likewise.
7148 * features/i386/x32-core.xml: Likewise.
7149 * features/i386/x32-linux.xml: Likewise.
7150 * features/i386/x32.xml: Likewise.
7151
7152 * features/i386/x32-avx-linux.c: New. Generated.
7153 * features/i386/x32-avx.c: Likewise.
7154 * features/i386/x32-linux.c: Likewise.
7155 * features/i386/x32.c: Likewise.
7156 * regformats/i386/x32-avx-linux.dat: Likewise.
7157 * regformats/i386/x32-avx.dat: Likewise.
7158 * regformats/i386/x32-linux.dat: Likewise.
7159 * regformats/i386/x32.dat: Likewise.
7160
ee41036f
TG
71612012-04-10 Tristan Gingold <gingold@adacore.com>
7162
7163 * darwin-nat.c (darwin_kill_inferior): Always use the no ptrace
7164 code to kill the inferior.
7165
a7aa5b8a
MK
71662012-04-09 Mark Kettenis <kettenis@gnu.org>
7167
7168 * ada-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7169 defines.
7170 * c-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7171 defines.
a09130f9 7172 * cp-name-parser.y (yyss, yysslim, yyssp, yystacksize, yyvs)
a7aa5b8a
MK
7173 (yyvsp): New defines.
7174 * f-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7175 defines.
7176 * jv-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7177 defines.
7178 * m2-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7179 defines.
7180 * objc-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7181 defines.
7182 * p-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7183 defines.
7184
fb57d452
MK
71852012-04-09 Mark Kettenis <kettenis@gnu.org>
7186
a09130f9 7187 * sparc64-tdep.c (sparc64_store_arguments)
fb57d452
MK
7188 (sparc64_store_arguments): Fix coding style.
7189
cdc7b32f
MK
71902012-04-07 Mark Kettenis <kettenis@gnu.org>
7191
7192 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
7193 complex floats, adjust some related comments and tighten a related
7194 assertion.
7195 (sparc64_extract_return_value): Handle complex floats.
7196
7adf1e79
DE
71972012-04-07 Doug Evans <dje@google.com>
7198
7199 * dwarf2read.c (load_partial_dies): Change condition to assert.
7200
50f1ae7b
DE
72012012-04-06 Doug Evans <dje@google.com>
7202
7203 * amd64-tdep.c (amd64_analyze_prologue): Recognize both variations of
7204 "mov %rsp,%rbp".
7205
55fa75c3
KB
72062012-04-05 Kevin Buettner <kevinb@redhat.com>
7207
7208 * v850-tdep.c (E_NUM_OF_V850_REGS, E_NUM_OF_V850E_REGS): Fix
7209 fencepost error.
7210 (v850_frame_cache): Use gdbarch_num_regs() instead of E_NUM_REGS.
7211 (v850_gdbarch_init): Set `num_regs' as appropriate for the
7212 architecture.
7213
40e084e1
KS
72142012-04-05 Keith Seitz <keiths@redhat.com>
7215
7216 * linespec.c (decode_compound): Remove.
7217 (enum offset_relative_sign): New enum.
7218 (struct line_offset): New struct.
7219 (struct linespec): New struct.
7220 (struct linespec_state): Move file_symtabs,
7221 user_filename, and user_function into struct linespec.
7222 Make result an anonymous struct holding vectors of
7223 symbolp and minsym_and_objfile_d.
7224 Add language member.
7225 (enum ls_token_type): New enum.
7226 (linespec_keywords): New array.
7227 (struct ls_token): New struct.
7228 (struct ls_parser): New struct.
7229 (linespec_lexer_lex_number): New function.
7230 (linespec_lexer_lex_keyword): New function.
7231 (is_ada_operator): New function.
7232 (skip_quote_char): New function.
7233 (copy_token_string): New function.
7234 (is_closing_quote_enclosed): New function.
7235 (find_parameter_list_end): New function.
7236 (linespec_lexer_lex_string): New function.
7237 (linespec_lexer_lex_one): New function.
7238 (linespec_lexer_consume_token): New function.
7239 (linespec_lexer_peek_token): New function.
7240 (cplusplus_error): Remove unused function.
7241 (find_methods): Update comment.
7242 (find_toplevel_char): Return const.
7243 (is_objc_method_format): Remove unused function.
7244 (find_toplevel_string): New function.
7245 (is_linespec_boundary): Remove.
7246 (symbol_not_found_error): New function.
7247 (find_method_overload_end): Remove function.
7248 (unexpected_linespec_error): New function.
7249 (keep_name_info): Remove.
7250 (linespec_parse_line_offset): New function.
7251 (linespec_parse_basic): New function.
7252 (canonicalize_linespec): New function.
7253 (decode_line_internal): Remove.
7254 (create_sals_line_offset): New function adapted from
7255 decode_all_digits.
7256 (convert_linespec_to_sals): New function.
7257 (parse_linespec): New function.
7258 (linespec_parser_new): New function.
7259 (linespec_state_destructor): Change parameter type to
7260 struct linespec_state *.
7261 Add language parameter.
7262 Remove freeing of moved members.
7263 (linespec_parser_delete): New function.
7264 (decode_line_full): Use parse_linespec and linespec_parser_new.
7265 (decode_line_1): Likewise.
7266 (decode_indirect): Rename to ...
7267 (linespec_expression_to_pc): ... this and rewrite
7268 to simply find CORE_ADDR, storing this result for later
7269 conversion to SALs.
7270 (locate_first_half): Remove.
7271 (deocde_objc): Add parameter LS.
7272 Initialize new struct collect_info members.
7273 Handle minimal symbols, too.
7274 (decode_compound): Delete.
7275 (lookup_prefix_sym): Rewrite.
7276 (compare_msymbols): New function.
7277 (find_method): Rewrite.
7278 Do not call cplusplus_error.
7279 (symtabs_from_filename): Rewrite.
7280 (collect_function_symbols): Delete.
7281 (find_function_symbols): Rewrite without ARGPTR-style
7282 processing.
7283 (decode_all_digits): Delete. (Rewritten as create_sals_line_offset.)
7284 (decode_dollar): Adapted and renamed to ...
7285 (linespec_parse_variable): ... this.
7286 (find_linespec_symbols): New function.
7287 (decode_label): Adapted and renamed to ...
7288 (find_label_symbols): ... this.
7289 (decode_digits_list_mode): Add and use LS argument.
7290 (decode_digits_ordinary): Likewise.
7291 (collect_symbols): Do not collect SALs, just symbols and msymbols.
7292 If in list mode, allow any symbol class. Otherwise, only
7293 permit LOC_BLOCK symbols.
7294 (minsym_found): Update comments.
7295 (search_minsyms_for_name): Do not convert the matching symbol
7296 into a SAL. Simply push the symbol and objfile into the
7297 result vector.
7298 (decode_variable): Delete. Contents adapted into
7299 find_linespec_symbols.
7300
7301 * cp-support.c (SKIP_SPACE): Remove.
7302 (operator_tokens): Remove unused global.
7303 (cp_validate_operator): Remove.
7304 * cp-support.h (cp_validate_operator): Remove declaration.
7305
a72c8f6a
JK
73062012-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7307
7308 * cp-valprint.c (cp_print_value_fields): Check valprint_check_validity
7309 for TYPE_VPTR_FIELDNO.
7310 * valprint.c (valprint_check_validity): Make it global, move the
7311 function comment ...
7312 * value.h (valprint_check_validity): ... to this new declaration.
7313
cf9bb588
TG
73142012-04-02 Tristan Gingold <gingold@adacore.com>
7315
7316 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Use
7317 the STATE32 api for i386 state.
7318 (i386_darwin_store_inferior_registers): Likewise.
7319
17092398
TG
73202012-04-02 Tristan Gingold <gingold@adacore.com>
7321
7322 * i386-darwin-tdep.c (i386_darwin_thread_state_reg_offset): Fix
7323 SS offset.
7324 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
7325 format_string.
7326
ece0061f
TG
73272012-04-02 Tristan Gingold <gingold@adacore.com>
7328
7329 PR gdb/13901
d987a266 7330 * darwin-nat.c (darwin_execvp): Set binary preference.
ece0061f 7331
cf65ecd3
JK
73322012-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7333
7334 * NEWS (set breakpoint condition-evaluation): Use imperative mood.
7335
9bc3523d
TT
73362012-03-30 Tom Tromey <tromey@redhat.com>
7337
7338 * python/python.c (gdbpy_decode_line): Move cleanup creation out
7339 of TRY_CATCH. Fix error handling.
7340 * python/py-value.c (convert_value_from_python): Move 'old'
7341 declaration to innermost scope.
7342
b1ed564a
JB
73432012-03-29 Joel Brobecker <brobecker@adacore.com>
7344 Andrey Smirnov <andrew.smirnov@gmail.com>
7345
7346 -Wshadow warning fix.
7347 * ada-lang.c (ada_make_symbol_completion_list): Rename parameters
7348 "wild_match" and "encoded" into "wild_match_p" and "encoded_p".
7349 Adjust code accordingly.
7350
cb8e9b97
JB
73512012-03-29 Joel Brobecker <brobecker@adacore.com>
7352
7353 * ada-lang.c (symbol_completion_add): Rename parameter
7354 "encoded" into "encoded_p". Ajust code and documentation
7355 accordingly.
7356
c0af1706
JB
73572012-03-29 Joel Brobecker <brobecker@adacore.com>
7358 Andrey Smirnov <andrew.smirnov@gmail.com>
7359
7360 -Wshadow warning fix.
7361 * ada-lang.c (symbol_completion_add): Rename parameter
7362 "wild_match" into wild_match_p. Update code and documentation
7363 accordingly.
7364
6ea35997
JB
73652012-03-29 Joel Brobecker <brobecker@adacore.com>
7366
7367 * ada-lang.c (symbol_completion_match): Rename parameter
7368 "encoded" into "encoded_p". Ajust code and documentation
7369 accordingly.
7370
e701b3c0
JB
73712012-03-29 Joel Brobecker <brobecker@adacore.com>
7372 Andrey Smirnov <andrew.smirnov@gmail.com>
7373
7374 -Wshadow warning fix.
7375 * ada-lang.c (symbol_completion_match): Rename parameter
7376 "wild_match" into "wild_match_p". Adjust code and function
7377 documentation accordingly.
7378
5e2336be
JB
73792012-03-29 Joel Brobecker <brobecker@adacore.com>
7380 Andrey Smirnov <andrew.smirnov@gmail.com>
7381
7382 -Wshadow warning fix.
7383 * ada-lang.c (ada_lookup_encoded_symbol): Rename parameter
7384 "symbol_info" into "info". Adjust code accordingly.
7385 (ada_lookup_symbol): Likewise.
7386
9f88c959
JB
73872012-03-29 Joel Brobecker <brobecker@adacore.com>
7388
7389 * ada-lang.c (ada_lookup_symbol_list): Minor reformatting
7390 of this function's documentation.
7391
82ccd55e
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_symbol_list): Rename "wild_match"
7397 variable into "wild_match_p". Adjust code accordingly.
7398
d0a8ab18
JB
73992012-03-29 Joel Brobecker <brobecker@adacore.com>
7400 Andrey Smirnov <andrew.smirnov@gmail.com>
7401
7402 -Wshadow warning fix.
7403 * ada-lang.c (ada_add_local_symbols): Rename "wild_match"
7404 parameter into "wild_match_p". Adjust code accordingly.
7405 Document this parameter in the function description.
7406
48b78332
JB
74072012-03-29 Joel Brobecker <brobecker@adacore.com>
7408 Andrey Smirnov <andrew.smirnov@gmail.com>
7409
7410 -Wshadow warning fix.
7411 * ada-lang.c (add_symbols_from_enclosing_procs): Rename
7412 "wild_match" parameter to "wild_match_p" (-Wshadow).
7413
2e6e0353
JB
74142012-03-29 Joel Brobecker <brobecker@adacore.com>
7415
7416 * ada-lang.c (ada_lookup_simple_minsym): Remove trailing spaces
7417 in function documentation.
7418
dc4024cd
JB
74192012-03-29 Joel Brobecker <brobecker@adacore.com>
7420 Andrey Smirnov <andrew.smirnov@gmail.com>
7421
7422 -Wshadow warning fix.
7423 * ada-lang.c (ada_lookup_simple_minsym): Rename wild_match local
7424 variable into wild_match_p. Adjust code accordingly.
7425
6c88661c
JB
74262012-03-29 Joel Brobecker <brobecker@adacore.com>
7427 Andrey Smirnov <andrew.smirnov@gmail.com>
7428
7429 * ada-valprint.c (ada_val_print_1): Move the code handling
7430 TYPE_CODE_ENUM inside its own lexical block. Declare
7431 variables len and val there, instead of in the function's
7432 top level block. Avoid declaring deref_val again in a way
7433 that shadows another variable of the same name declared
7434 in one of the up-level blocks. Just re-use the up-level
7435 variable instead.
7436
4e5c77fe
JB
74372012-03-29 Joel Brobecker <brobecker@adacore.com>
7438
7439 * ada-lang.c (ada_lookup_encoded_symbol): Now returns void.
7440 Replace block_found argument by symbol_info. Adjust
7441 implementation accordingly. Add function documentation.
7442 (ada_lookup_symbol): Adjust to new ada_lookup_encoded_symbol.
7443 Fix documentation.
7444 * ada-lang.h (ada_lookup_encoded_symbol): Update declaration.
7445 * ada-exp.y (write_object_renaming): Adjust to new
7446 ada_lookup_encoded_symbol API.
7447
1c0ac8c7
JB
74482012-03-29 Joel Brobecker <brobecker@adacore.com>
7449
7450 * ada-lang.h (struct ada_symbol_info): Reformat. Improve
7451 documentation.
7452
2aaed979
KB
74532012-03-28 Rathish C <rathish.c@kpitcummins.com>
7454
7455 * v850-tdep.c: Add the enum values for mpu and fpu registers.
7456 (v850_register_name): Add the mpu and fpu register names.
7457 (v850e_register_name): Add the mpu and fpu register names.
7458 (v850e2_register_name): New function.
a09130f9 7459 (v850_gdbarch_init): Add case for bfd_mach_v850e2 and
2aaed979
KB
7460 bfd_mach_v850e2v3.
7461
927fbba6
JB
74622012-03-28 Joel Brobecker <brobecker@adacore.com>
7463
7464 * NEWS: Add entry for Ada varobj support.
7465
d32cafc7
JB
74662012-03-28 Joel Brobecker <brobecker@adacore.com>
7467
7468 * varobj.c (default_value_is_changeable_p): New function,
7469 extracted from varobj_value_is_changeable_p. Add declaration.
7470 (ada_value_is_changeable_p): New function, extracted from
7471 varobj_value_is_changeable_p. Add declaration.
7472 (struct language_specific): New field "value_is_changeable_p".
7473 (languages): Add entries for new field.
7474 (varobj_create): Set language before calling install_new_value.
7475 (varobj_value_is_changeable_p): Reimplement to call the varobj's
7476 "value_is_changeable_p" language callback.
7477
181875a4
JB
74782012-03-28 Joel Brobecker <brobecker@adacore.com>
7479
7480 * ada-varobj.h, ada-varobj.c: New files.
7481 * Makefile.in (SFILES): Add ada-varobj.c.
7482 (HFILES_NO_SRCDIR): Add ada-varobj.h.
7483 (COMMON_OBS): Add ada-varobj.o.
7484
7a290c40
JB
74852012-03-28 Joel Brobecker <brobecker@adacore.com>
7486
7487 * varobj.c (ada_value_has_mutated): Add declaration. New function.
7488 (struct language_specific): New field "value_has_mutated".
7489 (languages): Set field "value_has_mutated" in each entry of array.
7490 (varobj_value_has_mutated): New function.
7491 (varobj_udpdate): Add handling of type mutation.
7492 (value_of_root): Add handling of type mutation.
7493 (ada_value_has_mutated): New function.
7494
ca9b8b9c
PA
74952012-03-28 Pedro Alves <palves@redhat.com>
7496
7497 * ia64-linux-nat.c (supply_fpregset, ia64_linux_fetch_register):
7498 Always supply $fr0 as 0.0 and $fr1 as 1.0.
7499
cc0265cd
TT
75002012-03-28 Tom Tromey <tromey@redhat.com>
7501
7502 * python/py-inferior.c (infpy_read_memory): Remove cleanups and
7503 explicitly free 'buffer' on exit paths. Decref 'membuf_object'
7504 before returning.
7505
3ad2ec6f
TT
75062012-03-28 Tom Tromey <tromey@redhat.com>
7507
7508 * .dir-locals.el: New file.
7509
4a6510ba
PA
75102012-03-28 Pedro Alves <palves@redhat.com>
7511
7512 * ia64-linux-nat.c (u_offsets): Map IA64_EC_REGNUM to PT_AR_EC.
7513
5a75128f
JB
75142012-03-28 Joel Brobecker <brobecker@adacore.com>
7515
7516 * ia64-linux-nat.c (ia64_linux_fetch_register): Add special
7517 handling for r0.
7518
f99d8bf4
PA
75192012-03-27 Pedro Alves <palves@redhat.com>
7520
7521 Eliminate struct ui_stream.
7522
7523 * ui-out.h (struct ui_stream): Delete.
7524 (ui_out_field_stream): Adjust prototype.
7525 (ui_out_stream_new, ui_out_stream_delete)
7526 (make_cleanup_ui_out_stream_delete): Delete declarations.
7527 * ui-out.c (ui_out_field_stream): Change prototype to take a
7528 ui_file instead of a ui_stream. Adjust.
7529 (ui_out_stream_new, ui_out_stream_delete, do_stream_delete)
7530 (make_cleanup_ui_out_stream_delete): Delete.
7531 * breakpoint.c (print_breakpoint_location)
7532 (print_one_detail_ranged_breakpoint, print_it_watchpoint): Use
7533 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
7534 * disasm.c (dump_insns): Ditto.
7535 (do_mixed_source_and_assembly, do_assembly_only): Adjust
7536 prototype.
7537 (gdb_disassembly): Use ui_file/mem_fileopen instead of
7538 ui_stream/ui_out_stream_new.
7539 * infcmd.c (print_return_value): Ditto.
7540 * osdata.c (info_osdata_command): Don't allocate a local
7541 ui_stream.
7542 * stack.c (print_frame_arg, print_frame_args, print_frame): Use
7543 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
7544 * tracepoint.c (print_one_static_tracepoint_marker): Don't
7545 allocate a local ui_stream.
7546 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_file/mem_fileopen
7547 instead of ui_stream/ui_out_stream_new.
7548 (list_args_or_locals): Don't allocate a local ui_stream.
7549 * mi/mi-main.c (get_register, mi_cmd_data_evaluate_expression)
7550 (mi_cmd_data_read_memory): Use ui_file/mem_fileopen instead of
7551 ui_stream/ui_out_stream_new.
7552 * cli/cli-setshow.c (do_setshow_command): Ditto.
7553
6350a066 75542012-03-27 Oza Pawandeep <oza.pawandeep@gmail.com>
72508ac0 7555
6350a066
PA
7556 * arm-linux-tdep.c (arm_linux_init_abi): Call
7557 set_gdbarch_process_record. Initialize `arm_swi_record' field.
7558 * arm-tdep.c (arm_process_record): New function.
7559 (deallocate_reg_mem): New function.
7560 (decode_insn): New function.
7561 (thumb_record_branch): New function.
7562 (thumb_record_ldm_stm_swi(): New function.
7563 (thumb_record_misc): New function.
7564 (thumb_record_ld_st_stack): New function.
7565 (thumb_record_ld_st_imm_offset): New function.
7566 (thumb_record_ld_st_reg_offset(): New function.
7567 (thumb_record_add_sub_cmp_mov): New function.
7568 (thumb_record_shift_add_sub): New function.
7569 (arm_record_coproc_data_proc): New function.
7570 (arm_record_coproc): New function.
7571 (arm_record_b_bl): New function.
7572 (arm_record_ld_st_multiple): New function.
7573 (arm_record_ld_st_reg_offset): New function.
7574 (arm_record_ld_st_imm_offset): New function.
7575 (arm_record_data_proc_imm): New function.
7576 (arm_record_data_proc_misc_ld_str): New function.
7577 (arm_record_extension_space): New function.
7578 (arm_record_strx): New function.
7579 (sbo_sbz): New function.
7580 (struct insn_decode_record): New structure for arm insn record.
7581 (REG_ALLOC): New macro for reg allocations.
7582 (MEM_ALLOC): New macro for memory allocations.
7583 * arm-tdep.h (struct gdbarch_tdep): New field 'arm_swi_record'.
72508ac0 7584
89e028e2
AS
75852012-03-27 Andreas Schwab <schwab@linux-m68k.org>
7586
7587 * m68klinux-nat.c (fetch_register): Fix strict-aliasing violation.
7588 (store_register): Likewise.
7589
6350a066 75902012-03-26 Oza Pawandeep <oza.pawandeep@gmail.com>
3d9a9eb0 7591
6350a066 7592 * MAINTAINERS (Write After Approval): Add myself to the list.
3d9a9eb0 7593
5b43fab2
JK
75942012-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7595
7596 * NEWS (set breakpoint condition-evaluation): Change "gdb" to "host".
7597 Describe also the option "auto".
7598
b5453b95
RH
75992012-03-22 Richard Henderson <rth@redhat.com>
7600
7601 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Fix prototype.
7602 * sparc-nat.c (sparc_xfer_wcookie): Make static.
7603
227ee7fc
RH
76042012-03-22 Richard Henderson <rth@redhat.com>
7605
7606 * jit.c (jit_read_code_entry): Compute alignment and offset of
7607 int64_t member before computing entry_size.
7608
7b282c5a
SCR
76092012-03-22 Siva Chandra Reddy <sivachandra@google.com>
7610
7611 Python scripting: Add new method Value.referenced_value to
7612 gdb.Value which can dereference pointer as well as reference
7613 values.
7614 * NEWS: Add entry under 'Python scripting' about the new method
7615 Value.referenced_value on gdb.Value objects.
7616 * python/py-value.c (valpy_referenced_value): New function
7617 defining a new method on gdb.Value objects which can dereference
7618 pointer and reference values.
7619
0c83539f
SCR
76202012-03-22 Siva Chandra Reddy <sivachandra@google.com>
7621
7622 * MAINTAINERS (Write After Approval): Add myself to the list.
7623
7ccffd7c
KB
76242012-03-21 Kevin Buettner <kevinb@redhat.com>
7625
7626 * symtab.c (skip_prologue_sal): Change test to check for "main()"
7627 in addition to "main".
7628
bd0b9f9e
JB
76292012-03-21 Joel Brobecker <brobecker@adacore.com>
7630
7631 * expression.h (op_name): Add declaration.
7632 * expprint.c (op_name): Remove declaration. Make non-static.
7633 * ax-gdb.c (gen_expr): Use op_name instead of op_string.
7634
a5362b9a
TS
76352012-03-21 Thomas Schwinge <thomas@codesourcery.com>
7636
7637 * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Use siginfo_t instead
7638 of struct siginfo.
7639 * arm-linux-nat.c (arm_linux_stopped_data_address): Likewise.
7640 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
7641 * linux-nat.c (linux_nat_siginfo_fixup, siginfo_fixup)
7642 (linux_xfer_siginfo, linux_nat_set_siginfo_fixup)
7643 (linux_nat_get_siginfo): Likewise.
7644 * linux-nat.h (struct lwp_info, linux_nat_set_siginfo_fixup)
7645 (linux_nat_get_siginfo): Likewise.
7646 * linux-tdep.c (linux_get_siginfo_type): Likewise.
7647 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Likewise.
7648 * procfs.c (gdb_siginfo_t): Likewise.
7649
adcadaab
MF
76502012-03-21 Mike Frysinger <vapier@gentoo.org>
7651
7652 * .gitignore: Ignore more files.
7653
e278ad5b
PA
76542012-03-20 Pedro Alves <palves@redhat.com>
7655
7656 * remote.c (remote_start_remote): Clear `rs->starting_up' on early
7657 returns.
7658
741e63d7
YQ
76592012-03-20 Yao Qi <yao@codesourcery.com>
7660
7661 * amd64-tdep.c (amd64_displaced_step_copy_insn): Complete missing "}" in
7662 comment.
7663
b64f50a1
JK
76642012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7665
7666 Code cleanupp: Use cu_offset and sect_offset compile time type checking.
7667 * dwarf2expr.c (add_piece, dwarf_get_base_type, execute_stack_op)
7668 (ctx_no_dwarf_call, ctx_no_get_base_type): Use cu_offset and
7669 sect_offset.
7670 * dwarf2expr.h (cu_offset, sect_offset): New types.
7671 (struct dwarf_expr_context_funcs) <dwarf_call>
7672 (struct dwarf_expr_context_funcs) <get_base_type>: Use cu_offset and
7673 sect_offset.
7674 (struct dwarf_expr_context) <len>: Improve the comment.
7675 (struct dwarf_expr_piece, ctx_no_dwarf_call, ctx_no_get_base_type): Use
7676 cu_offset and sect_offset.
7677 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call)
7678 (dwarf_expr_get_base_type, needs_frame_dwarf_call)
7679 (dwarf2_compile_expr_to_ax, disassemble_dwarf_expression): Likewise.
7680 * dwarf2loc.h: Include dwarf2expr.h.
7681 (dwarf2_fetch_die_location_block, dwarf2_get_die_type): Use cu_offset
7682 and sect_offset.
7683 * dwarf2read.c (struct dwarf2_per_objfile) <debug_types_type_hash>:
7684 Improve the comment.
7685 (struct comp_unit_head, struct dwarf2_cu, struct dwarf2_per_cu_data)
7686 (struct signatured_type, struct line_header, struct partial_die_info)
7687 (struct die_info, find_partial_die, dwarf2_get_ref_die_offset)
7688 (lookup_signatured_type_at_offset, dwarf2_find_containing_comp_unit)
7689 (get_die_type_at_offset, create_cus_from_index)
7690 (create_signatured_type_table_from_index, dw2_get_file_names)
7691 (offset_in_cu_p, read_comp_unit_head, error_check_comp_unit_head)
7692 (read_and_check_comp_unit_head, read_and_check_type_unit_head)
7693 (create_debug_types_hash_table, process_psymtab_comp_unit)
7694 (load_partial_comp_unit, create_all_comp_units)
7695 (partial_die_parent_scope, partial_die_full_name, skip_one_die)
7696 (load_full_comp_unit, dwarf2_physname, read_import_statement)
7697 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
7698 (dwarf2_add_member_fn, process_enumeration_scope, read_module_type)
7699 (read_typedef, die_hash, die_eq, read_full_die, dwarf2_read_abbrevs)
7700 (load_partial_dies, read_partial_die, find_partial_die_in_comp_unit)
7701 (find_partial_die, read_attribute_value, lookup_die_type)
7702 (dump_die_shallow, store_in_ref_table): Use cu_offset and sect_offset.
7703 (is_ref_attr): New function comment.
7704 (dwarf2_get_ref_die_offset): New function comment, new variable retval.
7705 Use cu_offset and sect_offset.
7706 (follow_die_offset, follow_die_ref, dwarf2_fetch_die_location_block)
7707 (dwarf2_get_die_type, follow_die_sig, lookup_signatured_type_at_offset)
7708 (load_full_type_unit, read_signatured_type, per_cu_header_read_in)
7709 (dwarf2_find_containing_comp_unit, struct dwarf2_offset_and_type)
7710 (offset_and_type_hash, offset_and_type_eq, set_die_type)
7711 (get_die_type_at_offset, partial_die_hash, partial_die_eq)
7712 (write_one_signatured_type, write_psymtabs_to_index): Use cu_offset and
7713 sect_offset.
7714
e97a38f7
JK
77152012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7716
7717 Code cleanup.
7718 * python/py-auto-load.c (source_section_scripts): New variable back_to.
7719 Turn fclose and xfree calls into make_cleanup_fclose and make_cleanup
7720 with xfree.
7721 (auto_load_objfile_script): Turn fclose into make_cleanup_fclose.
7722
8320cc4f
JK
77232012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7724
7725 * NEWS: Describe new options --init-command=FILE, -ix and
7726 --init-eval-command=COMMAND, -iex.
7727 * main.c (struct cmdarg): New enum items CMDARG_INIT_FILE and
7728 CMDARG_INIT_COMMAND.
7729 (captured_main): New enum items OPT_IX and OPT_IEX. Add
7730 "init-command", "init-eval-command", "ix" and "iex" to the variable
7731 long_options. Handle OPT_IX and OPT_IEX. Process them from CMDARG_VEC.
7732 New comment for CMDARG_FILE and CMDARG_COMMAND processing.
7733 (print_gdb_help): Describe --init-command=FILE, -ix and
7734 --init-eval-command=COMMAND, -iex.
7735
26743505
JK
77362012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7737
7738 Code cleanup.
7739 * main.c (struct cmdarg): Move it here from main. Add more comments.
7740 (cmdarg_s, VEC (cmdarg_s)): New.
7741 (main): Move struct cmdarg from here. New variables cmdarg_vec and
7742 cmdarg_p. Remove variables cmdsize and ncmd and their initialization.
7743 Install cleanup for cmdarg_vec. Update filling for options 'x' and
7744 'X'. Replace cmdarg processing by cmdarg_vec processing. Remove xfree
7745 of CMDARG.
7746
5ff5c7b4
TT
77472012-03-19 Tom Tromey <tromey@redhat.com>
7748
7749 * gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'.
7750
ab260dad
JK
77512012-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7752
7753 PR symtab/13777
7754 * dwarf2read.c (process_full_comp_unit): Set LOCATIONS_VALID only for
7755 GCC >=4.5.
7756
c366c1f0
TT
77572012-03-16 Chris January <chris.january@allinea.com>
7758
7759 * tui-tui.win.c (tui_resize_all): Use erase and clearok instead
7760 of clear.
7761
e16edb45
TT
77622012-03-16 Chris January <chris.january@allinea.com>
7763
7764 * source.c (add_path): Use memmove instead of strcpy because the
7765 strings overlap.
7766
53ba8333
JB
77672012-03-16 Joel Brobecker <brobecker@adacore.com>
7768
7769 * value.h (set_value_parent): Add declaration.
7770 * value.c (set_value_parent): New function.
7771 (value_address): If VALUE->PARENT is not NULL, then use it as
7772 the base address instead of VALUE->LOCATION.address.
7773 * ada-lang.c (ada_value_primitive_packed_val): Keep V's address
7774 the same as OBJ's address. Adjust V's offset accordingly.
7775 Set V's parent.
7776
481860b3
GB
77772012-03-16 Gary Benson <gbenson@redhat.com>
7778
7779 PR breakpoints/10738
7780 * dwarf2read.c (use_deprecated_index_sections): New global.
7781 (struct partial_die_info): New member may_be_inlined.
7782 (read_partial_die): Set may_be_inlined where appropriate.
7783 (add_partial_subprogram): Add partial symbols for partial
7784 DIEs that may be inlined.
7785 (new_symbol_full): Add inlined subroutines to the current
7786 scope.
7787 (write_psymtabs_to_index): Bump version number.
7788 (dwarf2_read_index): Read only version 6 indices unless
7789 use_deprecated_index_sections is set.
7790 * linespec.c (symbol_and_data_callback): New structure.
7791 (iterate_inline_only): New function.
7792 (iterate_over_all_matching_symtabs): New argument
7793 "include_inline". If nonzero, also call the callback for
7794 symbols representing inlined subroutines.
7795 (lookup_prefix_sym): Pass extra argument to the above.
7796 (find_function_symbols): Likewise.
7797 (add_matching_symbols_to_info): Likewise.
7798 * NEWS: Mention that GDB can now set breakpoints on inlined
7799 functions.
7800
d0e7e15a
PM
78012012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
7802
7803 * p-typeprint.c (pascal_type_print_method_args):
7804 Fix display of parameter of methods.
7805
3d354654
PM
78062012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
7807
7808 * amd64-windows-nat.c (_initialize_amd64_windows_nat):
7809 Add missing prototype.
7810
cafe75b0
JK
78112012-03-16 Yao Qi <yao@codesourcery.com>
7812 Jan Kratochvil <jan.kratochvil@redhat.com>
7813
7814 Fix false compilation warning.
7815 * gnu-v3-abi.c (print_one_vtable): Initialize ADDR.
7816
25f8c692
JL
78172012-03-15 Jonathan Larmour <jifl@eCosCentric.com>
7818 Pedro Alves <pedro@codesourcery.com>
7819
7820 * arm-tdep.c: Include "remote.h" and "features/arm-with-m-fpa-layout.c".
7821 (arm_register_g_packet_guesses): New function.
7822 (arm_gdbarch_init): Don't force a target description with
7823 registers when the executable is detected as M-profile. Instead
7824 set gdbarch->tdep->is_m. Register `g' packet guesses.
7825 (_initialize_arm_tdep): Initialize the new target description.
7826 * features/arm-with-m-fpa-layout.xml: New description.
7827 * features/arm-with-m-fpa-layout.c: New, generated.
7828
35c63cd8
JB
78292012-03-15 Joel Brobecker <brobecker@adacore.com>
7830
7831 * breakpoint.c (breakpoint_xfer_memory): Add assertion.
7832 Update function description.
7833 (insert_bp_location): Do not wipe bl->target_info out.
7834 * mem-break.c: #include "gdb_string.h".
7835 (default_memory_insert_breakpoint): Do not call target_read_memory
7836 with a pointer to the breakpoint's shadow_contents buffer. Use
7837 a local buffer instead.
7838 * m32r-tdep.c (m32r_memory_insert_breakpoint): Ditto.
7839
57651221
TT
78402012-03-15 Tom Tromey <tromey@redhat.com>
7841
7842 * NEWS: Mention "info vtbl", not "info vtable".
7843 * cp-support.c (info_vtbl_command): Fix comment.
7844 (_initialize_cp_support): Fix text.
7845
410528f0
TT
78462012-03-15 Tom Tromey <tromey@redhat.com>
7847
7848 * cp-valprint.c (cp_print_value_fields): Use
7849 print_function_pointer_address for vtable slot.
7850
c4aeac85
TT
78512012-03-15 Tom Tromey <tromey@redhat.com>
7852
7853 * gnu-v3-abi.c (struct value_and_voffset): New.
7854 (hash_value_and_voffset, eq_value_and_voffset)
7855 (compare_value_and_voffset, compute_vtable_size)
7856 (print_one_vtable, gnuv3_print_vtable): New functions.
7857 (init_gnuv3_ops): Initialize 'print_vtable' field.
7858 * cp-support.c (info_vtbl_command): New function.
7859 (_initialize_cp_support): Add "info vtbl".
7860 * cp-abi.h (cplus_print_vtable): Declare.
7861 (struct cp_abi_ops) <print_vtable>: New field.
7862 * cp-abi.c (cplus_print_vtable): New function.
7863 * NEWS: Update.
7864
95cbceff
TT
78652012-03-15 Tom Tromey <tromey@redhat.com>
7866
7867 * d-lang.c (d_language_defn) <la_iterate_over_symbols>: Set to
7868 iterate_over_symbols.
7869
589b4a32
DE
78702012-03-14 Doug Evans <dje@google.com>
7871
7872 * dwarf2read.c (dwarf_stack_op_name): Add DW_OP_GNU_encoded_addr,
7873 DW_OP_GNU_parameter_ref.
7874
e837f12a
JK
78752012-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7876
7877 Fix double prompt of 'interpreter-exec mi'.
7878 * mi/mi-interp.c (mi_execute_command_input_handler): New prototype.
7879 (mi_interpreter_resume): use it.
7880 (mi_execute_command_input_handler): New function.
7881 * mi/mi-main.c (mi_execute_command): Move prompt printing to
7882 mi_execute_command_input_handler.
7883
ff1e4526 78842012-03-13 Josh Matthews <josh@joshmatthews.net> (tiny change)
c381a3f6
JB
7885
7886 * darwin-nat-info.c (_initialize_darwin_info_commands): Add
7887 prototype.
7888 (darwin_debug_port_info): Make static.
7889 * darwin-nat.c (_initialize_darwin_inferior): Add prototype.
7890 * machoread.c (_initialize_machoread): Add prototype.
7891 * i386-darwin-nat.c (i386_darwin_dr_set, i386_darwin_dr_get)
7892 (i386_darwin_set_control, i386_darwin_get_control)
7893 i386_darwin_dr_set_addr, i386_darwin_get_addr)
7894 i386_darwin_get_status, i386_darwin_get_control):
7895 Comment out with HW_WATCHPOINT_NOT_YET_ENABLED macro.
7896
d8a5d6ee
JB
78972012-03-13 Joel Brobecker <brobecker@adacore.com>
7898
7899 * ax-gdb.c (gen_usual_unary): Remove special handling of
7900 enum and bool types.
7901
af381b8c
JB
79022012-03-13 Joel Brobecker <brobecker@adacore.com>
7903
7904 * ax-gdb.c (gen_fetch): Add handling for TYPE_CODE_RANGE types.
7905
786c562f
JB
79062012-03-13 Joel Brobecker <brobecker@adacore.com>
7907
7908 * aix-thread.c (supply_fprs): Make more consistent with fill_fprs.
7909
e3ebf1bb
JB
79102012-03-13 Chris January <chris.january@allinea.com>
7911
7912 * aix-thread.c (fill_sprs): Store the floating point registers
7913 at the correct offsets into vals.
7914
c5b7e1cb
DE
79152012-03-13 Doug Evans <dje@google.com>
7916
16899756
DE
7917 * NEWS: Mention symbol-reloading has been deleted.
7918 * symfile.c (symbol_reloading): Delete.
7919 (show_symbol_reloading): Delete.
7920 (_initialize_symfile): Delete set/show symbol-reloading.
7921
c5b7e1cb
DE
7922 * dwarf2read.c (load_partial_comp_unit): Defer adding cu to
7923 read_in_chain until we have successfully read it in.
7924 (load_full_comp_unit): Ditto.
7925 (read_signatured_type): Add comment.
7926
46cb6474
JB
79272012-03-13 Chris January <chris.january@allinea.com>
7928
7929 * stabsread.c (fix_common_block): Change type of valu argument
7930 to CORE_ADDR.
7931
76219d77
JB
79322012-03-13 Chris January <chris.january@allinea.com>
7933
7934 * rs6000-tdep.c (skip_prologue): Support the oril r29, r1, 0x0
7935 instruction.
7936
87b0bb13
JK
79372012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7938
7939 * common/linux-procfs.c (linux_proc_get_int): New, from
7940 linux_proc_get_tgid, change its LWPID type to pid_t, add parameter
7941 field.
7942 (linux_proc_get_tgid): Only call linux_proc_get_int.
7943 (linux_proc_get_tracerpid): New.
7944 (linux_proc_pid_has_state): New, from linux_proc_pid_is_zombie.
7945 (linux_proc_pid_is_stopped, linux_proc_pid_is_zombie): Only call
7946 linux_proc_pid_has_state.
7947 * common/linux-procfs.h (linux_proc_get_tracerpid): New declaration.
7948 * common/linux-ptrace.c: Include linux-procfs.h and buffer.h.
7949 (linux_ptrace_attach_warnings): New.
7950 * common/linux-ptrace.h (struct buffer, linux_ptrace_attach_warnings):
7951 New declaration.
7952 * linux-nat.c: Include exceptions.h, linux-ptrace.h and buffer.h.
7953 (linux_nat_attach): New variables ex, buffer, message and message_s.
7954 Wrap to_attach by TRY_CATCH and call linux_ptrace_attach_warnings.
7955
5f572dec
JK
79562012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7957
7958 * Makefile.in (linux-ptrace.o): New.
7959 * common/linux-procfs.c (linux_proc_pid_is_zombie): New,
7960 from linux-nat.c.
7961 * common/linux-procfs.h (linux_proc_pid_is_zombie): New declaration.
7962 * common/linux-ptrace.c: New file.
7963 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-ptrace.o.
7964 * config/arm/linux.mh: Likewise.
7965 * config/i386/linux.mh: Likewise.
7966 * config/i386/linux64.mh: Likewise.
7967 * config/ia64/linux.mh: Likewise.
7968 * config/m32r/linux.mh: Likewise.
7969 * config/m68k/linux.mh: Likewise.
7970 * config/mips/linux.mh: Likewise.
7971 * config/pa/linux.mh: Likewise.
7972 * config/powerpc/linux.mh: Likewise.
7973 * config/powerpc/ppc64-linux.mh: Likewise.
7974 * config/powerpc/spu-linux.mh: Likewise.
7975 * config/s390/s390.mh: Likewise.
7976 * config/sparc/linux.mh: Likewise.
7977 * config/sparc/linux64.mh: Likewise.
7978 * config/xtensa/linux.mh: Likewise.
7979 * linux-nat.c (linux_lwp_is_zombie): Remove, move it to
7980 common/linux-procfs.c.
7981 (wait_lwp): Rename linux_lwp_is_zombie to linux_proc_pid_is_zombie.
7982
44f238bb
PA
79832012-03-13 Hui Zhu <teawater@gmail.com>
7984 Pedro Alves <palves@redhat.com>
7985
7986 * breakpoint.c (init_breakpoint_sal): New flags parameter. Handle
7987 CREATE_BREAKPOINT_FLAGS_INSERTED.
7988 (create_breakpoint_sal, create_breakpoints_sal)
7989 (base_breakpoint_create_breakpoints_sal)
7990 (tracepoint_create_breakpoints_sal)
7991 (strace_marker_create_breakpoints_sal): New flags parameter. Pass
7992 down.
7993 (break_command_1, handle_gnu_v3_exceptions, trace_command)
7994 (ftrace_command, strace_command): Adjust.
7995 (create_tracepoint_from_upload): Pass
7996 CREATE_BREAKPOINT_FLAGS_INSERTED.
7997 * breakpoint.h (enum breakpoint_create_flags): New.
7998 (create_breakpoint): New flags parameter.
7999 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
8000 * python/py-breakpoint.c (bppy_init): Adjust.
8001 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust.
8002 * spu-tdep.c (spu_catch_start): Adjust.
8003
1e51243a
PA
80042012-03-13 Pedro Alves <palves@redhat.com>
8005 Hui Zhu <teawater@gmail.com>
8006 Yao Qi <yao@codesourcery.com>
8007
8008 * remote.c (struct remote_state): New field `starting_up'.
8009 (remote_start_remote): Set and clear it.
8010 (remote_can_download_tracepoint): If starting up, return false.
8011
fa3064dd
YQ
80122012-03-13 Yao Qi <yao@codesourcery.com>
8013
8014 * inferior.h (struct inferior): Remove fields any_syscall_count,
8015 syscalls_counts and total_syscalls_count. Move them to new
8016 struct catch_syscall_inferior_data in breakpoint.c.
8017 * breakpoint.c: Call DEF_VEC_I(int).
8018 (struct catch_syscall_inferior_data): New.
8019 (get_catch_syscall_inferior_data): New.
8020 (catch_syscall_inferior_data_cleanup): New.
8021 (insert_catch_syscall): Update to access data in
8022 struct catch_syscall_inferior_data.
8023 (insert_catch_syscall): Likewise.
8024 (remove_catch_syscall): Likewise.
8025 (remove_catch_syscall): Likewise.
8026 (is_syscall_catchpoint_enabled): Likewise.
8027 (add_catch_command): Likewise.
8028 (_initialize_breakpoint): Register cleanup.
8029 * breakpoint.h: Removed DEF_VEC_I(int).
8030 * dwarf2loc.c: Call DEF_VEC_I(int).
8031 * mi/mi-main.c: Likewise.
8032
460fac3c
MK
80332012-03-12 Mark Kettenis <kettenis@gnu.org>
8034
8035 * inf-ptrace.c (inf_ptrace_post_attach): Make static.
8036
e1aca11e
JB
80372012-03-12 Chris January <chris.january@allinea.com>
8038
8039 * aix-thread.c (_initialize_aix_thread): Add prototype.
8040 * rs6000-nat.c (_initialize_rs6000_nat): Ditto.
8041 * xcoffsolib.c (_initialize_xcoffsolib): Ditto.
8042
649c7061
JB
80432012-03-12 Joel Brobecker <brobecker@adacore.com>
8044
8045 * amd64bsd-nat.c: Move #include of "amd64bsd-nat.h" after
8046 include of "amd64-nat.h".
8047
0b49e518
TT
80482012-03-12 Tom Tromey <tromey@redhat.com>
8049
8050 * buildsym.c (record_pending_block): Now static.
8051 * buildsym.h: (record_pending_block): Remove.
8052
fd24fa94
AT
80532012-03-12 Andreas Tobler <andreast@fgznet.ch>
8054
8055 * amd64bsd-nat.c: Include amd64bsd-nat.h.
8056
ba919b58
TT
80572012-03-09 Tom Tromey <tromey@redhat.com>
8058
8059 * dwarf2read.c (struct dwarf2_cu) <checked_producer,
8060 producer_is_gxx_lt_4_6>: New fields.
8061 (producer_is_gxx_lt_4_6): Use and update producer cache fields.
8062
a48e046c
TT
80632012-03-09 Tom Tromey <tromey@redhat.com>
8064
8065 * dwarf2read.c (dwarf2_attr): Avoid tail-recursive call.
8066
6f5e9362
JB
80672012-03-08 Joel Brobecker <brobecker@adacore.com>
8068
8069 * ravenscar-sparc-thread.c (_initialize_ravenscar_sparc): Add
8070 prototype.
8071
8d037db9
JB
80722012-03-08 Joel Brobecker <brobecker@adacore.com>
8073
8074 * ravenscar-thread.c (_initialize_ravenscar): Add prototype.
8075
4e841acf
JK
80762012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8077
8078 Fix -Wmissing-prototypes build.
8079 * arm-linux-nat.c (get_thread_id): Make it static.
8080 * xtensa-linux-nat.c (get_thread_id): Likewise.
8081
c6030312
JB
80822012-03-08 Joel Brobecker <brobecker@adacore.com>
8083
8084 * server.c (process_point_options): If a conditional expression
8085 is found, only print a message if remote_debug is nonzero.
8086
52323be9
LM
80872012-03-08 Luis Machado <lgustavo@codesourcery.com>
8088
8089 * ax-gdb.c (gen_fetch): Fail gracefully and use error instead
8090 of internal error for unknown/unsupported types.
8091
7fe25d9b
JK
80922012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8093
8094 Fix CU relative vs. absolute DIE offsets.
8095 * dwarf2loc.h (dwarf2_fetch_die_location_block): Rename parameter
8096 offset to offset_in_cu.
8097 * dwarf2read.c (process_enumeration_scope): Add CU offset to
8098 TYPE_OFFSET.
8099 (dwarf2_fetch_die_location_block): Rename parameter offset to
8100 offset_in_cu. New variable offset, add CU offset to OFFSET_IN_CU.
8101
05e7c244
JK
81022012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8103
8104 * libunwind-frame.c: Rename to ...
8105 * ia64-libunwind-tdep.c: ... here.
8106 * libunwind-frame.h: Rename to ...
8107 * ia64-libunwind-tdep.h: ... here.
8108 * Makefile.in (HFILES_NO_SRCDIR): Rename libunwind-frame.h to
8109 ia64-libunwind-tdep.h.
8110 (ALLDEPFILES): Rename libunwind-frame.c to ia64-libunwind-tdep.c.
8111 * README (--with-libunwind): Rename to ...
8112 (--with-libunwind-ia64): ... here, note it is ia64 specific now.
8113 * config.in: Regenerate.
8114 * configure: Regenerate.
8115 * configure.ac: New option --with-libunwind-ia64, make the
8116 AS_HELP_STRING ia64 specific. Deprecate option --with-libunwind.
8117 Remove AC_DEFINE for HAVE_LIBUNWIND.
8118 * ia64-libunwind-tdep.c: Make the file top comment ia64 specific.
8119 Rename libunwind-frame.h #include to ia64-libunwind-tdep.h.
8120 Rename libunwind-frame in the general comment.
8121 * ia64-libunwind-tdep.h: Make the file top comment ia64 specific.
8122 Rename symbol LIBUNWIND_FRAME_H to IA64_TDEP_LIBUNWIND_FRAME_H.
8123 Move forward declarations inside #ifndef. Rename libunwind-frame in
8124 the general comment.
8125 * ia64-tdep.c: Rename libunwind-frame.h #include to
8126 ia64-libunwind-tdep.h.
8127 (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum, ia64_is_fpreg)
8128 (ia64_libunwind_descr): Rename libunwind-frame to
8129 ia64-libunwind-tdep in these function comments.
8130 * ia64-tdep.h: Rename libunwind-frame.h #include to
8131 ia64-libunwind-tdep.h.
8132 * ia64-vms-tdep.c (ia64_vms_libunwind_descr): Rename libunwind-frame to
8133 ia64-libunwind-tdep in that data comment.
8134
3755cbfd
JK
81352012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8136
8137 * libunwind-frame.h (struct frame_unwind): New declaration.
8138
d1cda5d9
JB
81392012-03-08 Joel Brobecker <brobecker@adacore.com>
8140
8141 * breakpoint.c (_initialize_breakpoint): Fix error in help of
8142 "set breakpoint condition-evaluation" command.
8143
a0ba0aa2
TG
81442012-03-08 Tristan Gingold <gingold@adacore.com>
8145
8146 * sparc-stub.c: Move to stubs/
8147 * sh-stub.c: Likewise.
8148 * m68k-stub.c: Likewise.
8149 * m32r-stub.c: Likewise.
8150 * i386-stub.c: Likewise.
8151
7b8b6d6d
AS
81522012-03-08 Andreas Schwab <schwab@linux-m68k.org>
8153
007cafee
AS
8154 * m68klinux-tdep.c (m68k_linux_init_abi): Register
8155 linux_get_siginfo_type.
8156
7b8b6d6d
AS
8157 * m68klinux-nat.c: Include "gdb_proc_service.h".
8158 (PTRACE_GET_THREAD_AREA): Define.
8159 (ps_get_thread_area): New function.
8160
bba74b36
YQ
81612012-03-08 Yao Qi <yao@codesourcery.com>
8162
8163 * remote.c (remote_get_noisy_reply): Replace `sprintf' with
8164 `xsnprintf'.
8165 (remote_query_attached): Likewise.
8166 (remote_static_tracepoint_marker_at): Likewise.
8167 (remote_set_permissions): Likewise.
8168 (remote_detach_1, extended_remote_attach_1): Likewise.
8169 (send_g_packet, remote_vkill): Likewise.
8170 (extended_remote_disable_randomization): Likewise.
8171 (remote_add_target_side_condition): Likewise.
8172 (remote_insert_breakpoint): Likewise.
8173 (remote_remove_breakpoint): Likewise.
8174 (remote_insert_watchpoint): Likewise.
8175 (remote_remove_watchpoint): Likewise.
8176 (remote_insert_hw_breakpoint): Likewise.
8177 (remote_insert_hw_breakpoint): Likewise.
8178 (remote_remove_hw_breakpoint): Likewise.
8179 (remote_download_command_source): Likewise.
8180 (remote_download_tracepoint): Likewise.
8181 (remote_download_trace_state_variable): Likewise.
8182 (remote_disable_tracepoint): Likewise.
8183 (remote_trace_set_readonly_regions): Likewise.
8184 (remote_get_tracepoint_status): Likewise.
8185 (remote_trace_find): Likewise.
8186 (remote_get_trace_state_variable_value): Likewise.
8187 (remote_set_disconnected_tracing): Likewise.
8188 (remote_set_circular_trace_buffer): Likewise.
8189 (remote_get_min_fast_tracepoint_insn_len): Likewise.
8190 (remote_use_agent): Likewise.
8191 (remote_add_target_side_condition): Add one parameter BUF_SIZE.
8192 Update callers.
8193
9b224c5e
PA
81942012-03-07 Pedro Alves <palves@redhat.com>
8195
8196 * NEWS: Mention QProgramSignals.
8197 * inferior.h (update_signals_program_target): Declare.
8198 * infrun.c: (update_signals_program_target): New.
8199 (handle_command): Update the target of the new program signals
8200 array changes.
8201 * remote.c (PACKET_QProgramSignals): New enum.
8202 (last_program_signals_packet): New global.
8203 (remote_program_signals): New.
8204 (remote_start_remote): Update the target with the program signals
8205 list.
8206 (remote_protocol_features): Add entry for QPassSignals.
8207 (remote_open_1): Free anc clear last_program_signals_packet.
8208 (init_remote_ops): Install remote_program_signals.
8209 * target.c (update_current_target): Adjust.
8210 (target_program_signals): New.
8211 * target.h (struct target_ops) <to_program_signals>: New field.
8212 (target_program_signals): Declare.
8213
74c48cbb
PA
82142012-03-07 Pedro Alves <palves@redhat.com>
8215
8216 * NEWS: Add subtitle for new z0/z1 conditional breakpoint
8217 extensions.
8218
0c13fc49
AS
82192012-03-07 Andreas Schwab <schwab@linux-m68k.org>
8220
8221 * m68klinux-nat.c (getregs_supplies): Make static.
8222 (getfpregs_supplies): Likewise.
8223 (have_ptrace_getregs): Likewise.
8224
1281d2a3
JB
82252012-03-06 Joel Brobecker <brobecker@adacore.com>
8226
8227 * dwarf2read.c (dwarf2_get_die_type): Pass absolute offset
8228 in call to get_die_type_at_offset.
8229
2b03b41d
SS
82302012-03-06 Stan Shebs <stan@codesourcery.com>
8231
8232 * mi/mi-cmd-break.c: Enforce coding standards, fix comments.
8233 * mi/mi-cmd-disas.c: Ditto.
8234 * mi/mi-cmd-env.c: Ditto.
8235 * mi/mi-cmd-file.c: Ditto.
8236 * mi/mi-cmd-stack.c: Ditto.
8237 * mi/mi-cmd-target.c: Ditto.
8238 * mi/mi-cmd-var.c: Ditto.
8239 * mi/mi-cmds.c: Ditto.
8240 * mi/mi-cmds.h: Ditto.
8241 * mi/mi-console.c: Ditto.
8242 * mi/mi-getopt.c: Ditto.
8243 * mi/mi-getopt.h: Ditto.
8244 * mi/mi-interp.c: Ditto.
8245 * mi/mi-main.c: Ditto.
8246 * mi/mi-out.c: Ditto.
8247 * mi/mi-parse.c: Ditto.
8248 * mi/mi-parse.h: Ditto.
8249 * mi/mi-symbol-cmds.c: Ditto.
8250
8251 * mi/mi-getopt.h: Move mi_opt struct up.
8252 * mi/mi-main.c (captured_mi_execute_command): Remove redundant
8253 return.
8254 * mi/mi-out.c (_initialize_mi_out): Remove empty initialize.
8255
c988ad87
TT
82562012-03-06 Tom Tromey <tromey@redhat.com>
8257
8258 * proc-service.c (ps_pglobal_lookup): Set the current program
8259 space.
8260
1b7c1b10
PA
82612012-03-06 Pedro Alves <palves@redhat.com>
8262
8263 * gregset.h [HAVE_SYS_PROCFS_H]: Include <sys/procfs.h>.
8264
3c182069
JB
82652012-03-05 Joel Brobecker <brobecker@adacore.com>
8266
8267 * MAINTAINERS: List Maciej W. Rozycki as the mips maintainer.
8268
2e794194
JK
82692012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8270
8271 Code cleanup.
8272 * common/linux-osdata.c (linux_common_core_of_thread): New function
8273 comment.
8274 * linux-nat.c (linux_nat_wait_1): Replace linux_nat_core_of_thread_1
8275 call by linux_common_core_of_thread.
8276 (linux_nat_core_of_thread_1): Remove.
8277 * linux-nat.h (linux_nat_core_of_thread_1): Remove declaration.
8278 * linux-thread-db.c: Include linux-osdata.h.
8279 (update_thread_core): Replace linux_nat_core_of_thread_1 call by
8280 linux_common_core_of_thread.
8281
9f9f1f31
TT
82822012-03-05 Tom Tromey <tromey@redhat.com>
8283
8284 * value.c (value_primitive_field): Don't fetch contents for
8285 non-virtual bases.
8286
b7b189f3
TT
82872012-03-05 Tom Tromey <tromey@redhat.com>
8288
8289 * jv-valprint.c (java_value_print): Correctly compute 'obj_addr'.
8290
05b8a789 82912012-03-05 Andreas Arnez <arnez@linux.vnet.ibm.com>
5538f557 8292
5538f557
JB
8293 * s390-nat.c: Include "gregset.h".
8294
75528772
JK
82952012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8296
8297 * libunwind-frame.c (LIBUNWIND_SO): Change .7 to .8.
8298 [!LIBUNWIND_SO] (LIBUNWIND_SO_7): New #define.
8299 (libunwind_load): New variable so_error, use it for dlerror. Try to
8300 load also LIBUNWIND_SO_7.
8301
275418ae
PA
83022012-03-05 Pedro Alves <palves@redhat.com>
8303
8304 * i387-tdep.c (i387_supply_xsave): Assert the xsave section buffer
8305 is not NULL, and remove resulting dead code.
8306
5cbb9812
TS
83072012-03-05 Thomas Schwinge <thomas@codesourcery.com>
8308
8309 * sh-tdep.c (sh_skip_prologue): Provide an upper limit on the function
8310 prologue to sh_analyze_prologue.
8311 (sh_analyze_prologue): Make better use of such an upper limit, and
8312 generally be more cautious about accessing memory.
8313
541515ad
TT
83142012-03-05 Tom Tromey <tromey@redhat.com>
8315
8316 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from
8317 _initialize_ia64_hpux_tdep.
8318
b4d36fb8
PA
83192012-03-05 Pedro Alves <palves@redhat.com>
8320
24490249
PA
8321 PR gdb/13766
8322
b4d36fb8
PA
8323 * i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and
8324 the register state is clear, supply explicit zero, instead of
8325 marking the register unavailable.
8326
60c9a3c0
TG
83272012-03-05 Tristan Gingold <gingold@adacore.com>
8328
8329 * NEWS: Mention OpenVMS ia64 new target.
8330
696759ad
TG
83312012-03-05 Tristan Gingold <gingold@adacore.com>
8332
8333 * ia64-tdep.h: Include libunwind-frame.h and libunwind-ia64.h.
8334 (ia64_unw_accessors, ia64_unw_rse_accessors)
8335 (ia64_libunwind_descr): Declare.
8336 * ia64-vms-tdep.c: New file.
8337 * ia64-tdep.c (ia64_unw_accessors, ia64_unw_rse_accessors)
8338 (ia64_libunwind_descr): Make them public.
8339 * configure.tgt: Add ia64-*-*vms*.
8340 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-vms-tdep.o
8341 (ALLDEPFILES): Add ia64-vms-tdep.c
8342
34864976
TG
83432012-03-05 Tristan Gingold <gingold@adacore.com>
8344
169081d0
TG
8345 * target.h (target_object): Add TARGET_OBJECT_OPENVMS_UIB.
8346 * remote.c (PACKET_qXfer_uib): New enum value.
8347 (remote_protocol_features): Add entry for PACKET_qXfer_uib.
8348 (remote_xfer_partial): Handle TARGET_OBJECT_OPENVMS_UIB.
8349 (_initialize_remote): Call add_packet_config_cmd for
8350 xfer:uib packet.
8351
83522012-03-05 Tristan Gingold <gingold@adacore.com>
8353
8354 * osabi.c (gdb_osabi_names): Add OpenVMS.
8355 (generic_elf_osabi_sniffer): Likewise.
8356 * defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS.
34864976 8357
6597b100
JK
83582012-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
8359
8360 Removed unused code.
8361 * libunwind-frame.c (libunwind_frame_unwind)
8362 (libunwind_frame_base_address): Remove.
8363 * libunwind-frame.h (libunwind_frame_base_address): Remove declaration.
8364
87399aa1
YQ
83652012-03-04 Yao Qi <yao@codesourcery.com>
8366
8367 * common/agent.c (gdb_connect_sync_socket): Add _ markup and
8368 remove trailing new line.
8369 (agent_run_command, agent_run_command): Add _ markup.
8370 (agent_capability_check): Likewise.
8371
abf1152a
JK
83722012-03-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8373
8374 * breakpoint.c (set_condition_evaluation_mode): Set
8375 CONDITION_EVALUATION_MODE unconditionally.
8376
5808517f
YQ
83772012-03-03 Yao Qi <yao@codesourcery.com>
8378
8379 * common/agent.c (agent_look_up_symbols): Add one parameter 'arg'.
8380 * common/agent.h: Update declaration.
8381 * inf-child.c (inf_child_use_agent): New.
8382 (inf_child_can_use_agent): New.
8383 (inf_child_target): Initialize fields `to_use_agent'
8384 and `to_can_use_agent'.
8385 * agent.c (agent_new_objfile): New.
89b7509a 8386 (_initialize_agent): Add agent_new_objfile to new_objfile
5808517f
YQ
8387 observer.
8388
8389 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
8390 New.
89b7509a 8391 (linux_target_install_ops): Initialize field
5808517f
YQ
8392 `to_static_tracepoint_markers_by_strid'.
8393 * remote.c (free_current_marker): Move it to ...
8394 * tracepoint.c (free_current_marker): ... here. New.
8395 (cleanup_target_stop): New.
8396 * tracepoint.h: Declare free_current_marker.
8397 * NEWS: Add one entry about `info static-tracepoint-marker'.
8398
58b4daa5
YQ
83992012-03-03 Yao Qi <yao@codesourcery.com>
8400
8401 * common/agent.c (agent_loaded_p): New.
89b7509a 8402 (agent_look_up_symbols): New global.
58b4daa5
YQ
8403 * common/agent.h: Declare agent_loaded_p.
8404
8ffcbaaf
YQ
84052012-03-03 Yao Qi <yao@codesourcery.com>
8406
8407 * common/agent.c (struct ipa_sym_addresses) <addr_capability>: New.
8408 (agent_capability_check, agent_capability_invalidate): New.
8409 (symbol_list): New array element.
8410 * common/agent.h (enum agent_capa): New.
8411 * target.c (target_pre_inferior): Call agent_capability_invalidate.
8412
d1feda86
YQ
84132012-03-03 Yao Qi <yao@codesourcery.com>
8414
8415 * target.h (struct target_ops) <to_use_agent>: New field.
8416 (struct target_ops) <to_can_use_agent>: New field.
8417 (target_use_agent, target_can_use_agent): New macro.
8418 * target.c (update_current_target): Update.
8419 * remote.c: New enum `PACKET_QAgent'.
8420 (remote_protocol_features): Add a new element.
8421 (remote_use_agent, remote_can_use_agent): New.
8422 (init_remote_ops): Initialize field `can_use_agent' with
8423 remote_can_use_agent. Intiailize field `use_agent' with
8424 remote_use_agent.
8425 * common/agent.c (use_agent): New global.
8426 * common/agent.h: Declare it.
8427 * tracepoint.c (info_static_tracepoint_markers_command): Add
8428 comment.
8429 * Makefile.in (SFILES): Add common/agent.c and agent.c.
8430 (COMMON_OBS): Add common/agent.o and agent.o
8431 (common-agent.o): New rule.
8432 * agent.c: New.
8433
2fa291ac
YQ
84342012-03-03 Yao Qi <yao@codesourcery.com>
8435
8436 * common/agent.c: New.
8437 * common/agent.h: New.
8438 * configure.ac: Add `sys/socket.h' and `sys/un.h' to
8439 AC_CHECK_HEADERS.
8440 * configure, configh.in: Regenerated.
8441
9fc05685
KB
84422012-03-02 Kevin Buettner <kevinb@redhat.com>
8443
8444 * sh-tdep.c (sh_frame_cache): Don't fetch the FPSCR register
8445 unless it exists for this architecture.
8446
a5ee536b
JB
84472012-03-02 Joel Brobecker <brobecker@adacore.com>
8448
8449 * language.h (struct language_defn): New "method" la_read_var_value.
8450 * findvar.c: #include "language.h".
8451 (default_read_var_value): Renames read_var_value. Rewrite
8452 function description.
8453 (read_var_value): New function.
8454 * value.h (default_read_var_value): Add prototype.
8455 * ada-lang.c (ada_read_renaming_var_value, ada_read_var_value):
8456 New functions.
8457 (ada_language_defn): Add entry for la_read_var_value.
8458 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, language.c,
8459 * m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Update
8460 language_defn structures to add entry for new la_read_var_value
8461 field.
8462
f59f708a
PA
84632012-03-02 Tom Tromey <tromey@redhat.com>
8464 Pedro Alves <palves@redhat.com>
8465
8466 PR breakpoints/13776:
8467 * breakpoint.c (breakpoint_init_inferior): Delete step-resume
8468 breakpoints.
8469 (delete_longjmp_breakpoint_at_next_stop): New.
8470 * breakpoint.h (delete_longjmp_breakpoint_at_next_stop): Declare.
8471 * target.c (generic_mourn_inferior): Call mark_breakpoints_out
8472 before deleting the inferior. Add comments.
8473 * thread.c (clear_thread_inferior_resources): Don't delete lonjmp
8474 breakpoints immediately, but only on next stop. Move that code
8475 next to where we mark other breakpoints for deletion.
8476
44099a67
JB
84772012-03-02 Joel Brobecker <brobecker@adacore.com>
8478
8479 * mips-linux-nat.c (mips_linux_read_description): Add missing i18n
8480 marker.
8481 * mips-tdep.c (mips_linux_reg_names): Improve comment to avoid ARI
8482 violation.
8483
2a2ef594
PA
84842012-03-02 Pedro Alves <palves@redhat.com>
8485
8486 * linux-thread-db.c (attach_thread): Avoid in_thread_list call.
8487
b261e0c5
UW
84882012-03-02 Ulrich Weigand <uweigand@de.ibm.com>
8489
8490 Fix -Wmissing-prototypes build.
8491 * ppc-linux-nat.c (ppc_linux_get_hwcap): Make static.
8492 * remote-sim.c (gdbsim_has_all_memory): Likewise.
8493 (gdbsim_has_memory): Likewise.
8494
a95babbf
YQ
84952012-03-02 Yao Qi <yao@codesourcery.com>
8496
8497 Fix -Wmissing-prototypes build.
8498 * charset.c (phony_iconv_open): Make static.
8499 (phony_iconv_close, phony_iconv): Likewise.
8500 * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype.
8501 * i386-windows-nat.c (_initialize_i386_windows_nat): New
8502 prototype.
8503 * mingw-hdep.c (_initialize_mingw_hdep): New prototype.
8504 * ser-mingw.c (create_select_thread): Make static.
8505 * windows-termcap.c (tgetent): New prototype.
8506 (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
8507
d603d4b3
JK
85082012-03-02 Zhang Yuanhui <asmwarrior@gmail.com>
8509
8510 Fix -Wmissing-prototypes build.
8511 * windows-nat.c (dll_symbol_command, ctrl_c_handler): Make them static.
8512 (_initialize_windows_nat, _initialize_check_for_gdb_ini)
8513 (_initialize_loadable): New prototypes.
8514
7fb3ad1f
DE
85152012-03-02 Doug Evans <dje@google.com>
8516
8517 * dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
8518 abbrev table, read_comp_unit will do it.
8519
693be288
JK
85202012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8521
8522 Fix -Wmissing-prototypes build.
8523 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Make it static.
8524 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): New prototype.
8525 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Likewise.
8526 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code): Make it static.
8527 (_initialize_arm_symbian_tdep): New prototype.
8528 * arm-wince-tdep.c (arm_wince_skip_main_prologue): Make it static.
8529 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): New prototype.
8530 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Make it
8531 static.
8532 * lm32-tdep.c (_initialize_lm32_tdep): New prototype.
8533 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): New
8534 prototype.
8535 * microblaze-tdep.c (microblaze_debug, microblaze_fetch_instruction)
8536 (microblaze_skip_prologue, microblaze_frame_cache): Make them static.
8537 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Make it
8538 static.
8539 * moxie-tdep.c (moxie_process_record): Likewise.
8540 * remote-mips.c (mips_can_use_watchpoint, mips_insert_watchpoint)
8541 (mips_remove_watchpoint, mips_stopped_by_watchpoint): Make them static.
8542 * rl78-tdep.c (rl78_breakpoint_from_pc): Make it static.
8543 (_initialize_rl78_tdep): New prototype.
8544 * rx-tdep.c (rx_breakpoint_from_pc): Make it static.
8545 (_initialize_rx_tdep): New prototype.
8546 * solib-darwin.c (darwin_in_dynsym_resolve_code): Make it static.
8547 (_initialize_darwin_solib): New prototype.
8548 * solib-spu.c: Include solib-spu.h.
8549 (_initialize_spu_solib): New prototype.
8550 * spu-multiarch.c (_initialize_spu_multiarch): New prototype.
8551 * tic6x-tdep.c (tic6x_analyze_prologue, tic6x_skip_prologue)
8552 (tic6x_breakpoint_from_pc, tic6x_frame_unwind_cache)
8553 (tic6x_software_single_step): Make it static.
8554 (_initialize_tic6x_tdep): New prototype.
8555
638234e5
JK
85562012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8557
8558 Fix -Wmissing-prototypes build.
8559 * cris-tdep.c (cris_can_use_hardware_watchpoint)
8560 (cris_region_ok_for_watchpoint, cris_stopped_data_address): Remove.
8561
f4a6f16d
JK
85622012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
8563
8564 Fix -Wmissing-prototypes build.
8565 * frv-tdep.c (frv_check_watch_resources, frv_stopped_data_address)
8566 (frv_have_stopped_data_address): Remove.
8567
04dcf5fa
JK
85682012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
8569
8570 Fix -Wmissing-prototypes build.
8571 * Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h.
8572 * sh-tdep.c: Include sh64-tdep.h.
8573 * sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations.
8574 * sh64-tdep.c: Include sh64-tdep.h.
8575 * sh64-tdep.h: New file.
8576
19080931
MR
85772012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
8578
8579 * mips-tdep.c (mips32_scan_prologue): Correct indentation.
8580
9aac7884
MR
85812012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
8582
8583 * mips-tdep.c (mips_gdbarch_init): Only set pc_regnum and
8584 sp_regnum once the gdbarch_init_osabi hook has been called.
8585
a385295e
MR
85862012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
8587
8588 * mips-tdep.c (mips32_bc1_pc): New function.
8589 (mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T,
8590 BPOSGE32 and BPOSGE64 instructions.
8591 (deal_with_atomic_sequence): Likewise.
8592 (mips32_instruction_has_delay_slot): Likewise.
8593
1faeff08 85942012-03-01 Maciej W. Rozycki <macro@mips.com>
a09130f9
PA
8595 Chris Dearman <chris@mips.com>
8596 Maciej W. Rozycki <macro@codesourcery.com>
8597 Joseph Myers <joseph@codesourcery.com>
1faeff08
MR
8598
8599 * features/mips-dsp.xml: New file.
8600 * features/mips64-dsp.xml: New file.
8601 * features/mips-dsp-linux.xml: New file.
8602 * features/mips64-dsp-linux.xml: New file.
8603 * features/Makefile (WHICH): Add mips-dsp-linux and
8604 mips64-dsp-linux.
8605 (mips-dsp-expedite, mips64-dsp-expedite): New variables.
8606 * features/mips-dsp-linux.c: New file.
8607 * features/mips64-dsp-linux.c: New file.
8608 * regformats/mips-dsp-linux.dat: New file.
8609 * regformats/mips64-dsp-linux.dat: New file.
8610 * mips-linux-nat.c (mips_linux_register_addr): Handle DSP
8611 registers.
8612 (mips64_linux_register_addr): Likewise.
8613 (mips64_linux_regsets_fetch_registers): Likewise.
8614 (mips64_linux_regsets_store_registers): Likewise.
8615 (mips64_linux_fetch_registers): Update call to
8616 mips64_linux_regsets_fetch_registers.
8617 (mips64_linux_store_registers): Update call to
8618 mips64_linux_regsets_store_registers.
8619 (mips_linux_read_description): Probe for DSP registers.
8620 (_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux
8621 and initialize_tdesc_mips64_dsp_linux.
8622 * mips-linux-tdep.c (supply_gregset, mips64_supply_gregset):
8623 Remove padding of no longer used embedded register slots.
8624 * mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros.
8625 (MIPS_RESTART_REGNUM): Redefine enum value.
8626 * mips-tdep.c (mips_generic_reg_names): Remove trailing null
8627 strings.
8628 (mips_tx39_reg_names): Likewise.
8629 (mips_linux_reg_names): New array of register names for Linux
8630 targets.
8631 (mips_register_name): Check for a null pointer in
8632 mips_processor_reg_names and return an empty string.
8633 (mips_register_type): Exclude embedded registers for the IRIX
8634 and Linux ABIs.
8635 (mips_pseudo_register_type): Likewise. Use dynamic numbers to
8636 refer to FP registers, LO, HI, BadVAddr, Cause and PC. Handle
8637 DSP registers.
8638 (mips_stab_reg_to_regnum): Handle DSP accumulators.
8639 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
8640 (mips_gdbarch_init): Likewise. Initialize internal register
8641 indices for the Linux ABI. Use dynamic numbers to refer to
8642 registers, as applicable, while parsing the target description.
8643 * mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets.
8644
263689d8
JB
86452012-03-01 Joel Brobecker <brobecker@adacore.com>
8646
8647 * frame.h (read_frame_register_unsigned): Fix typo in function
8648 description.
8649
f3b4f45c
PA
86502012-03-01 Pedro Alves <palves@redhat.com>
8651
8652 * jit-reader.in [!__cplusplus]
8653 (GDB_DECLARE_GPL_COMPATIBLE_READER): Add missing backslash.
8654
b03a2011
PA
86552012-03-01 Pedro Alves <palves@redhat.com>
8656
8657 * configure.ac (build_warnings): Add -Wmissing-prototypes.
8658 * configure: Regenerate.
8659
70221824
PA
86602012-03-01 Pedro Alves <palves@redhat.com>
8661
8662 * amd64-linux-tdep.c (amd64_linux_record_signal): Make static.
8663 * breakpoint.c (create_exception_master_breakpoint, trace_command)
8664 (ftrace_command, strace_command): Make static.
8665 * d-lang.c (_initialize_d_language): Declare.
8666 * dwarf2expr.c (_initialize_dwarf2expr): Declare.
8667 * dwarf2loc.c (_initialize_dwarf2loc):
8668 * dwarf2read.c (process_psymtab_comp_unit): Make static.
8669 * exec.c (exec_get_section_table): Make static.
8670 * i386-linux-tdep.c (i386_linux_record_signal): Make static.
8671 * infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static.
8672 * inferior.c (remove_inferior_command, add_inferior_command)
8673 (clone_inferior_command): Make static.
8674 * linux-nat.c (linux_nat_thread_address_space)
8675 (linux_nat_core_of_thread): Make static.
8676 * linux-tdep.c (_initialize_linux_tdep): Declare.
8677 * objc-lang.c (_initialize_objc_lang): Declare.
8678 * opencl-lang.c (builtin_opencl_type, opencl_language_arch_info):
8679 Make static.
8680 (_initialize_opencl_language): Declare.
8681 * record.c (_initialize_record): Declare.
8682 * remote.c (demand_private_info, remote_get_tib_address)
8683 (remote_supports_cond_tracepoints)
8684 (remote_supports_fast_tracepoints, remote_get_tracepoint_status):
8685 Make static.
8686 * skip.c (_initialize_step_skip): Declare.
8687 * symtab.c (skip_prologue_using_lineinfo): Make static.
8688 * tracepoint.c (delete_trace_state_variable)
8689 (trace_variable_command, delete_trace_variable_command)
8690 (get_uploaded_tsv, find_matching_tracepoint_location)
8691 (find_matching_tsv, create_tsv_from_upload, get_traceframe_info):
8692 Make static.
8693 * value.c (pack_unsigned_long): Make static.
8694 * varobj.c (varobj_ensure_python_env): Make static.
8695 * windows-tdep.c (_initialize_windows_tdep): Declare.
8696 * xml-syscall.c (make_cleanup_free_syscalls_info): Make static.
8697
33fbcbee
PA
86982012-03-01 Pedro Alves <palves@redhat.com>
8699
8700 * linux-tdep.c (linux_has_shared_address_space): Make static. Add
8701 gdbarch parameter.
8702 (linux_init_abi): Install it as has_shared_address_space gdbarch
8703 callback.
8704
44d0cd3b
PA
87052012-03-01 Pedro Alves <palves@redhat.com>
8706
8707 * observer.c (observer_test_first_notification_function)
8708 (observer_test_second_notification_function)
8709 (observer_test_third_notification_function): Add declarations.
8710
ed01b82c
PA
87112012-03-01 Pedro Alves <palves@redhat.com>
8712
8713 * common/signals.c (default_target_signal_to_host)
8714 (default_target_signal_from_host): Move ...
8715 * arch-utils.c: ... here.
8716 * arch-utils.h (default_target_signal_to_host)
8717 (default_target_signal_from_host): Declare.
8718
8719 * common/signals.c (target_signal_from_command): Move ...
8720 * infrun.c: ... here.
8721 * inferior.h (target_signal_from_command): Declare.
8722 * target.h (target_signal_from_command)
8723 (default_target_signal_from_host, default_target_signal_to_host):
8724 Delete declarations.
8725
8726 * common/signals.c (_initialize_signals): Delete.
8727
c9b87335
PA
87282012-03-01 Pedro Alves <palves@redhat.com>
8729
8730 * jit-reader.in (plugin_is_GPL_compatible): Add declarations for
8731 both __cplusplus and !__cplusplus.
8732
9340a6c0
PA
87332012-03-01 Pedro Alves <palves@redhat.com>
8734
8735 * psymtab.c (find_and_open_source): Delete declaration.
8736 * source.c (find_and_open_source): Move comment ...
8737 * source.h (find_and_open_source): ... to this new declaration.
8738
e451c4a1
PA
87392012-03-01 Pedro Alves <palves@redhat.com>
8740
8741 * inline-frame.c: Include inline-frame.h.
8742
983fb104
PA
87432012-03-01 Pedro Alves <palves@redhat.com>
8744
8745 * tui/tui-data.c (set_gen_win_origin): Delete.
8746 * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration.
8747 * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete.
8748
5fbce5df
PA
87492012-03-01 Pedro Alves <palves@redhat.com>
8750
8751 * remote.c (encode_actions): Delete declaration.
8752 * tracepoint.c (encode_actions): Make extern.
8753 * tracepoint.h (encode_actions): Declare.
8754
49a8461d
PA
87552012-03-01 Pedro Alves <palves@redhat.com>
8756
8757 * python/py-breakpoint.c: Include python.h.
8758 * python/py-continueevent.c (create_continue_event_object): Make
8759 static.
8760 * python/py-lazy-string.c (stpy_get_type): Make static.
8761 * python/py-newobjfileevent.c (create_new_objfile_event_object):
8762 Make static.
8763 * python/py-utils.c (unicode_to_target_python_string): Make
8764 static.
8765 * python/py-value.c: Include python.h.
8766
9079102f
PA
87672012-03-01 Pedro Alves <palves@redhat.com>
8768
8769 * inferior.c (delete_threads_of_inferior): Delete.
8770
a298c5e8
PA
87712012-03-01 Pedro Alves <palves@redhat.com>
8772
8773 Import fallback definitions from glibc.
8774
8775 * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
8776 ps_prochandle): Forward declare.
8777 (ps_err_e): Use glibc's comments.
8778 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
8779 (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
8780 (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup)
8781 (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize)
8782 (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare.
8783 (struct ps_prochandle): Adjust comment.
8784
e3084549
PA
87852012-03-01 Pedro Alves <palves@redhat.com>
8786
8787 * ada-lang.c (ada_modulus_from_name): Delete.
8788 * ada-lex.l (lexer_init): Make static.
8789
ad5f7d6e
PA
87902012-03-01 Pedro Alves <palves@redhat.com>
8791
8792 PR gdb/13767
8793
8794 * frame.c (read_frame_register_unsigned): New.
8795 * frame.h (read_frame_register_unsigned): Declare.
8796 * i387-tdep.c (print_i387_status_word): New parameter `status_p'.
8797 Handle it.
8798 (print_i387_control_word): New parameter `control_p'. Handle it.
8799 (i387_print_float_info): Handle unavailable float registers.
8800
e0a4d108
KS
88012012-03-01 Keith Seitz <keiths@redhat.com>
8802
8803 * linespec.c (decode_line_2): Sort the list of methods
8804 alphabetically before presenting the user with a selection
8805 menu.
8806
122d1940
DE
88072012-03-01 Doug Evans <dje@google.com>
8808
8809 * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
8810 has_namespace_info.
8811 (dwarf2_read_abbrevs): Remove corresponding initialization.
8812
7d74f244
DE
88132012-03-01 Scott J. Goldman <scottjg@vmware.com>
8814
8815 * NEWS: Mention new python command class gdb.COMMAND_USER.
8816 * cli/cli-cmds.c (show_user): Print error when used on a python
8817 command.
8818 (init_cli_cmds): Update documentation strings for "show user" and
8819 "set/show max-user-call-depth" to clarify that it does not apply to
8820 python commands.
8821 * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in
8822 error check.
8823 (gdbpy_initialize_commands): Add COMMAND_USER as a constant in
8824 gdb python api.
8825 * top.c (execute_command): Only execute a user-defined command as a
8826 legacy macro if c->user_commands is set.
8827
e88acd96
TT
88282012-03-01 Tom Tromey <tromey@redhat.com>
8829
8830 * valprint.h (struct generic_val_print_decorations): New.
8831 (generic_val_print): Declare.
8832 * valprint.c (generic_val_print): New function.
8833 * p-valprint.c (p_decorations): New global.
8834 (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM,
8835 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT,
8836 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF,
8837 TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print.
8838 * m2-valprint.c (m2_decorations): New global.
8839 (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC,
8840 TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR,
8841 TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF,
8842 TYPE_CODE_ERROR>: Call generic_val_print.
8843 * f-valprint.c (f_decorations): New global.
8844 (f_val_print): Use print_function_pointer_address.
8845 <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS,
8846 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE,
8847 TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call
8848 generic_val_print.
8849 * c-valprint.c (c_decorations): New global.
8850 (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM,
8851 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL,
8852 TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT,
8853 TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR,
8854 TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print.
8855 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove
8856 case.
8857
d3eab38a
TT
88582012-03-01 Tom Tromey <tromey@redhat.com>
8859
8860 * valprint.c (val_print): Update.
8861 * p-valprint (pascal_val_print): Return void.
8862 * p-lang.h (pascal_val_print): Return void.
8863 * m2-valprint.c (m2_val_print): Return void.
8864 * m2-lang.h (m2_val_print): Return void.
8865 * language.h (struct language_defn) <la_val_print>: Return void.
8866 * language.c (unk_lang_val_print): Return void.
8867 * jv-valprint.c (java_val_print): Return void.
8868 * jv-lang.h (java_val_print): Return void.
8869 * f-valprint.c (f_val_print): Return void.
8870 * f-lang.h (f_val_print): Return void.
8871 * d-valprint.c (d_val_print): Return void.
8872 (dynamic_array_type): Update.
8873 * d-lang.h (d_val_print): Return void.
8874 * c-valprint.c (c_val_print): Return void.
8875 * c-lang.h (c_val_print): Return void.
8876 * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
8877 void.
8878 * ada-lang.h (ada_val_print): Return void.
8879
35c0084b
TT
88802012-03-01 Tom Tromey <tromey@redhat.com>
8881
8882 * value.h (val_print): Return void.
8883 * valprint.c (val_print): Return void.
8884
a1f5dd1b
TT
88852012-03-01 Tom Tromey <tromey@redhat.com>
8886
8887 * value.h (common_val_print): Return void.
8888 * valprint.c (common_val_print): Return void.
8889
8e069a98
TT
88902012-03-01 Tom Tromey <tromey@redhat.com>
8891
8892 * value.h (value_print): Return void.
8893 * valprint.c (value_print): Return void.
8894 * p-valprint.c (pascal_value_print): Return void.
8895 * p-lang.h (pascal_value_print): Return void.
8896 * language.h (struct language_defn) <la_value_print>: Return
8897 void.
8898 * language.c (unk_lang_value_print): Return void.
8899 * jv-valprint.c (java_value_print): Return void.
8900 * jv-lang.h (java_value_print): Return void.
8901 * f-valprint.c (c_value_print): Don't declare.
8902 Include c-lang.h.
8903 * c-valprint.c (c_value_print): Return void.
8904 * c-lang.h (c_value_print): Return void.
8905 * ada-valprint.c (ada_value_print): Return void.
8906 * ada-lang.h (ada_value_print): Return void.
8907
be335936
TT
89082012-03-01 Tom Tromey <tromey@redhat.com>
8909
8910 * value.c (value_primitive_field): Handle virtual base classes.
8911
b0db66a7
TT
89122012-03-01 Tom Tromey <tromey@redhat.com>
8913
8914 * gdbtypes.h (struct vbase): Remove.
8915
132c57b4
TT
89162012-03-01 Tom Tromey <tromey@redhat.com>
8917
8918 * c-valprint.c (print_function_pointer_address): Move...
8919 * valprint.c: ... here. Make non-static.
8920 * m2-valprint.c (print_function_pointer_address): Remove.
8921 * valprint.h (print_function_pointer_address): Declare.
8922
e41eec66
JB
89232012-03-01 Joel Brobecker <brobecker@adacore.com>
8924
8925 * NEWS: Document the fact that one can provide a condition when
8926 creating an Ada exception catchpoint.
8927
19c37f24
TT
89282012-03-01 Tom Tromey <tromey@redhat.com>
8929
8930 * valprint.c (val_print_type_code_flags): Fix placement of
8931 trailing brace.
8932
f0fed3a3
JB
89332012-03-01 Joel Brobecker <brobecker@adacore.com>
8934
8935 * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
8936 (update_files): Do not set MULTILINE_COMMENT_PREFIXES
8937 environment variable before calling update-copyright.
8938
8ba85d85
JB
89392012-03-01 Joel Brobecker <brobecker@adacore.com>
8940
8941 * gnulib/extra/update-copyright: Update to the latest from
8942 gnulib's git repository.
8943 * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
8944 variable to 2 instead of 1.
8945
8219b1e8
JB
89462012-02-29 Joel Brobecker <brobecker@adacore.com>
8947
8948 * varobj.c (c_value_of_variable): Remove dead code.
8949
718cb7da
JB
89502012-02-29 Joel Brobecker <brobecker@adacore.com>
8951
8952 * ada-lex.p (processId): Do not modify already encoded IDs.
8953 Update function documentation.
8954
739593e0
JB
89552012-02-29 Joel Brobecker <brobecker@adacore.com>
8956
8957 * ada-lang.h (ada_find_renaming_symbol): Replace parameter
8958 "name" with "struct symbol *name_sym".
8959 * ada-exp.y (write_var_or_type): Update call to
8960 ada_find_renaming_symbol.
8961 "name" with "struct symbol *name_sym". Adjust Implementation
8962 accordingly. Adjust the function documentation.
8963
852dff6c
JB
89642012-02-29 Joel Brobecker <brobecker@adacore.com>
8965
8966 * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
8967 * ada-lang.c (ada_find_any_type): Add advance declaration.
8968 Make static. Replace ada_find_any_symbol by
8969 ada_find_any_type_symbol.
8970 (ada_find_any_type_symbol): Renames ada_find_any_symbol.
8971 Improve function description. Make static.
8972 (ada_find_renaming_symbol, find_old_style_renaming_symbol):
8973 Replace ada_find_any_symbol by ada_find_any_type_symbol.
8974
1b611343
JB
89752012-02-29 Joel Brobecker <brobecker@adacore.com>
8976
8977 * ada-lang.c (struct tag_args): Delete.
8978 (ada_get_tsd_type): Function body moved up in source file.
8979 (ada_tag_name_1, ada_tag_name_2): Delete.
8980 (ada_get_tsd_from_tag): New function.
8981 (ada_tag_name_from_tsd): New function.
8982 (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
8983 to determine the tag name.
8984
41246937
JB
89852012-02-29 Joel Brobecker <brobecker@adacore.com>
8986
8987 * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
8988 declaration.
8989 * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
8990 function.
8991
ffde82bf
JB
89922012-02-29 Joel Brobecker <brobecker@adacore.com>
8993
8994 * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
8995
2ad01556
JB
89962012-02-29 Joel Brobecker <brobecker@adacore.com>
8997
8998 * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
8999 full searches.
9000
99b1c762
JB
90012012-02-29 Joel Brobecker <brobecker@adacore.com>
9002
9003 * ada-lang.c (constrained_packed_array_type): If there is a
9004 parallel XA type, use it to determine the array index type.
9005
2d4a02ee
JB
90062012-02-29 Joel Brobecker <brobecker@adacore.com>
9007
9008 * ada-valprint.c (ada_val_print_1): If our value is a reference
9009 to an array descriptor, dereference it before converting it
9010 to a simple array.
9011
c48db5ca
JB
90122012-02-29 Joel Brobecker <brobecker@adacore.com>
9013
9014 * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
9015 creating fixed value.
9016 (ada_value_ind, ada_coerce_ref, assign_component)
9017 (ada_evaluate_subexp): Remove call to unwrap_value before
9018 call to ada_to_fixed_value.
9019
2e6fda7d
JB
90202012-02-29 Joel Brobecker <brobecker@adacore.com>
9021
9022 * ada-lang.c (to_fixed_array_type): Set result's type name.
9023
5845583d
JB
90242012-02-29 Joel Brobecker <brobecker@adacore.com>
9025
9026 * ada-lang.c (catch_ada_exception_command_split): Add new
9027 argument cond_string. Add support for condition at end of
9028 "catch exception" commands.
9029 (ada_decode_exception_location): Add new argument cond_string.
9030 Update call to catch_ada_exception_command_split.
9031 (create_ada_exception_catchpoint): Add new argument cond_string.
9032 Set the breakpoint condition if needed.
9033 (catch_ada_exception_command): Update call to
9034 ada_decode_exception_location.
9035 (ada_decode_assert_location): Add function documentation.
9036 Add support for condition at end of "catch assert" command.
9037 (catch_assert_command): Update calls to ada_decode_assert_location
9038 and create_ada_exception_catchpoint.
9039
9a7f938f
JK
90402012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
9041
9042 Fix disp-step-syscall.exp: fork: single step over fork.
9043 * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
9044 (i386_linux_get_syscall_number_from_regcache): ... here, new function
9045 comment, change parameters gdbarch and ptid to regcache. Remove
9046 parameter regcache, initialize gdbarch from regcache here.
9047 (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
9048 New functions.
9049 (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
9050 instead.
9051 * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
9052 'syscall'. Make the 'int' check more strict.
9053
ffdf6de5
JK
90542012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
9055
9056 Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
9057 * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
9058 (i386_linux_intx80_sysenter_syscall_record): ... here.
9059 (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
9060 Use the renamed function name.
9061
c70a6932
JK
90622012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
9063
9064 * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
9065 * breakpoint.c (until_break_command): Likewise.
9066 * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
9067 * infcall.c (call_function_by_hand): Likewise.
9068 * infcmd.c (finish_forward): Likewise.
9069 * infrun.c (insert_exception_resume_breakpoint): Likewise.
9070
05b8a789 90712012-02-28 Tristan Gingold <gingold@adacore.com>
d4cd3da9 9072
d4cd3da9
JB
9073 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
9074 avoid variable assignments inside condition.
9075
6425366c
JK
90762012-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
9077
9078 Fix static analysis issue found by cppcheck.
9079 * microblaze-tdep.c (microblaze_extract_return_value): Fix
9080 uninitialized BUF for size 2.
9081
c8cef75f 90822012-02-27 Chris Dearman <chris@mips.com>
a09130f9
PA
9083 Nathan Froyd <froydnj@codesourcery.com>
9084 Maciej W. Rozycki <macro@codesourcery.com>
c8cef75f
MR
9085
9086 * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
9087 (mips16_instruction_has_delay_slot): Likewise.
9088 (mips_segment_boundary): Likewise.
9089 (mips_adjust_breakpoint_address): Likewise.
9090 (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
9091
473347ad 90922012-02-27 Maciej W. Rozycki <macro@mips.com>
a09130f9 9093 Maciej W. Rozycki <macro@codesourcery.com>
473347ad
MR
9094
9095 * infrun.c (handle_inferior_event): Don't proceed through
9096 shared library trampolines if stepping at the machine
9097 instruction level.
9098
cf233303
MR
90992012-02-27 Maciej W. Rozycki <macro@codesourcery.com>
9100
9101 * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
9102 too.
9103
cb2cf4ce
TS
91042012-02-27 Thomas Schwinge <thomas@codesourcery.com>
9105
9106 * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
9107 (sh_stub_unwind_sniffer): New functions.
9108 (sh_stub_unwind): New variable.
9109 (sh_gdbarch_init): Wire everything.
9110
644cebc9
PA
91112012-02-27 Pedro Alves <palves@redhat.com>
9112
9113 * linux-nat.c (pid_is_stopped): Delete, moved to common/.
9114 (linux_nat_post_attach_wait): Adjust to use
9115 linux_proc_pid_is_stopped.
9116 * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
9117 * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
9118 based on pid_is_stopped from both linux-nat.c and
9119 gdbserver/linux-low.c, and renamed.
9120
283002cf
MR
91212012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
9122
9123 * remote.c (remote_watchpoint_addr_within_range): New function.
9124 (init_remote_ops): Use it.
9125
9b3e86b1
MR
91262012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
9127
9128 * target.h (target_watchpoint_addr_within_range): Document macro.
9129
e36930bb
PA
91302012-02-24 Pedro Alves <palves@redhat.com>
9131
9132 * stack.c (set_last_displayed_sal): Issue internal_error instead
9133 of warning, and issue it after clearing the last displayed sal.
9134
883bc8d1
PA
91352012-02-24 Jan Kratochvil <jan.kratochvil@redhat.com>
9136 Pedro Alves <palves@redhat.com>
9137
9138 * breakpoint.c (until_break_command): Install breakpoints after
9139 all frame manipulations.
9140
b775012e
LM
91412012-02-24 Luis Machado <lgustavo@codesourcery.com>
9142
9143 * remote.c (remote_supports_cond_breakpoints): New forward
9144 declaration.
9145 (remote_add_target_side_condition): New function.
9146 (remote_insert_breakpoint): Add target-side breakpoint
9147 conditional if supported.
9148 (remote_insert_hw_breakpoint): Likewise.
9149 (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
9150 hook.
9151
9152 * target.c (update_current_target): Inherit
9153 to_supports_evaluation_of_breakpoint_conditions.
9154 Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
9155
9156 * target.h (struct target_ops)
9157 <to_supports_evaluation_of_breakpoint_conditions>: New field.
9158 (target_supports_evaluation_of_breakpoint_conditions): New #define.
9159
9160 * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
9161 (condition_evaluation_both, condition_evaluation_auto,
9162 condition_evaluation_host, condition_evaluation_target,
9163 condition_evaluation_enums, condition_evaluation_mode_1,
9164 condition_evaluation_mode): New static globals.
9165 (translate_condition_evaluation_mode): New function.
9166 (breakpoint_condition_evaluation_mode): New function.
9167 (gdb_evaluates_breakpoint_condition_p): New function.
9168 (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
9169 (mark_breakpoint_modified): New function.
9170 (mark_breakpoint_location_modified): New function.
9171 (set_condition_evaluation_mode): New function.
9172 (show_condition_evaluation_mode): New function.
9173 (bp_location_compare_addrs): New function.
9174 (get_first_location_gte_addr): New helper function.
9175 (set_breakpoint_condition): Free condition bytecode if locations
9176 has become unconditional. Call mark_breakpoint_modified (...).
9177 (condition_command): Call update_global_location_list (1) for
9178 breakpoints.
9179 (breakpoint_xfer_memory): Use is_breakpoint (...).
9180 (is_breakpoint): New function.
9181 (parse_cond_to_aexpr): New function.
9182 (build_target_condition_list): New function.
9183 (insert_bp_location): Handle target-side conditional
9184 breakpoints and call build_target_condition_list (...).
9185 (update_inserted_breakpoint_locations): New function.
9186 (insert_breakpoint_locations): Handle target-side conditional
9187 breakpoints.
9188 (bpstat_check_breakpoint_conditions): Add comment.
9189 (bp_condition_evaluator): New function.
9190 (bp_location_condition_evaluator): New function.
9191 (print_breakpoint_location): Print information on where the condition
9192 will be evaluated.
9193 (print_one_breakpoint_location): Likewise.
9194 (init_bp_location): Call mark_breakpoint_location_modified (...) for
9195 breakpoint location.
9196 (force_breakpoint_reinsertion): New functions.
9197 (update_global_location_list): Handle target-side breakpoint
9198 conditions.
9199 Reinsert locations that are already inserted if conditions have
9200 changed.
9201 (bp_location_dtor): Free agent expression bytecode.
9202 (disable_breakpoint): Call mark_breakpoint_modified (...).
9203 Call update_global_location_list (...) with parameter 1 for breakpoints.
9204 (disable_command): Call mark_breakpoint_location_modified (...).
9205 Call update_global_location_list (...) with parameter 1 for breakpoints.
9206 (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
9207 (enable_command): mark_breakpoint_location_modified (...).
9208 (_initialize_breakpoint): Update documentation and add
9209 condition-evaluation breakpoint subcommand.
9210
9211 * breakpoint.h: Include ax.h.
9212 (condition_list): New data structure.
9213 (condition_status): New enum.
9214 (bp_target_info) <cond_list>: New field.
9215 (bp_location) <condition_changed, cond_bytecode>: New fields.
9216 (is_breakpoint): New prototype.
9217
3788aec7
LM
92182012-02-24 Luis Machado <lgustavo@codesourcery.com>
9219
9220 * remote.c (remote_state) <cond_breakpoints>: New field.
9221 (PACKET_ConditionalBreakpoints): New enum.
9222 (remote_cond_breakpoint_feature): New function.
9223 (remote_protocol_features): Add new ConditionalBreakpoints entry.
9224 (remote_supports_cond_breakpoints): New function.
9225 (_initialize_remote): Add new packet configuration for
9226 target-side conditional breakpoints.
9227
72895ff6
LM
92282012-02-24 Luis Machado <lgustavo@codesourcery.com>
9229
9230 * NEWS: Mention target-side conditional breakpoint support,
9231 new condition-evaluation breakpoint subcommand and remote
9232 packet extensions.
9233
dea2aa5f
LM
92342012-02-24 Luis Machado <lgustavo@codesourcery.com>
9235
9236 * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
9237 number.
9238
8a8bc27f
TS
92392012-02-24 Thomas Schwinge <thomas@codesourcery.com>
9240
9241 * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
9242 (after_prologue): Remove.
9243
6b446fdf
TT
92442012-02-23 Tom Tromey <tromey@redhat.com>
9245
9246 * jv-valprint.c (java_val_print): Remove dead code.
9247
ef59abfb
TG
92482012-02-23 Tristan Gingold <gingold@adacore.com>
9249
a09130f9
PA
9250 * ada-tasks.c (struct ada_tasks_inferior_data): Add
9251 known_tasks_element and known_tasks_length fields.
9252 (read_known_tasks_array): Change argument type. Use pointer type
9253 and number of elements from DATA. Adjust.
9254 (read_known_tasks_list): Likewise.
9255 (get_known_tasks_addr): Remove.
9256 (ada_set_current_inferior_known_tasks_addr): Renamed to ...
9257 (ada_tasks_inferior_data_sniffer): ... this. Use symtab for element
9258 type and array length. Merge former get_known_tasks_addr code.
ef59abfb 9259
def166f6
JK
92602012-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
9261
9262 PR backtrace/13716
9263 * infcmd.c (finish_forward): New variable frame_id, initialize it, use
9264 it after set_momentary_breakpoint.
9265
aeaa2474
SA
92662012-02-22 Sterling Augustine <saugustine@google.com>
9267
9268 PR 13689:
9269 * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
9270
feea76c2
GB
92712012-02-22 Gary Benson <gbenson@redhat.com>
9272
9273 * dwarf2read.c (dwarf2_read_index): Correct misspelling.
9274 (find_slot_in_mapped_hash): Likewise.
9275
f06e05e0
JK
92762012-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9277
9278 PR build/13638
9279 * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
9280 (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
9281 * configure: Regenerate.
9282
b54a8fd7
PA
92832012-02-21 Tristan Gingold <gingold@adacore.com>
9284 Pedro Alves <palves@redhat.com>
9285
9286 * ia64-tdep.c: Do not include libunwind-ia64.h.
9287 * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
9288 Include libunwind-ia64.h instead of libunwind.h.
9289 * configure.ac (--with-libunwind, $enable_libunwind): Don't check
9290 for libunwind.h existence.
9291 * configure, config.in: Regenerate.
9292
dfcee124
AG
92932012-02-21 Anton Gorenkov <xgsa@yandex.ru>
9294
9295 * c-valprint.c (c_value_print): Use value_rtti_indirect_type
9296 instead of value_rtti_target_type.
9297 * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
9298 instead of value_rtti_target_type.
9299 * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
9300 value_rtti_target_type.
9301 * valops.c (value_ind): Extract function readjust_indirect_value_type.
9302 (value_rtti_target_type): Rename to ...
9303 (value_rtti_indirect_type): ... here and make it indirect. Update
9304 function comment.
9305 * value.c (readjust_indirect_value_type): New function.
9306 (coerce_ref): Support for enclosing type setting for references
9307 with readjust_indirect_value_type.
9308 * value.h (readjust_value_type): New declaration.
9309 (value_rtti_target_type): Rename to ...
9310 (value_rtti_indirect_type): ... here.
9311
02568277
AG
93122012-02-21 Anton Gorenkov <xgsa@yandex.ru>
9313
9314 * MAINTAINERS (Write After Approval): Add myself to the list.
9315
10c07b7e 93162012-02-20 Doug Evans <dje@google.com>
28ee876a 9317
d82ea6a8
DE
9318 * objfiles.c (add_to_objfile_sections): Remove outdated comments.
9319 Rename objfile_p_char parameter to objfilep.
9320 (build_objfile_section_table): Result is now void. All callers
9321 updated.
9322 * objfiles.h (struct objfile): Tweak comments, whitespace.
9323 (build_objfile_section_table): Update.
9324
28ee876a
DE
9325 * elfread.c (elf_symfile_segments): Fix warning text.
9326
24c79950
TT
93272012-02-20 Tom Tromey <tromey@redhat.com>
9328
9329 PR gdb/13498:
9330 * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
9331 particular set of file names once.
9332 (dw2_map_symbol_filenames): Likewise.
9333
3a9b40b6
JK
93342012-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9335
9336 Code cleanup.
9337 * main.c (write_files): Remove the declaration.
9338 (external_editor_command): Move the declaration ...
9339 [GDBTK] (external_editor_command): ... here. Fix the comment.
9340
4d0795ca
TT
93412012-02-20 Tom Tromey <tromey@redhat.com>
9342
9343 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
9344 extraneous block.
9345
637fd620
TG
93462012-02-20 Tristan Gingold <gingold@adacore.com>
9347
9348 * darwin-nat.h (enum darwin_msg_state): Add comments.
9349
6f124894
TG
93502012-02-20 Tristan Gingold <gingold@adacore.com>
9351
9352 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
9353 value.
9354
2e6e3d9c
JB
93552012-20-18 Joel Brobecker <brobecker@adacore.com>
9356
9357 * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
9358 between function description and implementation.
9359
2e8265fd
TT
93602012-02-17 Tom Tromey <tromey@redhat.com>
9361
9362 PR python/12070:
9363 * python/py-event.c (event_object_getset): New global.
9364 (event_object_type): Reference it.
9365 * python/py-type.c (field_object_getset): New global.
9366 (field_object_type): Reference it.
9367 * python/python-internal.h (gdb_py_generic_dict): Declare.
9368 * python/py-utils.c (gdb_py_generic_dict): New function.
9369
8544a150 93702012-02-17 Tristan Gingold <gingold@adacore.com>
6f124894 9371
8544a150 9372 * solib-darwin.c (darwin_current_sos): Check magic and filetype
6f124894 9373
ca193e27
TS
93742012-02-17 Thomas Schwinge <thomas@codesourcery.com>
9375
9376 * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
9377 TYPE_CALLING_CONVENTION annotation.
9378
e5586183
KB
93792012-02-16 Kevin Buettner <kevinb@redhat.com>
9380
9381 * MAINTAINERS: Add rx to target ISA section.
9382 * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
9383 (ALLDEPFILES): Add rx-tdep.c.
9384
7dcd53a0
TT
93852012-02-16 Tom Tromey <tromey@redhat.com>
9386
9387 * symfile.c (symbol_file_add_main_1): Use inferior's
9388 symfile_flags.
9389 * solib.c (solib_read_symbols): Use inferior's symfile_flags.
9390 * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
9391 inferior.
9392 * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
9393 inferior.
9394 (follow_exec): Use inferior's symfile_flags.
9395 * inferior.h (struct inferior) <symfile_flags>: New field.
9396
ddd60447
MF
93972012-02-16 Mike Frysinger <vapier@gentoo.org>
9398
9399 PR gdb/9734:
9400 * remote-sim.c (gdbsim_create_inferior): Call error() when
9401 sim_create_inferior() fails.
9402
b0d32fb6
TG
94032012-02-16 Josh Matthews <josh@joshmatthews.net>
9404
9405 * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
9406
9addecb9
TT
94072012-02-16 Tom Tromey <tromey@redhat.com>
9408
9409 PR c++/13653:
9410 * thread.c (struct current_thread_cleanup) <was_removable>: New
9411 field.
9412 (restore_current_thread_cleanup_dtor): Restore 'removable' field.
9413 (make_cleanup_restore_current_thread): Initialize new field.
9414
a58b110a
KB
94152012-02-15 Kevin Buettner <kevinb@redhat.com>
9416
9417 * MAINTAINERS: Add rl78 to target ISA section.
9418 * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
9419 (ALLDEPFILES): Add rl78-tdep.c.
9420 * NEWS: Mention rl78 as a new target.
9421
4cb6da1c
AR
94222012-02-15 Aleksandar Ristovski <aristovski@qnx.com>
9423
9424 * frame.c (find_frame_sal): Initialize sal->pspace field from frame
9425 data.
9426 * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
9427
3af2590d
TT
94282012-02-15 Tom Tromey <tromey@redhat.com>
9429
9430 PR gdb/12659:
9431 * infcmd.c (registers_info): Print just the current register's
9432 name.
9433
c6910659
TT
94342012-02-15 Tom Tromey <tromey@redhat.com>
9435
9436 * python/py-symbol.c (sympy_value): Use _().
9437
7cee1e54
PA
94382012-02-15 Pedro Alves <palves@redhat.com>
9439
9440 * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
9441 output to be like native targets'.
9442 (remote_pid_to_str): Special case the null ptid.
9443
816338b5
SS
94442012-02-14 Stan Shebs <stan@codesourcery.com>
9445
9446 * NEWS: Mention enable count command.
9447 * breakpoint.h (struct breakpoint): New field enable_count.
9448 * breakpoint.c (enable_breakpoint_disp): Add count argument.
9449 (enable_breakpoint): Add arg to call.
9450 (struct disp_data): New struct.
9451 (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
9452 (do_map_enable_once_breakpoint): Create a struct and pass it.
9453 (do_map_enable_delete_breakpoint): Ditto.
9454 (do_map_enable_count_breakpoint): New function.
9455 (enable_count_command): New function.
9456 (bpstat_stop_status): Decrement enable_count.
9457 (print_one_breakpoint_location): Report enable count.
9458 (_initialize_breakpoint): Add enable count command.
9459
c47a44f4
KB
94602012-02-14 Kevin Buettner <kevinb@redhat.com>
9461
9462 * rl78-tdep.c (reggroups.h): Include.
9463 (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
9464 (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
9465 (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
9466 (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
9467 (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
9468 (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
9469 (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
9470 (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
9471 (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
9472 (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
9473 (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
9474 (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
9475 (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
9476 (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
9477 (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
9478 (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
9479 beginning of register list.
9480 (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
9481 (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
9482 (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
9483 (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
9484 (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
9485 (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
9486 (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
9487 (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
9488 (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
9489 (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
9490 (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
9491 the pseudo registers. Rearrange other pseudo registers too so
9492 that the bank registers appear at the end.
9493 (rl78_register_type): Account for the fact that the byte sized
9494 bank registers are now pseudo-registers.
9495 (rl78_register_name): Rearrange the register name array. Make
9496 initial set of raw banked registers inaccessible.
9497 (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
9498 (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
9499 case for copying bytes back and forth between raw and pseudo
9500 versions of the banked registers. Update other cases to reflect
9501 the changed names.
9502 (rl78_return_value): Update to account for changed names of
9503 raw registers.
9504 (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
9505 rl78_register_sim_regno().
9506
e4569f1e
KB
95072012-02-14 Kevin Buettner <kevinb@redhat.com>
9508
9509 * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
9510 the name parameter being passed to find_pc_partial_function().
9511
7a05aae7
JK
95122012-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9513
9514 * MAINTAINERS: Step down from being ia64 target maintainer.
9515
11fde611
JK
95162012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
9517
9518 * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
9519 compilation warning.
9520
57008375
JK
95212012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
9522
9523 Fix crash on loaded shlibs without loaded exec_bfd.
9524 * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
9525 (set_section_command): Replace exec_bfd by p->bfd.
9526
ff3c9849
TT
95272012-02-10 Tom Tromey <tromey@redhat.com>
9528
9529 * linespec.c (decode_line_internal): Skip symtabs_from_filename
9530 when we have a C++ qualified name.
9531
db2b9fdd
PA
95322012-02-10 Pedro Alves <palves@redhat.com>
9533
9534 * inferior.c (inferior_pid_to_str): New.
9535 (print_inferior, inferior_command): Use it.
9536
12cd34f3
PA
95372012-02-10 Pedro Alves <palves@redhat.com>
9538
9539 * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
9540 the test CFLAGS.
9541 * configure: Regenerate.
9542
e871429d
JK
95432012-02-10 Jan Kratochvil <jan.kratochvil@redhat.com>
9544
9545 * linespec.c (decode_line_internal): Fix comment correctness.
9546
1916efaf
PA
95472012-02-09 Valery Khromov <valery.khromov@gmail.com>
9548
9549 PR gdb/12953
9550 * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
9551 * amd64bsd-nat.c: Add support for debug registers (adapted from
9552 i386bsd-nat.c).
9553 [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
9554 (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
9555 (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
9556 (amd64bsd_dr_get_control): New functions.
9557 * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
9558 * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
9559 [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
9560 watchpoints initialization.
9561 * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
9562
f4859d94
JK
95632012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9564
9565 * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
9566 flds_bnds.fields.
9567 (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
9568
c56a97f9
JK
95692012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9570
9571 * breakpoint.c (bp_location_compare): Fix comment. Reindent the code.
9572
1a119f36
JB
95732012-02-08 Joel Brobecker <brobecker@adacore.com>
9574
9575 * language.h (symbol_name_cmp_ftype): Renames
9576 symbol_name_match_p_ftype.
9577 (struct language_defn)[la_get_symbol_name_cmp]: Renames
9578 la_get_symbol_name_match_p.
9579 * ada-lang.c (ada_get_symbol_name_cmp): Renames
9580 ada_get_symbol_name_match_p. Update comment.
9581 (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
9582 * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
9583 Renames symbol_name_match_p. Update field type.
9584 (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
9585 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
9586 opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
9587 "la_get_symbol_name_cmp" in comments.
9588 * language.c: Likewise.
9589
c71bb1cf
RO
95902012-02-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9591
9592 * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
9593 %eflags offset.
9594 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
9595 (amd64_sol2_gregset32_reg_offs): Likewise.
9596
4b2d20a5
TG
95972012-02-08 Joel Brobecker <brobecker@adacore.com>
9598
9599 * solib-darwin.c (darwin_bfd_open): Make sure that the filename
9600 of the returned BFD is allocated by GDB.
9601
f0823d2c
TT
96022012-02-07 Tom Tromey <tromey@redhat.com>
9603
9604 PR python/12027:
9605 * python/python-internal.h (frame_object_type): Declare.
9606 * python/py-symbol.c (sympy_needs_frame): New function.
9607 (sympy_value): New function.
9608 (symbol_object_getset): Add "needs_frame".
9609 (symbol_object_methods): Add "value".
9610 * python/py-frame.c (frame_object_type): No longer static.
9611
64e7d9dd
TT
96122012-02-07 Tom Tromey <tromey@redhat.com>
9613
9614 PR python/13599:
9615 * python/py-symbol.c (sympy_line): New function.
9616 (symbol_object_getset): Add "line".
9617
1d6b2d2b
TT
96182012-02-07 Tom Tromey <tromey@redhat.com>
9619
9620 * charset.c (find_charset_names): Check 'in' against NULL.
9621
0d5cff50
DE
96222012-02-06 Doug Evans <dje@google.com>
9623
9624 * gdbtypes.h (struct main_type): Change type of name,tag_name,
9625 and fields.name members from char * to const char *. All uses updated.
9626 (struct cplus_struct_type): Change type of fn_fieldlists.name member
9627 from char * to const char *. All uses updated.
9628 (type_name_no_tag): Update.
9629 (lookup_unsigned_typename, lookup_signed_typename): Update.
9630 * gdbtypes.c (type_name_no_tag): Change result type
9631 from char * to const char *. All callers updated.
9632 (lookup_unsigned_typename, lookup_signed_typename): Change type of
9633 name parameter from char * to const char *.
9634 * symtab.h (struct cplus_specific): Change type of demangled_name
9635 member from char * to const char *. All uses updated.
9636 (struct general_symbol_info): Change type of name and
9637 mangled_lang.demangled_name members from char * to const char *.
9638 All uses updated.
9639 (symbol_get_demangled_name, symbol_natural_name): Update.
9640 (symbol_demangled_name, symbol_search_name): Update.
9641 * symtab.c (symbol_get_demangled_name): Change result type
9642 from char * to const char *. All callers updated.
9643 (symbol_natural_name, symbol_demangled_name): Ditto.
9644 (symbol_search_name): Ditto.
9645 (completion_list_add_name): Change type of symname,sym_text,
9646 text,word parameters from char * to const char *.
9647 (completion_list_objc_symbol): Change type of sym_text,
9648 text,word parameters from char * to const char *.
9649 * ada-lang.c (find_struct_field): Change type of name parameter
9650 from char * to const char *.
9651 (encoded_ordered_before): Similarly for N0,N1 parameters.
9652 (old_renaming_is_invisible): Similarly for function_name parameter.
9653 (ada_type_name): Change result type from char * to const char *.
9654 All callers updated.
9655 * ada-lang.h (ada_type_name): Update.
9656 * buildsym.c (hashname): Change type of name parameter
9657 from char * to const char *.
9658 * buildsym.h (hashname): Update.
9659 * dbxread.c (end_psymtab): Change type of include_list parameter
9660 from char ** to const char **.
9661 * dwarf2read.c (determine_prefix): Change result type
9662 from char * to const char *. All callers updated.
9663 * f-lang.c (find_common_for_function): Change type of name, funcname
9664 parameters from char * to const char *.
9665 * f-lang.c (find_common_for_function): Update.
9666 * f-valprint.c (list_all_visible_commons): Change type of funcname
9667 parameters from char * to const char *.
9668 * gdbarch.sh (static_transform_name): Change type of name parameter
9669 and result from char * to const char *.
9670 * gdbarch.c: Regenerate.
9671 * gdbarch.h: Regenerate.
9672 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
9673 of name parameter from char * to const char *.
9674 * jv-lang.c (java_primitive_type_from_name): Ditto.
9675 (java_demangled_signature_length): Similarly for signature parameter.
9676 (java_demangled_signature_copy): Ditto.
9677 (java_demangle_type_signature): Ditto.
9678 * jv-lang.h (java_primitive_type_from_name): Update.
9679 (java_demangle_type_signature): Update.
9680 * objc-lang.c (specialcmp): Change type of a,b parameters
9681 from char * to const char *.
9682 * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
9683 from char * to const char *. All callers updated.
9684 * p-lang.h (is_pascal_string_type): Update.
9685 * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
9686 of name parameter from char * to const char *.
9687 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
9688 * utils.c (fprintf_symbol_filtered): Ditto.
9689 * defs.h (fprintf_symbol_filtered): Update.
9690 * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
9691 * stabsread.h (end_psymtab): Update.
9692 * stack.c (find_frame_funname): Change type of funname parameter
9693 from char ** to const char **.
9694 * stack.h (find_frame_funname): Update.
9695 * typeprint.c (type_print): Change type of varstring parameter
9696 from char * to const char *.
9697 * value.h (type_print): Update.
9698 * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
9699 from char * to const char *. All callers updated.
9700 (xcoff_end_psymtab): Change type of include_list parameter
9701 from char ** to const char **. All callers updated.
9702 (swap_sym): Similarly for name parameter. All callers updated.
9703 * coffread.c (patch_type): Add (char*) cast to xfree parameter.
9704 Use xstrdup.
9705 (process_coff_symbol): Use xstrdup.
9706 * stabsread.c (stabs_method_name_from_physname): Renamed from
9707 update_method_name_from_physname. Change result type from void
9708 to char *. All callers updated.
9709 (read_member_functions): In has_destructor case, store name in objfile
9710 obstack instead of malloc space. In !has_stub case, fix mem leak.
9711
5579a92e
TT
97122012-02-06 Luca Pizzamiglio <luca.pizzamiglio@gmail.com>
9713
9714 * configure: Rebuild.
9715 * configure.ac: Put -L../bfd and -L../libiberty at the front of
9716 LDFLAGS.
9717
9058f767
KB
97182012-02-03 Kevin Buettner <kevinb@redhat.com>
9719
9720 * configure.tgt (rl78-*-elf): New target.
9721 * rl78-tdep.c: New file.
9722
5b37825d
PW
97232012-02-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9724
9725 * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
9726 and continue the loop. Add QUIT statement.
9727
e009ee71
TT
97282012-02-03 Tom Tromey <tromey@redhat.com>
9729
9730 PR gdb/13596:
9731 * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
9732 bfd_lookup_symbol_from_symtab.
9733 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
9734 gdb_bfd_lookup_symbol_from_symtab.
9735
f7e44f65
JB
97362012-02-03 Joel Brobecker <brobecker@adacore.com>
9737
9738 * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
9739 use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
9740 symbol. Add assertion that sym2 is never NULL.
9741
2c02bd72
DE
97422012-02-02 Doug Evans <dje@google.com>
9743
9744 * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
9745 "name" parameter to const char ** from char **. All callers updated.
9746 (find_pc_partial_function): Ditto.
9747 (cache_pc_function_name): Change type to const char * from char *.
9748 * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
9749 (find_pc_partial_function): Update.
9750 * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
9751 type of "name" parameter to const char * from char *.
9752 All uses updated.
9753 * arch-utils.c (generic_in_solib_return_trampoline): Change
9754 type of "name" parameter to const char * from char *.
9755 * arch-utils.h (generic_in_solib_return_trampoline): Update.
9756 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
9757 type of "name" parameter to const char * from char *.
9758 * gdbarch.sh (in_solib_return_trampoline): Ditto.
9759 * gdbarch.c: Regenerate.
9760 * gdbarch.h: Regenerate.
9761 * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
9762 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
9763 * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
9764 type of "name" parameter to const char * from char *.
9765 * skip.c (skip_function_pc): Ditto.
9766 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
9767 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
9768 * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
9769 * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
9770 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
9771 * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
9772 * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
9773 * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
9774 * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
9775
e886a173
PA
97762012-02-02 Pedro Alves <palves@redhat.com>
9777
9778 * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
9779 the current inferior has no execution. Make sure the current
9780 remote process matches gdb's current inferior.
9781
c709a7c2
TT
97822012-02-02 Tom Tromey <tromey@redhat.com>
9783
9784 PR gdb/13405:
9785 * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
9786 read-only memory.
9787
f149aabd
TT
97882012-02-02 Tom Tromey <tromey@redhat.com>
9789
9790 PR gdb/9307:
9791 * symtab.c (lookup_language_this): Set block_found.
9792
03bef283
TT
97932012-02-01 Tom Tromey <tromey@redhat.com>
9794
9795 PR gdb/13431:
9796 * jit.c (struct jit_inferior_data): Rewrite.
9797 (struct jit_objfile_data): New.
9798 (get_jit_objfile_data): New function.
9799 (add_objfile_entry): Update.
9800 (jit_read_descriptor): Return int. Replace descriptor_addr
9801 argument with inf_data. Update. Don't call error.
9802 (jit_breakpoint_re_set_internal): Reorder logic. Update. Look up
9803 descriptor here.
9804 (jit_inferior_init): Don't look up descriptor. Don't call error.
9805 (jit_reset_inferior_data_and_breakpoints)
9806 (jit_inferior_created_observer): Remove.
9807 (jit_inferior_exit_hook): Update.
9808 (jit_executable_changed_observer): Remove.
9809 (jit_event_handler): Update.
9810 (free_objfile_data): Reset inferior data if needed.
9811 (_initialize_jit): Update.
9812
f0bbc364
TT
98132012-02-01 Tom Tromey <tromey@redhat.com>
9814
9815 * jit.c (bfd_open_from_target_memory): Move higher in file.
9816
47c1316c
TG
98172012-02-01 Tristan Gingold <gingold@adacore.com>
9818
9819 * libunwind-frame.c (libunwind_load): Display message if dlopen
9820 failed.
9821
8e704927
GB
98222012-02-01 Gary Benson <gbenson@redhat.com>
9823
09c7a31f 9824 * symtab.h (symbol_found_callback_ftype): New typedef.
8e704927
GB
9825 (iterate_over_symbols): Use the above.
9826 * symtab.c (iterate_over_symbols): Likewise.
9827 * language.h (language_defn->la_iterate_over_symbols): Likewise.
9828 * ada-lang.c (ada_iterate_over_symbols): Likewise.
9829 * linespec.c (iterate_over_all_matching_symtabs): Likewise.
9830 (iterate_name_matcher): Document return values.
9831 (collect_one_symbol): Likewise.
9832 (collect_function_symbols): Likewise.
9833 (collect_symbols): Likewise.
9834
d9680e73
TT
98352012-02-01 Tom Tromey <tromey@redhat.com>
9836
9837 * ada-lang.c (resolve_subexp): Update.
9838 (ada_lookup_symbol_list): Add 'full_search' argument.
9839 (ada_iterate_over_symbols): Pass 0 as full_search argument to
9840 ada_lookup_symbol_list.
9841 (ada_lookup_encoded_symbol): Update.
9842 (get_var_value): Update.
9843 * ada-exp.y (block_lookup): Update.
9844 (write_var_or_type): Update.
9845 (write_name_assoc): Update.
9846 * ada-lang.h (ada_lookup_symbol_list): Update.
9847
72e1143f
TT
98482012-01-31 Tom Tromey <tromey@redhat.com>
9849
9850 * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
9851 comment.
9852
ab2d2ad3
DE
98532012-01-31 Doug Evans <dje@google.com>
9854
9855 * symtab.h: Remove outdated comment.
e9111bf7 9856 (SYMBOL_MATCHES_NATURAL_NAME): Delete.
ab2d2ad3 9857
bc884eba
JB
98582012-02-01 Josh Matthews <josh@joshmatthews.net> (tiny change)
9859
9860 Fix build error in Darwin port.
9861 * i386-darwin-nat.c: Include i386-nat.h.
9862
8fc3fc34
TT
98632012-01-30 Tom Tromey <tromey@redhat.com>
9864
9865 PR breakpoints/13568:
9866 * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
9867 argument. Check for recursive includes.
9868 (dwarf_decode_macros): Create an include hash.
9869
5d853008
ME
98702012-01-30 Michael Eager <eager@eagercon.com>
9871
9872 * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
9873 * ppc-linux-tdep.c: Include glibc-tdep.h.
ab2d2ad3 9874 (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
5d853008
ME
9875 (powerpc_linux_in_plt_stub): New function.
9876 (powerpc_linux_in_dynsym_resolve_code): New function.
9877 (ppc_skip_trampoline_code): New function.
9878 (ppc_linux_init_abi): Use PPC specific functions rather than generic.
9879 Use glibc_skip_solib_resolver.
9880
40478521
JK
98812012-01-28 Jan Kratochvil <jan.kratochvil@redhat.com>
9882
9883 Code cleanup: Make 1440 bytes of data segment read-only.
9884 * arch-utils.c (endian_enum): Make it const char *const [].
9885 * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
9886 Likewise.
9887 * breakpoint.c (always_inserted_enums): Likewise.
9888 * cli/cli-cmds.c (script_ext_enums): Likewise.
9889 * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
9890 enumlist parameter const char *const *.
9891 * cli/cli-decode.h (struct cmd_list_element): Make the enums field
9892 const char *const *.
9893 * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
9894 parameter const char *const *.
9895 * cris-tdep.c (cris_modes): Make it const char *const [].
9896 * filesystem.c (target_file_system_kinds): Likewise.
9897 * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
9898 * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
9899 (can_use_displaced_stepping_enum, scheduler_enums)
9900 (exec_direction_names): Likewise.
9901 * language.c (_initialize_language): Make the type_or_range_names and
9902 case_sensitive_names variables const char *const [].
9903 * mips-tdep.c (mips_abi_strings): Make it const char *const [].
9904 * python/python.c (python_excp_enums): Likewise.
9905 * remote.c (interrupt_sequence_modes): Likewise.
9906 * rs6000-tdep.c (powerpc_vector_strings): Likewise.
9907 * serial.c (logbase_enums): Likewise.
9908 * sh-tdep.c (sh_cc_enum): Likewise.
9909 * stack.c (print_frame_arguments_choices, print_entry_values_choices):
9910 Likewise.
9911 * symtab.c (multiple_symbols_modes): Likewise.
9912 * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
9913 Likewise.
9914 * utils.c (internal_problem_modes): Likewise.
9915
b3b8b934
JK
99162012-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
9917
9918 Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
9919 * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
9920 result.
9921
8c85a4e2
DE
99222012-01-27 Doug Evans <dje@google.com>
9923
9924 * configure.ac (with_python): Fix absolute path handling for win32.
9925 * configure: Regenerate.
9926
78d8b4d7
DE
99272012-01-26 Doug Evans <dje@google.com>
9928
eca864fe
DE
9929 * symtab.c: Whitespace cleanup, no code changes.
9930
7e082072
DE
9931 * symtab.c (lookup_symbol_in_language): Improve comment.
9932 (lookup_symbol_aux): Fix comment.
9933
7dc25483
DE
9934 * psymtab.c (add_psymbol_to_list): Result is now "void".
9935 * psympriv.h (add_psymbol_to_list): Update.
9936
78d8b4d7
DE
9937 * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
9938
4c63965b
JK
99392012-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
9940
9941 Do not open script filenames twice.
9942 * cli/cli-cmds.c (source_script_from_stream): Pass to
9943 source_python_script also STREAM.
9944 * python/py-auto-load.c (source_section_scripts): Pass to
9945 source_python_script_for_objfile also STREAM.
9946 (auto_load_objfile_script): Pass to source_python_script_for_objfile
9947 also INPUT.
9948 * python/python-internal.h (source_python_script_for_objfile): New
9949 parameter file, rename parameter file to filename.
9950 * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
9951 instead if !_WIN32. Update the function comment.
9952 (source_python_script, source_python_script_for_objfile)
9953 (source_python_script): New parameter file, rename parameter file to
9954 filename. Pass FILENAME to python_run_simple_file.
9955 * python/python.h (source_python_script): New parameter file, rename
9956 parameter file to filename.
9957
88f38a04
PA
99582012-01-26 Pedro Alves <palves@redhat.com>
9959
9960 * corelow.c (core_has_fake_pid): Delete.
9961 (core_close): Delete references to `core_has_fake_pid'.
9962 (add_to_thread_list): Adjust to mark the inferior's pid as fake.
9963 (core_open): Delete references to `core_has_fake_pid'.
9964 (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
9965 the removed global.
9966
e078317b
JB
99672012-01-26 Joel Brobecker <brobecker@adacore.com>
9968
9969 * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
9970 Remove language parameter from name_matcher. Adjust the comment.
9971 * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
9972 Remove language parameter.
9973 * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
9974 * linespec.c (iterate_name_matcher): Likewise.
9975 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
9976 name_matcher. Adjust call accordingly.
9977 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
9978 (maintenance_check_symtabs): Adjust type of parameter "fun".
9979 * psymtab.h (maintenance_check_symtabs): Likewise.
9980
74ccd7f5
JB
99812012-01-26 Joel Brobecker <brobecker@adacore.com>
9982
9983 * language.h (symbol_name_match_p_ftype): New typedef.
9984 (struct language_defn): Replace field la_symbol_name_compare
9985 by la_get_symbol_name_match_p.
9986 * ada-lang.c (ada_get_symbol_name_match_p): New function.
9987 (ada_language_defn): Use it.
9988 * linespec.c (struct symbol_matcher_data): New type.
9989 (iterate_name_matcher): Rewrite.
9990 (iterate_over_all_matching_symtabs): Pass a pointer to
9991 a symbol_matcher_data struct to expand_symtabs_matching
9992 instead of just the lookup name.
9993 * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
9994 opencl-lang.c, p-lang.c, language.c: Delete field
9995 la_symbol_name_compare, and replace by NULL for new field
9996 la_get_symbol_name_match_p.
9997 * symfile.h (struct quick_symbol_functions): Update comment.
9998
5d268276
TT
99992012-01-25 Tom Tromey <tromey@redhat.com>
10000
10001 * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
10002 dereferencing.
10003
edcc5120
TT
100042012-01-24 Tom Tromey <tromey@redhat.com>
10005
10006 PR symtab/12406:
10007 * solib.c (update_solib_list): Update the program space's
10008 added_solibs and deleted_solibs fields.
10009 * progspace.h (struct program_space) <added_solibs,
10010 deleted_solibs>: New fields.
10011 (clear_program_space_solib_cache): Declare.
10012 * progspace.c (release_program_space): Call
10013 clear_program_space_solib_cache.
10014 (clear_program_space_solib_cache): New function.
10015 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
10016 bpstat_stop_status. Use handle_solib_event.
10017 * breakpoint.c: Include gdb_regex.h.
10018 (print_solib_event): New function.
10019 (bpstat_print): Use print_solib_event.
10020 (bpstat_stop_status): Add special case for bp_shlib_event.
10021 (handle_solib_event): New function.
10022 (bpstat_what): Use handle_solib_event.
10023 (struct solib_catchpoint): New.
10024 (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
10025 (breakpoint_hit_catch_solib, check_status_catch_solib)
10026 (print_it_catch_solib, print_one_catch_solib)
10027 (print_mention_catch_solib, print_recreate_catch_solib): New
10028 functions.
10029 (catch_solib_breakpoint_ops): New global.
10030 (catch_load_or_unload, catch_load_command_1)
10031 (catch_unload_command_1): New functions.
10032 (internal_bkpt_check_status): Add special case for
10033 bp_shlib_event.
10034 (internal_bkpt_print_it): Use print_solib_event.
10035 (initialize_breakpoint_ops): Initialize
10036 catch_solib_breakpoint_ops.
10037 (_initialize_breakpoint): Register "catch load" and "catch
10038 unload".
10039 * breakpoint.h (handle_solib_event): Declare.
10040 * NEWS: Add entry for "catch load" and "catch unload".
10041
fa864999
TT
100422012-01-24 Tom Tromey <tromey@redhat.com>
10043
10044 * ada-lang.c: Include gdb_vecs.h.
10045 * charset.c: Include gdb_vecs.h.
10046 * tracepoint.h: Include gdb_vecs.h.
10047 * gdb_vecs.h: New file.
10048
f90263c1
TT
100492012-01-24 Pedro Alves <pedro@codesourcery.com>
10050
10051 * breakpoint.c (breakpoint_hit_catch_fork)
10052 (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
10053 (breakpoint_hit_catch_exec): Make use of the `ws' argument.
10054 * infrun.c (inferior_has_forked, inferior_has_vforked)
10055 (inferior_has_execd, inferior_has_called_syscall): Delete.
10056 (handle_syscall_event): Get syscall_number from the execution
10057 control state's wait status.
10058 (wait_for_inferior): Don't clear syscall_number.
10059
09ac7c10
TT
100602012-01-24 Pedro Alves <palves@redhat.com>
10061
10062 * breakpoint.c (bpstat_check_location, bpstat_stop_status,
10063 pc_at_non_inline_function): Add `ws' parameter, and pass it down.
10064 (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
10065 (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
10066 `ws' parameter.
10067 (breakpoint_hit_ranged_breakpoint): Add `ws' parameter. Return
10068 false for events other than TARGET_SIGNAL_TRAP.
10069 (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
10070 Add `ws' parameter.
10071 (bkpt_breakpoint_hit): Add `ws' parameter. Return false for
10072 events other than TARGET_SIGNAL_TRAP.
10073 (tracepoint_breakpoint_hit): Add `ws' parameter.
10074 * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
10075 parameter.
10076 (bpstat_stop_status): Same.
10077 (pc_at_non_inline_function): Same.
10078 * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
10079 to pass the current event's waitstatus to bpstat_stop_status
10080 and pc_at_non_inline_function.
10081
86eb7e95
JK
100822012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
10083
10084 Code cleanup.
10085 * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
10086 Update the function comment for it.
10087 (source_script_with_search): Call make_cleanup_fclose for STREAM.
10088 * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
10089 for STREAM.
10090
a9b3a50f
PA
100912012-01-24 Pedro Alves <palves@redhat.com>
10092
10093 * breakpoint.c (bpstat_stop_status): Moving clearing print_it
10094 outside `bs->stop' block.
10095 (bpstat_what): Rework bp_shlib_event handling.
10096 (internal_bkpt_check_status): If the breakpoint is a
10097 bp_shlib_event, then set bs->stop and bs->print if
10098 stop_on_solib_events is set.
10099
53fe1783
GB
101002012-01-24 Gary Benson <gbenson@redhat.com>
10101
10102 Delete #if 0'd out code.
10103 * stack.c (print_frame_label_vars): Remove.
10104 (catch_info): Likewise.
10105 (_initialize_stack): Remove "info catch" command.
10106 * NEWS: Mention the above.
10107
49c62f2e
PA
101082012-01-24 Pedro Alves <palves@redhat.com>
10109
10110 * remote.c (remote_add_inferior): New `fake_pid_p' parameter. Use
10111 it.
10112 (remote_notice_new_inferior): If the remote end doesn't support
10113 the multiprocess extensions, then the PID is fake.
10114 (add_current_inferior_and_thread): New.
10115 (remote_start_remote): Use it.
10116 (extended_remote_attach_1): Adjust.
10117 (extended_remote_create_inferior_1): Use
10118 add_current_inferior_and_thread.
10119
d0d8b0c6
JK
101202012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
10121
10122 Fix watchpoints to be specific for each inferior.
10123 * breakpoint.c (watchpoint_in_thread_scope): Verify also
10124 current_program_space.
10125 * i386-nat.c (i386_inferior_data_cleanup): New.
10126 (i386_inferior_data_get): Replace variable inf_data_local by an
10127 inferior_data call.
10128 (i386_use_watchpoints): Initialize i386_inferior_data.
10129 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
10130 specific iterate_over_lwps.
10131
4403d8e9
JK
101322012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
10133
10134 Fix watchpoints across inferior fork.
10135 * amd64-linux-nat.c (update_debug_registers_callback): Update the
10136 comment for linux_nat_iterate_watchpoint_lwps.
10137 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
10138 linux_nat_iterate_watchpoint_lwps.
10139 (amd64_linux_prepare_to_resume): New comment on Linux kernel.
10140 * i386-linux-nat.c (update_debug_registers_callback): Update the
10141 comment for linux_nat_iterate_watchpoint_lwps.
10142 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
10143 linux_nat_iterate_watchpoint_lwps.
10144 (i386_linux_prepare_to_resume): New comment on Linux kernel.
10145 * i386-nat.c: Include inferior.h.
10146 (dr_mirror): Remove.
10147 (i386_inferior_data, struct i386_inferior_data)
10148 (i386_inferior_data_get): New.
10149 (i386_debug_reg_state): Use i386_inferior_data_get.
10150 (i386_cleanup_dregs, i386_update_inferior_debug_regs)
10151 (i386_insert_watchpoint, i386_remove_watchpoint)
10152 (i386_stopped_data_address, i386_insert_hw_breakpoint)
10153 (i386_remove_hw_breakpoint): New variable state, use
10154 i386_debug_reg_state instead of DR_MIRROR.
10155 * linux-nat.c (delete_lwp): New declaration.
10156 (num_lwps): Move here from downwards.
10157 (delete_lwp_cleanup): New.
10158 (linux_child_follow_fork): Create new child_lp, call
10159 linux_nat_new_thread and linux_nat_prepare_to_resume before calling
10160 PTRACE_DETACH.
10161 (num_lwps): Move upwards.
10162 (linux_nat_iterate_watchpoint_lwps): New.
10163 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
10164 (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
10165
2992c9a7 101662012-01-24 Joel Brobecker <brobecker@adacore.com>
10167
10168 GDB 7.4 released.
10169
e360902b
PA
101702012-01-23 Pedro Alves <palves@redhat.com>
10171
10172 * top.c (caution): Rename to ...
10173 (confirm): ... this.
10174 (show_caution): Rename to ...
10175 (show_confirm): ... this.
10176 (quit_cover): Adjust.
10177 (init_main): Adjust.
10178 * top.h (caution): Rename to ...
10179 (confirm): ... this.
10180 * utils.c (internal_vproblem, defaulted_query): Adjust.
10181
050a2e1d
PA
101822012-01-23 Pedro Alves <palves@redhat.com>
10183
10184 * top.c (caution): Update comment.
10185 (execute_command): Don't consider the current value of `caution'.
10186
77a35dd8
JK
101872012-01-23 Jan Kratochvil <jan.kratochvil@redhat.com>
10188
10189 * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
10190
a71b5a38
UW
101912012-01-23 Ulrich Weigand <ulrich.weigand@linaro.org>
10192
10193 * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
10194 * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
10195 * target.c (target_fileio_pwrite): Remove buffer address from
10196 debug output.
10197 (target_fileio_pread): Likewise.
10198
d99bd577
UW
101992012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10200
10201 * NEWS: Document remote "info proc" and "generate-core-file".
10202
35c2fab7
UW
102032012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10204
10205 * gdbarch.sh (find_memory_regions): New callback.
10206 * gdbarch.c, gdbarch.h: Regenerate.
10207
10208 * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
10209 callback before falling back to target method.
10210
10211 * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
10212 (linux_target_install_ops): No longer install it.
10213
10214 * linux-tdep.c (linux_find_memory_regions): New function.
10215 (linux_init_abi): Install it.
10216
6432734d
UW
102172012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10218
10219 * gdbarch.sh (make_corefile_notes): New architecture callback.
10220 * gdbarch.c: Regenerate.
10221 * gdbarch.h: Likewise.
10222
10223 * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
10224 before target_make_corefile_notes. If NULL is returned, the
10225 target does not support core file generation.
10226
10227 * linux-nat.c: Include "linux-tdep.h".
10228 (find_signalled_thread, find_stop_signal): Remove.
10229 (linux_nat_do_thread_registers): Likewise.
10230 (struct linux_nat_corefile_thread_data): Likewise.
10231 (linux_nat_corefile_thread_callback): Likewise.
10232 (iterate_over_spus): Likewise.
10233 (struct linux_spu_corefile_data): Likewise.
10234 (linux_spu_corefile_callback): Likewise.
10235 (linux_spu_make_corefile_notes): Likewise.
10236 (linux_nat_collect_thread_registers): New function.
10237 (linux_nat_make_corefile_notes): Replace contents by call to
10238 linux_make_corefile_notes passing linux_nat_collect_thread_registers
10239 as native-only callback.
10240
10241 * linux-tdep.h: Include "bfd.h".
10242 (struct regcache): Add forward declaration.
10243 (linux_collect_thread_registers_ftype): New typedef.
10244 (linux_make_corefile_notes): Add prototype.
10245 * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
10246 "regset.h", and "elf-bfd.h".
10247 (find_signalled_thread, find_stop_signal): New functions.
10248 (linux_spu_make_corefile_notes): Likewise.
10249 (linux_collect_thread_registers): Likewise.
10250 (struct linux_corefile_thread_data): New data structure.
10251 (linux_corefile_thread_callback): New funcion.
10252 (linux_make_corefile_notes): Likewise.
10253 (linux_make_corefile_notes_1): Likewise.
10254 (linux_init_abi): Install it.
10255
3030c96e
UW
102562012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10257
10258 * gdbarch.sh (info_proc): New callback.
10259 * gdbarch.c, gdbarch.h: Regenerate.
10260
10261 * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
10262 before falling back to the target info_proc callback.
10263
10264 * linux-nat.c: Do not include "cli/cli-utils.h".
10265 (linux_nat_info_proc): Remove.
10266 (linux_target_install_ops): No longer install it.
10267
10268 * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
10269 (read_mapping): New function.
10270 (linux_info_proc): Likewise.
10271 (linux_init_abi): Install it.
10272
145b16a9
UW
102732012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10274
10275 * defs.h (enum info_proc_what): Moved here from linux-nat.c
10276 * infcmd.c: (info_proc_cmd_1): New function.
10277 (info_proc_cmd): New function, moved here from equivalent routine
10278 orignally in linux-nat.c.
10279 (info_proc_cmd_mappings): Likewise.
10280 (info_proc_cmd_stat): Likewise.
10281 (info_proc_cmd_status): Likewise.
10282 (info_proc_cmd_cwd): Likewise.
10283 (info_proc_cmd_cmdline): Likewise.
10284 (info_proc_cmd_exe): Likewise.
10285 (info_proc_cmd_all): Likewise.
10286 (_initialize_infcmd): Install "info proc" command and subcommands.
10287
10288 * target.h (struct target_ops): Add to_info_proc.
10289 (target_info_proc): Add prototype.
10290 * target.c (target_info_proc): New function.
10291
10292 * procfs.c (procfs_info_proc): Add prototype.
10293 (info_proc_cmd): Rename into ...
10294 (procfs_info_proc): ... this. Update argument types as appropriate
10295 for a to_info_proc implementation. Handle "what" argument.
10296 (procfs_target): Install procfs_info_proc.
10297 (_initialize_procfs): No longer install "info proc" command.
10298
10299 * linux-nat.c: (enum info_proc_what): Remove.
10300 (linux_nat_info_proc_cmd_1): Rename into ...
10301 (linux_nat_info_proc): ... this. Update argument types as appropriate
10302 for a to_info_proc implementation.
10303 (linux_nat_info_proc_cmd): Remove.
10304 (linux_nat_info_proc_cmd_mappings): Likewise.
10305 (linux_nat_info_proc_cmd_stat): Likewise.
10306 (linux_nat_info_proc_cmd_status): Likewise.
10307 (linux_nat_info_proc_cmd_cwd): Likewise.
10308 (linux_nat_info_proc_cmd_cmdline): Likewise.
10309 (linux_nat_info_proc_cmd_exe): Likewise.
10310 (linux_nat_info_proc_cmd_all): Likewise.
10311 (linux_target_install_ops): Install linux_nat_info_proc.
10312 (_initialize_linux_nat): No longer install "info proc" command
10313 and subcommands.
10314
b9e7b9c3
UW
103152012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10316
10317 * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
10318 * config.in, configure: Regenerate.
10319
10320 * target.h (struct target_ops): Add to_fileio_readlink.
10321 (target_fileio_readlink): Add prototype.
10322 * target.c (target_fileio_readlink): New function.
10323
10324 * inf-child.c: Conditionally include <sys/param.h>.
10325 (inf_child_fileio_readlink): New function.
10326 (inf_child_target): Install it.
10327
10328 * remote.c (PACKET_vFile_readlink): New enum value.
10329 (remote_hostio_readlink): New function.
10330 (init_remote_ops): Install it.
10331 (_initialize_remote): Handle vFile:readlink packet type.
10332
7313baad
UW
103332012-01-20 Pedro Alves <palves@redhat.com>
10334 Ulrich Weigand <ulrich.weigand@linaro.org>
10335
10336 * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
10337 * config.in, configure: Regenerate.
10338
10339 * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
10340 to_fileio_pread, to_fileio_close, to_fileio_unlink.
10341 (target_fileio_open): Add prototype.
10342 (target_fileio_pwrite): Likewise.
10343 (target_fileio_pread): Likewise.
10344 (target_fileio_close): Likewise.
10345 (target_fileio_unlink): Likewise.
10346 (target_fileio_read_alloc): Likewise.
10347 (target_fileio_read_stralloc): Likewise.
10348
10349 * target.c: Include "gdb/fileio.h".
10350 (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
10351 (default_fileio_target): New function.
10352 (target_fileio_open): Likewise.
10353 (target_fileio_pwrite): Likewise.
10354 (target_fileio_pread): Likewise.
10355 (target_fileio_close): Likewise.
10356 (target_fileio_unlink): Likewise.
10357 (target_fileio_close_cleanup): Likewise.
10358 (target_fileio_read_alloc_1): Likewise.
10359 (target_fileio_read_alloc): Likewise.
10360 (target_fileio_read_stralloc): Likewise.
10361
10362 * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
10363 <fcntl.h>, and <unistd.h>.
10364 (inf_child_fileio_open_flags_to_host): New function.
10365 (inf_child_errno_to_fileio_error): Likewise.
10366 (inf_child_fileio_open): Likewise.
10367 (inf_child_fileio_pwrite): Likewise.
10368 (inf_child_fileio_pread): Likewise.
10369 (inf_child_fileio_close): Likewise.
10370 (inf_child_fileio_unlink): Likewise.
10371 (inf_child_target): Install to_fileio routines.
10372
10373 * remote.c (init_remote_ops): Install to_fileio routines.
10374
901f9912
UW
103752012-01-20 Pedro Alves <palves@redhat.com>
10376 Ulrich Weigand <ulrich.weigand@linaro.org>
10377
10378 * remote.c (remote_multi_process_p): Only check for multi-process
10379 protocol feature, do not check for extended protocol.
10380 (remote_supports_multi_process): Check for extended protocol here.
10381 (set_general_process): Likewise.
10382 (extended_remote_kill): Likewise.
10383 (remote_pid_to_str): Likewise.
10384 (remote_query_supported): Always query multiprocess mode.
10385
e714e1bf
UW
103862012-01-20 Pedro Alves <palves@redhat.com>
10387 Ulrich Weigand <ulrich.weigand@linaro.org>
10388
10389 * inferior.h (struct inferior): Add fake_pid_p.
10390 * inferior.c (exit_inferior_1): Clear fake_pid_p.
10391 * remote.c (remote_start_remote): Set fake_pid_p if we have to use
10392 magic_null_ptid since the remote side doesn't provide a real PID.
10393
50897289
TT
103942012-01-19 Tom Tromey <tromey@redhat.com>
10395
10396 * NEWS: Combine the two Python sections.
10397
1afc2033
JK
103982012-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
10399
10400 * target.h (target_close): Update comment on the target's unpush state.
10401
305436e0
PA
104022012-01-19 Pedro Alves <palves@redhat.com>
10403
10404 * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
10405 linux_nat_async directly instead of going through the target
10406 vector.
10407 * target.c (unpush_target): Close target after unpushing it, not
10408 before.
10409
49323895
GB
104102012-01-19 Gary Benson <gbenson@redhat.com>
10411
10412 * mdebugread.c (sort_blocks): Replace integer constants with ones
10413 derived from FIRST_LOCAL_BLOCK.
10414
1db33378
PP
104152012-01-18 Paul Pluzhnikov <ppluzhnikov@google.com>
10416 Jan Kratochvil <jan.kratochvil@redhat.com>
10417
10418 PR gdb/9538
10419 * symfile.c (find_separate_debug_file): New function.
10420 (terminate_after_last_dir_separator): Likewise.
10421 (find_separate_debug_file_by_debuglink): Also try realpath.
10422 * configure.ac (AC_CHECK_FUNCS): Add lstat.
10423 * configure: Regenerate.
10424 * config.in: Regenerate.
10425
f83d8a90
DE
104262012-01-18 Doug Evans <dje@google.com>
10427
10428 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
10429 (main.o): Remove rule.
10430 * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
10431 (--with-sysroot): Rewrite.
10432 * configure: Regenerate.
10433 * config.in: Regenerate.
10434
2dbca4d6
SDJ
104352012-01-18 Sergio Durigan Junior <sergiodj@redhat.com>
10436
10437 * parse.c (initialize_expout): New function.
10438 (reallocate_expout): Likewise.
10439 (parse_exp_in_context): Use `initialize_expout' and
10440 `reallocate_expout' when appropriate.
10441
0695b514
PA
104422012-01-18 Pedro Alves <palves@redhat.com>
10443
10444 * record.c (struct record_breakpoint, record_breakpoint_p)
10445 (record_breakpoints): New.
10446 (record_insert_breakpoint, record_remove_breakpoint): Manage
10447 record breakpoints list. Only remove breakpoints from the
10448 inferior if they had been inserted there in the first place.
10449
136e1c30
DE
104502012-01-17 Doug Evans <dje@google.com>
10451
10452 * linespec.c (decode_line_internal): Don't call symtabs_from_filename
10453 if we know we don't have a file name to look for.
10454
c0bf857d
PA
104552012-01-17 Pedro Alves <palves@redhat.com>
10456
10457 * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
10458 the frame's stop reason is UNWIND_UNAVAILABLE.
10459
b486de60
JK
104602012-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
10461
10462 Fix compilation error.
10463 * m2-exp.y (yyerror): Use ANSI C prototype.
10464
d04550a6
SDJ
104652012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
10466
10467 * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
10468 (growbuf_by_size): Likewise.
10469 (yyerror): Likewise.
10470 * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
10471 (modblock): Remove variable (was #if 0'ed).
10472 (parse_number): Convert prototype from K&R to ANSI C.
10473 (yyerror): Likewise.
10474 * objc-exp.y (parse_number): Likewise.
10475 (yyerror): Likewise.
10476 (yylex): Remove #if 0'ed code.
10477 * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
10478 (yyerror): Likewise.
10479
4aac40c8
TT
104802012-01-16 Tom Tromey <tromey@redhat.com>
10481
10482 * NEWS: Add item.
10483 * symtab.h (compare_filenames_for_search): Declare.
10484 * symtab.c (compare_filenames_for_search): New function.
10485 (iterate_over_some_symtabs): Use it.
10486 * symfile.h (struct quick_symbol_functions)
10487 <map_symtabs_matching_filename>: Change spec.
10488 * psymtab.c (partial_map_symtabs_matching_filename): Use
10489 compare_filenames_for_search. Update for new spec.
10490 * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
10491 compare_filenames_for_search. Update for new spec.
10492 * breakpoint.c (clear_command): Use compare_filenames_for_search.
10493
cafec441
TT
104942012-01-16 Tom Tromey <tromey@redhat.com>
10495
10496 PR python/13281:
10497 * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
10498 (struct main_type) <flag_flag_enum>: New field.
10499 * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
10500 * NEWS: Add entries.
10501 * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
10502 enums.
10503 * python/lib/gdb/printing.py (_EnumInstance): New class.
10504 (FlagEnumerationPrinter): Likewise.
10505
983af33b
SDJ
105062012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
10507
10508 * breakpoint.c (create_sals_from_address_default): New function.
10509 (create_breakpoints_sal_default): Likewise.
10510 (decode_linespec_default): Likewise.
10511 (is_marker_spec): Removed.
10512 (strace_marker_p): New function.
10513 (init_breakpoint_sal): Using `strace_marker_p' instead of
10514 `is_marker_spec'.
10515 (create_breakpoint): Call method `create_sals_from_address' from
10516 breakpoint_ops, replacing code that created SALs conditionally
10517 on the type of the breakpoint. Call method `create_breakpoints_sal',
10518 replacing code that created breakpoints conditionally on the type
10519 wanted.
10520 (base_breakpoint_create_sals_from_address): New function.
10521 (base_breakpoint_create_breakpoints_sal): Likewise.
10522 (base_breakpoint_decode_linespec): Likewise.
10523 (base_breakpoint_ops): Add methods
10524 `base_breakpoint_create_sals_from_address',
10525 `base_breakpoint_create_breakpoints_sal' and
10526 `base_breakpoint_decode_linespec'.
10527 (bkpt_create_sals_from_address): New function.
10528 (bkpt_create_breakpoints_sal): Likewise.
10529 (bkpt_decode_linespec): Likewise.
10530 (tracepoint_create_sals_from_address): Likewise.
10531 (tracepoint_create_breakpoints_sal): Likewise.
10532 (tracepoint_decode_linespec): Likewise.
10533 (strace_marker_create_sals_from_address): Likewise.
10534 (strace_marker_create_breakpoints_sal): Likewise.
10535 (strace_marker_decode_linespec): Likewise.
10536 (strace_marker_breakpoint_ops): New variable.
10537 (addr_string_to_sals): Remove `marker_spec'. Call method
10538 `decode_linespec' from breakpoint_ops, replacing code that decoded
10539 an address string into a SAL. Use `strace_marker_p' instead of
10540 `marker_spec'.
10541 (strace_command): Decide whether we are dealing with a static
10542 tracepoint with marker or not. Use the appropriate breakpoint_ops.
10543 (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
10544 * breakpoint.h (linespec_result, linespec_sals): New forward
10545 declarations.
10546 (breakpoint_ops) <create_sals_from_address>,
10547 <create_breakpoints_sal>, <decode_linespec>: New methods.
10548
4795f398
DE
105492012-01-14 Doug Evans <dje@google.com>
10550
10551 * NEWS: Update text for "maint set python print-stack".
10552 It is deprecated in gdb 7.4 and deleted in 7.5.
10553
ee5106fe
EZ
105542012-01-13 Eli Zaretskii <eliz@gnu.org>
10555
10556 * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
10557 including curses.h.
10558
b161e06f
JK
105592012-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
10560
10561 * configure: Regenerate.
10562 * config.in: Regenerate.
10563
85254831
KS
105642012-01-12 Keith Seitz <keiths@redhat.com>
10565
10566 PR mi/10586
10567 * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
10568 (ANONYMOUS_UNION_NAME): Define.
10569 (is_path_expr_parent): New function.
10570 (get_path_expr_parent): New function.
10571 (is_anonymous_child): New function.
10572 (create_child_with_value): If the child is anonymous and without
10573 a name, assign an object name to it.
10574 (c_describe_child): Use get_path_expr_parent to determine
10575 the parent expression.
10576 If there field represents an anonymous struct or union and
10577 has no name, set an appropriate display name and expression.
10578 (cplus_describe_child): Likewise.
10579
620fa63a
PA
105802012-01-12 Pedro Alves <palves@redhat.com>
10581
10582 * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
10583 available when %ebp is found to be zero (outermost).
10584
2efa2c79
AT
105852012-01-11 Andreas Tobler <andreast@fgznet.ch>
10586
10587 * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
10588 an internal gdb_static_assert.
10589 * mi/mi-common.c: Rename static_assert to gdb_static_assert.
10590
88e7d25d
TT
105912012-01-11 Tom Tromey <tromey@redhat.com>
10592
10593 PR gdb/9598:
10594 * breakpoint.c (_initialize_breakpoint): Fix help for "catch
10595 catch" and "catch throw".
10596
72384ba3
PH
105972012-01-11 Paul Hilfinger <hilfingr@adacore.com>
10598
10599 * blockframe.c (block_innermost_frame): Start search from selected
10600 frame, if present, or otherwise the current frame.
10601
10602 * c-exp.y (variable): Update innermost_block for
10603 'block COLONCOLON NAME' clause.
10604 * m2-exp.y (variable): Ditto.
10605 * objc-exp.y (variable): Ditto.
10606
065a711f
TT
106072012-01-10 Tom Tromey <tromey@redhat.com>
10608
10609 PR python/13199:
10610 * python/python.c (finish_python_initialization): Set sys.argv.
10611
f3f5162e
DE
106122012-01-10 Doug Evans <dje@google.com>
10613
10614 * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd". New arg
10615 "want_line_info". All callers updated.
10616 (dwarf_decode_lines_1): New function.
10617 (handle_DW_AT_stmt_list): Add function comment.
10618 New arg "want_line_info". All callers updated.
10619 (read_file_scope,read_type_unit_scope): Move comment from
10620 handle_DW_AT_stmt_list to here.
10621
9934703b
JK
106222012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10623
10624 Fix regression after libiberty/ update for GCC PR 6057 and others.
10625 * c-exp.y (operator) <OPERATOR DELETE>
10626 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
10627 * cp-name-parser.y (fill_comp, make_operator, make_dtor)
10628 (make_builtin_type, make_name): New variable i, add gdb_assert.
10629 (operator) <OPERATOR NEW>: Update ARGS to 3.
10630 (operator) <OPERATOR DELETE>: Add trailing space.
10631 (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
10632 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
10633 * cp-support.c (cp_canonicalize_string): Check NULL from
10634 cp_comp_to_string, call warning and return.
10635
06b9f45f
JK
106362012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10637
10638 Fix duplicate .o files after omitting libbfd.a.
10639 * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
10640 (SFILES): Add corelow.c.
10641 (COMMON_OBS): Add corelow.o.
10642 (ALLDEPFILES): Remove corelow.c.
10643 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
10644 * config/alpha/alpha-osf3.mh: Likewise.
10645 * config/alpha/fbsd.mh: Likewise.
10646 * config/arm/nbsdaout.mh: Likewise.
10647 * config/arm/nbsdelf.mh: Likewise.
10648 * config/i386/i386gnu.mh: Likewise.
10649 * config/ia64/hpux.mh: Likewise.
10650 * config/ia64/linux.mh: Likewise.
10651 * config/m32r/linux.mh: Likewise.
10652 * config/m68k/linux.mh: Likewise.
10653 * config/mips/irix5.mh: Likewise.
10654 * config/mips/irix6.mh: Likewise.
10655 * config/pa/hpux.mh: Likewise.
10656 * config/pa/linux.mh: Likewise.
10657 * config/powerpc/aix.mh: Likewise.
10658 * config/sparc/linux.mh: Likewise.
10659 * config/sparc/linux64.mh: Likewise.
10660 * config/sparc/sol2.mh: Likewise.
10661 * config/vax/vax.mh: Likewise.
10662 * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
10663 (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
10664 (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
10665 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
10666 (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
10667 (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
10668 (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
10669 (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
10670 (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
10671 (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
10672 (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
10673 (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
10674 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
10675 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
10676 (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
10677 (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
10678 (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
10679 (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
10680 (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
10681 (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
10682 (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
10683 (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
10684 corelow.o from gdb_target_obs.
10685 * corefile.c (core_target): Update the comment on NULL value.
10686 (core_file_command): Replace error by gdb_assert on CORE_TARGET.
10687 * corelow.c (sniff_core_bfd): Call error instead of warning on zero
10688 MATCHES. Drop YUMMY set on NULL.
10689 (core_close): Do not call exit_inferior_silent on zero PID. Do not
10690 reclaim CORE_DATA if it is already NULL.
10691
34365054
DE
106922012-01-09 Doug Evans <dje@google.com>
10693
10694 * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
10695 * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
10696
696166a3
KS
106972012-01-09 Keith Seitz <keiths@redhat.com>
10698
10699 * breakpoint.c (wrapper.h): Don't include.
10700
8e7b59a5
KS
107012012-01-09 Keith Seitz <keiths@redhat.com>
10702
10703 * Makefile.in (SFILES): Remove wrapper.c.
10704 (HFILES_NO_SRCDIR): Remove wrapper.h.
10705 (COMMON_OBS): Remove wrapper.o.
10706 * cli/cli-interp.c: Don't inlude wrapper.h.
10707 * corelow.c: Likewise.
10708 (core_open): Replace gdb_target_find_new_threads with
10709 TRY_CATCH around target_find_new_threads.
10710 * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
10711 * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
10712 * varobj.c (varobj_create): Likewise for parse_exp_1 and
10713 evaluate_expression.
10714 (varobj_set_value): Likewise for evaluate_expression and
10715 value_assign.
10716 (install_new_variable): Likewise for value_fetch_lazy.
10717 (adjust_value_for_child_access): Likewise for value_ind.
10718 (c_describe_child): Likewise for value_subscript and
10719 value_ind.
10720 (c_value_of_root): Likewise for evaluate_expression.
10721 * wrapper.c: Remove.
10722 * wrapper.h: Remove.
10723
1a4eeb98
DE
107242012-01-09 Doug Evans <dje@google.com>
10725
9ff913ba
DE
10726 * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
10727 partial_read_comp_unit_head. Replace "buffer", "buffer_size" and
10728 "abfd" args with "section". All callers updated.
10729 Error checking code moved ...
10730 (error_check_comp_unit_head): ... here. New function.
10731 (read_and_check_type_unit_head): Renamed from read_type_unit_head.
10732 Delete arg "abfd". New arg "type_offset". All callers updated.
10733 (create_debug_types_hash_table): Simplify by using
10734 read_and_check_type_unit_head.
10735
1a4eeb98
DE
10736 * parser-defs.h (namecopy): Delete.
10737 * parse.c (namecopy, namecopy_size): Move into copy_name.
10738
2e6af8c0
JK
107392012-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10740
10741 Partially fix duplicate .o files after omitting libbfd.a.
10742 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
10743 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
10744 * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
10745 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
10746 * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
10747 * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
10748 * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
10749
9f2f828a
PA
107502012-01-09 Pedro Alves <palves@redhat.com>
10751
10752 * MAINTAINERS: Update my email address.
10753
4d72c0bc
DE
107542012-01-08 Doug Evans <dje@google.com>
10755
d467dd73
DE
10756 * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
10757 n_type_units. Rename type_comp_units to all_type_units.
10758 All uses updated.
10759 (add_signatured_type_cu_to_table): Renamed from
10760 add_signatured_type_cu_to_list. All callers updated.
10761
4d72c0bc
DE
10762 * gdbtypes.h (struct cplus_struct_type): Delete member
10763 nfn_fields_total. All uses removed.
10764
21b2bd31
DE
107652012-01-06 Doug Evans <dje@google.com>
10766
10767 * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
10768 to top of file.
10769 (dwarf2_find_comp_unit): Delete.
10770 (process_psymtab_comp_unit): Make result "void".
10771 Delete args buffer, info_ptr, buffer_size, and replace with
10772 "section". All callers updated.
10773 (dwarf2_build_psymtabs_hard): Simplify.
10774
bfd189b1
SDJ
107752012-01-06 Sergio Durigan Junior <sergiodj@redhat.com>
10776 Thiago Jung Bauermann <bauerman@br.ibm.com>
10777
10778 * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
10779 before `struct gdb_exception'.
10780 * breakpoint.c (update_global_location_list_nothrow)
10781 (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
10782 * cp-abi.c (value_rtti_type): Likewise.
10783 * cp-support.c (cp_validate_operator): Likewise.
10784 * infrun.c (insert_exception_resume_breakpoint)
10785 (check_exception_resume, keep_going): Likewise.
10786 * mi-interp.c (mi_breakpoint_created)
10787 (mi_breakpoint_modified): Likewise.
10788 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
10789 * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
10790 (ia64_hpux_handle_dld_breakpoint_1): Likewise.
10791
6b07635f
DE
107922012-01-05 Doug Evans <dje@google.com>
10793
0b30b85c
DE
10794 * dwarf2read.c (statement_prologue): Delete, unused.
10795
98714339
DE
10796 * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
10797 * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
10798
6b07635f
DE
10799 * dwarf2read.c (comp_unit_header): Delete, unused.
10800
761f4555
UW
108012012-01-05 Ulrich Weigand <uweigand@de.ibm.com>
10802
10803 * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
10804 * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
10805
2ca0b532
PA
108062012-01-05 Khoo Yit Phang <khooyp@cs.umd.edu>
10807
10808 * infrun.c (normal_stop): Don't skip calling the normal_stop
10809 observers if the thread was doing a multi-step, but stopped for
10810 some reason other than stepping.
10811
50aeff07
PA
108122012-01-05 Pedro Alves <alves.ped@gmail.com>
10813
10814 * cli/cli-decode.h: Add comments.
10815 (CMD_LIST_AMBIGUOUS): Moved to command.h
10816 (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
10817 (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
10818 (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
10819 (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
10820 (add_com, add_com_alias, add_info, add_info_alias)
10821 (complete_on_cmdlist, complete_on_enum, help_list): Remove
10822 declarations.
10823 * command.h: Add and adjust comments.
10824 (CMD_LIST_AMBIGUOUS): Moved here.
10825 (help_cmd, help_cmd_list): Delete declarations.
10826
5953832c
DE
108272012-01-04 Doug Evans <dje@google.com>
10828
e5fe5e75
DE
10829 * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
10830 All callers updated.
10831 (load_full_type_unit): Renamed from read_signatured_type_at_offset.
10832 Replace all arguments with "per_cu". All callers updated.
10833
28dee7f5
DE
10834 * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
10835
23745b47
DE
10836 * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
10837 New arg "per_cu". All callers updated.
10838
5953832c
DE
10839 Delete #if 0'd out code.
10840 * language.c (binop_result_type): Delete.
10841 (simple_type, ordered_type, same_type, integral_type): Delete.
10842 (numeric_type, character_type, string_type, boolean_type): Delete.
10843 (float_type, structured_type): Delete.
10844 * language.h: Update.
10845
0f5b7562
TT
108462012-01-04 Tom Tromey <tromey@redhat.com>
10847
10848 * python/py-value.c (valpy_binop): Initialize 'res_val'.
10849
78218f56
JB
108502012-01-04 Joel Brobecker <brobecker@adacore.com>
10851
10852 * corefile.c (close_exec_file): Delete.
10853 (reopen_exec_file): Remove commented out code that seems related
10854 to close_exec_file, which is being deleted here.
10855 * inferior.h (close_exec_file): Delete.
10856 * fork-child.c (fork_inferior): Remove call to fork_inferior.
10857
0fcd72ba
JB
108582012-01-04 Joel Brobecker <brobecker@adacore.com>
10859
10860 * ada-lang.c: #include "cli/cli-utils.h".
10861 (get_selections): Use skip_spaces.
10862 (ada_get_next_arg): Use skip_spaces and skip_to_space.
10863 (catch_ada_exception_command_split): Use skip_spaces.
10864 (ada_decode_assert_location): Likewise.
10865
1dabb4c4
JB
108662012-01-04 Joel Brobecker <brobecker@adacore.com>
10867
10868 * linespec.c (decode_line_internal): Check for C++ or Java
10869 compound constructs only if the current language is C, C++
10870 or Java.
10871
5931a2fa
JK
108722012-01-04 Jan Kratochvil <jan.kratochvil@redhat.com>
10873
10874 Revert:
10875 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10876 Joel Brobecker <brobecker@adacore.com>
10877 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
10878 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
10879 3 times.
10880 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
10881 fall through into AT_ENTRY_POINT.
10882 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
10883 DUMMY_ADDR with it.
10884 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
10885 PPC_INSN_SIZE skip to 3 times.
10886
1a2da5ee
JB
108872012-01-04 Joel Brobecker <brobecker@adacore.com>
10888
10889 * linespec.c (add_minsym): Preserve function descriptors.
10890
8645ff69
UW
108912012-01-04 Ulrich Weigand <uweigand@de.ibm.com>
10892
10893 * breakpoint.c (all_locations_are_pending): Consider locations
10894 in program spaces executing during startup pending as well.
10895
0b302171
JB
108962012-01-04 Joel Brobecker <brobecker@adacore.com>
10897
10898 Copyright year update in most files of the GDB Project.
10899
8ba098ad
JB
109002012-01-04 Joel Brobecker <brobecker@adacore.com>
10901
10902 * copyright.sh: Delete.
10903 * copyright.py: Rewrite.
10904
09c01c30
JB
109052012-01-04 Joel Brobecker <brobecker@adacore.com>
10906
10907 * gnulib/extra/update-copyright: New file, imported from gnulib.
10908
3c36c0af
JB
109092012-01-04 Joel Brobecker <brobecker@adacore.com>
10910
10911 * README (Copyright and License Notices): New section.
10912
888fe1e1
TT
109132012-01-03 Tom Tromey <tromey@redhat.com>
10914
10915 PR python/12533:
10916 * python/py-value.c (valpy_dereference, valpy_get_address
10917 valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
10918 (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
10919 (valpy_absolute, valpy_richcompare): Free intermediate values.
10920
6e681866
JB
109212011-01-03 Joel Brobecker <brobecker@adacore.com>
10922
10923 * ada-lang.c: Reformat the copyright notice.
10924
0cd09acb
JK
109252012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10926
10927 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
10928 * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
10929 (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
10930 (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
10931 Revert this part of:
10932 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10933 Build gdb directly from *.o files not using libgdb.a.
10934 * Makefile.in (COMMON_OBS): Remove solib-target.o.
10935
12c3e59c
JB
109362012-01-02 Joel Brobecker <brobecker@adacore.com>
10937
10938 * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
10939 gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
10940 Reformat the copyright header.
10941
11bf1490
JK
109422012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10943
10944 Revert this part of:
10945 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10946 Remove the gdbtui binary.
10947 * gdb.c (main): Remove args.interpreter_p initialization.
10948 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
10949 * main.h (struct captured_main_args): Remove interpreter_p.
10950
1fef196f
JB
109512012-01-02 Joel Brobecker <brobecker@adacore.com>
10952
10953 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
10954
67827812
JB
109552012-01-02 Joel Brobecker <brobecker@adacore.com>
10956
10957 * top.c (print_gdb_version): Update copyright year.
10958
a4d0b831
YQ
109592012-01-02 Yao Qi <yao@codesourcery.com>
10960
10961 * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
10962
b5914469
JK
109632012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10964 Joel Brobecker <brobecker@adacore.com>
10965
10966 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
10967 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
10968 3 times.
10969 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
10970 fall through into AT_ENTRY_POINT.
10971 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
10972 DUMMY_ADDR with it.
10973 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
10974 PPC_INSN_SIZE skip to 3 times.
10975
8da828f7
JK
109762012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10977
10978 * amd64-linux-nat.c (update_debug_registers_callback): New comment on
10979 the return value.
10980 * i386-linux-nat.c (update_debug_registers_callback): Likewise.
10981
8574e74b
JK
109822012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10983
10984 Build gdb directly from *.o files not using libgdb.a.
10985 * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
10986 (COMMON_OBS): Remove solib-target.o.
10987 (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
10988 (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
10989 (LIBGDB_OBS, libgdb.a): Move it above.
10990 * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
10991 (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
10992 (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
10993 (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
10994 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
10995 (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
10996 (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
10997 (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
10998 (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
10999 (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
11000 (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
11001 (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
11002 (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
11003 (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
11004 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
11005 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
11006 (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
11007 (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
11008 (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
11009 (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
11010 (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
11011 (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
11012 (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
11013 (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
11014 (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
11015 (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
11016 (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
11017
217bff3e
JK
110182012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11019
11020 Remove the gdbtui binary.
11021 * .gitignore (/gdbtui): Remove.
11022 * Makefile.in (TUI): Remove.
11023 (SUBDIR_TUI_OBS): Remove tui-main.o.
11024 (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
11025 (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
11026 (tui-main.o): Remove.
11027 (all_object_files): Remove tui-main.o.
11028 * NEWS: New note for the gdbtui removal.
11029 * configure: Rebuilt.
11030 * configure.ac: No longer add all-tui, clean-tui, install-tui and
11031 uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
11032 CONFIG_UNINSTALL respectively.
11033 * gdb.c (main): Remove args.interpreter_p initialization.
11034 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
11035 * main.h (struct captured_main_args): Remove interpreter_p.
11036 * tui/tui-main.c: Remove.
11037
9cdd5dbd
DE
110382012-01-01 Doug Evans <dje@google.com>
11039
bb5ed363
DE
11040 * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
11041 (dwarf2_physname, read_import_statement): Ditto.
11042 (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
11043 (process_structure_scope read_subroutine_type): Ditto.
11044 (read_typedef, load_partial_dies, read_partial_die): Ditto.
11045 (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
11046 (dwarf2_fetch_die_location_block): Ditto.
11047 (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
11048
a0f42c21
DE
11049 * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
11050 All callers updated.
11051 (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
11052 (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
11053 (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
11054
2dc860c0
DE
11055 * dwarf2read.c (load_cu): Move assert to more useful location.
11056
68dc6402
DE
11057 * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
11058 All callers updated.
11059
9cdd5dbd
DE
11060 * dwarf2read.c (dwarf2_per_objfile): Add comment.
11061 (dwarf2_elf_names): Minor reformat.
11062 (dwarf2_per_cu_data): Tweak comment.
11063 (dwarf2_read_section): Fix comment.
11064 (create_all_comp_units): Fix comment.
11065 (load_full_comp_unit): Fix comment.
11066 (process_full_comp_unit): Fix comment.
11067 (read_signatured_type): Fix comment.
11068
0c10e53e 11069For older changes see ChangeLog-2011.
c906108c
SS
11070\f
11071Local Variables:
11072mode: change-log
11073left-margin: 8
11074fill-column: 74
11075version-control: never
57da7796 11076coding: utf-8
c906108c 11077End:
This page took 2.221699 seconds and 4 git commands to generate.