Properly check indicies bigger than 4Gb
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
1b80a9fa
JK
12012-12-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2
3 * dwarf2read.c (struct dwarf2_cu): New field producer_is_gcc_lt_4_3.
4 Update the comment for checked_producer.
5 (check_producer): New forward declaration.
6 (producer_is_gcc_lt_4_3): New function.
7 (find_file_and_directory): Simulate *COMP_DIR only for gcc < 4.3.
8 (check_producer): Initialize also PRODUCER_IS_GCC_LT_4_3.
9
2f68a895
TT
102012-12-07 Tom Tromey <tromey@redhat.com>
11
12 * ada-lang.c (ada_make_symbol_completion_list): Add 'code'
13 argument, assertion.
14 * c-exp.y (typebase): Add completion productions.
15 * completer.c (expression_completer): Handle tag completion.
16 * expression.h (parse_expression_for_completion): Add argument.
17 * f-lang.c (f_make_symbol_completion_list): Add 'code'
18 argument.
19 * language.h (struct language_defn)
20 <la_make_symbol_completion_list>: Add 'code' argument.
21 * parse.c (expout_tag_completion_type, expout_completion_name):
22 New globals.
23 (mark_struct_expression): Add assertion.
24 (mark_completion_tag): New function.
25 (parse_exp_in_context): Initialize new globals.
26 (parse_expression_for_completion): Add 'code' argument. Handle
27 tag completion.
28 * parser-defs.h (mark_completion_tag): Declare.
29 * symtab.c (default_make_symbol_completion_list_break_on): Add
30 'code' argument. Update.
31 (default_make_symbol_completion_list): Add 'code' argument.
32 (make_symbol_completion_list): Update.
33 (make_symbol_completion_type): New function.
34 * symtab.h (default_make_symbol_completion_list_break_on)
35 (default_make_symbol_completion_list): Update.
36 (make_symbol_completion_type): Declare.
37
155da517
TT
382012-12-07 Tom Tromey <tromey@redhat.com>
39
40 * expression.h (parse_expression_for_completion): Rename
41 from parse_field_expression.
42 (parse_completion): Rename from in_parse_field.
43 * c-exp.y (lex_one_token): Update.
44 * completer.c (expression_completer): Update.
45 * go-exp.y (lex_one_token): Update.
46 * p-exp.y (yylex): Update.
47 * parse.c (parse_completion): Rename from in_parse_field.
48 (parse_exp_in_context): Update.
49 (parse_expression_for_completion): Rename from
50 parse_field_expression. Update.
51
4fc5d43e
TT
522012-12-07 Tom Tromey <tromey@redhat.com>
53
54 * typeprint.c (_initialize_typeprint): Set completer
55 for "whatis" and "ptype".
56
ab39020b
JB
572012-12-07 Joel Brobecker <brobecker@adacore.com>
58
59 * copyright.py (NOT_FSF_LIST): Remove duplicate entry
60 "sim/common/cgen-fpu.h". Remove invalid entries
61 "sim/common/sim-fpu.c" and "sim/mn10300/sim-main.h",
62 which actually have an FSF copyright header.
63
2cb50f9d
JB
642012-12-07 Joel Brobecker <brobecker@adacore.com>
65
66 * osf-share/AT386/cma_thread_io.h: Delete.
67 * osf-share/HP800/cma_thread_io.h: Delete.
68 * osf-share/README: Delete.
69 * osf-share/RIOS/cma_thread_io.h: Delete.
70 * osf-share/cma_attr.h: Delete.
71 * osf-share/cma_deb_core.h: Delete.
72 * osf-share/cma_debug_client.h: Delete.
73 * osf-share/cma_errors.h: Delete.
74 * osf-share/cma_handle.h: Delete.
75 * osf-share/cma_init.h: Delete.
76 * osf-share/cma_list.h: Delete.
77 * osf-share/cma_mutex.h: Delete.
78 * osf-share/cma_sched.h: Delete.
79 * osf-share/cma_semaphore_defs.h: Delete.
80 * osf-share/cma_sequence.h: Delete.
81 * osf-share/cma_stack.h: Delete.
82 * osf-share/cma_stack_int.h: Delete.
83 * osf-share/cma_tcb_defs.h: Delete.
84 * osf-share/cma_util.h: Delete.
85 * Makefile.in (HFILES_NO_SRCDIR): Remove entries for the files
86 in osf-share.
87 * config/djgpp/fnchange.lst: Remove osf-share/cma_stack_int.h entry.
88 * contrib/ari/gdb_find.sh: Remove handling of osf-share.
89 * copyright.sh (NOT_FSF_LIST): Remove "gdb/osf-share" entry.
90
0ba2eb0f
TT
912012-12-06 Pedro Alves <palves@redhat.com>
92 Tom Tromey <tromey@redhat.com>
93
94 * valops.c (value_cast): Move TYPE_CODE_VOID case earlier.
95
731145cb
TT
962012-12-06 Jens Elmenthaler <jens.elmenthaler@advantest.com>
97
98 PR mi/14741:
99 * mi/mi-cmd-var.c (varobj_update_one): Take value of
100 attribute "dynamic" and "displayhint" from printed child,
101 not the root variable.
102
eff44fea
JB
1032012-12-06 Joel Brobecker <brobecker@adacore.com>
104
105 * aix-thread.c (getthrds): Fix type of 4th parameter.
106 (get_signaled_thread): Change type of variable ktid to tid_t.
107
c90a0773
HZ
1082012-12-06 Hui Zhu <hui_zhu@mentor.com>
109
110 * dwarf2loc.c (dwarf_expr_frame_base): Add check for the return
111 value of get_frame_block.
112
5bc81a00
PM
1132012-12-05 Pierre Muller <muller@sourceware.org>
114
115 Avoid memory leaks on struct cmd_list_element.doc field.
116 * cli/cli-decode.c (add_alias_cmd): Make a copy of doc field
117 if flags contains DOC_ALLOCATED.
118 (add_setshow_cmd_full): Add DOC_ALLOCATED to set and show
119 flags.
120 (delete_cmd): Handle DOC_ALLOCATED flag.
121 * cli/cli-decode.h (DOC_ALLOCATED): New macro for use
122 in flags filed of struct cmd_list_element.
123 (struct cmd_list_element): Document new flag item.
124
b5ebcee6
DE
1252012-12-04 Doug Evans <dje@google.com>
126
127 * symmisc.c: Whitespace fixes.
128
56bf0743
KB
1292012-12-04 Karthik Bhat <kv.bhat@samsung.com>
130
131 * i386-tdep.c (i386_skip_prologue): Using symbol table
132 to find the end of prologue for clang compiled binaries.
133 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
134 to find the end of prologue for clang compiled binaries.
135
56e64610
DE
1362012-12-03 Doug Evans <dje@google.com>
137
138 * dwarf2read.c (struct dwarf2_per_objfile): Clarify comment.
139 (dw2_find_symbol_file): Delete unused local file_data.
140
270140bd
TT
1412012-12-03 Tom Tromey <tromey@redhat.com>
142
143 * ada-exp.y (write_object_renaming, write_var_or_type)
144 (write_ambiguous_var, write_var_from_sym): Make blocks const.
145 * ada-lang.c (replace_operator_with_call)
146 (find_old_style_renaming_symbol): Make blocks const.
147 * ada-lang.h (ada_find_renaming_symbol): Update.
148 (struct ada_symbol_info) <block>: Now const.
149 * breakpoint.c (watch_command_1): Update.
150 * breakpoint.h (struct watchpoint) <exp_valid_block,
151 cond_exp_valid_block>: Now const.
152 * c-exp.y (classify_inner_name, classify_name): Make block
153 argument const.
154 * expprint.c (print_subexp_standard) <OP_VAR_VALUE>: Make 'b'
155 const.
156 * expression.h (innermost_block, parse_exp_1): Update.
157 (union exp_element) <block>: Now const.
158 * gdbtypes.c (lookup_template_type, lookup_enum, lookup_union)
159 (lookup_struct): Make block argument const.
160 * gdbtypes.h (lookup_template_type): Update.
161 * go-exp.y (classify_name, classify_packaged_name)
162 (package_name_p): Make block argument const.
163 * objc-lang.c (lookup_struct_typedef): Make block argument const.
164 * objc-lang.h (lookup_struct_typedef): Update.
165 * parse.c (parse_exp_in_context, parse_exp_1)
166 (write_exp_elt_block): Make block arguments const.
167 (expression_context_block, innermost_block): Now const.
168 * parser-defs.h (write_exp_elt_block): Update.
169 (expression_context_block, innermost_block, block_found): Now
170 const.
171 * printcmd.c (struct display) <block>: Now const.
172 * symtab.h (lookup_struct, lookup_union, lookup_enum): Update.
173 * valops.c (address_of_variable): Make block argument const.
174 * value.h (value_of_variable): Update.
175 * varobj.c (struct varobj_root) <valid_block>: Now const.
176
31f56a27
YQ
1772012-11-30 Yao Qi <yao@codesourcery.com>
178
179 * breakpoint.c (print_one_breakpoint_location): Indent code.
180
556ec64d
YQ
1812012-11-30 Yao Qi <yao@codesourcery.com>
182
183 * breakpoint.c (print_one_breakpoint_location): Combine two
184 blocks handling 'hit count' together.
185
3d3fef6b
YQ
1862012-11-30 Yao Qi <yao@codesourcery.com>
187
188 * infrun.c (error_is_running, ensure_not_running): Move them
189 to ...
190 * infcmd.c (error_is_running, ensure_not_running): ... here.
191 Make them 'static'.
192 * inferior.h: Remove declarations of error_is_running and
193 ensure_not_running.
194
7cd12a76
YQ
1952012-11-30 Yao Qi <yao@codesourcery.com>
196
197 * tic6x-linux-tdep.c (tic6x_register_sigcontext_offset): Don't
198 check REGNUM >= 0.
199
7a76f5b8
YQ
2002012-11-30 Yao Qi <yao@codesourcery.com>
201
202 * infrun.c: Make the declaration of 'init_infwait_state'
203 static.
204 (init_infwait_state): Make it 'static'.
205
b1209b03
UW
2062012-11-29 Ulrich Weigand <uweigand@de.ibm.com>
207
208 * python/python.c (finalize_python): Cast unused PyGILState_Ensure
209 return value to void to avoid compiler warning.
210
ea5e6b0e
UW
2112012-11-29 Ulrich Weigand <uweigand@de.ibm.com>
212
213 * opencl-lang.c (opencl_print_type): New function.
214 (opencl_language_arch_info): Install it.
215
a93478ea
TT
2162012-11-29 Tom Tromey <tromey@redhat.com>
217
218 * contrib/ari/gdb_ari.sh: Remove rules for xasprintf and
219 xvasprintf.
220 * common/common-utils.c (xasprintf, xvasprintf): Remove.
221 * common/common-utils.h (xasprintf, xvasprintf): Remove.
222
ac4a2da4
JG
2232012-11-29 Jerome Guitton <guitton@adacore.com>
224
225 * ada-lang.c (ada_is_interface_tag): New function.
226 (ada_is_ignored_field): Add interface tags to the list
227 of ignored fields.
228
b50d69b5
JG
2292012-11-29 Jerome Guitton <guitton@adacore.com>
230
231 * ada-lang.h (ada_tag_value_at_base_address): New function
232 declaration.
233 * ada-lang.c (is_ada95_tag, ada_tag_value_at_base_address):
234 New functions.
235 (ada_to_fixed_type_1, ada_evaluate_subexp): Let ada_tag_base_address
236 relocate the class-wide value if need be.
237 (ada_value_struct_elt, ada_value_ind, ada_coerce_ref):
238 Let ada_tag_value_at_base_address relocate the class-wide access/ref
239 before dereferencing it.
240 * ada-valprint.c (ada_val_print_1): Relocate to base address
241 before displaying the content of an interface-wide ref.
242
ca1f964d
JG
2432012-11-29 Jerome Guitton <guitton@adacore.com>
244
245 * ada-lang.c (ada_evaluate_subexp): Unwrap only in EVAL_NORMAL.
246
38d03cf1 2472012-11-29 Joel Brobecker <brobecker@adacore.com>
248
249 GDB 7.5.1 released.
250
f5682501
YQ
2512012-11-29 Yao Qi <yao@codesourcery.com>
252 Tom Tromey <tromey@redhat.com>
253
254 * eval.c (evaluate_subexp_standard): Get the correct pointer
255 type for TYPE_CODE_MEMBERPTR.
256
f359d716
EBM
2572012-11-28 Edjunior Machado <emachado@linux.vnet.ibm.com>
258
259 * rs6000-tdep.c (gdb_print_insn_powerpc): Remove info->mach checking,
260 since now it is being done by binutils' powerpc_init_dialect().
261
0cd61f44
TT
2622012-11-28 Tom Tromey <tromey@redhat.com>
263
264 PR gdb/14290:
265 * solib-darwin.c (gdb_bfd_mach_o_fat_extract): New function.
266 (darwin_solib_get_all_image_info_addr_at_init, darwin_bfd_open):
267 Use it.
268 * gdb_bfd.h (gdb_bfd_mark_parent): Declare.
269 * gdb_bfd.c (gdb_bfd_mark_parent): New function.
270 (gdb_bfd_openr_next_archived_file): Use it.
271
945bf713
MM
2722012-11-28 Markus Metzger <markus.t.metzger@intel.com>
273
274 * configure.ac: Check for linux/perf_event.h.
275 * config.in: Regenerated.
276 * configure: Regenerated.
277
7e20dfcd
YQ
2782012-11-28 Yao Qi <yao@codesourcery.com>
279
280 * breakpoint.c (_initialize_breakpoint): Call add_alias_cmd to
281 abbreviate 'delete tracepoints' to 'delete tr'.
282 * corefile.c (_initialize_core): Call add_alias_cmd to
283 abbreviate 'set gnutarget' to 'set g'.
284 * value.c (_initialize_values): Call add_alias_cmd to abbreviate
285 'show convenience' to 'show conv'.
286
b8293cc8
JB
2872012-11-27 Joel Brobecker <brobecker@adacore.com>
288
289 * sparc-sol2-nat.c (supply_gregset): Fix first parameter in
290 call to sparc_supply_fpregset.
291 (fill_fpregset): Fix first parameter in call to
292 sparc_collect_fpregset.
293
8c2b9656
YQ
2942012-11-27 Daniel Jacobowitz <dan@codesourcery.com>
295 Kazu Hirata <kazu@codesourcery.com>
296 Yao Qi <yao@codesourcery.com>
297
298 * objfiles.c (init_entry_point_info): Call
299 gdbarch_convert_from_func_ptr_addr and
300 gdbarch_addr_bits_remove here ...
301 (entry_point_address_query): ... instead of here.
302 * solib-svr4.c (exec_entry_point): Call
303 gdbarch_addr_bits_remove.
304 * symfile.c (generic_load): Call gdbarch_addr_bits_remove on
305 the entry address.
306
5edf51fe
YQ
3072012-11-27 Daniel Jacobowitz <dan@codesourcery.com>
308 Yao Qi <yao@codesourcery.com>
309
310 * eval.c (evaluate_subexp_standard): Add handling of
311 TYPE_CODE_MEMBERPTR when calling functions. Correct the
312 result of ptype for calling a TYPE_CODE_METHODPTR.
313
ca242aad
YQ
3142012-11-27 Yao Qi <yao@codesourcery.com>
315
316 * symtab.c (symtab_symbol_info): Fix a -Wformat-extra-args
317 warning.
318 Add i18n markup.
319
608e2dbb
TT
3202012-11-26 Alexander Larsson <alexl@redhat.com>
321 Jan Kratochvil <jan.kratochvil@redhat.com>
322 Tom Tromey <tromey@redhat.com>
323
324 * NEWS: Mention mini debuginfo feature.
325 * minidebug.c: New file.
326 * configure.ac: Check for lzma.
327 * configure, config.in: Rebuild.
328 * Makefile.in (LIBLZMA): New variable.
329 (CLIBS): Include LIBLZMA.
330 (SFILES): Mention minidebug.c.
331 (COMMON_OBS): Mention minidebug.o.
332 * symfile.c (read_symbols): New function.
333 (syms_from_objfile, reread_symbols): Call it.
334 * symfile.h (find_separate_debug_file_in_section): Declare.
335
17d6efc4
JB
3362012-11-26 Keith Seitz <keiths@redhat.com>
337
338 * exec.c (exec_file_attach): Move cleanup after verifying that
339 memory has in fact been allocated.
340
210bbc17
TT
3412012-11-26 Tom Tromey <tromey@redhat.com>
342
343 * ada-lang.c (user_select_syms): Use SYMBOL_SYMTAB.
344 * dwarf2read.c (dw2_find_symbol_file, fixup_go_packaging): Use
345 SYMBOL_SYMTAB.
346 * skip.c (skip_info): Use SYMBOL_SYMTAB.
347
0270a750
PA
3482012-11-26 Maxime Villard <rustyBSD@gmx.fr>
349 Pedro Alves <palves@redhat.com>
350
351 * common/linux-osdata.c (linux_xfer_osdata_fds): Decrease buffer
352 size parameter passed to readlink by one byte.
353 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
354 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
355 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
356 * inf-child.c (inf_child_fileio_readlink): Decrease local buffer's
357 size by one byte.
358
9c16be9a
YQ
3592012-11-26 Yao Qi <yao@codesourcery.com>
360
361 * f-valprint.c (f77_create_arrayprint_offset_tbl): Remove
362 extraneous parentheses.
363
e6f3fa52
YQ
3642012-11-26 Yao Qi <yao@codesourcery.com>
365
366 * remote.c (remote_start_remote): Typo fix.
367
db75c717
DM
3682012-11-23 David S. Miller <davem@davemloft.net>
369
370 * sparc-tdep.h (struct sparc_fpregset): New data structure.
371 (sparc32_sunos4_fpregset, sparc32_bsd_fpregset,
372 sparc32_sol2_fpregset): Declare new globals.
373 (sparc32_supply_fpregset, sparc32_collect_fpregset): Add new
374 'fpregset' argument.
375 * sparc64-tdep.h (sparc64_supply_fpregset,
376 sparc64_collect_fpregset): Likewise.
377 (sparc64_sol2_fpregset, sparc64_bsd_fpregset): Declare new
378 globals.
379 * sparc-nat.h (struct sparc_fpregset): Add forward declaration.
380 (sparc_fpregset): Declare new global.
381 (sparc_supply_fpregset, sparc_collect_fpregset): Add new
382 'fpregset' argument.
383 * sparc-linux-nat.c (supply_fpregset): Pass sparc_fpregset down
384 into handler.
385 (fill_fpregset): Likewise.
386 (_initialize_sparc_linux_nat): Set sparc_fpregset to
387 sparc32_bsd_fpregset.
388 * sparc-linux-tdep.c (sparc32_linux_supply_core_fpregset): Pass
389 sparc32_bsd_fpregset down into handler.
390 (sparc32_linux_collect_core_fpregset): Likewise.
391 * sparc-nat.c (sparc_fpregset): Define.
392 (sparc_supply_fpregset): Add 'fpregset' argument.
393 (sparc_collect_fpregset): Likewise.
394 (sparc_fetch_inferior_registers): Pass sparc_fpregset down
395 into fpregset handler.
396 (sparc_store_inferior_registers): Likewise.
397 (_initialize_sparc_nat): Set sparc_fpregset to
398 sparc32_sunos4_fpregset if NULL.
399 * sparc-sol2-nat.c (supply_gregset): Pass sparc_sol2_fpregset
400 down into handler.
401 (fill_fpregset): Likewise.
402 * sparc-sol2-tdep.c (sparc32_sol2_fpregset): Define.
403 * sparc-tdep.c (sparc32_supply_fpregset): Add fpregset arg and
404 use it to compute offsets.
405 (sparc32_collect_fpregset): Likewise.
406 (sparc32_sunos4_fpregset, sparc32_bsd_fpregset): Define.
407 * sparc64-linux-nat.c (supply_fpregset): Pass sparc64_bsd_fpregset
408 down into handler.
409 (fill_fpregset): Likewise.
410 * sparc64-linux-tdep.c (sparc64_linux_supply_core_fpregset):
411 Likewise.
412 (sparc64_linux_collect_core_fpregset): Likewise.
413 * sparc64-sol2-tdep.c (sparc64_sol2_fpregset): Define.
414 * sparc64-tdep.c (sparc64_supply_fpregset): Add fpregset arg and
415 use it to compute offsets.
416 (sparc64_collect_fpregset): Likewise.
417 (sparc64_bsd_fpregset): Define.
418 * sparc64fbsd-tdep.c (sparc64fbsd_supply_fpregset): Padd
419 sparc64_bsd_fpregset down into handler.
420 (sparc64fbsd_collect_fpregset): Likewise.
421 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Add fpregset arg
422 and pass sparc{32,64}_bsd_fpregset down into handler.
423 (sparc64nbsd_collect_fpregset): Likewise.
424 * sparc64nbsd-tdep.c (sparc64nbsd_supply_fpregset): Pass
425 sparc64_bsd_fpregset down into handler.
426 * sparc64obsd-tdep.c (sparc64obsd_supply_gregset): Likewise.
427 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Set sparc_fpregset
428 to sparc32_bsd_fpregset.
429 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Pass
430 sparc32_bsd_fpregset down into sparc32_supply_fpregset.
431 (sparc32nbsd_supply_fpregset): Likewise.
432
cfcad218
TT
4332012-11-21 Tom Tromey <tromey@redhat.com>
434
435 * gdbtypes.h (struct cplus_struct_type) <localtype_ptr>: Remove
436 field.
437 (TYPE_LOCALTYPE_PTR, TYPE_LOCALTYPE_FILE, TYPE_LOCALTYPE_LINE):
438 Remove.
439 * c-typeprint.c (c_type_print_base): Update.
440
85ddcc70
YQ
4412012-11-21 Yao Qi <yao@codesourcery.com>
442
443 PR tdep/7438
444 * gdbarch.sh (smash_text_address): Remove.
445 * gdbarch.c, gdbarch.h: Regenerate.
446 * arm-tdep.c (arm_smash_text_address): Remove.
447 (arm_gdbarch_init): Don't call set_gdbarch_smash_text_address.
448 * hppa-tdep.c (hppa_smash_text_address): Remove.
449 (hppa_addr_bits_remove): Rename from hppa_smash_text_address.
450 (hppa_gdbarch_init): Don't call set_gdbarch_smash_text_address.
451 Caller update.
452 * coffread.c (coff_symtab_read): Caller update.
453 * dbxread.c (process_one_symbol): Likewise.
454 * elfread.c (record_minimal_symbol): Likewise.
455 * somread.c (som_symtab_read): Likewise.
456
11522069
PM
4572012-11-20 Pierre Muller <muller@sourceware.org>
458
459 ARI fixes: sprintf rule.
460 Replace sprintf function calls for char arrays by
461 calls to xsnprintf calls.
462 * arm-tdep.c (arm_push_dummy_call): Replace sprintf by xsnprintf.
463 (arm_dwarf_reg_to_regnum, arm_return_value): Ditto.
464 (arm_neon_quad_read, arm_pseudo_read): Ditto.
465 (arm_neon_quad_write, arm_pseudo_write): Ditto.
466 * breakpoint.c (condition_completer): Ditto.
467 (create_tracepoint_from_upload): Ditto.
468 * dwarf2read.c (file_full_name): Ditto.
469 * gcore.c (gcore_command): Ditto.
470 * gnu-nat.c (proc_string, gnu_pid_to_str): Ditto.
471 * go32-nat.c (go32_sysinfo): Ditto.
472 * interps.c (interp_set): Ditto.
473 * m32c-tdep.c (make_types): Ditto.
474 * ppc-linux-nat.c (fetch_register, store_register): Ditto.
475 * remote-m32r-sdi.c (m32r_open): Ditto.
476 * sol-thread.c (td_err_string): Ditto.
477 (td_state_string, solaris_pid_to_str): Ditto.
478 * symtab.c (gdb_mangle_name): Ditto.
479 * cli/cli-script.c (execute_control_command): Ditto.
480 (define_command, document_command): Ditto.
481 * tui/tui-io.c (tui_rl_display_match_list): Ditto.
482 * tui/tui-stack.c (tui_make_status_line): Ditto.
483 * tui/tui-win.c (tui_update_gdb_sizes): Ditto.
484
ace21957
MF
4852012-11-20 Mike Frysinger <vapier@gentoo.org>
486
487 * cli/cli-decode.c (complete_on_cmdlist): Add a fourth arg and check
488 it when looking at ptr->func.
489 * command.h (complete_on_cmdlist): Add a fourth arg.
490 * completer.c (complete_line_internal): Add local ignore_help_classes,
491 and set it to 1 when reason is not handle_help. Pass this down to
492 lookup_cmd_1 and complete_on_cmdlist.
493
ec6632d7
TT
4942012-11-20 Tom Tromey <tromey@redhat.com>
495
496 * completer.c (count_struct_fields): Remove.
497 (expression_completer): Don't call count_struct_fields.
498
ef37bb07
PA
4992012-11-20 Pedro Alves <palves@redhat.com>
500
501 * annotate.c (breakpoints_changed): Rename to ...
502 (annotate_breakpoints_changed): ... this.
503 (annotate_stopped, breakpoint_changed): Adjust caller.
504 * annotate.h (breakpoints_changed): Rename to ...
505 (annotate_breakpoints_changed): ... this.
506 * breakpoint.c (set_breakpoint_condition, breakpoint_set_commands)
507 (do_map_commands_command, init_raw_breakpoint, clear_command)
508 (set_ignore_count, enable_breakpoint_disp): Adjust callers.
509
b245bdfc
DM
5102012-11-20 David S. Miller <davem@davemloft.net>
511
512 * common/linux-osdata.c (get_number_of_cpu_cores): Delete.
513 (linux_xfer_osdata_processes): Fetch _SC_NPROCESSORS_ONLN via
514 sysconf.
515 (get_cores_used_by_process): Update comment.
516
bd0cfc4d
YQ
5172012-11-20 Yao Qi <yao@codesourcery.com>
518
519 * objfiles.c (init_entry_point_info): Remove trailing spaces.
520
de9f1b68
YQ
5212012-11-20 Yao Qi <yao@codesourcery.com>
522
523 * infrun.c (handle_inferior_event): Pass 'saved_singlestep_ptid'
524 to deprecated_context_hook.
525
8870954f
YQ
5262012-11-19 Yao Qi <yao@codesourcery.com>
527
528 * infrun.c (infwait_state): Add static.
529
8dea366b
KS
5302012-11-16 Keith Seitz <keiths@redhat.com>
531
532 PR c++/13615
533 * cp-namespace.c (cp_lookup_symbol_in_namespace): Add SEARCH
534 parameter and pass it to lookup_symbol_file.
535 (cp_lookup_symbol_imports): Tell cp_lookup_symbol_in_namespace
536 to search base classes.
537 (cp_lookup_symbol_namespace): Likewise.
538 (lookup_namespace_scope): Likewise.
539 (lookup_symbol_file): Add SEARCH parameter.
540 If SEARCH is non-zero and no symbol is found, lookup the class
541 and call cp_lookup_nested_symbol.
542 (find_symbol_in_baseclass): New function.
543 (cp_lookup_nested_symbol): Do not let
544 cp_lookup_symbol_in_namespace search through base classes.
545 Do that later when there is no global symbol match.
546
e64e0392
DE
5472012-11-16 Doug Evans <dje@google.com>
548
549 * main.c (gdb_datadir_provided): New static global.
550 (get_init_files): If --data-directory is provided,
551 and SYSTEM_GDBINIT lives in data-directory, look for it there.
552 * NEWS: Mention it.
553
8bdce1ff
PM
5542012-11-15 Pierre Muller <muller@sourceware.org>
555
556 ARI fixes: move gdb_wait and gdb_stat headers to common subdirectory.
557 * gdb_stat.h: Delete. Moved to common directory.
558 * common/gdb_stat.h: New file.
559 * gdb_wait.h: Delete. Moved to common directory.
560 * common/gdb_wait.h: New file.
561 * Makefile.in (H_FILES_NO_SRC): Adapt to new header
562 location.
563 * contrib/ari/gdb_ari.sh (wait.h rule): Adapt to new gdb_wait.h
564 location.
565 (stat.h rule): Adapt to new gdb_stat.h location.
566 * common/linux-osdata.c: Include "gdb_stat.h" header instead of
567 <sys/stat.h> header.
568 * common/linux-ptrace.c: Include "gdb_wait.h" header instead of
569 <sys/wait.h> header.
570
3a731e0f
PM
5712012-11-15 Pierre Muller <muller@sourceware.org>
572
573 * configure.ac (AC_HEADER_STAT): Remove.
574 * gdb_stat.h (STAT_MACROS_BROKEN): Remove macro use
575 and corresponding code.
576 * configure: Regenerate.
577 * config.in: Regenerate.
578
2792b94d
PM
5792012-11-15 Pierre Muller <muller@sourceware.org>
580
581 ARI xasprintf rule fixes.
582 * dwarf2read.c (create_dwo_in_dwp): Use xstrprintf function
583 instead of xasprintf.
584 (open_and_init_dwp_file): Ditto.
585
5e34c6c3
LM
5862012-11-14 Luis Machado <lgustavo@codesourcery.com>
587
588 * value.c (value_actual_type): Check for TYPE_CODE_STRUCT
589 target types.
590
e68227b9
TT
5912012-11-14 Tom Tromey <tromey@redhat.com>
592
593 * configure, config.in: Rebuild.
594 * configure.ac: Don't check for ctype.h, time.h.
595 * expprint.c: Don't use HAVE_CTYPE_H.
596
aff68abb
TT
5972012-11-13 Tom Tromey <tromey@redhat.com>
598
599 * gdbarch.h, gdbarch.c: Rebuild.
600 * gdbarch.sh (set_target_gdbarch): Rename from
601 deprecated_target_gdbarch_select_hack.
602 * arch-utils.c (gdbarch_update_p): Update.
603 (set_gdbarch_from_file): Update.
604
84277139 6052012-11-14 Pierre Muller <muller@sourceware.org>
f7c93334
PM
606
607 * MAINTAINERS (Responsible Maintainers/misc): Add myself
608 as responsible of contrib/ari directory.
609
2ae28aa9
YQ
6102012-11-14 Daniel Jacobowitz <dan@codesourcery.com>
611 Yao Qi <yao@codesourcery.com>
612
613 * arm-tdep.c (arm_addr_bits_remove): Do not adjust the low
614 bit of EXC_RETURN.
615 (arm_m_exception_cache, arm_m_exception_this_id)
616 (arm_m_exception_prev_register, arm_m_exception_unwind_sniffer)
617 (arm_m_exception_unwind): New.
618 (arm_gdbarch_init): Register arm_m_exception_unwind.
619
62747a60
TT
6202012-11-13 Giuseppe Montalto <giuseppe.montalto@st.com>
621
622 * mi/mi-main.c (mi_cmd_data_write_memory): Handle additional
623 parameter COUNT, for pattern filling of memory regions.
624 * NEWS: Mention it.
625
4cd29721
MM
6262012-11-13 Markus Metzger <markus.t.metzger@intel.com>
627
628 * disasm.h (DISASSEMBLY_FILENAME): New macro.
629 * disasm.c (do_mixed_source_and_assembly): Pass filename flag on
630 to print_source_lines ().
631 * symtab.h (PRINT_SOURCE_LINES_FILENAME): New print source lines
632 flag.
633 * source.c (print_source_lines_base): Prefix source line with
634 filename if PRINT_SOURCE_LINES_FILENAME flag is set.
635
dfaae886
MM
6362012-11-13 Markus Metzger <markus.t.metzger@intel.com>
637
638 * symtab.h (print_source_lines_flags): New enum.
639 * source.c (print_source_lines_base): Change noerror to flags.
640 (print_source_lines): Change noerror to flags.
641
08850b56
PM
6422012-11-13 Pierre Muller <muller@sourceware.org>
643
644 ARI fixes: Avoid sprintf function use rule.
645 * charset.c (convert_between_encodings): Use xsnprintf.
646 * cli-out.c (cli_field_int): Likewise.
647 * cp-namespace.c (cp_lookup_nested_symbol): Likewise.
648 * expprint.c (op_name_standard): Likewise.
649 * frv-tdep.c (set_variant_num_gprs): Likewise.
650 (set_variant_num_fprs): Likewise.
651 * m68hc11-tdep.c (m68hc11_initialize_register_info): Likewise.
652 * nto-tdep.c (nto_find_and_open_solib): Likewise.
653 (nto_init_solib_absolute_prefix): Likewise.
654 * source.c (init_source_path): Likewise.
655 (print_source_lines_base): Likewise.
656 * valprint.c (print_wchar): Likewise.
657 * mi/mi-out.c (mi_field_int): Likewise.
658 windows-nat.c (windows_pid_to_exec_file): Likewise.
659 (windows_create_inferior): Likewise.
660 (_initialize_check_for_gdb_ini): Likewise.
661
ca9d61b9
JB
6622012-11-12 Joel Brobecker <brobecker@adacore.com>
663
664 * frame.h (deprecated_frame_register_read): Renames
665 frame_register_read.
666 * frame.c (deprecated_frame_register_read): Renames
667 frame_register_read. Update all callers.
668 * i386-tdep.c: Update all callers of frame_register_read.
669 * infcmd.c: Likewise.
670 * jit.c: Likewise.
671 * mips-tdep.c: Likewise.
672 * mt-tdep.c: Likewise.
673 * sh64-tdep.c: Likewise.
674
b2c7d45a
JB
6752012-11-12 Joel Brobecker <brobecker@adacore.com>
676
677 * frame.h (frame_register_read): Remove FIXME comment.
678 * frame.c (frame_register_read): Add suggestion explaining
679 which function to use in place of this one.
680
31594462
TT
6812012-11-12 Tom Tromey <tromey@redhat.com>
682
683 * python/python.c (start_type_printers): Initialize 'result_obj'.
684
18a9fc12
TT
6852012-11-12 Tom Tromey <tromey@redhat.com>
686
687 * NEWS: Update.
688 * data-directory/Makefile.in (PYTHON_FILES): Add
689 type_printers.py.
690 * python/lib/gdb/command/type_printers.py: New file.
691 * python/lib/gdb/command/types.py (TypePrinter): New class.
692 (_get_some_type_recognizers, get_type_recognizers,
693 apply_type_recognizers, register_type_printer): New
694 functions.
695 * python/py-objfile.c (objfile_object) <type_printers>: New
696 field.
697 (objfpy_dealloc): Decref new field.
698 (objfpy_new): Set new field.
699 (objfpy_get_type_printers, objfpy_set_type_printers): New
700 functions.
701 (objfile_to_objfile_object): Set new field.
702 (objfile_getset): Add "type_printers".
703 * python/py-progspace.c (pspace_object) <type_printers>: New
704 field.
705 (pspy_dealloc): Decref new field.
706 (pspy_new): Set new field.
707 (pspy_get_type_printers, pspy_set_type_printers): New functions.
708 (pspace_to_pspace_object): Set new field.
709 (pspace_getset): Add "type_printers".
710 * python/python.c (start_type_printers, apply_type_printers,
711 free_type_printers): New functions.
712 (_initialize_python): Set gdb.type_printers.
713 * python/python.h (start_type_printers, apply_type_printers,
714 free_type_printers): Declare.
715 * typeprint.c (type_print_raw_options, default_ptype_flags):
716 Update for new fields.
717 (do_free_global_table, create_global_typedef_table,
718 find_global_typedef): New functions.
719 (find_typedef_in_hash): Use find_global_typedef.
720 (whatis_exp): Use create_global_typedef_table. Change cleanup
721 handling.
722 * typeprint.h (struct type_print_options) <global_typedefs,
723 global_printers>: New fields.
724
bd69fc68
TT
7252012-11-12 Tom Tromey <tromey@redhat.com>
726
727 * c-typeprint.c (find_typedef_for_canonicalize,
728 print_name_maybe_canonical): New functions.
729 (c_print_type): Look up type name.
730 (cp_type_print_derivation_info): Add flags argument. Use
731 print_name_maybe_canonical.
732 (cp_type_print_method_args): Add wrapping.
733 (c_type_print_varspec_prefix): Use print_name_maybe_canonical.
734 (c_type_print_template_args): New function.
735 (c_type_print_base): Change wrapping. Use
736 print_name_maybe_canonical.
737 <TYPE_CODE_STRUCT>: Possibly create a typedef hash, and do
738 type name lookups.
739 * gdbtypes.c (types_equal): No longer static.
740 * gdbtypes.h (types_equal): Declare.
741 * typeprint.c (type_print_raw_options, default_ptype_flags):
742 Update.
743 (struct typedef_hash_table): New.
744 (hash_typedef_field, eq_typedef_field,
745 recursively_update_typedef_hash, add_template_parameters,
746 create_typedef_hash, free_typedef_hash, do_free_typedef_hash,
747 make_cleanup_free_typedef_hash, copy_typedef_hash_element,
748 copy_typedef_hash, find_typedef_in_hash): New functions.
749 * typeprint.h (struct type_print_options) <local_typedefs>:
750 New field.
751 (recursively_update_typedef_hash, add_template_parameters,
752 create_typedef_hash, free_typedef_hash,
753 make_cleanup_free_typedef_hash, copy_typedef_hash,
754 find_typedef_in_hash): Declare.
755
2621e0fd
TT
7562012-11-12 Tom Tromey <tromey@redhat.com>
757
758 * cp-support.c (inspect_type,
759 replace_typedefs_qualified_name, replace_typedefs): Add
760 finder, data arguments. Call as needed.
761 (cp_canonicalize_string_full): New function.
762 (cp_canonicalize_string_no_typedefs): Rewrite.
763 * cp-support.h (canonicalization_ftype): New typedef.
764 (cp_canonicalize_string_full): Declare.
765
53342f27
TT
7662012-11-12 Tom Tromey <tromey@redhat.com>
767
768 * NEWS: Update.
769 * c-typeprint.c (c_type_print_base): Handle print_method and
770 print_typedefs flags.
771 * gdbcmd.h (setprinttypelist, showprinttypelist): Declare.
772 * python/py-type.c (typy_str): Use LA_PRINT_TYPE and raw
773 options.
774 * typeprint.c (type_print_raw_options, default_ptype_flags):
775 Update for new field.s
776 (whatis_exp): Parse flags. Use LA_PRINT_TYPE.
777 (setprinttypelist, showprinttypelist, print_methods,
778 print_typedefs): New globals.
779 (set_print_type, show_print_type, set_print_type_methods,
780 show_print_type_methods, set_print_type_typedefs,
781 show_print_type_typedefs): New functions.
782 (_initialize_typeprint): Update documentation. Add "print
783 type methods" and "print type typedefs" parameters.
784 * typeprint.h (struct type_print_options) <print_methods,
785 print_typedefs>: New fields.
786
6c8702eb
TT
7872012-11-12 Tom Tromey <tromey@redhat.com>
788
789 * c-typeprint.c (cp_type_print_method_args): Add flags
790 argument. Call c_print_type, not type_print.
791 (c_type_print_base): Call c_print_type, not type_print.
792 Update.
793
79d43c61
TT
7942012-11-12 Tom Tromey <tromey@redhat.com>
795
796 * ada-lang.c (user_select_syms, ada_print_subexp): Pass flags
797 to type-printing functions.
798 * ada-lang.h (ada_print_type): Add argument.
799 * ada-typeprint.c (print_array_type, print_variant_clauses,
800 print_variant_part, print_selected_record_field_types,
801 print_record_field_types, print_unchecked_union_type,
802 print_func_type, ada_print_type): Add flags argument.
803 (ada_print_typedef): Update.
804 * c-exp.y (OPERATOR conversion_type_id): Update.
805 * c-lang.h (c_print_type, c_type_print_base): Update.
806 * c-typeprint.c (c_print_type, c_type_print_varspec_prefix,
807 c_type_print_modifier, c_type_print_args,
808 c_type_print_varspec_suffix, c_type_print_base): Add flags
809 argument.
810 * cp-valprint.c (cp_print_class_member): Update.
811 * dwarf2read.c (dwarf2_compute_name): Update.
812 * f-lang.h (f_print_type): Add argument.
813 * f-typeprint.c (f_print_type): Add flags argument.
814 * gnu-v3-abi.c (gnuv3_print_method_ptr): Update.
815 * go-lang.h (go_print_type): Add argument.
816 * go-typeprint.c (go_print_type): Add flags argument.
817 * jv-lang.h (java_print_type): Add argument.
818 * jv-typeprint.c (java_type_print_base, java_print_type): Add
819 flags argument.
820 * language.c (unk_lang_print_type): Add flags argument.
821 * language.h (struct language_defn) <la_print_type>: Add flags
822 argument.
823 (LA_PRINT_TYPE): Likewise.
824 * m2-lang.h (m2_print_type): Add argument.
825 * m2-typeprint.c (m2_print_type, m2_range, m2_typedef,
826 m2_array, m2_pointer, m2_ref, m2_procedure, m2_long_set,
827 m2_unbounded_array, m2_record_fields): Add flags argument.
828 * p-lang.h (pascal_print_type, pascal_type_print_base,
829 pascal_type_print_varspec_prefix): Add argument.
830 * p-typeprint.c (pascal_print_type,
831 pascal_type_print_varspec_prefix, pascal_print_func_args,
832 pascal_type_print_varspec_suffix, pascal_type_print_base): Add
833 flags argument.
834 * symmisc.c (print_symbol): Update.
835 * typeprint.c (type_print_raw_options, default_ptype_flags):
836 New globals.
837 (type_print): Update.
838 * typeprint.h (struct type_print_options): New.
839 (type_print_raw_options): Declare.
840 (c_type_print_varspec_suffix, c_type_print_args): Add argument.
841
cf4ded82
KS
8422012-11-10 Keith Seitz <keiths@redhat.com>
843
844 * breakpoint.c (clear_command): Add cleanup for
845 sals.sals if an argument is given.
846
847 * linespec.c (parse_linespec): Do cleanups after
848 parsing a convenience variable.
849
0d63ecda
KS
8502012-11-10 Keith Seitz <keiths@redhat.com>
851
852 PR gdb/14288
853 * c-valprint.c (c_val_print): For character arrays
854 with "print null" option on, print ellipses if
855 the output is truncated and the next character is not \000.
856 * valprint.c (MAX_WCHARS): Define.
857 (WCHAR_BUFLEN): Likewise.
858 (WCHAR_BUFLEN_MAX): Likewise.
859 (struct converted_character): New structure.
860 (count_next_character): New function.
861 (print_converted_chars_to_obstack): New function.
862 (generic_printstr): Rewrite using count_next_character
863 and print_converted_chars_to_obstack.
864
9b8d6827
SC
8652012-11-10 Stephane Carrez <Stephane.Carrez@gmail.com>
866
867 * tui/tui.c (tui_rl_command_key): Switch to TUI_ONE_COMMAND_MODE
868 while executing the gdb command.
869 (tui_rl_startup_hook): Do not switch back to TUI_SINGLE_KEY_MODE if we
870 are called from prompt_for_continue.
871 * tui/tui-io.c (tui_redisplay_readline): Likewise.
872
e840f632
SC
8732012-11-10 Stephane Carrez <Stephane.Carrez@gmail.com>
874
875 PR tui/9584
876
877 * tui/tui.c (tui_rl_command_key): Do not call execute_command
878 but insert the command to execute in readline's buffer.
879
f5656ead
TT
8802012-11-09 Tom Tromey <tromey@redhat.com>
881
882 * gdbarch.sh (target_gdbarch): Remove macro.
883 (get_target_gdbarch): Rename to target_gdbarch.
884 * gdbarch.c, gdbarch.h: Rebuild.
885 * ada-tasks.c, aix-thread.c, amd64-linux-nat.c, arch-utils.c,
886 arm-tdep.c, auxv.c, breakpoint.c, bsd-uthread.c, corefile.c,
887 darwin-nat-info.c, dcache.c, dsrec.c, exec.c, fbsd-nat.c,
888 filesystem.c, gcore.c, gnu-nat.c, i386-darwin-nat.c, i386-nat.c,
889 ia64-vms-tdep.c, inf-ptrace.c, infcmd.c, jit.c, linux-nat.c,
890 linux-tdep.c, linux-thread-db.c, m32r-rom.c, memattr.c,
891 mep-tdep.c, microblaze-tdep.c, mips-linux-nat.c,
892 mips-linux-tdep.c, mips-tdep.c, monitor.c, moxie-tdep.c,
893 nto-procfs.c, nto-tdep.c, ppc-linux-nat.c, proc-service.c,
894 procfs.c, progspace.c, ravenscar-thread.c, record.c,
895 remote-m32r-sdi.c, remote-mips.c, remote-sim.c, remote.c,
896 rl78-tdep.c, rs6000-nat.c, rx-tdep.c, s390-nat.c, sol-thread.c,
897 solib-darwin.c, solib-dsbt.c, solib-frv.c, solib-ia64-hpux.c,
898 solib-irix.c, solib-pa64.c, solib-som.c, solib-spu.c,
899 solib-sunos.c, solib-svr4.c, solib.c, spu-linux-nat.c,
900 spu-multiarch.c, spu-tdep.c, symfile-mem.c, symfile.c, symtab.c,
901 target-descriptions.c, target.c, target.h, tracepoint.c,
902 windows-nat.c, windows-tdep.c, xcoffsolib.c, cli/cli-dump.c,
903 common/agent.c, mi/mi-interp.c, python/py-finishbreakpoint.c,
904 python/py-inferior.c, python/python.c: Update.
905
ed8a1c2d
AB
9062012-11-09 Andrew Burgess <aburgess@broadcom.com>
907
908 * source.c (print_source_lines_base): Add fullname field giving
909 full path to file in mi output.
910 * NEWS: Mention the new fullname field.
911
504b36fd
YQ
9122012-11-09 Yao Qi <yao@codesourcery.com>
913
914 * NEWS: Mention the fix to the ambiguity of 'fo' command.
915
9107fc8d
PA
9162012-11-09 Pedro Alves <palves@redhat.com>
917
918 PR gdb/14306
919
920 * infrun.c: Include target-descriptions.h.
921 (follow_exec): Fetch new target description.
922
30f8135b
YQ
9232012-11-09 Yao Qi <yao@codesourcery.com>
924
925 * i386-tdep.c (i386_analyze_frame_setup): Handle opcode
926 0x8d (lea).
927
558a9d82
YQ
9282012-11-09 Yao Qi <yao@codesourcery.com>
929
930 * breakpoint.c: Declare set_tracepoint_count.
931 (install_breakpoint): Call set_tracepoint_count if B is a
932 tracepoint.
933 (trace_command): Don't call set_tracepoint_count. Re-indent.
934 (strace_command, ftrace_command):
935 (create_tracepoint_from_upload): Likewise.
936
6ecd4729
PA
9372012-11-09 Pedro Alves <palves@redhat.com>
938
939 * gdbarch.sh (target_gdbarch) <gdbarch.h>: Reimplement as macro.
940 (get_target_gdbarch) <gdbarch.h>: New function.
941 (startup_gdbarch) <gdbarch.h>: Declare.
942 <gdbarch.c> (target_gdbarch): Delete.
943 <gdbarch.c> (deprecated_target_gdbarch_select_hack): Set the
944 current inferior's gdbarch.
945 <gdbarch.c> (get_target_gdbarch): New function.
946 * inferior.c: Include target-descriptions.h.
947 (free_inferior): Free target description info.
948 (add_inferior_with_spaces): Set the inferior's initial
949 architecture.
950 (clone_inferior_command): Copy the original inferior's target
951 description if it was user specified.
952 (initialize_inferiors): Add comment.
953 * inferior.h (struct target_desc_info): Forward declare.
954 (struct inferior) <gdbarch>: New field.
955 * linux-nat.c: Include target-descriptions.h.
956 (linux_child_follow_fork): Copy the parent's architecture and
957 target description to the child.
958 * target-descriptions.c: Include inferior.h.
959 (struct target_desc_info): New structure, holding the equivalents
960 of ...
961 (target_desc_fetched, current_target_desc)
962 (target_description_filename): ... these removed globals.
963 (get_tdesc_info, target_desc_info_from_user_p)
964 (copy_inferior_target_desc_info, target_desc_info_free): New.
965 (target_desc_fetched, current_target_desc)
966 (target_description_filename): Reimplemented as convenience
967 macros.
968 (tdesc_filename_cmd_string): New global.
969 (set_tdesc_filename_cmd): Copy the string manipulated by the "set
970 tdescs filename ..." commands to the per-inferior equivalent.
971 (show_tdesc_filename_cmd): Get the value to show from the
972 per-inferior description filename.
973 (_initilize_target_descriptions): Change the "set/show tdesc
974 filename" commands' variable.
975 * target-descriptions.h (struct target_desc, struct target_desc_info)
976 (struct inferior): Forward declare.
977 (target_find_description, target_clear_description)
978 (target_current_description): Adjust comments.
979 (copy_inferior_target_desc_info, target_desc_info_free)
980 (target_desc_info_from_user_p). Declare.
981
4ca4d161
SC
9822012-11-08 Stephane Carrez <Stephane.Carrez@gmail.com>
983
984 * tui/tui-hooks.c (tui_about_to_proceed): New function.
985 (tui_target_wait_hook): Remove.
986 (tui_install_hooks): Install the about_to_proceed observer.
987 (tui_remove_hooks): And remove it here.
988
9015683b
TT
9892012-11-08 Tom Tromey <tromey@redhat.com>
990
991 * linux-tdep.c (linux_make_siginfo_note): New function.
992 (linux_make_corefile_notes): Use it.
993 * corelow.c (get_core_siginfo): New function.
994 (core_xfer_partial) <TARGET_OBJECT_SIGNAL_INFO>: New case.
995
ea9f10bb
TT
9962012-11-08 Tom Tromey <tromey@redhat.com>
997
998 PR gdb/14704:
999 * gdb_bfd.c (gdb_bfd_ref): Set BFD_DECOMPRESS.
1000 (zlib_decompress_section): Remove.
1001 (gdb_bfd_map_section): Only check for compressed section
1002 in mmap case. Use bfd_get_full_section_contents.
1003 * osabi.c (check_note): Add 'sectsize' argument. Read
1004 section data.
1005 (generic_elf_osabi_sniff_abi_tag_sections): Don't read
1006 section data. Update for check_note change.
1007 * xcoffread.c (xcoff_initial_scan): Use
1008 bfd_get_full_section_contents.
1009 * py-auto-load.c (auto_load_section_scripts): Use
1010 bfd_get_full_section_contents.
1011 * contrib/cc-with-tweaks.sh: Add -Z option.
1012
d071a26b
TT
10132012-11-08 Tom Tromey <tromey@redhat.com>
1014
1015 * python/py-bpevent.c: Include defs.h.
1016 * python/py-continueevent.c: Include defs.h.
1017 * python/py-event.c: Include defs.h.
1018 * python/py-event.h: Don't include defs.h.
1019 * python/py-events.h: Don't include defs.h.
1020 * python/py-evts.c: Include defs.h.
1021 * python/py-exitedevent.c: Include defs.h.
1022 * python/py-newobjfileevent.c: Include defs.h.
1023 * python/py-signalevent.c: Include defs.h.
1024 * python/py-stopevent.c: Include defs.h.
1025 * python/py-threadevent.c: Include defs.h.
1026
4574b35a
PM
10272012-11-08 Pierre Muller <muller@sourceware.org>
1028
1029 * update-web-ari.sh (print_heading): Add number of files
1030 checked.
1031 (nb_files): New variable counting the number of sources
1032 files found by gdb_find.sh script.
1033 (debug_awk): New variable to allow extra debug output.
1034 (indexes): Add more information if DEBUG_AWK is set.
1035
2834ab42
EBM
10362012-11-08 Edjunior Machado <emachado@linux.vnet.ibm.com>
1037
1038 * ppc-linux-tdep.c (ppc64_standard_linkage1, ppc64_standard_linkage2,
1039 ppc64_standard_linkage3): Mark ld r11 instructions as optional,
1040 following the change in PLT call stubs on linker.
1041
84f13595
PM
10422012-11-08 Pierre Muller <muller@sourceware.org>
1043
1044 * contrib/ari/gdb_ari.sh (LANG, LC_ALL): Use 'C' instead of 'c'
1045 as default language.
1046 (AWK): Use = instead of == for sh test to avoid warning.
1047 (Linux rule): Correct [:digit] into [[:digit:]].
1048 (__func__ rule): Adapt to "gdb_assert.h" move to common subdirectory.
1049 (vasprintf rule): Adapt to common subdirectory moves.
1050 (xasprintf rule): Idem.
1051 (xvasprintf rule): Idem.
1052 (var_boolean rule): Accept occurence in == or != test.
1053
1054 * contrib/ari/gdb_find.sh: Also prune gdbtk directory.
1055
d69e6a33
SC
10562012-11-08 Stephane Carrez <Stephane.Carrez@gmail.com>
1057
1058 * tui/tui-hooks.c (tui_inferior_exit): New function.
1059 (tui_detach_hook): Remove.
1060 (tui_install_hooks): Install the inferior exit observer.
1061 (tui_remove_hooks): Remove it.
1062
1e96de83
YQ
10632012-11-08 Yao Qi <yao@codesourcery.com>
1064
1065 PR gdb/14777.
1066 * source.c (_initialize_source): Call add_com_alias to abbreviate
1067 'forward-search' as 'fo'.
1068
0baeab03
PA
10692012-11-07 Pedro Alves <palves@redhat.com>
1070
1071 * arm-tdep.c: Make defs.h be the first include.
1072 * coff-pe-read.c: Ditto.
1073 * gnu-nat.c: Ditto.
1074 * go32-nat.c: Ditto.
1075 * i386-nat.c: Ditto.
1076 * ppcnbsd-nat.c: Ditto.
1077 * ada-varobj.h: Don't include defs.h.
1078 * i386-darwin-tdep.h: Ditto.
1079 * i386-nat.h: Ditto.
1080
892a8570
PA
10812012-11-07 Pedro Alves <palves@redhat.com>
1082
1083 * MAINTAINERS: New FSF-appointed maintainers replace the Steering
1084 Committee.
1085
719502e9
PM
10862012-11-07 Pierre Muller <muller@sourceware.org>
1087
1088 * common/linux-osdata.c (dirent.h): ARI fix: Remove.
1089 File already uses "gdb_dirent.h" header.
1090
ed86b350
YQ
10912012-11-07 Yao Qi <yao@codesourcery.com>
1092
1093 * breakpoint.c (get_tracepoint_by_number): Remove 'extern int
1094 tracepoint_count'.
1095
9a4f1e4f
TT
10962012-11-06 Tom Tromey <tromey@redhat.com>
1097
1098 * target.h (inferior_has_forked, inferior_has_vforked)
1099 (inferior_has_execd, inferior_has_called_syscall): Remove
1100 declarations.
1101
0316657e
PM
11022012-11-06 Pierre Muller <muller@sourceware.org>
1103
1104 * remote.c (remote_insert_hw_breakpoint): ARI fix,
1105 add missing internalization markup.
1106
f6592439
PA
11072012-11-06 Pedro Alves <palves@redhat.com>
1108
1109 PR gdb/14810
1110
1111 * breakpoint.c (bpstat_stop_status): Skip disabled locations.
1112
01f2564a
PM
11132012-11-06 Pierre Muller <muller@sourceware.org>
1114
1115 * contrib/ari/create-web-ari-in-src.sh: Avoid problem if script
1116 is not executable.
1117
f37c4431
JB
11182012-11-05 Joel Brobecker <brobecker@adacore.com>
1119
1120 * gnulib/update-gnulib.sh: New script.
1121
550889c3
JB
11222012-11-05 Stephane Carrez <Stephane.Carrez@gmail.com>
1123
1124 * MAINTAINERS: Update my email address.
1125
954b50b3
TT
11262012-11-05 Tom Tromey <tromey@redhat.com>
1127
1128 * frame.c (put_frame_register): Don't use temporary buffer.
1129
68c9da30
PA
11302012-11-05 Pedro Alves <palves@redhat.com>
1131
1132 * inferior.c (exit_inferior_1): Clear 'vfork_parent' in the vfork
1133 child. Clear 'pending_detach'.
1134 * infrun.c (handle_vfork_child_exec_or_exit): Clear
1135 'pending_detach' in the vfork parent.
1136
80626a55
DE
11372012-11-05 Doug Evans <dje@google.com>
1138
1139 Add support for DWP files. http://gcc.gnu.org/wiki/DebugFissionDWP
1140 * contrib/cc-with-tweaks.sh: Add -p parameter to invoke dwp.
1141 * dwarf2read.c: #include "elf-bfd.h".
1142 (struct dwarf2_per_objfile): New members dwp_checked, dwp_file.
1143 (dwop_section_names): Renamed from dwo_section names. All uses
1144 updated. Add entries for .debug_cu_index, .debug_tu_index.
1145 (struct dwo_file): Rename dwo_name to name, dwo_bfd to dbfd.
1146 All uses updated.
1147 (struct dwp_sections): New type.
1148 (struct virtual_dwo_sections): New type.
1149 (struct dwp_hash_table): New type.
1150 (struct dwp_file): New type.
1151 (init_cutu_and_read_dies): Ensure DWO info/types section has been
1152 read in. Handle DWOs coming from DWP files.
1153 (lookup_dwo_file_slot): New function.
1154 (dwarf2_locate_dwo_sections): Move definition closer to use.
1155 (create_dwo_debug_info_hash_table_reader): Renamed from
1156 create_debug_info_hash_table_reader. All callers updated.
1157 (create_dwo_debug_info_hash_table): Renamed from
1158 create_debug_info_hash_table. All callers updated.
1159 (create_dwp_hash_table): New function.
1160 (locate_virtual_dwo_sections, create_dwo_in_dwp): New functions.
1161 (lookup_dwo_in_dwp): New function.
1162 (try_open_dwop_file): Renamed from try_open_dwo_file. New parameter
1163 is_dwp. All callers updated.
1164 (open_dwop_file): Renamed from open_dwo_file. All callers updated.
1165 (open_and_init_dwo_file): Renamed from init_dwo_file.
1166 All callers updated.
1167 (lookup_dwo_file): Delete.
1168 (dwarf2_locate_dwp_sections): New function.
1169 (hash_dwp_loaded_cutus, eq_dwp_loaded_cutus): New functions.
1170 (allocate_dwp_loaded_cutus_table): New function.
1171 (open_and_init_dwp_file): New function.
1172 (lookup_dwo_cutu): New function.
1173 (lookup_dwo_comp_unit, lookup_dwo_type_unit): Call it.
1174
6f6484cd
YQ
11752012-11-03 Yao Qi <yao@codesourcery.com>
1176
1177 Fix PR gdb/14617.
1178 * breakpoint.c (trace_pass_set_count): Call
1179 observer_notify_breakpoint_modified instead of
1180 observer_notify_tracepoint_modified.
1181 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Likewise.
1182
b45627a0
TT
11832012-11-02 Tom Tromey <tromey@redhat.com>
1184
1185 * breakpoint.c (catch_syscall_completer): Pass 'word' as second
1186 argument to complete_on_enum.
1187
d4fb63e1
TT
11882012-11-02 Tom Tromey <tromey@redhat.com>
1189
1190 * configure: Rebuild.
1191 * configure.ac (build_warnings): Add -Wempty-body.
1192 * m68k-tdep.c (m68k_gdbarch_init): Remove empty 'if'.
1193 * remote.c (handle_notification): Use braces for empty 'else' body.
1194 * s390-tdep.c (s390_analyze_prologue): Use braces for empty
1195 'else' body.
1196 * sh64-tdep.c (sh64_push_dummy_call): Use braces for empty
1197 'else' body.
1198 * solib-som.c (som_relocate_section_addresses): Use braces
1199 for empty 'else' body.
1200 * ui-file.c (stdio_file_write): Use braces for empty 'if' body.
1201 (stdio_file_write_async_safe, stdio_file_fputs): Likewise.
1202
f50f4e56
PA
12032012-11-02 Pedro Alves <palves@redhat.com>
1204
1205 PR gdb/14766
1206
1207 * infrun.c (handle_inferior_event)
1208 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Switch to
1209 null_ptid before handling a vfork child exec or exit. Switch to
1210 the event ptid afterwards.
1211
f0559fff
YQ
12122012-11-02 Yao Qi <yao@codesourcery.com>
1213
1214 * std-operator.def: Remove OP_LABELED.
1215 * eval.c: Remove the declaration of 'get_label'.
1216 (get_label): Remove.
1217 (evaluate_struct_tuple): Remove code handling OP_LABELED.
1218 Update comment.
1219 Remove local variable 'variantno' and related code.
1220 Replace 'substruct_type' with 'struct_type'. Replace 'subfieldno'
1221 with 'fieldno'.
1222 * expprint.c (print_subexp_standard): Likewise.
1223 (dump_subexp_body_standard): Likewise.
1224 * parse.c (operator_length_standard): Likewise.
1225
e5496e3e
PM
12262012-11-01 Pierre Muller <muller@ics.u-strasbg.fr>
1227
1228 Incorporate ARI web page generator into GDB sources.
1229 * contrib/ari/create-web-ari-in-src.sh: New file.
1230 * contrib/ari/gdb_ari.sh: New file.
1231 * contrib/ari/gdb_find.sh: New file.
1232 * contrib/ari/update-web-ari.sh: New file.
1233
c66fb220
TT
12342012-10-31 Tom Tromey <tromey@redhat.com>
1235
1236 * gdbarch.c: Rebuild.
1237 * gdbarch.sh: Remove references to gdbarch_swap.
1238 * corelow.c (core_open): Remove obsolete comment.
1239
2f27adfe
AB
12402012-10-31 Andrew Burgess <aburgess@broadcom.com>
1241
1242 PR cli/14772
1243 * c-typeprint.c (c_print_type): Don't print a space for vector
1244 types, this is handled within the suffix.
1245 (c_type_print_varspec_suffix): Add a space to vector suffix.
1246
144db827
PA
12472012-10-26 Pedro Alves <palves@redhat.com>
1248
1249 * amd64-tdep.c (amd64_relocate_instruction): Use
1250 store_unsigned_integer instead of memcpy.
1251 * i386-tdep.c (i386_relocate_instruction): Ditto.
1252
940c3c06
PA
12532012-10-26 Pedro Alves <palves@redhat.com>
1254
1255 * infrun.c (handle_inferior_event): Merge handling of
1256 TARGET_WAITKIND_EXITED and TARGET_WAITKIND_SIGNALLED into a single
1257 switch case.
1258
47b19065
PA
12592012-10-26 Pedro Alves <palves@redhat.com>
1260
1261 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_SIGNALLED>:
1262 Remove comment.
1263
87d2d2a4
PA
12642012-10-26 Pedro Alves <palves@redhat.com>
1265
1266 * target.c (target_waitstatus_to_string): Handle
1267 TARGET_WAITKIND_VFORK_DONE.
1268
fed708ed
PA
12692012-10-26 Pedro Alves <palves@redhat.com>
1270
1271 * infrun.c (handle_inferior_event): Print TARGET_WAITKIND_VFORKED
1272 as "TARGET_WAITKIND_VFORKED", not "TARGET_WAITKIND_FORKED".
1273
2590b645
JB
12742012-10-24 Tristan Gingold <gingold@adacore.com>
1275
1276 * ravenscar-sparc-thread.c (ravenscar_sparc_fetch_registers):
1277 Add comments.
1278
bed0c243
JB
12792012-10-24 Joel Brobecker <brobecker@adacore.com>
1280
1281 * ravenscar-thread.c (ravenscar_wait): Only update the list
1282 of threads and inferior_ptid if the inferior is still alive.
1283
f69c91ad
JB
12842012-10-24 Joel Brobecker <brobecker@adacore.com>
1285
1286 * ada-lang.c (is_known_support_routine): Use lbasename when
1287 matching the symtab's filename against
1288 known_runtime_file_name_patterns.
1289
d99dcf51
JB
12902012-10-24 Joel Brobecker <brobecker@adacore.com>
1291
1292 * ada-lang.c (ada_same_array_size_p): New function.
1293 (ada_promote_array_of_integrals): New function.
1294 (coerce_for_assign): Add handling of arrays where the elements
1295 are integrals of a smaller size than the size of the target
1296 array element type.
1297
32560274
JB
12982012-10-24 Joel Brobecker <brobecker@adacore.com>
1299
1300 * doublest.c (convert_doublest_to_floatformat): Fix comparison
1301 against maximum exponent value.
1302
5a04cc98
JB
13032012-10-24 Joel Brobecker <brobecker@adacore.com>
1304
1305 * ada-lang.h (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Add entry for
1306 "unwind-seh.c".
1307
5ded5331
JB
13082012-10-24 Joel Brobecker <brobecker@adacore.com>
1309
1310 * ada-lang.c (ada_template_to_fixed_record_type_1): Do not
1311 strip typedef layer when computing the fixed type's field type,
1312 only when computing its size.
1313
2445fd7b
MK
13142012-10-24 Mark Kettenis <kettenis@gnu.org>
1315
1316 PR gdb/12783
1317 * i386-tdep.c (i386_return_value): Handle complex double and long
1318 double.
1319
8f205f9c
JB
13202012-10-24 Joel Brobecker <brobecker@adacore.com>
1321
1322 * windows-nat.c (windows_create_inferior) [!__CYGWIN__]:
1323 New local variable args_len.
1324 Quote the name of the executable when computing the command line.
1325
7f7930dd
MK
13262012-10-23 Mark Kettenis <kettenis@gnu.org>
1327
1328 PR gdb/12796
1329 PR gdb/12798
1330 PR gdb/12800
1331 * amd64-tdep.h (enum amd64_regnum): Add AMD64_ST1_REGNUM and
1332 AMD64_FTAG_REGNUM.
1333 * amd64-tdep.c (amd64_classify): Classify complex types.
1334 (amd64_return_value): Handle the COMPLEX_X87 class.
1335
38a69d0a
JB
13362012-10-23 Joel Brobecker <brobecker@adacore.com>
1337
1338 * rs6000-aix-tdep.c (rs6000_aix_auto_wide_charset): New function.
1339 (rs6000_aix_init_osabi): Set auto_wide_charset gdbarch method.
1340
83ab93c6
JB
13412012-10-23 Joel Brobecker <brobecker@adacore.com>
1342
1343 * amd64-windows-tdep.c (amd64_windows_auto_wide_charset): New
1344 function.
1345 (amd64_windows_init_abi): Set auto_wide_charset gdbarch method
1346 to amd64_windows_auto_wide_charset.
1347
f6fbab7d
YQ
13482012-10-23 Yao Qi <yao@codesourcery.com>
1349
1350 * event-top.c (mark_async_signal_handler_wrapper): Remove.
1351 * event-top.h: Remove its declaration.
1352 (async_request_quit): Call mark_async_signal_handler instead of
1353 mark_async_signal_handler_wrapper.
1354 (async_do_nothing, async_disconnect): Likewise.
1355 (async_stop_sig): Likewise.
1356 * remote.c (handle_remote_sigint): Likewise.
1357 (handle_remote_sigint_twice): Likewise.
1358
05fa9251
YQ
13592012-10-23 Yao Qi <yao@codesourcery.com>
1360
1361 * event-top.c (sigint_token, sighup_token): Replace 'void *'
1362 with 'static struct async_signal_handler *'.
1363 (sighup_token, sigquit_token, sigstp_token): Likewise.
1364
08af7a40
AA
13652012-10-22 Ali Anwar <ali_anwar@codesourcery.com>
1366
1367 * gdbarch.sh (function_list): Use 'pstring' when printing
1368 a variable which could return NULL.
1369 * gdbarch.c: Regenerate.
1370
beb4b03c
JB
13712012-10-10 Joel Brobecker <brobecker@adacore.com>
1372 Tom Tromey <tromey@redhat.com>
1373
1374 * rs6000-aix-tdep.c (rs6000_aix_osabi_sniffer): Replace
1375 inneffective if condition by gdb assertion. Add function
1376 description comment.
1377
a5b12627
JB
13782012-10-19 Joel Brobecker <brobecker@adacore.com>
1379
1380 * parser-defs.h (struct exp_descriptor): Document constraint
1381 on return value for "op_name" callbacks.
1382
0b0865da
TT
13832012-10-18 Tom Tromey <tromey@redhat.com>
1384
1385 * tracepoint.c (print_one_static_tracepoint_marker): Constify.
1386 * symtab.c (iterate_over_some_symtabs): Constify.
1387 * source.h (symtab_to_fullname): Return 'const char *'.
1388 * source.c (symtab_to_fullname): Return 'const char *'.
1389 * python/py-symtab.c (stpy_fullname): Constify.
1390 * cli/cli-cmds.c (edit_command): Constify.
1391 * breakpoint.c (print_breakpoint_location)
1392 (update_static_tracepoint): Constify.
1393
94b0e70d
TT
13942012-10-18 Tom Tromey <tromey@redhat.com>
1395
1396 * breakpoint.c (compare_breakpoints): Fix comparison.
1397
fff10684
TT
13982012-10-18 Tom Tromey <tromey@redhat.com>
1399
1400 * valprint.c (generic_emit_char, generic_printstr): Pass size of
1401 gdb_wchar_t to convert_between_encodings.
1402
8de0566d
YQ
14032012-10-17 Yao Qi <yao@codesourcery.com>
1404
1405 * breakpoint.c (invalidate_bp_value_on_memory_change): Add one
1406 more parameter 'inferior'.
1407 * corefile.c (write_memory_with_notification): Caller update.
1408
1409 * mi/mi-cmd-var.c: Include "mi-main.h".
1410 (mi_cmd_var_assign): Set mi_suppress_notification.data_write_memory
1411 to 1 and restore it later.
1412 * mi/mi-cmds.c (mi_cmd mi_cmds): Update for "data-write-memory"
1413 and "data-write-memory-bytes.
1414 * mi/mi-interp.c: Include objfiles.h.
1415 (mi_interpreter_init): Call observer_attach_memory_changed.
1416 (mi_memory_changed): New.
1417 * mi/mi-main.h (struct mi_suppress_notification) <memory>:
1418 New field.
1419
1420 * NEWS: Mention new MI notification "memory-changed".
1421
6235cdd1
JK
14222012-10-16 Jan Kratochvil <jan.kratochvil@redhat.com>
1423
1424 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Remove comment.
1425
07540c15
DE
14262012-10-15 Doug Evans <dje@google.com>
1427
1428 New option -nh: inhibit loading of ~/.gdbinit.
1429 * NEWS: Mention -nh.
1430 * main.c (captured_main): Recognize and process -nh.
1431 (print_gdb_help): Mention -nh.
1432 * gdb.1: Mention -nh. Remove erroneous docs on -nx behavior.
1433
eab09350
L
14342012-10-15 H.J. Lu <hongjiu.lu@intel.com>
1435
1436 PR backtrace/14646
1437 PR gdb/14647
1438 * i386-tdep.h (gdbarch_tdep): Remove sp_regnum_from_eax and
1439 pc_regnum_from_eax.
1440 * i386-tdep.c (i386_gdbarch_init): Don't use sp_regnum_from_eax
1441 nor pc_regnum_from_eax.
1442 * amd64-tdep.c (amd64_x32_init_abi): Don't set sp_regnum_from_eax
1443 nor pc_regnum_from_eax.
1444
9e3a7d65
JK
14452012-10-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1446
1447 Fix entry values resolving in inlined frames.
1448 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Move func_addr,
1449 gdbarch and caller_frame initialization later. Skip INLINE_FRAME
1450 entries of FRAME.
1451
c83393b9
JB
14522012-10-15 Joel Brobecker <brobecker@adacore.com>
1453
1454 * configure.ac: Build with -DMS_WIN64 if building with Python
1455 enabled using GCC on amd64-windows.
1456 * configure: Regenerate.
1457
801e4185
TT
14582012-10-15 Tom Tromey <tromey@redhat.com>
1459
1460 PR python/14635:
1461 * python/py-symtab.c (del_objfile_sal): Set 'symtab' field
1462 to Py_None.
1463
74f910c8
TT
14642012-10-15 Tom Tromey <tromey@redhat.com>
1465
1466 PR python/14634:
1467 * python/py-symbol.c (sympy_dealloc): Check for NULL symbol.
1468
2a7c8fd5
AB
14692012-10-11 Andrew Burgess <aburgess@broadcom.com>
1470
1471 * remote-sim.c (gdbsim_create_inferior): Call init_thread_list to
1472 reset thread numbering back to 1.
1473
7c09e5a0
DE
14742012-10-11 Doug Evans <dje@google.com>
1475
1476 PR breakpoints/14643.
1477 * linespec.c (struct ls_parser): New member keyword_ok.
1478 (linespec_lexer_lex_string): Add comment.
1479 (linespec_lexer_lex_one): Ignore keywords if it's the wrong place
1480 for one.
1481 (parse_linespec): Set keyword_ok.
1482
a1855c1d
DE
14832012-10-10 Doug Evans <dje@google.com>
1484
844226d6
DE
1485 * dwarf2read.c (process_psymtab_comp_unit_reader): Remove duplicate
1486 "0x" prefix on address in log message.
1487
a1855c1d
DE
1488 * dwarf2read.c (read_1_byte): Add const to buf parameter.
1489 (read_1_signed_byte, read_2_bytes, read_2_signed_bytes): Ditto.
1490 (read_4_bytes, read_4_signed_bytes, read_8_bytes): Ditto.
1491 (lookup_dwo_file): Add const to dwo_name parameter.
1492 (lookup_dwo_comp_unit, lookup_dwo_type_unit): Ditto.
1493
2e24f4aa
JK
14942012-10-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1495
1496 Fix crash during stepping on ppc32.
1497 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Test NULL
1498 SYM.
1499
aa14df25
DE
15002012-10-03 Doug Evans <dje@google.com>
1501
1502 PR symtab/14601
1503 * buildsym.c (buildsym_init): Reset using_directives to NULL.
1504
3d468296
AB
15052012-10-02 Andrew Burgess <aburgess@broadcom.com>
1506
1507 * remote-sim.c (dump_mem): Always dump buffer contents, zero fill
1508 output and use uint32_t not long to ensure 4 byte size.
1509
8f0ee2eb
JB
15102012-10-02 Joel Brobecker <brobecker@adacore.com>
1511
1512 * rs6000-nat.c (add_vmap): Set "last" to "next" after having
1513 unref'ed it.
1514
b3dc46ff
AB
15152012-10-01 Andrew Burgess <aburgess@broadcom.com>
1516
1517 * target.c (simple_search_memory): Include access length in
1518 warning message.
1519
f712f01f
EBM
15202012-09-28 Nathan Miller <nathanm2@us.ibm.com>
1521 Edjunior Machado <emachado@linux.vnet.ibm.com>
1522
1523 PR gdb/13989
1524 * solib.c (solib_find): Prevent GDB from loading native libraries when
1525 debugging a cross-target corefile.
1526
39181896
PA
15272012-09-28 selven <pcthegreat@gmail.com>
1528
1529 Make definition match declaration.
1530
1531 * regcache.c (regcache_register_status): Change return type to
1532 enum register_status.
1533
4c2786ba
YQ
15342012-09-28 Yao Qi <yao@codesourcery.com>
1535
1536 * mi/mi-main.c (mi_cmd_data_write_memory): Call
1537 write_memory_with_notification instead of write_memory.
1538 (mi_cmd_data_write_memory_bytes): Call write_memory_with_notification
1539 instead of target_write_memory.
1540
1ae0c35e
YQ
15412012-09-28 Yao Qi <yao@codesourcery.com>
1542
1543 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Emit error
1544 when the length of content is not an even number.
1545
7977e5d2
TT
15462012-09-27 Tom Tromey <tromey@redhat.com>
1547
1548 Fix https://bugzilla.redhat.com/show_bug.cgi?id=849357
1549 * cp-valprint.c (cp_print_value_fields): Use get_vptr_fieldno.
1550
807160da
JB
15512012-09-27 Joel Brobecker <brobecker@adacore.com>
1552
1553 * sol-thread.c (sol_thread_fetch_registers)
1554 (sol_thread_store_registers): Delete commented out code.
1555
43c75337
JB
15562012-09-27 Joel Brobecker <brobecker@adacore.com>
1557
1558 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
1559 Move these functions to sparc-sol-thread.c.
1560 * sparc-sol-thread.c: New file.
1561 * configure.ac: Add sparc-sol-thread.o to CONFIG_OBS and
1562 sparc-sol-thread.c to CONFIG_SRCS for sparc-solaris native
1563 configurations.
1564 * configure: Regenerate.
1565
d292a972
JB
15662012-09-27 Joel Brobecker <brobecker@adacore.com>
1567
1568 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
1569 Remove commented-out code.
1570
8c3da003
JB
15712012-09-27 Joel Brobecker <brobecker@adacore.com>
1572
1573 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
1574 Enable this code for sparc hosts only.
1575
f00482b6
JB
15762012-09-27 Joel Brobecker <brobecker@adacore.com>
1577
1578 * procfs.h (procfs_find_LDT_entry): Add declaration.
1579 * sol-thread.c (ps_lgetLDT): Delete local declaration of
1580 function procfs_find_LDT_entry.
1581
337c776f
JB
15822012-09-27 Joel Brobecker <brobecker@adacore.com>
1583
1584 * procfs.c (proc_get_LDT_entry): Make static.
1585
1a04d88f
JB
15862012-09-27 Joel Brobecker <brobecker@adacore.com>
1587
1588 * procfs.c (proc_find_memory_regions): Fix declaration.
1589
bad43aa5
SP
15902012-09-27 Siddhesh Poyarekar <siddhesh@redhat.com>
1591
1592 * amd64-tdep.c (amd64_return_value): Revert previous change
1593 that used TYPE_LENGTH directly.
1594 * bfin-tdep.c (bfin_extract_return_value): Likewise.
1595 (bfin_store_return_value): Likewise.
1596 * cris-tdep.c (cris_store_return_value): Likewise.
1597 (cris_extract_return_value): Likewise.
1598 * h8300-tdep.c (h8300_extract_return_value): Likewise.
1599 * hppa-tdep.c (hppa64_return_value): Likewise.
1600 * lm32-tdep.c (lm32_store_return_value): Likewise.
1601 * microblaze-tdep.c (microblaze_store_return_value): Likewise.
1602 * spu-tdep.c (spu_value_from_register): Likewise.
1603 * vax-tdep.c (vax_return_value): Likewise.
1604
63375b74
SP
16052012-09-27 Siddhesh Poyarekar <siddhesh@redhat.com>
1606
1607 * gdbtypes.c (lookup_array_range_type): Expand parameters
1608 LOW_BOUND and HIGH_BOUND to LONGEST.
1609 (lookup_string_range_type): Likewise.
1610 * gdbtypes.h (lookup_array_range_type): Likewise.
1611 (lookup_string_range_type): Likewise.
1612 * valops.c (value_cstring): Expand parameter LEN to ssize_t.
1613 Expand HIGHBOUND to ssize_t.
1614 (value_string): Likewise.
1615 * value.h (value_cstring): Expand parameter LEN to ssize_t.
1616 (value_string): Likewise.
1617
19ca11c5
YQ
16182012-09-27 Yao Qi <yao@codesourcery.com>
1619
1620 PR breakpoints/13898
1621 * breakpoint.h (tracepoint_breakpoint_ops): Forward declaration.
1622 * mi/mi-cmd-break.c (mi_cmd_break_insert): Set breakpoint_ops
1623 per breakpoint type.
1624
92107356
PM
16252012-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
1626
1627 * procfs.c: Add gdb_bfd header.
1628 * rs6000-nat.c: Likewise.
1629 * solib-pa64.c: Likewise.
1630 * spu-linux-nat.c: Likewise.
1631 * windows-nat.c: Likewise.
1632
9742094a
TT
16332012-09-26 Tom Tromey <tromey@redhat.com>
1634
1635 * f-lang.h (BLANK_COMMON_NAME_LOCAL): Remove.
1636
0971de02
TT
16372012-09-26 Tom Tromey <tromey@redhat.com>
1638
1639 * dwarf2read.c (mark_common_block_symbol_computed): New function.
1640 (read_common_block): Handle child DIEs with
1641 DW_AT_data_member_location.
1642 (new_symbol_full): Add special case for common blocks.
1643
4357ac6c
TT
16442012-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1645 Tom Tromey <tromey@redhat.com>
1646
1647 * dwarf2read.c (read_common_block): Rewrite.
1648 (new_symbol_full): Handle DW_TAG_common_block.
1649 * f-lang.c (head_common_list, find_common_for_function):
1650 Remove.
1651 * f-lang.h (struct common_entry, struct saved_f77_common,
1652 SAVED_F77_COMMON, SAVED_F77_COMMON_PTR, COMMON_ENTRY,
1653 COMMON_ENTRY_PTR, head_common_list, find_common_for_function,
1654 BLANK_COMMON_NAME_LOCAL): Remove.
1655 (struct common_block): New.
1656 * f-valprint.c (list_all_visible_commons): Remove.
1657 (info_common_command_for_block): New function.
1658 (info_common_command): Use it.
1659 * stack.c (iterate_over_block_locals): Special case for
1660 COMMON_BLOCK_DOMAIN.
1661 * symtab.h (enum domain_enum_tag) <COMMON_BLOCK_DOMAIN>: New
1662 constant.
1663 (struct general_symbol_info) <value.common_block>: New field.
1664 (SYMBOL_VALUE_COMMON_BLOCK): New define.
1665
965f07a8
TT
16662012-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1667 Tom Tromey <tromey@redhat.com>
1668
1669 * f-lang.c (allocate_saved_bf_node,
1670 allocate_saved_function_node, allocate_saved_f77_common_node,
1671 allocate_common_entry_node, tail_common_list, current_common,
1672 saved_bf_list, saved_bf_list_end, current_head_bf_list,
1673 tmp_bf_ptr, add_common_block, add_common_entry,
1674 find_first_common_named, patch_common_entries,
1675 patch_all_commons_by_name, ADD_BF_SYMNUM, clear_bf_list,
1676 global_remote_debug, get_bf_for_fcn, saved_function_list,
1677 saved_function_list_end, clear_function_list, struct saved_fcn,
1678 struct saved_bf_symnum, SAVED_FUNCTION, SAVED_FUNCTION_PTR,
1679 SAVED_BF, SAVED_BF_PTR): Remove.
1680 * f-lang.h (tail_common_list, current_common,
1681 UNINITIALIZED_SECNUM, COMMON_NEEDS_PATCHING,
1682 BLANK_COMMON_NAME_ORIGINAL, BLANK_COMMON_NAME_MF77,
1683 DEFAULT_UPPER_BOUND, DEFAULT_LOWER_BOUND, real_main_name,
1684 real_main_c_value): Remove.
1685 * f-valprint.c (there_is_a_visible_common_named): Remove.
1686
6f380991
AB
16872012-09-26 Andrew Burgess <aburgess@broadcom.com>
1688
1689 * breakpoint.c (update_global_location_list): Ignore previous
1690 duplicate status of a breakpoint when starting a new scan for
1691 duplicate breakpoints.
1692
9ead7ae4 16932012-09-26 Karthik Bhat <kv.bhat@samsung.com>
8b3d5494 1694 PR breakpoints/14419
2536b51c
YQ
1695 * arm-tdep.c (arm_skip_prologue): Extending producer check to
1696 support LLVM compiler.
9ead7ae4 1697
8f8a23a2
SP
16982012-09-26 Siddhesh Poyarekar <siddhesh@redhat.com>
1699
1700 * amd64-tdep.c (amd64_return_value): Use TYPE_LENGTH directly.
1701 * bfin-tdep.c (bfin_extract_return_value): Likewise.
1702 (bfin_store_return_value): Likewise.
1703 * cris-tdep.c (cris_store_return_value): Likewise.
1704 (cris_extract_return_value): Likewise.
1705 * h8300-tdep.c (h8300_extract_return_value): Likewise.
1706 * hppa-tdep.c (hppa64_return_value): Likewise.
1707 * lm32-tdep.c (lm32_store_return_value): Likewise.
1708 * microblaze-tdep.c (microblaze_store_return_value): Likewise.
1709 * spu-tdep.c (spu_value_from_register): Likewise.
1710 * vax-tdep.c (vax_return_value): Likewise.
1711
d7019589
SP
17122012-09-26 Siddhesh Poyarekar <siddhesh@redhat.com>
1713
1714 * breakpoint.c (invalidate_bp_value_on_memory_change): Expand
1715 parameter LEN to ssize_t.
1716
744a8059
SP
17172012-09-25 Siddhesh Poyarekar <siddhesh@redhat.com>
1718
1719 * ada-valprint.c (ada_val_print_1): Eliminate single-use
1720 variable LEN.
1721 * alpha-tdep.c (alpha_extract_return_value): Use TYPE_LENGTH
1722 directly.
1723 (alpha_store_return_value): Likewise.
1724 * amd64-tdep.c (amd64_classify_aggregate): Likewise.
1725 (amd64_push_arguments): Likewise.
1726 * ax-gdb.c (gen_trace_static_fields): Likewise.
1727 (gen_traced_pop): Likewise.
1728 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
1729 * breakpoint.c (update_watchpoint): Likewise.
1730 * findcmd.c (parse_find_args): Use local variable for type
1731 instead of length.
1732 * findvar.c (default_read_var_value): Use TYPE_LENGTH directly.
1733 * h8300-tdep.c (h8300h_extract_return_value): Likewise.
1734 (h8300_store_return_value): Likewise.
1735 * i386-darwin-tdep.c (i386_darwin_push_dummy_call): Likewise.
1736 Use i386_darwin_arg_type_alignment directly.
1737 * infcall.c (call_function_by_hand): Use TYPE_LENGTH directly.
1738 * lm32-tdep.c (lm32_push_dummy_call): Likewise.
1739 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
1740 (m68hc11_extract_return_value): Likewise.
1741 * mep-tdep.c (mep_push_dummy_call): Likewise.
1742 * printcmd.c (float_type_from_length): Likewise.
1743 * s390-tdep.c (s390_value_from_register): Likewise.
1744 * stack.c (read_frame_arg): Likewise.
1745 * tracepoint.c (encode_actions_1): Likewise.
1746 * valops.c (value_fetch_lazy): Use local variable for type
1747 instead of length. Use TYPE_LENGTH directly.
1748 * value.c (value_contents_equal): Use TYPE_LENGTH directly.
1749
a4b411d6
JB
17502012-09-25 Joel Brobecker <brobecker@adacore.com>
1751
1752 * symtab.c (skip_prologue_sal): Fix typo in comment.
1753
11dba07a
JB
17542012-09-25 Joel Brobecker <brobecker@adacore.com>
1755
1756 * linespec.c (create_sals_line_offset): Fix typo in comment.
1757
318102b9
SP
17582012-09-25 Siddhesh Poyarekar <siddhesh@redhat.com>
1759
1760 * c-typeprint.c (c_type_print_varspec_suffix): Remove cast and
1761 use plongest to print the array size.
1762
b4aa388a
SP
17632012-09-24 Siddhesh Poyarekar <siddhesh@redhat.com>
1764
1765 * m2-typeprint.c (m2_enum): Expand LASTVAL to LONGEST.
1766 * p-valprint.c (pascal_type_print_base): Likewise.
1767
84cebc4a
YQ
17682012-09-22 Yao Qi <yao@codesourcery.com>
1769
1770 * remote.c (remote_get_trace_status): Remove setting default
1771 values of fields of 'ts'.
1772
04e7407c
JK
17732012-09-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1774
1775 Fix internal error on canonicalization of clang types.
1776 * cp-name-parser.y (operator): New comment at make_operator call for
1777 new, delete, new[] and delete[].
1778 (exp): Use "sizeof ". Add new comment at make_operator call.
1779
9bf4bce9
JK
17802012-09-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1781
1782 Fix disassemble without parameters in tailcall frame.
1783 * cli/cli-cmds.c (disassemble_current_function): Use
1784 get_frame_address_in_block.
1785
1c5b7826
TT
17862012-09-21 Tom Tromey <tromey@redhat.com>
1787
1788 * c-typeprint.c (c_type_print_base) <TYPE_CODE_STRUCT,
1789 TYPE_CODE_UNION>: Unify, removing a goto.
1790
62a49610
TT
17912012-09-21 Tom Tromey <tromey@redhat.com>
1792
1793 * c-typeprint.c (cp_type_print_derivation_info): Fix comment.
1794
2603f7ee
AB
17952012-09-21 Andrew Burgess <aburgess@broadcom.com>
1796
1797 * findvar.c (read_frame_register_value): Mark the result value as
1798 optimized out if any of the input registers have been optimized out.
1799
810849a3
AS
18002012-09-21 Andreas Schwab <schwab@linux-m68k.org>
1801
1802 * python/python.c (finalize_python): Only define if HAVE_PYTHON.
1803
0953dec1
SP
18042012-09-21 Siddhesh Poyarekar <siddhesh@redhat.com>
1805
1806 * eval.c (evaluate_subexp_standard): Eliminate single-use
1807 variable LOWER.
1808
82a90ccf
YQ
18092012-09-21 Yao Qi <yao@codesourcery.com>
1810
1811 * mi/mi-interp.c: Declare mi_record_changed.
1812 (mi_interpreter_init): Call observer_attach_record_changed.
1813 (mi_record_changed): New.
1814 * record.c (record_open): Call observer_notify_record_changed.
1815 (cmd_record_stop): Call observer_notify_record_changed.
1816 * NEWS: Mention it.
1817
d7de8e3c
TT
18182012-09-20 Tom Tromey <tromey@redhat.com>
1819
1820 * NEWS: Update.
1821 * python/python.c (finalize_python): New function.
1822 (_initialize_python): Make a final cleanup.
1823
43c7c83d
DE
18242012-09-19 Doug Evans <dje@google.com>
1825
1826 * buildsym.h (param_symbols): Delete, unused.
1827 (context_stack): Delete member "params", unused.
1828 * buildsym.c (push_context): Update.
1829 * dwarf2read.c (read_func_scope): Update.
1830
aa9259cc
TS
18312012-09-19 Thomas Schwinge <thomas@codesourcery.com>
1832
a6521d9a
TS
1833 * sh-tdep.c (sh_register_convert_to_virtual)
1834 (sh_register_convert_to_raw): Add a gdbarch parameter. Update
1835 all callers. Just do a memcpy if not the little-endian case.
1836
f92589cb
TS
1837 * h8300-tdep.c (h8300_gdbarch_init): Invoke
1838 set_gdbarch_double_format and set_gdbarch_long_double_format.
1839 * m68hc11-tdep.c (m68hc11_gdbarch_init): Invoke
1840 set_gdbarch_double_format.
1841 * sh-tdep.c (sh_gdbarch_init): Likewise.
1842
aa9259cc
TS
1843 * NEWS: Document the removal of SH's 'regs' command.
1844 * sh-tdep.c (_initialize_sh_tdep): Remove the deprecated 'regs'
1845 command.
1846
c1d780c2
SDJ
18472012-09-18 Sergio Durigan Junior <sergiodj@redhat.com>
1848
1849 * infcmd.c (_initialize_infcmd): Register `j' as an alias for
1850 `jump'.
1851
4ae24af0
JB
18522012-09-18 Joel Brobecker <brobecker@adacore.com>
1853
1854 * linespec.c (iterate_over_all_matching_symtabs): Use the correct
1855 language when iterating over symbols.
1856
bb25a15c
YQ
18572012-09-18 Yao Qi <yao@codesourcery.com>
1858
1859 * mi/mi-interp.c: Declare mi_tsv_created and mi_tsv_deleted.
1860 (mi_interpreter_init): Call observer_attach_tsv_created and
1861 observer_attach_tsv_deleted.
1862 (mi_tsv_created, mi_tsv_deleted): New.
1863 * tracepoint.c (delete_trace_state_variable): Call
1864 observer_notify_tsv_deleted.
1865 (trace_variable_command): Call observer_notify_tsv_created.
1866 (delete_trace_variable_command): Call
1867 observer_notify_tsv_deleted.
1868 (create_tsv_from_upload): Call observer_notify_tsv_created.
1869 * NEWS: Mention it.
1870
201b4506
YQ
18712012-09-18 Yao Qi <yao@codesourcery.com>
1872
1873 * tracepoint.c (tfind_1): Call observer_notify_traceframe_changed
1874 if traceframe changed.
1875 * mi/mi-cmds.c (mi_cmd mi_cmds): Adjust for command
1876 "trace-find".
1877 * mi/mi-interp.c: Declare 'mi_traceframe_changed'.
1878 (mi_interpreter_init): Hook mi_traceframe_changed to observer
1879 'traceframe_changed'.
1880 (mi_traceframe_changed): New.
1881 * mi/mi-main.h (struct mi_suppress_notification) <traceframe>:
1882 New field.
1883 * NEWS: Mention the new MI notification.
1884
eaeb12db
MW
18852012-09-17 Mike Wrighton <wrighton@codesourcery.com>
1886
1887 * MAINTAINERS (Write After Approval): Add "Mike Wrighton".
1888
6e3c039e
JK
18892012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1890
1891 * common/linux-ptrace.c: Change __i386__ to __i386__ || __x86_64__.
1892 (linux_ptrace_test_ret_to_nx): Extend comment for x86_64. Change
1893 __i386__ to __i386__ || __x86_64__. Extend code also for __x86_64__.
1894 Extend code also for PaX support. Convert all gdb_assert to warning
1895 calls.
1896
9a950c7c
JK
18972012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1898
1899 Implement auto-load user conveniences suggested by Doug Evans.
1900 * auto-load.c: Include top.h.
1901 (file_is_auto_load_safe): New variable advice_printed. Print advice.
1902 (_initialize_auto_load): New variable scripts_directory_help. Mention
1903 GDBPY_AUTO_FILE_NAME and GDB_AUTO_FILE_NAME for set auto-load
1904 scripts-directory. Document in online help one can use also files for
1905 set auto-load safe-path.
1906 * python/py-auto-load.c: (GDBPY_AUTO_FILE_NAME): Move it from here ...
1907 * python/python.h (GDBPY_AUTO_FILE_NAME): ... to here.
1908
deec9a9d
SP
19092012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
1910
1911 * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused definition
1912 of LEN.
1913
354ecfd5
SP
19142012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
1915
1916 * m2-valprint.c (m2_print_array_contents): Eliminate variable
1917 ELTLEN and use TYPE_LENGTH directly.
1918 (m2_val_print): Likewise.
1919 * m68k-tdep.c (m68k_svr4_extract_return_value): Eliminate
1920 variable LEN and use TYPE_LENGTH directly.
1921 (m68k_svr4_store_return_value): Likewise.
1922 * mips-tdep.c (mips_o32_push_dummy_call): Eliminate variable
1923 ARGLEN and use TYPE_LENGTH directly.
1924 (mips_o64_push_dummy_call): Likewise.
1925 * s390-tdep (s390_function_arg_pass_by_reference): Eliminate
1926 variable LENGTH and use TYPE_LENGTH directly.
1927 (s390_function_arg_float): Likewise.
1928 (s390_function_arg_integer): Likewise.
1929 (s390_push_dummy_call): Likewise.
1930 (s390_return_value_convention): Likewise.
1931 * spu-tdep.c (spu_push_dummy_call): Eliminate LEN and use
1932 TYPE_LENGTH directly.
1933
6fc1c773
YQ
19342012-09-17 Yao Qi <yao@codesourcery.com>
1935
1936 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): New.
1937 Update comment to add_setshow_integer_cmd.
1938 * cli/cli-setshow.c (do_set_command): Handle case
1939 'var_zuinteger_unlimited'.
1940 (do_show_command): Likewise.
1941 * cli/cli-cmds.c (init_cmds): Call add_setshow_zuinteger_unlimited_cmd
1942 for command 'remotetimeout'.
1943 * command.h (enum var_types): New zuinteger_unlimited. Update comment
1944 to var_integer.
1945 * source.c (_initialize_source): Call add_setshow_zuinteger_unlimited_cmd
1946 for command 'set listsize'.
1947
6acef6cd
SP
19482012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
1949
1950 * infrun.c (restore_infcall_suspend_state): Eliminate single-use
1951 variable LEN.
1952
1ab3b62c
JK
19532012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1954
1955 PR 14119
1956 * frame.c (skip_inlined_frames): Skip also TAILCALL_FRAME frames.
1957 (frame_pop): Drop also TAILCALL_FRAME frames.
1958 * infcmd.c (finish_command): Ignore also TAILCALL_FRAME frames.
1959
acf9414f
JK
19602012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1961 Pedro Alves <palves@redhat.com>
1962
1963 PR 14548
1964 * infrun.c (handle_inferior_event): Do not reverse-continue back to the
1965 function start if we are already at function start. Both for
1966 reverse-next and for reverse-step into function without line number
1967 info.
1968
193facb3
JK
19692012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1970
1971 Code cleanup - rename 'inline' depth to 'artificial' depth.
1972 * breakpoint.c (set_momentary_breakpoint): Rename at a caller to
1973 frame_id_artificial_p, extend the comment.
1974 * dwarf2-frame-tailcall.c (tailcall_frame_this_id): Rename at a user.
1975 * frame.c (fprint_frame_id): Rename at a user, change debug output
1976 text to "artificial=".
1977 (skip_inlined_frames): Rename to ...
1978 (skip_artificial_frames): ... here. Extend the comment.
1979 (get_stack_frame_id, frame_unwind_caller_id): Rename at a caller.
1980 (frame_id_inlined_p): Rename to ...
1981 (frame_id_artificial_p): ... here. Rename at a user.
1982 (frame_id_eq, frame_id_inner, frame_unwind_caller_pc)
1983 (frame_unwind_caller_pc_if_available, frame_unwind_caller_arch): Rename
1984 at a user.
1985 * frame.h (struct frame_id): Rename inline_depth to artificial_depth.
1986 Extend the comment.
1987 (frame_id_inlined_p): Rename to ...
1988 (frame_id_artificial_p): ... here.
1989 * inline-frame.c (inline_frame_this_id): Rename at a user.
1990
42056501
AB
19912012-09-14 Andrew Burgess <aburgess@broadcom.com>
1992
1993 * c-typeprint.c (c_type_print_varspec_suffix): Display the size of
1994 vector variables using vector_size syntax rather than array
1995 syntax.
1996
84c47588
SP
19972012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
1998
1999 * valarith.c (value_concat): Replace unsafe ALLOCA with
2000 XMALLOC/XFREE.
2001
f4045bcb
PA
20022012-09-14 Pedro Alves <palves@redhat.com>
2003
2004 * gdb.1 (SEE ALSO): Expand pointer to GDB's Texinfo manual.
2005
63b46266
YPK
20062012-09-14 Khoo Yit Phang <khooyp@cs.umd.edu>
2007
2008 Point contrib/cc-with-tweaks.sh to the build-local data-directory.
2009 * contrib/cc-with-tweaks.sh (GDB): Add -data-directory
2010 data-directory as appropriate.
2011
ddd7a8e7
SP
20122012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
2013
2014 * printcmd.c (ui_printf): Eliminate single-use variable
2015 PARAM_LEN.
2016
d649a38e
YQ
20172012-09-14 Yao Qi <yao@codesourcery.com>
2018 Pedro Alves <palves@redhat.com>
2019
2020 * valops.c (value_assign): Move observer_notify_target_changed
2021 below to replace reinit_frame_cache.
2022
b9516fa1
YPK
20232012-09-13 Khoo Yit Phang <khooyp@cs.umd.edu>
2024
2025 Refactor Python "gdb" module into a proper Python package, by
2026 introducing a new "_gdb" module for code implemented in C, and
2027 using reload/__import__ instead of exec.
2028 * python/lib/gdb/__init__.py: Import * from _gdb.
2029 (GdbOutputFile, sys.stdout, GdbOutputErrorFile, sys.stderr,
2030 prompt_hook, sys.argv): Moved from finish_python_initialization.
2031 (pretty_printers, PYTHONDIR): Moved from _initialize_python.
2032 (packages, auto_load_packages): New list and function replacing
2033 module_dict and auto-loading code, using __file__ instead of
2034 gdb.PYTHONDIR and reload/__import__ instead of exec.
2035 (GdbSetPythonDirectory): Replacing function of the same name
2036 from finish_python_initialization, using reload/__import__ instead
2037 of exec, as well as call auto_load_packages.
2038 * python/py-prettyprint.c (find_pretty_printer_from_gdb): Check
2039 gdb_python_module and not gdb_module.
2040 * python/python-internal.h (gdb_python_module): Declare.
2041 * python/python.c (gdb_python_module): New global.
2042 (before_prompt_hook): Check gdb_python_module and not gdb_module.
2043 (_initialize_python): Rename gdb module to _gdb.
2044 Move gdb.PYTHONDIR and gdb.pretty_printer to lib/gdb/__init__.py.
2045 (finish_python_initialization): Move Python code to
2046 lib/gdb/__init__.py; instead, set up sys.path and import gdb into
2047 __main__.
2048
aa0fbdd8
PA
20492012-09-13 Pedro Alves <palves@redhat.com>
2050
2051 * Makefile.in (COMMON_OBS): Add registry.o.
2052 * registry.c: New file.
2053 * registry.h (struct registry_container): Declare.
2054 (registry_data_callback): New typedef.
2055 (struct registry_data, struct registry_data_registration, struct
2056 registry_data_registry): New type.
2057 (register_data_with_cleanup, registry_alloc_data)
2058 (registry_callback_adaptor, registry_clear_data)
2059 (registry_container_free_data, registry_set_data, registry_data):
2060 Declare.
2061 (DEFINE_REGISTRY): Refactor structures and functions as shims over
2062 the new common structures and functions.
2063 (DECLARE_REGISTRY): Declare struct TAG ## _data. Use the tagged
2064 callback typedefs.
2065
42b5c53d
MW
20662012-09-12 Mike Wrighton <wrighton@codesourcery.com>
2067
2068 * remote.c (remote_insert_hw_breakpoint): Throw exception if
2069 there is an error inserting hardware breakpoints and use the
2070 error message from the target.
2071
2072 * breakpoint.c (insert_bp_location, insert_breakpoint_locations):
2073 Catch this exception and print the error message contained within. Do not
2074 print the default hardware error breakpoint message in this case.
2075
a1b64ce1
DE
20762012-09-12 Doug Evans <dje@google.com>
2077
2078 * dwarf2read.c (dwarf2_read_addr_index): Fix handling the case where
2079 cu == NULL.
2080
83a788b8
DE
20812012-09-11 Doug Evans <dje@google.com>
2082
2083 * dwarf2read.c (dw2_do_expand_symtabs_matching): Don't examine
2084 .gdb_index symbol attributes if there are none.
2085
d9eaeb59
JB
20862012-09-11 Joel Brobecker <brobecker@adacore.com>
2087
2088 * symtab.h (struct minimal_symbol) [has_size]: New field.
2089 (MSYMBOL_SIZE): Adjust to forbid macro from being used as lvalue.
2090 (SET_MSYMBOL_SIZE, MSYMBOL_HAS_SIZE): New macros.
2091 * printcmd.c (build_address_symbolic): Only filter out zero-sized
2092 minimal symbols if the symbol's size is actually known.
2093 * minsyms.c (prim_record_minimal_symbol_full): Adjust setting
2094 of msymbol's size field. Add comment.
2095 * elfread.c (elf_symtab_read, elf_rel_plt_read): Use
2096 SET_MSYMBOL_SIZE to set the minimal symbol size.
2097
a83e9154
JB
20982012-09-11 Joel Brobecker <brobecker@adacore.com>
2099
2100 * minsyms.c (install_minimal_symbols): Use memset to fill entire
2101 minimal_symbol struct object, rather than setting some of its
2102 fields one by one.
2103
350b1b26
AB
21042012-09-11 Andrew Burgess <aburgess@broadcom.com>
2105
2106 * c-typeprint.c (c_type_print_varspec_prefix): Pass through the
2107 passed_a_ptr flag when displaying typedef types.
2108
2fa15f23
JB
21092012-09-10 Joel Brobecker <brobecker@adacore.com>
2110
2111 * ada-lang.c (coerce_unspec_val_to_type): Make sure that
2112 the optimized_out flag is preserved.
2113
5152ff90
AG
21142012-09-10 Anthony Green <green@moxielogic.com>
2115
2116 * moxie-tdep.c (moxie_analyze_prologue): Update for function
2117 prologue changes in GCC.
2118
5b4f6e25
KS
21192012-09-10 Keith Seitz <keiths@redhat.com>
2120
2121 PR gdb/13483
2122 * gdbtypes.h (BOOL_PTR_CONVERSION_BADNESS): Rename to ...
2123 (BOOL_CONVERSION_BADNESS): ... this.
2124 * gdbtypes.c (BOOL_PTR_CONVERSION_BADNESS): Likewise.
2125 (rank_one_type): Allow all boolean conversions
2126 permitted by the standard.
2127
f1070426
TT
21282012-09-06 Tom Tromey <tromey@redhat.com>
2129
2130 * python/py-newobjfileevent.c (create_new_objfile_event_object):
2131 Don't decref py_objfile.
2132
a8db4212
YPK
21332012-09-02 Khoo Yit Phang <khooyp@cs.umd.edu>
2134
2135 Do not enable -lmcheck by default when Python is enabled with
2136 threading support.
2137 * configure.ac: (python_has_threads) New variable, by testing
2138 if WITH_THREAD is defined in Python.h.
2139 Move --enable-lmcheck after --with-python.
2140 Do not enable -lmcheck by default if python_has_threads=yes.
2141 Warn if --enable-lmcheck and python_has_threads=yes.
2142 * configure: Regenerate.
2143
648beb2b
YQ
21442012-08-31 Yao Qi <yao@codesourcery.com>
2145
2146 * mi/mi-cmds.c (mi_cmds): New macros DEF_MI_CMD_CLI
2147 DEF_MI_CMD_MI DEF_MI_CMD_CLI_1 and DEF_MI_CMD_CLI_1.
2148 Update some commands.
2149 * mi/mi-cmds.h (struct mi_cmd) <suppress_notification>: New field.
2150 * mi/mi-main.c (mi_cmd_execute): Set '*parse->cmd->suppress_notification'
2151 to 1.
2152
ef07a9f7
YQ
21532012-08-31 Yao Qi <yao@codesourcery.com>
2154
2155 * mi/mi-cmds.c (mi_cmds): Add 'static'.
2156
fda395cf
YPK
21572012-08-30 Khoo Yit Phang <khooyp@cs.umd.edu>
2158
2159 * MAINTAINERS (Write After Approval): Add "Khoo Yit Phang".
2160
8efd8e78
DE
21612012-08-29 Doug Evans <dje@google.com>
2162
2163 * main.c (print_gdb_help): Remove reference to
2164 --use-deprecated-index-sections.
2165
883b9c6c
YQ
21662012-08-28 Yao Qi <yao@codesourcery.com>
2167
2168 * cli/cli-cmds.c (max_user_call_depth): Add 'unsigned'.
2169 (init_cmds): Call add_setshow_uinteger_cmd for command
2170 'max-user-call-depth'.
2171 * cli/cli-script.c (execute_user_command): Add 'unsigned' to the
2172 declaration of 'max_user_call_depth'.
2173 * frame.c (backtrace_limit): Add 'unsigned'.
2174 (_initialize_frame): Call add_setshow_uinteger_cmd for command
2175 'limit'.
2176 * remote.c (remoteaddresssize): Add 'unsigned'.
2177 (remote_address_masked): Change local var 'address_size' to
2178 'unsigned'.
2179 (_initialize_remote): Call add_setshow_uinteger_cmd for
2180 'remoteaddresssize'.
2181 * top.c (history_size): Add 'unsigned'.
2182 (show_commands): Change local variables to 'unsigned'.
2183 (set_history_size_command): Don't check history_size is negative.
2184 Adjust the condition to call unstifle_history and set history_size
2185 to UNIT_MAX.
2186
1292279a
PA
21872012-08-28 Pedro Alves <palves@redhat.com>
2188
2189 PR gdb/14428
2190
2191 * infcmd.c (default_print_one_register_info): New, factored out
2192 from default_print_registers_info.
2193 (default_print_registers_info): Use it. Mark value unavailable if
2194 necessary.
2195 (registers_info): Print user registers with
2196 default_print_one_register_info.
2197
f629cd75
L
21982010-08-27 H.J. Lu <hongjiu.lu@intel.com>
2199
2200 PR tui/14486
2201 * tui/tui-source.c (tui_source_is_displayed): Check if TUI_SRC_WIN
2202 is not NULL before referencing it.
2203
1c8cdcb1
JK
22042012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2205
2206 * breakpoint.c (parse_breakpoint_sals) <(*address) == NULL>: New
2207 variable pc. Call find_pc_line instead of find_pc_overlay, restore
2208 original PC for it.
2209
e9687799
JK
22102012-08-27 Eli Zaretskii <eliz@gnu.org>
2211 Jan Kratochvil <jan.kratochvil@redhat.com>
2212
2213 * auto-load.c (auto_load_objfile_script): Rename to ...
2214 (auto_load_objfile_script_1): ... here, change variable realname to
2215 parameter realname, document it, add return value, add variable retval.
2216 (auto_load_objfile_script): New function.
2217
7afa1642
JK
22182012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2219
2220 * cli/cli-decode.c (print_doc_line): Keep skipping '.' and ',' not
2221 followed by a whitespace.
2222
dc7650b8
JK
22232012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2224
28e66c70 2225 PR gdb/14494.
dc7650b8
JK
2226 * dwarf2read.c (dwarf2_locate_sections): Move variable aflag here.
2227 Move the SEC_HAS_CONTENTS check here - for any NAMES use.
2228 (dwarf2_locate_sections) <eh_frame>: Move the variable and check from
2229 here.
2230
1591a1e8
PA
22312012-08-27 Wei-cheng Wang <cole945@gmail.com>
2232
2233 * memattr.c (create_mem_region): Fix memory region overlapping
2234 checking.
2235
ecfb0d68
SP
22362012-08-24 Siddhesh Poyarekar <siddhesh@redhat.com>
2237
2238 * h8300-tdep.c (h8300_push_dummy_call): Replace unsafe alloca
2239 with xmalloc/cleanup.
2240 * mt-tdep.c (mt_push_dummy_call): Likewise.
2241 * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
2242 * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
2243
8c56c1b9
YQ
22442012-08-24 Yao Qi <yao@codesourcery.com>
2245
2246 * jv-exp.y (push_expression_name): Add "." at the end of error
2247 message.
2248
e3480f4a
YPK
22492012-08-23 Khoo Yit Phang <khooyp@cs.umd.edu>
2250
2251 Document how to return from "python-interactive" to GDB.
e3480f4a
YPK
2252 * python/python.c (_initialize_python): Update documentation.
2253
dfbd5e7b
PA
22542012-08-23 Pedro Alves <palves@redhat.com>
2255
2256 * infrun.c (_initialize_infrun) <handle command help text>:
2257 Mention that multiple signals are supported.
2258
2edda2ff
PA
22592012-08-23 Pedro Alves <palves@redhat.com>
2260
2261 * infcmd.c (_initialize_infcmd) <signal command>: Fix typo in help
2262 string.
2263
8d735b87
YQ
22642012-08-23 Yao Qi <yao@codesourcery.com>
2265
2266 * tracepoint.c (disconnect_tracing): Call set_tracepoint_num.
2267 (tfind_1): Don't call registers_changed, set_traceframe_num,
2268 and clear_traceframe_info.
2269 Call set_current_traceframe.
2270 (set_current_traceframe): call set_traceframe_num.
2271
c5d9b215
SDJ
22722012-08-22 Sergio Durigan Junior <sergiodj@redhat.com>
2273
2274 * remote-sim.c (_initialize_remote_sim): Pass NULL argument to
2275 `register_inferior_data_with_cleanup', fixing regression on PowerPC64.
2276
037bbc8e
YPK
22772012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
2278
2279 Enable readline in Python in a GDB-specific way and block the
2280 standard Python readline module to prevent conflicts with GDB.
2281 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-gdb-readline.o.
2282 (SUBDIR_PYTHON_SRCS): Add python/py-gdb-readline.c.
2283 (py-gdb-readline.o): Add rule to compile python/py-gdb-readline.c.
2284 * python/py-gdb-readline.c: New file.
2285 * python/python-internal.h (gdbpy_initialize_gdb_readline): New
2286 prototype.
2287 * python/python.c (_initialize_python): Call
2288 gdbpy_initialize_gdb_readline.
2289
406b1477
KS
22902012-08-22 Keith Seitz <keiths@redhat.com>
2291
2292 * defs.h: Include build-gnulib/config.h
2293
6ca1b147
JM
22942012-08-22 Joseph Myers <joseph@codesourcery.com>
2295
2296 * arm-tdep.c (thumb_get_next_pc_raw): Mask off low bits for bx pc
2297 and blx pc.
2298
8315665e
YPK
22992012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
2300
2301 Add a new "python-interactive" command that starts a standard
2302 Python interactive prompt with "pi" as alias, and add "py" as
2303 an alias to "python".
2304 * NEWS: Mention the new commands.
8315665e
YPK
2305 * python/python.c (eval_python_command): New function.
2306 (python_interactive_command): For "python-interactive" with
2307 arguments, call eval_python_command. For "python-interactive"
2308 without arguments, call PyRun_InteractiveLoop.
2309 (_initialize_python): Add "python-interactive" command with
2310 "pi" as alias, and add "py" as an alias to "python".
2311
522002f9
TT
23122012-08-22 Tom Tromey <tromey@redhat.com>
2313
2314 * defs.h (quit_flag): Don't declare.
2315 (clear_quit_flag, check_quit_flag, set_quit_flag): Declare.
2316 (QUIT): Use new functions.
2317 * event-top.c (command_handler): Use clear_quit_flag.
2318 (handle_sigint): Use set_quit_flag.
2319 (async_request_quit): Use check_quit_flag. Don't check
2320 immediate_quit.
2321 * exceptions.c (throw_exception): Use clear_quit_flag.
2322 * main.c (captured_main): Use clear_quit_flag.
2323 * python/python.c (clear_quit_flag, set_quit_flag)
2324 (check_quit_flag): New functions.
2325 * remote-sim.c (gdb_os_poll_quit): Use check_quit_flag,
2326 clear_quit_flag.
2327 * remote.c (remote_wait_as): Use check_quit_flag,
2328 clear_quit_flag.
2329 (remote_start_remote): Call QUIT.
2330 * symfile.c (load_progress): Use check_quit_flag.
2331 * top.c (command_loop): Use clear_quit_flag.
2332 (command_line_input): Call QUIT.
2333 * utils.c (quit_flag): Conditionally define.
2334 (clear_quit_flag, check_quit_flag, set_quit_flag): New
2335 functions.
2336 (prompt_for_continue): Call QUIT. Use quit, not
2337 async_request_quit.
2338 * remote-mips.c (mips_expect_timeout): Call QUIT.
2339 * monitor.c (monitor_expect): Call QUIT.
2340
b583003e
TT
23412012-08-22 Tom Tromey <tromey@redhat.com>
2342
2343 * event-top.c (sigwinch_token, handle_sigwinch): Remove.
2344 (async_init_signals): Update.
2345 * utils.c (init_page_info): Don't use SIGWINCH_HANDLER.
2346 (SIGWINCH_HANDLER_BODY): Remove.
2347
e1507e95
TT
23482012-08-22 Tom Tromey <tromey@redhat.com>
2349
2350 * jit.c (jit_object_close_impl): Don't malloc the objfile
2351 name.
2352 * objfiles.c (allocate_objfile): Don't malloc the objfile
2353 name.
2354 (free_objfile): Don't free the objfile name.
2355 * objfiles.h (struct objfile) <name>: Update comment.
2356 * symfile.c (reread_symbols): Fix reference counting. Don't
2357 malloc objfile name.
2358
1c00ec6b
TT
23592012-08-22 Tom Tromey <tromey@redhat.com>
2360
2361 * windows-nat.c (windows_make_so): Use gdb_bfd_open.
2362 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_open.
2363 (symfile_bfd_open): Likewise.
2364 (generic_load): Likewise.
2365 * solib.c (solib_bfd_fopen): Use gdb_bfd_open.
2366 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
2367 gdb_bfd_open.
2368 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2369 Use gdb_bfd_open.
2370 * rs6000-nat.c (add_vmap): Use gdb_bfd_open.
2371 * remote-mips.c (mips_load_srec): Use gdb_bfd_open.
2372 (pmon_load_fast): Likewise.
2373 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_open.
2374 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_open.
2375 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_open.
2376 (macho_check_dsym): Likewise.
2377 * m32r-rom.c (m32r_load): Use gdb_bfd_open.
2378 (m32r_upload_command): Likewise.
2379 * gdb_bfd.h (gdb_bfd_cache): Declare.
2380 * gdb_bfd.c (struct gdb_bfd_data): New.
2381 (gdb_bfd_cache): New global.
2382 (struct gdb_bfd_cache_search): New.
2383 (hash_bfd): New function.
2384 (eq_bfd): Likewise.
2385 (gdb_bfd_open): Likewise.
2386 (gdb_bfd_ref): Allocate a gdb_bfd_data and attach to the BFD.
2387 (gdb_bfd_unref): Remove closed BFD from cache. Update for
2388 gdb_bfd_data.
2389 * exec.c (exec_file_attach): Use gdb_bfd_open.
2390 * dsrec.c (load_srec): Use gdb_bfd_open.
2391
6532ff36
TT
23922012-08-22 Tom Tromey <tromey@redhat.com>
2393
2394 * dwarf2read.c (macro_start_file): Update.
2395 * objfiles.c (get_objfile_bfd_data): Initialize macro_cache.
2396 (free_objfile_per_bfd_storage): Destroy macro_cache.
2397 (allocate_objfile, free_objfile): Update.
2398 * objfiles.h (struct objfile_per_bfd_storage) <macro_cache>:
2399 New field.
2400 (struct objfile) <macro_cache>: Remove.
2401 * symfile.c (reread_symbols): Update.
2402 * symmisc.c (print_symbol_bcache_statistics): Update.
2403 (print_objfile_statistics): Update.
2404
706e3705
TT
24052012-08-22 Tom Tromey <tromey@redhat.com>
2406
2407 * elfread.c (elf_symtab_read): Update.
2408 * objfiles.c (objfiles_bfd_data): New global.
2409 (get_objfile_bfd_data, free_objfile_per_bfd_storage)
2410 (objfile_bfd_data_free, set_objfile_per_bfd): New functions.
2411 (allocate_objfile, free_objfile): Update.
2412 (_initialize_objfiles): Initialize objfiles_bfd_data.
2413 * objfiles.h (struct objfile_per_bfd_storage): New.
2414 (struct objfile) <per_bfd>: New field.
2415 <filename_cache>: Remove.
2416 (set_objfile_per_bfd): Declare.
2417 * symfile.c (reread_symbols): Update. Call
2418 set_objfile_per_bfd.
2419 (allocate_symtab): Update.
2420 * symmisc.c (print_symbol_bcache_statistics): Update.
2421 (print_objfile_statistics): Print the size of the BFD obstack.
2422
e992eda4
TT
24232012-08-22 Tom Tromey <tromey@redhat.com>
2424
2425 * gdb_bfd.h: Include registry.h. Use DECLARE_REGISTRY.
2426 * gdb_bfd.c: Use DEFINE_REGISTRY.
2427 (struct gdb_bfd_data): Add REGISTRY_FIELDS.
2428 (gdb_bfd_ref): Call bfd_alloc_data.
2429 (gdb_bfd_unref): Call bfd_free_data.
2430
6b81941e
TT
24312012-08-22 Tom Tromey <tromey@redhat.com>
2432
2433 * registry.h (struct registry_fields): New.
2434 (REGISTRY_FIELDS): Redefine.
2435 (REGISTRY_ACCESS_FIELD): New macro.
2436 (DEFINE_REGISTRY): Add ACCESS argument. Update defined
2437 functions.
2438
8e260fc0
TT
24392012-08-22 Tom Tromey <tromey@redhat.com>
2440
2441 * auto-load.c (_initialize_auto_load): Update.
2442 * solib-svr4.c (_initialize_svr4_solib): Update
2443 * solib-dsbt.c (_initialize_dsbt_solib): Update.
2444 * solib-darwin.c (_initialize_darwin_solib): Update.
2445 * registry.h: New file.
2446 * python/py-progspace.c (gdbpy_initialize_pspace): Update.
2447 * python/py-inferior.c (gdbpy_initialize_inferior): Update.
2448 * progspace.h: Include registry.h. Use DECLARE_REGISTRY.
2449 (register_program_space_data_with_cleanup)
2450 (register_program_space_data, program_space_alloc_data)
2451 (clear_program_space_data, set_program_space_data)
2452 (program_space_data): Don't declare.
2453 * progspace.c: Use DEFINE_REGISTRY.
2454 (struct program_space_data, struct
2455 program_space_data_registration, struct
2456 program_space_data_registry, program_space_data_registry)
2457 (register_program_space_data_with_cleanup)
2458 (register_program_space_data, program_space_alloc_data)
2459 (program_space_free_data, clear_program_space_data)
2460 (set_program_space_data, program_space_data): Remove.
2461 * objfiles.h: Include registry.h. Use DECLARE_REGISTRY.
2462 (struct objfile) <data, num_data>: Replace with REGISTRY_FIELDS.
2463 (register_objfile_data_with_cleanup, register_objfile_data)
2464 (clear_objfile_data, set_objfile_data, objfile_data): Don't
2465 declare.
2466 * objfiles.c: Use DEFINE_REGISTRY.
2467 (struct objfile_data, struct objfile_data_registration, struct
2468 objfile_data_registry, objfile_data_registry)
2469 (register_objfile_data_with_cleanup, register_objfile_data)
2470 (objfile_alloc_data, objfile_free_data, clear_objfile_data)
2471 (set_objfile_data, objfile_data): Remove.
2472 (_initialize_objfiles): Update.
2473 * jit.c (_initialize_jit): Update.
2474 * inflow.c (_initialize_inflow): Update.
2475 * inferior.h: Include registry.h. Use DECLARE_REGISTRY.
2476 (struct inferior) <data, num_data>: Replace with REGISTRY_FIELDS.
2477 (register_inferior_data_with_cleanup, register_inferior_data)
2478 (clear_inferior_data, set_inferior_data, inferior_data): Don't
2479 declare.
2480 * inferior.c: Use DEFINE_REGISTRY.
2481 (struct inferior_data, struct inferior_data_registration, struct
2482 inferior_data_registry, inferior_data_registry)
2483 (register_inferior_data_with_cleanup, register_inferior_data)
2484 (inferior_alloc_data, inferior_free_data clear_inferior_data)
2485 (set_inferior_data, inferior_data): Remove.
2486 * auxv.c (_initialize_auxv): Update.
2487 * ada-lang.c (_initialize_ada_language): Update.
2488 * breakpoint.c (_initialize_breakpoint): Update.
2489 * i386-nat.c (i386_use_watchpoints): Update.
2490
ed9eebaf
TT
24912012-08-22 Tom Tromey <tromey@redhat.com>
2492
2493 * exec.c (exec_close, exec_file_attach): Update.
2494 (add_to_section_table): Initialize 'key' field.
2495 (add_target_sections, remove_target_sections): Add 'key' argument.
2496 * exec.h (add_target_sections, remove_target_sections): Add
2497 'key' argument.
2498 * solib.c (solib_map_sections, update_solib_list, clear_solib)
2499 (reload_shared_libraries_1): Update.
2500 * target.h (struct target_section) <key>: New field.
2501
2f2e97fa
TT
25022012-08-22 Tom Tromey <tromey@redhat.com>
2503
2504 * cli/cli-cmds.c (filter_sals): Handle nelts == 0 case.
2505
b3dbbd6f
PM
25062012-08-21 Pierre Muller <muller@ics.u-strasbg.fr>
2507
2508 * symfile.c (allocate_symtab): Use host_address_to_string
2509 function instead of cast of pointer to long which is not
2510 compatible with x86_64-w64-mingw32 build.
2511
f94363d7
AP
25122012-08-19 Andrew Pinski <apinski@cavium.com>
2513
2514 * mips-tdep.c (is_octeon): New function.
2515 (is_octeon_bbit_op): New function.
2516 (mips32_next_pc): Handle Octeon's bbit instructions.
2517 (mips32_instruction_has_delay_slot): Likewise.
2518
78a59c2f
AP
25192012-08-19 Andrew Pinski <apinski@cavium.com>
2520
2521 * mips-tdep.c (mips32_next_pc): Fix line spacing of the comment
2522 before the function.
2523
4f5bcb50
AP
25242012-08-19 Andrew Pinski <apinski@cavium.com>
2525
2526 * mips-tdep.c (mips32_next_pc): Consolidate calls to itype_op.
2527
e5afdbd7
KS
25282012-08-19 Keith Seitz <keiths@redhat.com>
2529
2530 PR c++/14365
2531 * c-typeprint.c (c_type_print_varspec_prefix): Pass
2532 -1 for SHOW to c_type_print_base for METHODPTR and MEMBERPTR.
2533
13c9750e
EZ
25342012-08-18 Eli Zaretskii <eliz@gnu.org>
2535
2536 * Makefile.in (HFILES_NO_SRCDIR): Fix a typo: golang.h -> go-lang.h.
2537 The typo broke "make TAGS".
2538
db761810 25392012-08-17 Joel Brobecker <brobecker@adacore.com>
2540
2541 GDB 7.5 released.
2542
a451cb65
KS
25432012-08-17 Keith Seitz <keiths@redhat.com>
2544
2545 PR c++/13356
2546 * gdbtypes.c (strict_type_checking): New variable.
2547 (show_strict_type_checking): New function.
2548 (rank_one_type): Return NS_POINTER_INTEGER_CONVERSION_BADNESS
2549 if strict type checking is disabled.
2550 (_initialize_gdbtypes): Add "check type" subcommand.
2551 * gdbtypes.h (NS_INTEGER_POINTER_CONVERSION_BADNESS): New struct.
2552
25532012-08-17 Keith Seitz <keiths@redhat.com>
2554
2555 * language.h (type_mode): Remove.
2556 (type_check): Remove.
2557 (struct language_defn): Remove la_type_check.
2558 (STRICT_TYPE): Remove unused macro.
2559 (type_error): Remove.
2560 * language.c (set_type_range_case): Renamed to ...
2561 (set_range_case): ... this. Update all callers.
2562 Remove type_mode/type_check.
2563 (type_mode): Remove.
2564 (type_check): Remove.
2565 (show_type_command): Remove.
2566 (set_type_command): Remove.
2567 (language_info): Remove type checking output.
2568 (type_error): Remove unused function.
2569 (range_error): Update comment.
2570 (unknown_language_defn): Remove la_type_check.
2571 (auto_language_defn): Likewise.
2572 (local_language_defn): Likewise.
2573 (_initialize_language): Remove "check type" subcommand.
2574 * ada-lang.c (ada_language_defn): Remove la_type_check.
2575 * c-lang.c (c_language_defn): Likewise.
2576 (cplus_language_defn): Likewise.
2577 (asm_language_defn): Likewise.
2578 (minimal_language_defn): Likewise.
2579 * d-lang.c (d_language_defn): Likewise.
2580 * f-lang.c (f_language_defn): Likewise.
2581 * go-lang.c (go_language_defn): Likewise.
2582 * jv-lang.c (java_language_defn): Likewise.
2583 * m2-lang.c (m2_language_defn): Likewise.
2584 * objc-lang.c (objc_language_defn): Likewise.
2585 * opencl-lang.c (opencl_language_defn): Likewise.
2586 * p-lang.c (pascal_language_defn): Likewise.
2587
dbf6a605
MF
25882012-08-16 Mike Frysinger <vapier@gentoo.org>
2589
2590 * infcmd.c (_initialize_infcmd): Remove trailing ) in next help text.
2591
973e3cf7
JB
25922012-08-16 Joel Brobecker <brobecker@adacore.com>
2593
2594 * ia64-hpux-nat.c (ia64_hpux_get_register_from_save_state_t):
2595 New function.
2596 (ia64_hpux_xfer_memory): Check if inferior_ptid is known before
2597 using the regache. Use ia64_hpux_get_register_from_save_state_t
2598 to access the bsp and bspstore registers if not.
2599
d80ee84f
JB
26002012-08-16 Joel Brobecker <brobecker@adacore.com>
2601
2602 * breakpoint.h (detach_breakpoints): pid parameter is now a ptid.
2603 * breakpoint.c (detach_breakpoints): Change pid parameter into
2604 a ptid. Adjust code accordingly.
2605 * infrun.c (handle_inferior_event): Delete variable child_pid.
2606 Update call to detach_breakpoints to pass the child ptid for
2607 fork events.
2608 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Remove
2609 assert that inferior_ptid's lwp is zero.
2610 (linux_handle_extended_wait): Update call to detach_breakpoints.
2611 * inf-ttrace.c (inf_ttrace_follow_fork): Update call to
2612 detach_breakpoints.
2613
2dcc6086
JB
26142012-08-16 Joel Brobecker <brobecker@adacore.com>
2615
2616 * inf-ttrace.c (inf_ttrace_follow_fork): When following the
2617 parent, only call detach_breakpoints if tts.tts_event ==
2618 TTEVT_VFORK.
2619
0c92d8c1
JB
26202012-08-16 Joel Brobecker <brobecker@adacore.com>
2621
2622 * dwarf2-frame.c (dwarf2_frame_cache): Use
2623 get_frame_address_in_block instead of get_frame_pc as
2624 the bound for executing the frame's FDE.
2625
6b1755ce
YQ
26262012-08-16 Yao Qi <yao@codesourcery.com>
2627
2628 * gdbtypes.h (enum type_code): Define TYPE_CODE_BITSTRING -1.
2629 * arm-tdep.c (arm_type_align): Remove code handling TYPE_CODE_BITSTRING.
2630 * c-typeprint.c (c_type_print_varspec_prefix): Likewise.
2631 (c_type_print_varspec_suffix): Likewise.
2632 * eval.c (evaluate_subexp_standard): Likewise.
2633 * f-typeprint.c (f_type_print_varspec_prefix): Likewise.
2634 (f_type_print_varspec_suffix): Likewise.
2635 * gdbtypes.c (is_scalar_type): Likewise.
2636 (recursive_dump_type): Likewise.
2637 * infcall.c (value_arg_coerce): Likewise.
2638 * m2-valprint.c (m2_val_print): Likewise.
2639 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
2640 (pascal_type_print_varspec_suffix): Likewise.
2641 (pascal_type_print_base): Likewise.
2642 * p-valprint.c (pascal_val_print): Likewise.
2643 (pascal_val_print): Likewise.
2644 * valops.c (value_slice): Likewise.
2645 * valprint.c (scalar_type_p): Likewise.
2646 * valarith.c (value_bitstring_subscript): Remove.
2647 (value_concat): Remove code handling TYPE_CODE_BITSTRING.
2648 Remove comment on TYPE_CODE_BITSTRING.
2649
2650 * stabsread.c (read_type): Don't set TYPE_CODE (type) to
2651 TYPE_CODE_BITSTRING.
2652
2653 * python/py-type.c (pyty_codes): Move ENTRY (TYPE_CODE_BITSTRING) to
2654 slot 0.
2655
8acc4065
YQ
26562012-08-16 Yao Qi <yao@codesourcery.com>
2657
2658 * tracepoint.c (trace_find_none_command): Remove.
2659 (_initialize_tracepoint): Call add_alias_cmd for "tfind none".
2660
8128fd8e
YQ
26612012-08-16 Yao Qi <yao@codesourcery.com>
2662
2663 * remote.c (handle_notification): Remove parameter 'length'.
2664 (putpkt_binary, getpkt_or_notif_sane_1): Caller update.
2665
2873700e
KS
26662012-08-15 Keith Seitz <keiths@redhat.com>
2667
2668 * gdbtypes.c (opaque_type_resolution): Make static.
2669 Add missing comment.
2670 (overload_debug): Add missing comment.
2671 (show_opaque_type_resolution): Likewise.
2672 (show_overload_debug): Likewise.
2673 (print_bit_vector): Remove unnecessary forward declaration.
2674 (print_arg_types): Likewise.
2675 (dump_fn_fieldlists): Likewise.
2676 (print_cplus_stuff): Likewise.
2677
b82d08cd
TT
26782012-08-15 Tom Tromey <tromey@redhat.com>
2679
2680 * gdb_bfd.c (struct gdb_bfd_data) <archive_bfd>: New field.
2681 (gdb_bfd_ref): Initialize new field.
2682 (gdb_bfd_unref): Unref the archive BFD.
2683 (gdb_bfd_openr_next_archived_file): Acquire a reference to the
2684 parent archive.
2685
db6573d6
TT
26862012-08-15 Tom Tromey <tromey@redhat.com>
2687
2688 PR python/14387:
2689 * python/py-bpevent.c (create_breakpoint_event_object): Update
2690 comment.
2691 * python/py-event.c (evpy_add_attribute): Update comment.
2692 * python/py-exitedevent.c (create_exited_event_object): Fix
2693 reference counting and error handling.
2694 * python/py-newobjfileevent.c (create_new_objfile_event_object):
2695 Fix reference counting.
2696 * python/py-signalevent.c (create_signal_event_object): Fix
2697 reference counting and error handling.
2698 * python/py-stopevent.c (emit_stop_event): Fix reference
2699 counting.
2700 * python/py-threadevent.c (get_event_thread): Return a
2701 borrowed reference.
2702 * python/py-type.c (convert_field): Fix reference counting.
2703
a036ba48
TT
27042012-08-15 Tom Tromey <tromey@redhat.com>
2705
2706 * dwarf2read.c (dwarf_decode_macro_bytes)
2707 <DW_MACRO_GNU_transparent_include>: Use pointer to included data
2708 as hash key.
2709
486c7739
MF
27102012-08-14 Mike Frysinger <vapier@gentoo.org>
2711
2712 * infcmd.c (_initialize_infcmd): Update help text for the signal,
2713 stepi, nexti, finish, next, step, jump, and continue commands.
2714 * infrun.c (_initialize_infrun): Update help text for the handle
2715 command.
2716
4cf93a03
DE
27172012-08-14 Doug Evans <dje@google.com>
2718
70b099cf
DE
2719 * gdbtypes.c (struct extra): Delete, unused.
2720
5212577a
DE
2721 * gdbtypes.c: Whitespace cleanup.
2722 (address_space_name_to_int): Remove "extern" from definition.
2723 (_initialize_gdbtypes): Declare with initialize_file_ftype.
2724
4cf93a03
DE
2725 * gdbtypes.c (make_pointer_type): Remove redundant setting of
2726 TYPE_POINTER_TYPE (type).
2727
3756ef7e
GB
27282012-08-14 Gary Benson <gbenson@redhat.com>
2729
2730 * solib-svr4.c (svr4_free_library_list): Use free_so.
2731
40d72643
MF
27322012-08-13 Mike Frysinger <vapier@gentoo.org>
2733
2734 * .gitignore: Add go-exp.c.
2735
f47f77df
DE
27362012-08-13 Doug Evans <dje@google.com>
2737
2738 * value.c (show_convenience): Tweak comment.
2739 (_initialize_values): Mention convenience functions in the help text
2740 for "show convenience".
2741
7507c54a
YQ
27422012-08-13 Yao Qi <yao@codesourcery.com>
2743
2744 * std-operator.def: Remove TERNOP_SLICE_COUNT.
2745 * breakpoint.c (watchpoint_exp_is_const): Remove handling to
2746 TERNOP_SLICE_COUNT.
2747 * eval.c (evaluate_subexp_standard): Likewise.
2748 * expprint.c (print_subexp_standard): Likewise.
2749 (dump_subexp_body_standard): Likewise.
2750 * parse.c (operator_length_standard): Likewise.
2751
5cad9736
YQ
27522012-08-13 Yao Qi <yao@codesourcery.com>
2753
2754 * std-operator.def: Remove OP_BITSTRING.
2755 * breakpoint.c (watchpoint_exp_is_const): Update.
2756 * eval.c (evaluate_subexp_standard): Remove handling to
2757 OP_BITSTRING.
2758 * expprint.c (print_subexp_standard): Likewise.
2759 (dump_subexp_body_standard): Likewise.
2760 * parse.c (operator_length_standard): Likewise.
2761 * valops.c (value_bitstring): Remove.
2762 * value.h: Remove the declaration of 'value_bitstring'.
2763
bad7670a
SDJ
27642012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
2765
2766 * linespec.c (find_methods): Remove unused variables `i1' and
2767 `name_len'.
2768 (decode_line_full): Likewise for `arg_start'.
2769
d9dce7fa
SDJ
27702012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
2771
2772 * gdb_bfd.c (gdb_bfd_unref): Remove unused variable `slot'.
2773 (zlib_decompress_section): Likewise for `section_data'.
2774 (gdb_bfd_map_section): Likewise for `buf' and `retbuf'.
2775
a72c3253
DE
27762012-08-10 Doug Evans <dje@google.com>
2777
2778 Add $_memeq, $_regex, $_streq, $_strlen convenience functions.
2779 * NEWS: Document them.
2780 * data-directory/Makefile.in (PYTHON_FILES): Add function/__init__.py,
2781 function/strfns.py.
2782 * python/py-type.c (typy_array_1): New function.
2783 (typy_array): Call it.
2784 (typy_vector): New function.
2785 (type_object_methods): Add "vector".
2786 * python/lib/gdb/function/__init__.py: New file.
2787 * python/lib/gdb/function/strfns.py: New file.
2788
200bc880
SP
27892012-08-10 Siddhesh Poyarekar <siddhesh@redhat.com>
2790
2791 * python/py-type.c (convert_field): Use gdb_py_long_from_longest
2792 for TYPE_FIELD_BITPOS.
2793 (typy_get_sizeof): Likewise for TYPE_LENGTH.
2794
de0bea00
MF
27952012-08-10 Mike Frysinger <vapier@gentoo.org>
2796
2797 PR cli/10436:
2798 * common/vec.h (VEC_merge): Define.
2799 (DEF_VEC_ALLOC_FUNC_I): Add a merge helper.
2800 (DEF_VEC_ALLOC_FUNC_P): Likewise.
2801 (DEF_VEC_ALLOC_FUNC_O): Likewise.
2802 * completer.c: Include gdb_signals.h.
2803 (signal_completer): Define.
2804 * completer.h (signal_completer): Add prototype.
2805 * infcmd.c (_initialize_infcmd): Assign the command
2806 completer for "signal" to handle_completer.
2807 * infrun.c: Include completer.h.
2808 (handle_completer): Define.
2809 (_initialize_infrun): Declare a new local variable c. Store the
2810 result of add_com("handle") to it. Assign the command
2811 completer for "handle" to handle_completer.
2812
5b9afe8a
YQ
28132012-08-09 Yao Qi <yao@codesourcery.com>
2814
2815 * cli/cli-decode.c (set_cmd_prefix): New.
2816 (lookup_cmd_for_prefixlist): New.
2817 (add_prefix_cmd): Call set_cmd_prefix and update field 'prefix'
2818 of each cmd_list_element in *prefixlist.
2819 (add_setshow_cmd_full): set_cmd_prefix.
2820 (add_alias_cmd): Likewise.
2821 * cli/cli-decode.h (struct cmd_list_element) <prefix>: New field.
2822 Declare 'auto_boolean_enums'.
2823 * cli/cli-setshow.c: Include "observer.h".
2824 (notify_command_param_changed_p): New.
2825 (add_setshow_auto_boolean_cmd): Move auto_boolean_enums out.
2826 Remove 'static'.
2827 (do_setshow_command): Split it to ...
2828 (do_set_command, do_show_command): ... them. New.
2829 (do_set_command): Call observer_notify_command_param_changed if
2830 notify_command_param_changed_p returns true.
2831 (cmd_show_list): Caller update.
2832 * auto-load.c (set_auto_load_cmd): Likewise.
2833 * remote.c (show_remote_cmd): Likewise.
2834 * cli/cli-setshow.h: Update declarations.
2835 * top.c (execute_command): Call do_set_command and do_show_command.
2836
2837 * NEWS: Mention new MI notification.
2838 * mi/mi-interp.c: Declare mi_command_param_changed.
2839 (mi_interpreter_init): Attach mi_command_param_changed to
2840 observer command_param_changed.
2841 (mi_command_param_changed): New.
2842 Remove mi_suppress_breakpoint_notifications.
2843 Define global variable mi_suppress_notification.
2844 (mi_breakpoint_created): Update.
2845 (mi_breakpoint_deleted): Likewise.
2846 (mi_breakpoint_modified): Likewise.
2847 * mi/mi-main.c (mi_cmd_execute): Likewise. Check command
2848 'gdb-set' and set mi_suppress_notification.
2849 * mi/mi-main.h: (mi_suppress_notification): New struct.
2850
1969df89
JK
28512012-08-09 Andreas Tobler <andreast@fgznet.ch>
2852 Jan Kratochvil <jan.kratochvil@redhat.com>
2853
2854 * fbsd-nat.h (fbsd_find_memory_regions): Use find_memory_region_ftype.
2855
8bfd80db
YQ
28562012-08-09 Yao Qi <yao@codesourcery.com>
2857
2858 * cli/cli-cmds.c (enablebreaklist): Move it to breakpoint.c.
2859 (skiplist): Move it to skip.c.
2860 (init_cmd_lists): Remove code setting enablebreaklist and
2861 skiplist to NULL.
2862 * breakpoint.c (enablebreaklist): Moved from cli/cli-cmds.c.
2863 * cli/cli-cmds.h: Remove declaration of enablebreaklist and
2864 skiplist.
2865 * gdbcmd.h: Likewise.
2866 * skip.c (_initialize_step_skip): Move 'skiplist' from
2867 cli/cli-cmds.c.
2868
28578e6b
YQ
28692012-08-09 Yao Qi <yao@codesourcery.com>
2870
2871 * cli/cli-dump.c: Add 'static' to some cmd_list_element variables.
2872 * gnu-nat.c, symfile.c: Likewise.
2873
260c0b2a
DE
28742012-08-08 Aaron Gamble <agamble@google.com>
2875
2876 * utils.c (prompt_for_continue_wait_time): New static global.
2877 (make_command_stats_cleanup): Initialize it.
2878 (report_command_stats): Subtract time waiting for user.
2879 (prompt_for_continue): Track time waiting for user.
2880 (defaulted_query): Track time waiting for user.
2881
4f485ebc
DE
28822012-08-08 Doug Evans <dje@google.com>
2883
2884 * eval.c (evaluate_subexp_standard): Fix thinko in handling
2885 UNOP_MEMVAL_TYPE.
2886 * expprint.c (print_subexp_standard, case OP_TYPE): New.
2887 (print_subexp_standard, case UNOP_CAST_TYPE): Don't increment pos.
2888 (print_subexp_standard, case UNOP_DYNAMIC_CAST): Ditto.
2889 (print_subexp_standard, case UNOP_REINTERPRET_CAST): Ditto.
2890 (print_subexp_standard, case UNOP_MEMVAL_TYPE): Ditto.
2891 (dump_subexp_body_standard, case UNOP_DYNAMIC_CAST): Don't increment
2892 elt.
2893 (dump_subexp_body_standard, case UNOP_REINTERPRET_CAST): Ditto.
2894 (dump_subexp_body_standard, case UNOP_CAST_TYPE): Ditto.
2895 (dump_subexp_body_standard, case UNOP_MEMVAL_TYPE): Ditto.
2896 (dump_prefix_expression): Handle OP_TYPE.
2897
2acf2b39
KS
28982012-08-08 Keith Seitz <keiths@redhat.com>
2899
2900 * breakpoint.c (parse_breakpoint_sals): Remove unused variable
2901 addr_start.
2902
e6712ff1
DE
29032012-08-08 Doug Evans <dje@google.com>
2904
2905 * linux-thread-db.c: #include "gdb_vecs.h".
2906 (try_thread_db_load_from_pdir_1): New arg "subdir". All callers
2907 updated.
2908 (try_thread_db_load_from_pdir): New arg "subdir". All callers updated.
2909 (thread_db_load_search): Use a vector to iterate over path elements.
2910 Handle text appearing after "$pdir".
2911
2912 * gdb_string.h: Moved to ...
2913 * common/gdb_string.h: ... here.
2914 * common/vec.h: Remove #ifndef GDBSERVER conditional inclusion of
2915 gdb_string.h and gdb_assert.h.
2916
ab854e54
YQ
29172012-08-08 Yao Qi <yao@codesourcery.com>
2918
2919 * tic6x-tdep.c (tic6x_register_to_value): Remove.
2920 (tic6x_value_to_register): Likewise.
2921 (tic6x_gdbarch_init): Don't call set_gdbarch_register_to_value
2922 and set_gdbarch_value_to_register.
2923
4f69f4c2
JK
29242012-08-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2925 Jean-Marc Saffroy <saffroy@gmail.com>
2926
2927 PR 11804
2928 * defs.h (find_memory_region_ftype): New comment. New arg modified.
2929 * fbsd-nat.c (fbsd_find_memory_regions): Add the passed modified value.
2930 * gcore.c (gcore_create_callback): New function comment. Add modified
2931 parameter. Only write modified regions. Set SEC_READONLY exactly
2932 according to MODIFIED.
2933 (objfile_find_memory_regions): Ignore separate debug info files. Ass
2934 the passed modified value to FUNC.
2935 * gnu-nat.c (gnu_find_memory_regions): Add the passed modified value.
2936 * linux-tdep.c (linux_find_memory_regions): Try to reads smaps file
2937 first. New variables modified and has_anonymous. Parse the lines of
2938 smaps file. Add the passed MODIFIED value to FUNC.
2939 * procfs.c (find_memory_regions_callback): Add the passed modified
2940 value.
2941
78ac5f83
TT
29422012-08-06 Tom Tromey <tromey@redhat.com>
2943
2944 * dwarf2-frame.c (clear_pointer_cleanup): New function.
2945 (dwarf2_frame_cache): Use it.
2946 * frame-unwind.h (frame_sniffer_ftype): Document prologue
2947 cache initialization constraint.
2948
2c12abee
TT
29492012-08-06 Tom Tromey <tromey@redhat.com>
2950
2951 PR python/14386:
2952 * varobj.c (update_dynamic_varobj_children): Don't call
2953 PyIter_Check.
2954
4979d7f0
TT
29552012-08-06 Tom Tromey <tromey@redhat.com>
2956
2957 PR cli/14392:
2958 * cli/cli-cmds.c (list_command): Filter 'sals_end'.
2959
f3c8a52a
JK
29602012-08-06 Nathaniel Flath <flat0103@gmail.com>
2961
2962 * NEWS: New entry for 'cd' default parameters.
2963 * cli/cli-cmds.c (cd_command): Replace error_no_arg by DIR assignment.
2964
5a1cf4d6
TT
29652012-08-03 Tom Tromey <tromey@redhat.com>
2966
2967 * dwarf2-frame.c (dwarf2_frame_cache): Call do_cleanups before
2968 return.
2969
7c3270ae
UW
29702012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
2971
2972 * inf-child.c (inf_child_fileio_pwrite): If pwrite fails, fall back
2973 to attempting lseek/write.
2974 (inf_child_fileio_pread): Likewise for pread.
2975
ccce17b0
YQ
29762012-08-02 Yao Qi <yao@codesourcery.com>
2977
2978 * dwarf2loc.c (entry_values_debug): Add 'unsigned'.
2979 (_initialize_dwarf2loc): Call add_setshow_zuinteger_cmd instead of
2980 add_setshow_zinteger_cmd.
2981 * dwarf2loc.h: Update the declaration of 'entry_values_debug'.
2982 * dwarf2read.c (dwarf2_die_debug): Add 'unsigned'.
2983 (_initialize_dwarf2_read): Call add_setshow_zuinteger_cmd
2984 instead of add_setshow_zinteger_cmd.
2985 * darwin-nat.c (dwarwin_debug_flag): Add 'unsigned'.
2986 (_initialize_darwin_inferior): Call add_setshow_zuinteger_cmd
2987 instead of add_setshow_zinteger_cmd.
2988 * frame.c (frame_debug): Add 'unsigned'.
2989 (_intialize_frame): Call add_setshow_zuinteger_cmd instead of
2990 add_setshow_zinteger_cmd.
2991 * frame.h: Update the declaration of 'frame_debug'.
2992 * gdbtypes.c (overload_debug): Add 'unsigned'.
2993 (_initialize_gdbtypes): Call add_setshow_zuinteger_cmd instead of
2994 add_setshow_zinteger_cmd.
2995 * inferior.h: Update declaration of 'debug_infrun'.
2996 * infrun.c (debug_infrun): Add 'unsigned'.
2997 (_initialize_infrun): Call add_setshow_zuinteger_cmd instead of
2998 add_setshow_zinteger_cmd.
2999 * jit.c (jit_debug): Add 'unsigned'.
3000 (_initialize_jit): Call add_setshow_zuinteger_cmd instead of
3001 add_setshow_zinteger_cmd.
3002 * linux-nat.c (debug_linux_nat): Add 'unsigned'.
3003 (_initialize_linux_nat): Call add_setshow_zuinteger_cmd
3004 instead of add_setshow_zinteger_cmd.
3005 * linux-thread-db.c (libthread_db_debug): Add 'unsigned'.
3006 (_initialize_thread_db): Call add_setshow_zuinteger_cmd instead of
3007 add_setshow_zinteger_cmd.
3008 * machoread.c (mach_o_debug_level): Add 'unsigned'.
3009 (_initialize_machoread): Call add_setshow_zuinteger_cmd
3010 instead of add_setshow_zinteger_cmd.
3011 * mi/mi-cmd-var.c: Update the declaration of 'varobjdebug'.
3012 * microblaze-tdep.c (microblaze_debug_flag): Add 'unsigned'.
3013 (_initialize_microblaze_tdep): Call add_setshow_zuinteger_cmd
3014 intead of add_setshow_zinteger_cmd.
3015 * mips-tdep.c (mips_debug): Add 'unsigned'.
3016 (_initialize_mips_tdep): Call add_setshow_zuinteger_cmd
3017 instead of add_setshow_zinteger_cmd.
3018 * monitor.c (monitor_debug): Add 'unsigned'.
3019 (_initialize_remote_monitors): Call add_setshow_zuinteger_cmd instead of
3020 add_setshow_zinteger_cmd.
3021 * observer.c (observer_debug): Add 'unsigned'.
3022 (_initialize_observer): Call add_setshow_zuinteger_cmd instead of
3023 add_setshow_zinteger_cmd.
3024 * parse.c (expressiondebug): Add 'unsigned'.
3025 (_initialize_parse): Call add_setshow_zuinteger_cmd instead of
3026 add_setshow_zinteger_cmd.
3027 * record.c (record_debug): Add 'unsigned'.
3028 (_initialize_record): Call add_setshow_zuinteger_cmd instead of
3029 add_setshow_zinteger_cmd.
3030 * record.h: Update the declaration of 'record_debug'.
3031 * stap-probe.c (stap_expression_debug): Add 'unsigned'.
3032 (_initialize_stap_probe): Call add_setshow_zuinteger_cmd instead of
3033 add_setshow_zinteger_cmd.
3034 * serial.c (global_serial_debug_p): Add 'unsigned'.
3035 (_initialize_serial): Call add_setshow_zuinteger_cmd instead of
3036 add_setshow_zinteger_cmd.
3037 * solib-dsbt.c (solib_dsbt_debug): Add 'unsigned'.
3038 (_initialize_dsbt_solib): Call add_setshow_zuinteger_cmd instead of
3039 add_setshow_zinteger_cmd.
3040 * solib-frv.c (solib_frv_debug): Add 'unsigned'.
3041 (_initialize_frv_solib): Call add_setshow_zuinteger_cmd instead of
3042 add_setshow_zinteger_cmd.
3043 * target.c (targetdebug): Add 'unsigned'.
3044 (initialize_targets): Call add_setshow_zuinteger_cmd instead of
3045 add_setshow_zinteger_cmd.
3046 * valops.c (overload_debug): Add 'unsigned'.
3047 * varobj.c (varobjdebug): Add 'unsigned'.
3048 (_initialize_varobj): Call add_setshow_zuinteger_cmd instead of
3049 add_setshow_zinteger_cmd.
3050 * xtensa-tdep.c (xtensa_debug_level): Add 'unsigned'.
3051 (_initialize_xtensa_tdep): Call add_setshow_zuinteger_cmd
3052 instead of add_setshow_zinteger_cmd.
3053
3054 * arch-utils.h: Remove the declaration of 'gdbarch_debug'.
3055 * gdbarch.sh (gdbarch_debug): Add 'unsigned'.
3056 (extern void _initialize_gdbarch): Call add_setshow_zuinteger_cmd
3057 instead of add_setshow_zinteger_cmd.
3058 * gdbarch.c, gdbarch.h: Re-generated.
3059
95b07c96
YQ
30602012-08-02 Yao Qi <yao@codesourcery.com>
3061
3062 * nto-tdep.c: Don't include cli/cli-decode.h and
3063 cli/cli-cmds.h.
3064 (_initialize_nto_tdep): Remove.
3065 * nto-tdep.h (struct nto_target_ops) <internal_debugging>:
3066 Remove field.
3067 Remove macro nto_internal_debugging.
3068
57295b0b
RH
30692012-08-01 Richard Henderson <rth@redhat.com>
3070
3071 * configure.tgt (m32c-*-*) [gdb_target_obs]: Remove prologue-value.o.
3072 (mep-*-*) [gdb_target_obs]: Likewise.
3073
f782ad9b
AS
30742012-07-31 Andreas Schwab <schwab@linux-m68k.org>
3075
3076 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
3077 linux_get_siginfo_type.
3078
a14dd77e
JK
30792012-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
3080
3081 * infcall.c (call_function_by_hand): Move BP_ADDR comment to
3082 AT_ENTRY_POINT.
3083 (call_function_by_hand) <ON_STACK>: Call write_memory with
3084 gdbarch_breakpoint_from_pc, if possible.
3085 (call_function_by_hand) <AT_ENTRY_POINT>: The BP_ADDR comment is moved
3086 here.
3087
1467929f
YQ
30882012-07-31 Yao Qi <yao@codesourcery.com>
3089
3090 * tracepoint.c: Add 'static' for some variables.
3091
70976b65
YQ
30922012-07-31 Yao Qi <yao@codesourcery.com>
3093
3094 * go32-nat.c: Declare _initialize_go32_nat.
3095 * ser-go32.c: Declare _initialize_ser_dos.
3096 * top.c (do_chdir_cleanup): Add 'static'.
3097
eff9c3e6
KS
30982012-07-30 Keith Seitz <keiths@redhat.com>
3099
3100 * linespec.c (linespec_lex_number): A number followed
3101 by quotes is a valid number, too.
3102
728400d7
TT
31032012-07-30 Tom Tromey <tromey@redhat.com>
3104
3105 * remote-sim.c (gdb_os_poll_quit): Don't check immediate_quit.
3106
fcf303ab
UW
31072012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
3108
3109 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Do not
3110 attempt to 4-byte-align HW breakpoint addresses for Thumb.
3111
4e969b4f
AB
31122012-07-30 Andrew Burgess <aburgess@broadcom.com>
3113
3114 * varobj.c (varobj_invalidate_iter): All varobj must be marked as
3115 invalid or reevaluated to prevent prevent references to possibly
3116 delete'd type objects being left in the varobj.
3117
c4bfde41
JK
31182012-07-27 Tom Tromey <tromey@redhat.com>
3119 Jan Kratochvil <jan.kratochvil@redhat.com>
3120
3121 * copying.awk: Print buffer-read-only and vi ro markers.
3122 * copying.c: Rebuild.
3123 * gdbarch.sh (copyright): Print buffer-read-only and vi ro markers.
3124 * gdbarch.c, gdbarch.h: Rebuild.
3125 * target-descriptions.c (maint_print_c_tdesc_cmd): Print
3126 buffer-read-only and vi ro markers.
3127 * features/arm-with-iwmmxt.c: Rebuild.
3128 * features/arm-with-m-fpa-layout.c: Rebuild.
3129 * features/arm-with-m-vfp-d16.c: Rebuild.
3130 * features/arm-with-m.c: Rebuild.
3131 * features/arm-with-neon.c: Rebuild.
3132 * features/arm-with-vfpv2.c: Rebuild.
3133 * features/arm-with-vfpv3.c: Rebuild.
3134 * features/i386/amd64-avx-linux.c: Rebuild.
3135 * features/i386/amd64-avx.c: Rebuild.
3136 * features/i386/amd64-linux.c: Rebuild.
3137 * features/i386/amd64.c: Rebuild.
3138 * features/i386/i386-avx-linux.c: Rebuild.
3139 * features/i386/i386-avx.c: Rebuild.
3140 * features/i386/i386-linux.c: Rebuild.
3141 * features/i386/i386-mmx-linux.c: Rebuild.
3142 * features/i386/i386-mmx.c: Rebuild.
3143 * features/i386/i386.c: Rebuild.
3144 * features/i386/x32-avx-linux.c: Rebuild.
3145 * features/i386/x32-avx.c: Rebuild.
3146 * features/i386/x32-linux.c: Rebuild.
3147 * features/i386/x32.c: Rebuild.
3148 * features/mips-dsp-linux.c: Rebuild.
3149 * features/mips-linux.c: Rebuild.
3150 * features/mips64-dsp-linux.c: Rebuild.
3151 * features/mips64-linux.c: Rebuild.
3152 * features/rs6000/powerpc-32.c: Rebuild.
3153 * features/rs6000/powerpc-32l.c: Rebuild.
3154 * features/rs6000/powerpc-403.c: Rebuild.
3155 * features/rs6000/powerpc-403gc.c: Rebuild.
3156 * features/rs6000/powerpc-405.c: Rebuild.
3157 * features/rs6000/powerpc-505.c: Rebuild.
3158 * features/rs6000/powerpc-601.c: Rebuild.
3159 * features/rs6000/powerpc-602.c: Rebuild.
3160 * features/rs6000/powerpc-603.c: Rebuild.
3161 * features/rs6000/powerpc-604.c: Rebuild.
3162 * features/rs6000/powerpc-64.c: Rebuild.
3163 * features/rs6000/powerpc-64l.c: Rebuild.
3164 * features/rs6000/powerpc-7400.c: Rebuild.
3165 * features/rs6000/powerpc-750.c: Rebuild.
3166 * features/rs6000/powerpc-860.c: Rebuild.
3167 * features/rs6000/powerpc-altivec32.c: Rebuild.
3168 * features/rs6000/powerpc-altivec32l.c: Rebuild.
3169 * features/rs6000/powerpc-altivec64.c: Rebuild.
3170 * features/rs6000/powerpc-altivec64l.c: Rebuild.
3171 * features/rs6000/powerpc-cell32l.c: Rebuild.
3172 * features/rs6000/powerpc-cell64l.c: Rebuild.
3173 * features/rs6000/powerpc-e500.c: Rebuild.
3174 * features/rs6000/powerpc-e500l.c: Rebuild.
3175 * features/rs6000/powerpc-isa205-32l.c: Rebuild.
3176 * features/rs6000/powerpc-isa205-64l.c: Rebuild.
3177 * features/rs6000/powerpc-isa205-altivec32l.c: Rebuild.
3178 * features/rs6000/powerpc-isa205-altivec64l.c: Rebuild.
3179 * features/rs6000/powerpc-isa205-vsx32l.c: Rebuild.
3180 * features/rs6000/powerpc-isa205-vsx64l.c: Rebuild.
3181 * features/rs6000/powerpc-vsx32.c: Rebuild.
3182 * features/rs6000/powerpc-vsx32l.c: Rebuild.
3183 * features/rs6000/powerpc-vsx64.c: Rebuild.
3184 * features/rs6000/powerpc-vsx64l.c: Rebuild.
3185 * features/rs6000/rs6000.c: Rebuild.
3186 * features/s390-linux32.c: Rebuild.
3187 * features/s390-linux32v1.c: Rebuild.
3188 * features/s390-linux32v2.c: Rebuild.
3189 * features/s390-linux64.c: Rebuild.
3190 * features/s390-linux64v1.c: Rebuild.
3191 * features/s390-linux64v2.c: Rebuild.
3192 * features/s390x-linux64.c: Rebuild.
3193 * features/s390x-linux64v1.c: Rebuild.
3194 * features/s390x-linux64v2.c: Rebuild.
3195 * features/tic6x-c62x-linux.c: Rebuild.
3196 * features/tic6x-c62x.c: Rebuild.
3197 * features/tic6x-c64x-linux.c: Rebuild.
3198 * features/tic6x-c64x.c: Rebuild.
3199 * features/tic6x-c64xp-linux.c: Rebuild.
3200 * features/tic6x-c64xp.c: Rebuild.
3201
826f0041
TT
32022012-07-27 Tom Tromey <tromey@redhat.com>
3203
3204 * c-exp.y (classify_name): Avoid assignment in condition.
3205
84552b16
PA
32062012-07-27 Roland Schwingel <roland.schwingel@onevision.com>
3207
3208 * amd64-windows-tdep.c: Include "frame.h".
3209 (amd64_windows_skip_trampoline_code): New function.
3210 (amd64_windows_init_abi): Add trampoline registration.
3211
a8a64aa8
YQ
32122012-07-27 Yao Qi <yao@codesourcery.com>
3213
3214 * tracepoint.c (cur_traceframe_number): Remove.
3215 (set_tfile_traceframe): Remove.
3216 (tfile_trace_find, tfile_fetch_registers): Update callers.
3217 (tfile_xfer_partial, tfile_get_trace_state_variable_value): Likewise.
3218 (tfile_open, tfile_trace_find): Likewise.
3219
d99067cb
YQ
32202012-07-27 Yao Qi <yao@codesourcery.com>
3221
3222 * thread.c (switch_to_thread): Don't call registers_changed.
3223
f2e8016f
TT
32242012-07-26 Tom Tromey <tromey@redhat.com>
3225
f782ad9b
AS
3226 * Makefile.in (SFILES): Remove objc-exp.y.
3227 (YYFILES): Remove objc-exp.c.
3228 (YYOBJ): Remove objc-exp.o.
3229 (local-maintainer-clean): Don't mention objc-exp.c.
3230 * c-exp.y: Include objc-lang.h.
3231 (%union) <class>: New field.
3232 (NSSTRING, SELECTOR, CLASSNAME, OBJC_LBRAC): New tokens.
3233 (exp): Clone subscript production for OBJC_LBRAC. Add various
3234 Objective C productions.
3235 (msglist, msgarglist, msgarg): New productions.
3236 (array_mod, func_mod, operator): Clone productions for
3237 OBJC_LBRAC.
3238 (parse_string_or_char): Handle '@' strings.
3239 (lex_one_token): Return OBJC_LBRAC. Recognize @selector.
3240 (classify_name): Check la_name_of_this. Recognize ObjC class
3241 names.
3242 * objc-exp.y: Remove.
3243 * objc-lang.c (objc_language_defn): Use c_parse, c_error.
3244 * objc-lang.h (objc_parse, objc_error): Don't declare.
f2e8016f 3245
f66713d2
JK
32462012-07-26 Markus Metzger <markus.t.metzger@intel.com>
3247
3248 * python/py-inferior.c (infpy_threads): Call update_thread_list ().
3249
7cfe01b4
JK
32502012-07-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3251
3252 * auto-load.c (auto_load_info_scripts): Remove immediate_quit increment
3253 and decrement.
3254
5ba19b4c
TT
32552012-07-26 Tom Tromey <tromey@redhat.com>
3256
3257 * copying.c: Rebuild.
3258 * copying.awk: Don't use immediate_quit. Use 'no_set_class', not
3259 'no_class'.
3260
27618ce4
TT
32612012-07-26 Tom Tromey <tromey@redhat.com>
3262
3263 * symmisc.c (print_symbol_bcache_statistics): Use QUIT, not
3264 immediate_quit.
3265 (print_objfile_statistics): Likewise.
3266 (maintenance_print_symbols): Likewise.
3267 (maintenance_print_msymbols): Likewise.
3268 (maintenance_print_objfiles): Likewise.
3269 * psymtab.c (print_partial_symbols): Call QUIT.
3270 (maintenance_print_psymbols): Likewise. Don't modify
3271 immediate_quit.
3272 * copying.c (show_copying_command): Don't modify immediate_quit.
3273 (show_warranty_command): Likewise.
3274 * cli/cli-cmds.c (show_version): Don't modify immediate_quit.
3275
dd3818c8
KS
32762012-07-26 Keith Seitz <keiths@redhat.com>
3277
3278 * linespec.c (linespec_lexer_lex_number): The input
3279 is also a valid number if the next character is a comma
3280 or colon.
3281
23a80689
JB
32822012-07-26 Joel Brobecker <brobecker@adacore.com>
3283
3284 * NEWS: Document new --enable-libmcheck/--disable-libmcheck
3285 configure options.
3286
29f77997
TG
32872012-07-26 Tristan Gingold <gingold@adacore.com>
3288
3289 * machoread.c: Include gdb_bfd.h.
3290
a55c1f32
TG
32912012-07-26 Tristan Gingold <gingold@adacore.com>
3292
3293 * dwarf2loc.c (locexpr_describe_location_piece): Use uint64_t for
3294 offset.
3295
56eb65bd
SP
32962012-07-26 Siddhesh Poyarekar <siddhesh@redhat.com>
3297
3298 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Expand parameter
3299 SIZE to size_t.
3300 (dwarf2_evaluate_loc_desc): Likewise.
3301 (dwarf2_loc_desc_needs_frame): Likewise.
3302 (locexpr_describe_location_1): Likewise.
3303 * dwarf2loc.h (struct dwarf2_locexpr_baton): Make SIZE as
3304 size_t.
3305 (struct dwarf2_loclist_baton): Likewise.
3306 * dwarf2read.c (struct dwarf_block): Likewise.
3307 (dump_die_shallow): Use pulongest to print dwarf_block.size.
3308 (decode_locdesc): Expand SIZE and I to size_t.
3309
aec8845c
JK
33102012-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3311
3312 * contrib/cc-with-tweaks.sh: Put into comment path gdb/contrib/.
3313
33d7655b
JB
33142012-07-25 Joel Brobecker <brobecker@adacore.com>
3315
3316 * doublest.c (convert_doublest_to_floatformat): If the exponent
3317 is too small, treat the value as zero. If the exponent is too
3318 large, treat the value as infinity.
3319
a22d44ff
JB
33202012-07-25 Joel Brobecker <brobecker@adacore.com>
3321
3322 * configure.ac: Add --enable-lmcheck configure option.
3323 * configure: Regenerate.
3324
d6b28940
TT
33252012-07-25 Tom Tromey <tromey@redhat.com>
3326
f782ad9b
AS
3327 * NEWS: Mention maint info bfds.
3328 * gdb_bfd.c (all_bfds): New global.
3329 (gdb_bfd_ref, gdb_bfd_unref): Update all_bfds.
3330 (print_one_bfd, maintenance_info_bfds, _initialize_gdb_bfd):
3331 New functions.
d6b28940 3332
6e73ba20
RC
33332012-07-25 Ralf Corsépius <ralf.corsepius@rtems.org>
3334
3335 * configure.tgt: Add v850*-*-rtems*.
3336
d560eebd
TT
33372012-07-25 Tom Tromey <tromey@redhat.com>
3338
3339 * macrotab.c (macro_bcache_str): Remove cast.
3340
d7cbec71
HZ
33412012-07-25 Hui Zhu <hui_zhu@mentor.com>
3342
3343 * linespec.c (linespec_lexer_lex_number): Update comments,
3344 change the return and add check to make sure the input is
3345 the decimal numbers.
3346 (linespec_lexer_lex_one): If linespec_lexer_lex_number return
3347 false, call linespec_lexer_lex_string.
3348
882f447f
TT
33492012-07-24 Tom Tromey <tromey@redhat.com>
3350
3351 * symfile.c (symbol_file_add): Don't open BFD twice.
3352
53ab4066 33532012-07-24 Marc Khouzam <marc.khouzam@ericsson.com>
e12c7713
MK
3354
3355 * breakpoint.c (create_breakpoint): Store condition for pending
3356 breakpoints.
3357
108fb0f7
AS
33582012-07-24 Andreas Schwab <schwab@linux-m68k.org>
3359
3360 * m68k-tdep.c (m68k_reg_struct_return_p): Accept complex types.
3361 (m68k_return_value): Handle complex types like structures.
3362 (m68k_svr4_return_value): Likewise.
3363
1634dcbe
JK
33642012-07-24 Marcus Shawcroft <marcus.shawcroft@arm.com>
3365
3366 * gdb_bfd.c (zlib_decompress_section) <!HAVE_ZLIB_H>: Adjust
3367 parameters to bfd_get_section_name.
3368
e2d12c21
YQ
33692012-07-24 Yao Qi <yao@codesourcery.com>
3370
3371 * cli/cli-setshow.c: Handle case 'var_uinteger'
3372 and 'var_zuninteger' together. Handle case 'var_integer' and
3373 'var_zinteger' together.
3374
64b92e45
KS
33752012-07-23 Keith Seitz <keiths@redhat.com>
3376
3377 * linespec.c (convert_linespec_to_sal): Don't add
3378 any symbols to the result vector if symbol_to_sal
3379 returns zero.
3380
0f5f4ffe
KS
33812012-07-23 Keith Seitz <keiths@redhat.com>
3382
3383 * linespec.c (decode_objc): Record the function name
3384 in the linespec.
3385
da1cc82f
TT
33862012-07-23 Tom Tromey <tromey@redhat.com>
3387
3388 * rs6000-nat.c (add_vmap): Rewrite archive loop. Fix reference
3389 counting.
3390 * exec.c (exec_close_1): Unconditionally release vmap's BFD.
3391 (map_vmap): Acquire a reference to the BFD.
3392
6c18f3e0
SP
33932012-07-23 Siddhesh Poyarekar <siddhesh@redhat.com>
3394
3395 * p-valprint.c (pascal_object_print_value): Replace potentially
3396 unsafe alloca with xmalloc/xfree.
3397 * valops.c (search_struct_method): Likewise.
3398
695c3173
TT
33992012-07-23 Tom Tromey <tromey@redhat.com>
3400
3401 * solib-svr4.c (enable_break): Update.
3402 * bfd-target.h (target_bfd_reopen): Update documentation.
3403
08d2cd74
TT
34042012-07-23 Tom Tromey <tromey@redhat.com>
3405
3406 * symfile.c (separate_debug_file_exists): Update.
3407 (gdb_bfd_open_maybe_remote): Rename from bfd_open_maybe_remote.
3408 (reread_symbols): Update.
3409 * elfread.c (build_id_verify): Update.
3410 * symfile.h (gdb_bfd_open_maybe_remote): Rename from
3411 bfd_open_maybe_remote.
3412
596f7d67
TT
34132012-07-23 Tom Tromey <tromey@redhat.com>
3414
3415 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Fix comment.
3416
8ac244b4
TT
34172012-07-23 Tom Tromey <tromey@redhat.com>
3418
3419 * coffread.c (coff_symfile_read): Make a cleanup for 'debugfile'
3420 and 'abfd'.
3421 * elfread.c (elf_symfile_read): Make a cleanup for 'debugfile'
3422 and 'abfd'.
3423 * jit.c (jit_bfd_try_read_symtab): Make a cleanup for 'nbfd'.
3424 * machoread.c (macho_add_oso_symfile): Make a cleanup for
3425 'abfd'.
3426 (macho_symfile_read): Make a cleanup for 'dsym_bfd'.
3427 * objfiles.c (allocate_objfile): Acquire a new reference.
3428 * rs6000-nat.c (add_vmap): Don't acquire a BFD reference.
3429 * solib.c (solib_read_symbols): Don't acquire a BFD reference.
3430 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Make
3431 a cleanup for 'nbfd'.
3432 * symfile-mem.c (symbol_file_add_from_memory): Make a cleanup
3433 for 'nbfd'.
3434 * symfile.c (symbol_file_add_with_addrs_or_offsets): Don't
3435 make a cleanup for 'abfd'.
3436 (symbol_file_add): Make a BFD cleanup.
3437
64c31149
TT
34382012-07-23 Tom Tromey <tromey@redhat.com>
3439
3440 * cli/cli-dump.c (bfd_openr_with_cleanup): Use gdb_bfd_openr.
3441 (bfd_openw_with_cleanup): Use gdb_bfd_openw.
3442 * corelow.c (core_open): Use gdb_bfd_fopen.
3443 * dsrec.c (load_srec): Use gdb_bfd_openr.
3444 * exec.c (exec_file_attach): Use gdb_bfd_fopen.
3445 * gcore.c (gcore_memory_sections): Use gdb_bfd_openw.
3446 * gdb_bfd.c (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
3447 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
3448 (gdb_bfd_fdopenr): New functions.
3449 * gdb_bfd.h (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
3450 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
3451 (gdb_bfd_fdopenr): Declare.
3452 * jit.c (bfd_open_from_target_memory): Use gdb_bfd_openr_iovec.
3453 * m32-rom.c (m32r_load, m32r_upload_command): Use gdb_bfd_openr.
3454 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_openr,
3455 gdb_bfd_openr_next_archived_file.
3456 (macho_check_dsym): Use gdb_bfd_openr.
3457 (macho_add_oso_symfile): Don't call gdb_bfd_stash_filename.
3458 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_fdopenr.
3459 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_openr.
3460 * remote-mips.c (mips_load_srec, pmon_load_fast): Use
3461 gdb_bfd_openr.
3462 * remote.c (remote_bfd_open): Use gdb_bfd_openr_iovec.
3463 * rs6000-nat.c (add_vmap): Use gdb_bfd_openr, gdb_bfd_fdopenr,
3464 gdb_bfd_openr_next_archived_file.
3465 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
3466 Use gdb_bfd_openr.
3467 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
3468 gdb_bfd_openr.
3469 * solib-spu.c (spu_bfd_fopen): Use gdb_bfd_openr_iovec.
3470 * solib.c (solib_bfd_fopen): Use gdb_bfd_fopen.
3471 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_openr_iovec.
3472 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_openr.
3473 (symfile_bfd_open): Use gdb_bfd_fopen.
3474 (generic_load): Use gdb_bfd_openr.
3475 * windows-nat.c (windows_make_so): Use gdb_bfd_openr.
3476
520b0001
TT
34772012-07-23 Tom Tromey <tromey@redhat.com>
3478
3479 * bfd-target.c (target_bfd_reopen): Update.
3480 * cli/cli-dump.c (bfd_openr_with_cleanup)
3481 (bfd_openw_with_cleanup): Update.
3482 * corelow.c (core_open): Update.
3483 * dsrec.c (load_srec): Update.
3484 * exec.c (exec_file_attach): Update.
3485 * gcore.c (create_gcore_bfd): Update.
3486 * gdb_bfd.c (gdb_bfd_ref): Return void.
3487 (gdb_bfd_open): Update.
3488 * gdb_bfd.h (gdb_bfd_ref): Return void.
3489 Update comments.
3490 * jit.c (jit_bfd_try_read_symtab): Update.
3491 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
3492 * machoread.c (macho_symfile_read_all_oso): Update.
3493 (macho_check_dsym): Update.
3494 * procfs.c (insert_dbx_link_bpt_in_file): Update.
3495 * remote-m32r-sdi.c (m32r_load): Update.
3496 * remote-mips.c (mips_load_srec, pmon_load_fast): Update.
3497 * rs6000-nat.c (add_vmap): Update.
3498 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
3499 Update.
3500 * solib-pa64.c (pa64_solib_create_inferior_hook): Update.
3501 * solib-spu.c (spu_bfd_open): Update.
3502 * solib.c (solib_bfd_fopen, solib_read_symbols): Update.
3503 * spu-linux-nat.c (spu_bfd_open): Update.
3504 * symfile.c (bfd_open_maybe_remote, symfile_bfd_open)
3505 (generic_load): Update.
3506 * windows-nat.c (windows_make_so): Update.
3507
2322ff16
SP
35082012-07-22 Siddhesh Poyarekar <siddhesh@redhat.com>
3509
3510 * sh-tdep.c (sh_treat_as_flt_p): Remove unused variable LEN.
3511
3def0b36
PA
35122012-07-20 Jeff Kenton <jkenton@tilera.com>
3513
3514 * tilegx-linux-tdep.c (tilegx_linux_sigframe_init): Fix
3515 SIGTRAMP_FRAME unwinding.
3516
e615022a
DE
35172012-07-20 Doug Evans <dje@google.com>
3518
3519 * NEWS: Document new options "set/show use-deprecated-index-sections",
3520 and delete reference to --use-deprecated-index-sections.
3521 * symfile.h (use_deprecated_index_sections): Delete.
3522 * dwarf2read.c (use_deprecated_index_sections): Make static.
3523 (read_index_from_section): Update wording of how to load
3524 deprecated index sections.
3525 (_initialize_dwarf2_read): New options
3526 "set/show use-deprecated-index-sections".
3527 * main.c (captured_main): Delete --use-deprecated-index-sections.
3528
64776a0b
PA
35292012-07-20 Pedro Alves <palves@redhat.com>
3530
3531 PR threads/11692
3532 PR gdb/12203
3533
3534 * infrun.c (handle_inferior_event) <new thread>: Don't special
3535 case minus_one_ptid.
3536 <TARGET_WAITKIND_SPURIOUS>: Ditto.
3537 * linux-thread-db.c (thread_get_info_callback): Don't return early
3538 if the thread is zombie.
3539 (thread_from_lwp): Change return type to void. Rewrite stale
3540 comment.
3541 (attach_thread): Don't return early if the thread is zombie,
3542 instead set its "dying" flag.
3543 (thread_db_wait): Don't return TARGET_WAITKIND_SPURIOUS anymore.
3544 (find_new_threads_callback): Don't return early if the thread is
3545 zombie.
3546
09826ec5
PA
35472012-07-20 Pedro Alves <palves@redhat.com>
3548
3549 * linux-nat.c (linux_nat_wait): Dump the passed in target options.
3550 * target.c (target_wait): Likewise.
3551 (str_comma_list_concat_elem, do_option, target_options_to_string):
3552 New functions.
3553 * target.h (target_options_to_string): Declare.
3554
f7a35f02
TT
35552012-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3556 Tom Tromey <tromey@redhat.com>
3557
3558 * dwarf2read.c (dwarf_decode_macros)
3559 <DW_MACRO_GNU_define_indirect_alt, DW_MACRO_GNU_undef_indirect_alt,
3560 DW_MACRO_GNU_transparent_include_alt>: New cases.
3561 (dwarf_decode_macro_bytes) <DW_MACRO_GNU_define_indirect,
3562 DW_MACRO_GNU_undef_indirect>: Examine 'section_is_dwz'.
3563
b81e1ee0
TT
35642012-07-20 Tom Tromey <tromey@redhat.com>
3565
3566 * dwarf2read.c (try_open_dwo_file): Don't call
3567 gdb_bfd_stash_filename.
3568
99c1624c
PA
35692012-07-20 Pedro Alves <palves@redhat.com>
3570
3571 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
3572 (i386_record_lea_modrm, i386_record_push, i386_record_floats)
3573 (i386_process_record): Tweak description comments.
3574
4ffa4fc7
PA
35752012-07-20 Pedro Alves <palves@redhat.com>
3576
3577 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
3578 (i386_process_record): Use record_read_memory.
3579 * record.c (record_read_memory): New function.
3580 (record_arch_list_add_mem, record_exec_insn): Use
3581 record_read_memory.
3582 * record.h (record_read_memory): Declare.
3583
c24343e2
YQ
35842012-07-20 Yao Qi <yao@codesourcery.com>
3585
3586 * cli/cli-setshow.c (do_setshow_command): Don't check pointer is
3587 NULL for xfree.
3588
90f47860
PA
35892012-07-19 Pedro Alves <palves@redhat.com>
3590
3591 * record.c (record_resume): Ask the target beneath to report all
3592 signals.
3593
01093045
DE
35942012-07-19 Doug Evans <dje@google.com>
3595
3596 * dwarf2read.c (dwarf2_ranges_read): Ignore ranges starting at zero if
3597 there's no section at address zero.
3598 (dwarf2_record_block_ranges): Ditto.
3599
a7c3d162
YQ
36002012-07-19 Yao Qi <yao@codesourcery.com>
3601
3602 * command.h, remote.c: Fix a typo in comment.
3603
608b4967
TT
36042012-07-19 Tom Tromey <tromey@redhat.com>
3605
3606 PR exp/13206:
3607 * ax-gdb.c (gen_expr) <OP_TYPEOF, OP_DECLTYPE>: New cases.
3608 * breakpoint.c (watchpoint_exp_is_const) <OP_TYPEOF,
3609 OP_DECLTYPE>: New cases.
3610 * c-exp.y (TYPEOF, DECLTYPE): New tokens.
3611 (type_exp): Add new productions.
3612 (ident_tokens): Add __typeof__, typeof, __typeof, __decltype,
3613 and decltype.
3614 * eval.c (evaluate_subexp_standard) <OP_TYPEOF, OP_DECLTYPE>:
3615 New case.
3616 * expprint.c (dump_subexp_body_standard) <OP_TYPEOF,
3617 OP_DECLTYPE>: New case.
3618 * parse.c (operator_length_standard) <OP_TYPEOF, OP_DECLTYPE>:
3619 New case.
3620 * std-operator.def (OP_TYPEOF, OP_DECLTYPE): New constants.
3621 * varobj.c (varobj_create): Handle OP_TYPEOF, OP_DECLTYPE.
3622
274b54d7
TT
36232012-07-19 Tom Tromey <tromey@redhat.com>
3624
3625 * c-exp.y (enum token_flags): New.
3626 (struct token) <cxx_only>: Remove.
3627 <flags>: New field.
3628 (tokentab3, tokentab2, ident_tokens): Update.
3629 (lex_one_token): Update. Handle FLAG_SHADOW.
3630
9eaf6705
TT
36312012-07-19 Tom Tromey <tromey@redhat.com>
3632
3633 * ax-gdb.c (gen_expr): Handle UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE.
3634 * breakpoint.c (watchpoint_exp_is_const): Handle UNOP_CAST_TYPE,
3635 UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST.
3636 * c-exp.y (exp): Emit UNOP_MEMVAL_TYPE, UNOP_CAST_TYPE. Update
3637 for changes to UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST. Use
3638 type_exp production where appropriate.
3639 * eval.c (evaluate_subexp_standard) <UNOP_CAST_TYPE>: New case.
3640 <UNOP_DYNAMIC_CAST, UNOP_REINTERPRET_CAST>: Update.
3641 <UNOP_MEMVAL_TYPE>: New case.
3642 (evaluate_subexp_for_address) <UNOP_MEMVAL_TYPE>: New case.
3643 (evaluate_subexp_for_sizeof) <UNOP_MEMVAL_TYPE>: New case.
3644 * expprint.c (print_subexp_standard) <UNOP_CAST_TYPE>: New case.
3645 <UNOP_MEMVAL_TYPE>: New case.
3646 (dump_subexp_body_standard) <UNOP_DYNAMIC_CAST,
3647 UNOP_REINTERPRET_CAST>: Update.
3648 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
3649 * parse.c (operator_length_standard) <UNOP_DYNAMIC_CAST,
3650 UNOP_REINTERPRET_CAST>: Update.
3651 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
3652 * stack.c (return_command): Also check for UNOP_CAST_TYPE.
3653 * std-operator.def (UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE): New
3654 constants.
3655
6ace3df1
YQ
36562012-07-19 Yao Qi <yao@codesourcery.com>
3657 Jan Kratochvil <jan.kratochvil@redhat.com>
3658
3659 * cli/cli-setshow.c (do_setshow_command): Handle case 'var_filename'
3660 and case 'var_optional_filename' together.
3661 * infcmd.c (_initialize_infcmd): Call add_setshow_string_noescape_cmd
3662 instead of add_setshow_optional_filename_cmd for setshow command
3663 'args'. Set completer for 'set args'.
3664
48faced0
DE
36652012-07-18 Doug Evans <dje@google.com>
3666
3667 * common/gdb_vecs.h: Moved here from ./gdb_vecs.h.
3668 * common/gdb_vecs.c: New file, contents from utils.c.
3669 * common/host-defs.h: New file, contents from defs.h.
3670 * utils.h: New file, contents from defs.h.
3671 * defs.h: Move all declarations of objects defined in utils.c
3672 to utils.h (except QUIT() and related).
3673 #include "utils.h", "host-defs.h".
3674 * probe.h (probe_p): Move here from gdb_vecs.h.
3675 * symfile.c: #include "probe.h" instead of "gdb_vecs.h".
3676 * utils.c (free_char_ptr_vec): Moved to common/gdb_vecs.c.
3677 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): Ditto.
3678 * Makefile.in (SFILES): Add common/gdb_vecs.c.
3679 (HFILES_NO_SRCDIR): Add common/gdb_vecs.h, common/host-defs.h, utils.h.
3680 (COMMON_OBS): Add gdb_vecs.o.
3681 (gdb_vecs.o): New rule.
3682
66f1999b
KS
36832012-07-18 Keith Seitz <keiths@redhat.com>
3684
3685 * linespec.c (add_sal_to_sals): Add LITERAL_CANONICAL
3686 parameter. If non-zero, use SYMNAME as the canonical name
3687 for the SaL.
3688 Update all callers.
3689 (convert_linespec_to_sals): Use add_sal_to_sals for
3690 expressions, too.
3691 (decode_line_full): No need to "fill in missing canonical names"
3692 anymore. Simply make cleanups for the allocated names.
3693
5d94e27b
KS
36942012-07-18 Keith Seitz <keiths@redhat.com>
3695
3696 * linespec.c (struct linespec): Constify expression,
3697 source_filename, function_name, and label_name.
3698 (symbol_not_found_error): Make all parameters const.
3699 (linespec_parser_delete): No need to check for NULL
3700 when using xfree. Cast const char * to char * for xfree.
3701
af4908ba
KS
37022012-07-18 Keith Seitz <keiths@redhat.com>
3703
3704 * breakpoint.c (invalid_thread_id_error): New function.
3705 (find_condition_and_thread): Use invalid_thread_id_error.
3706 (watch_command_1): Likewise.
3707
853254db
TT
37082012-07-18 Tom Tromey <tromey@redhat.com>
3709
3710 * cc-with-index.sh, cc-with-dwz.sh: Remove.
3711 * contrib/cc-with-tweaks.sh: New file.
3712
2ec9a5e0
TT
37132012-07-18 Tom Tromey <tromey@redhat.com>
3714
3715 * dwarf2read.c (struct dwz_file) <gdb_index>: New field.
3716 (locate_dwz_sections): Recognize .gdb_index.
3717 (create_cus_from_index_list): New function.
3718 (create_cus_from_index): Use it. Handle .dwz data.
3719 (read_index_from_section): New function, extracted from
3720 dwarf2_read_index.
3721 (dwarf2_read_index): Use it. Read .gdb_index from dwz file,
3722 if needed.
3723
36586728
TT
37242012-07-18 Tom Tromey <tromey@redhat.com>
3725
3726 * dwarf2read.c (struct dwarf2_per_objfile) <dwz_file>: New field.
3727 (struct dwarf2_per_cu_data) <length>: No longer bitfield.
3728 <is_dwz>: New field.
3729 (struct dwz_file): New.
3730 (struct partial_die_info) <is_dwz, spec_is_dwz>: New fields.
3731 (locate_dwz_sections, dwarf2_get_dwz_file)
3732 (get_abbrev_section_for_cu): New functions.
3733 (error_check_comp_unit_head, read_and_check_comp_unit_head)
3734 (read_and_check_type_unit_head): Add abbrev_section argument.
3735 (create_debug_types_hash_table): Update.
3736 (init_cutu_and_read_dies): Use proper abbrev section.
3737 (init_cutu_and_read_dies_no_follow): Likewise.
3738 (set_partial_user): Do nothing if PST==NULL.
3739 (read_comp_units_from_section): New function.
3740 (create_all_comp_units): Use it.
3741 (scan_partial_symbols, partial_die_parent_scope): Update.
3742 (skip_one_die): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
3743 (process_imported_unit_die, read_partial_die): Handle .dwz files.
3744 (find_partial_die): Add offset_in_dwz argument. Update.
3745 (guess_partial_die_structure_name, fixup_partial_die): Update.
3746 (read_attribute_value): Handle DW_FORM_GNU_ref_alt,
3747 DW_FORM_GNU_strp_alt.
3748 (read_indirect_string_from_dwz): New function.
3749 (dwarf2_const_value_attr): Handle DW_FORM_GNU_strp_alt.
3750 (dump_die_shallow): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
3751 (is_ref_attr): Handle DW_FORM_GNU_ref_alt.
3752 (follow_die_offset): Add offset_in_dwz argument.
3753 (follow_die_ref, dwarf2_fetch_die_location_block): Update.
3754 (skip_form_bytes): Handle DW_FORM_GNU_strp_alt.
3755 (dwarf_decode_macro_bytes): Add section_is_dwz argument.
3756 Handle new macro forms.
3757 (dwarf_decode_macros): Update.
3758 (dwarf2_find_containing_comp_unit): Add offset_in_dwz argument.
3759 (dwarf2_per_objfile_free): Unref dwz_bfd, if it exists
3760 (lookup_die_type): Handle DW_FORM_GNU_ref_alt.
3761 (create_debug_types_hash_table): Use correct abbrev section.
3762 (get_debug_line_section): New function.
3763 (dwarf_decode_line_header, dwarf_decode_lines_1): Use it.
3764 (process_full_comp_unit): Pass 'required' argument to
3765 end_symtab_get_static_block.
3766 * buildsym.h (end_symtab_get_static_block): Update.
3767 * buildsym.c (end_symtab_get_static_block): Add 'required'
3768 argument.
3769 (end_symtab, end_expandable_symtab): Update.
3770
4bf44c1c
TT
37712012-07-18 Tom Tromey <tromey@redhat.com>
3772
3773 * dwarf2read.c: Don't include zlib.h or sys/mman.h.
3774 (pagesize): Remove.
3775 (struct dwarf2_section_info) <map_addr, map_len>: Remove.
3776 (zlib_decompress_section): Remove.
3777 (dwarf2_read_section): Use gdb_bfd_map_section.
3778 (munmap_section_buffer): Remove.
3779 (free_dwo_file, dwarf2_per_objfile_free): Don't use
3780 munmap_section_buffer.
3781 * gdb_bfd.c: Include zlib.h, sys/mman.h.
3782 (struct gdb_bfd_section_data): New.
3783 (free_one_bfd_section): New function.
3784 (gdb_bfd_close_or_warn): Use free_one_bfd_section.
3785 (get_section_descriptor, zlib_decompress_section)
3786 (gdb_bfd_map_section): New functions.
3787 * gdb_bfd.h (gdb_bfd_map_section): Declare.
3788
bb397797
TT
37892012-07-18 Tom Tromey <tromey@redhat.com>
3790
3791 * dwarf2read.c (try_open_dwo_file): use gdb_bfd_open.
3792
6ec53d05
TT
37932012-07-18 Tom Tromey <tromey@redhat.com>
3794
3795 * gdb_bfd.c (struct gdb_bfd_data): New.
3796 (gdb_bfd_cache): New global.
3797 (struct gdb_bfd_cache_search): New.
3798 (hash_bfd, eq_bfd, gdb_bfd_open): New functions.
3799 (gdb_bfd_ref, gdb_bfd_unref): Use gdb_bfd_data.
3800 * gdb_bfd.h (gdb_bfd_open): Declare.
3801
f9a062ff
TT
38022012-07-18 Tom Tromey <tromey@redhat.com>
3803
3804 * utils.c (make_cleanup_bfd_unref): Rename from
3805 make_cleanup_bfd_close.
3806 * defs.h (make_cleanup_bfd_unref): Rename from
3807 make_cleanup_bfd_close.
3808 * cli/cli-dump.c (bfd_openr_with_cleanup): Update.
3809 (bfd_openw_with_cleanup): Update.
3810 * corelow.c (core_open): Update.
3811 * dsrec.c (load_srec): Update.
3812 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
3813 * remote-m32r-sdi.c (m32r_load): Update.
3814 * remote-mips.c (mips_load_srec): Update.
3815 (pmon_load_fast): Update.
3816 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
3817 Update.
3818 (darwin_bfd_open): Update.
3819 * solib.c (solib_bfd_fopen): Update.
3820 * symfile-mem.c (symbol_file_add_from_memory): Update.
3821 * symfile.c (symbol_file_add_with_addrs_or_offsets): Update.
3822 (symfile_bfd_open): Update.
3823 (generic_load): Update.
3824
d6ad71ba
TT
38252012-07-18 Tom Tromey <tromey@redhat.com>
3826
3827 * remote-mips.c (mips_load_srec): Use make_cleanup_bfd_close.
3828 (pmon_load_fast): Likewise.
3829 * m32r-rom.c (m32r_load): Use make_cleanup_bfd_close.
3830 (m32r_upload_command): Likewise.
3831 * dsrec.c (load_srec): Use make_cleanup_bfd_close.
3832 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
3833 Use make_cleanup_bfd_close.
3834
a4453b7e
TT
38352012-07-18 Tom Tromey <tromey@redhat.com>
3836
3837 * symfile.c (symfile_bfd_open): Don't copy name. Call
3838 gdb_bfd_stash_filename.
3839 (load_command): Open the new BFD before freeing the old.
3840 (bfd_open_maybe_remote): Call gdb_bfd_stash_filename.
3841 * symfile-mem.c (symbol_file_add_from_memory): Don't copy name.
3842 Call gdb_bfd_stash_filename.
3843 * spu-linux-nat.c (spu_bfd_open): Don't copy name.
3844 * solib-spu.c (spu_bfd_fopen): Don't copy name. Call
3845 gdb_bfd_stash_filename.
3846 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
3847 Free found_pathname.
3848 * rs6000-nat.c (add_vmap): Don't copy filename. Call
3849 gdb_bfd_stash_filename.
3850 * remote.c (remote_bfd_open): Call gdb_bfd_stash_filename.
3851 * machoread.c (macho_add_oso_symfile): Call
3852 gdb_bfd_stash_filename.
3853 (macho_symfile_read_all_oso): Arrange to free archive_name. Call
3854 gdb_bfd_stash_filename.
3855 (macho_check_dsym): Don't copy filename. Call
3856 gdb_bfd_stash_filename.
3857 * jit.c (bfd_open_from_target_memory): Don't copy the filename.
3858 * gdb_bfd.c (gdb_bfd_stash_filename): New function.
3859 * gdb_bfd.h (gdb_bfd_stash_filename): Declare.
3860 * gcore.c (create_gcore_bfd): Call gdb_bfd_stash_filename.
3861 * exec.c (exec_close): Don't free the BFD's filename.
3862 (exec_file_attach): Don't copy the filename. Call
3863 gdb_bfd_stash_filename.
3864 * corelow.c (core_close): Don't free the BFD's filename.
3865 (core_open): Call gdb_bfd_stash_filename.
3866 * corefile.c (reopen_exec_file): Remove #if 0 code.
3867 * solib.c (solib_bfd_fopen): Call gdb_bfd_stash_filename. Free
3868 pathname.
3869 * dwarf2read.c (try_open_dwo_file): Call gdb_bfd_stash_filename.
3870
cbb099e8
TT
38712012-07-18 Tom Tromey <tromey@redhat.com>
3872
3873 * dwarf2read.c (try_open_dwo_file): Use gdb_bfd_ref and
3874 gdb_bfd_unref.
3875 (free_dwo_file): Use gdb_bfd_unref.
3876 * cli/cli-dump.c: Include gdb_bfd.h.
3877 (bfd_openw_with_cleanup): Use gdb_bfd_ref.
3878 (bfd_openr_with_cleanup): Likewise.
3879 * windows-nat.c (windows_make_so): Use gdb_bfd_ref,
3880 gdb_bfd_unref.
3881 * utils.c: Include gdb_bfd.h.
3882 (do_bfd_close_cleanup): Use gdb_bfd_unref.
3883 * symfile.c: Include gdb_bfd.h.
3884 (separate_debug_file_exists): Use gdb_bfd_unref.
3885 (bfd_open_maybe_remote): Use gdb_bfd_ref.
3886 (symfile_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
3887 (generic_load): Use gdb_bfd_ref.
3888 (reread_symbols): Use gdb_bfd_unref.
3889 * symfile-mem.c: Include gdb_bfd.h.
3890 (symbol_file_add_from_memory): Use make_cleanup_bfd_close.
3891 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
3892 * solib.c: Include gdb_bfd.h.
3893 (solib_bfd_fopen): Use gdb_bfd_ref.
3894 (solib_bfd_open): Use gdb_bfd_unref.
3895 (free_so_symbols): Use gdb_bfd_unref.
3896 (reload_shared_libraries_1): Use gdb_bfd_unref.
3897 * solib-spu.c: Include gdb_bfd.h.
3898 (spu_bfd_fopen): Use gdb_bfd_ref, gdb_bfd_unref.
3899 * solib-pa64.c (pa64_solib_create_inferior_hook): Use gdb_bfd_ref,
3900 gdb_bfd_unref.
3901 * solib-frv.c: Include gdb_bfd.h.
3902 (enable_break2): Use gdb_bfd_unref.
3903 * solib-dsbt.c: Include gdb_bfd.h.
3904 (enable_break2): Use gdb_bfd_unref.
3905 * solib-darwin.c: Include gdb_bfd.h.
3906 (darwin_solib_get_all_image_info_addr_at_init): Use gdb_bfd_ref,
3907 gdb_bfd_unref.
3908 (darwin_bfd_open): Use gdb_bfd_unref.
3909 * rs6000-nat.c (add_vmap): Use gdb_bfd_ref, gdb_bfd_unref.
3910 * remote-mips.c: Include gdb_bfd.h.
3911 (mips_load_srec): Use gdb_bfd_ref.
3912 (pmon_load_fast): Use gdb_bfd_ref.
3913 * remote-m32r-sdi.c: Include gdb_bfd.h.
3914 (m32r_load): Use gdb_bfd_ref.
3915 * record.c: Include gdb_bfd.h.
3916 (record_save_cleanups): Use gdb_bfd_unref.
3917 (cmd_record_save): Use gdb_bfd_unref.
3918 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_ref,
3919 gdb_bfd_unref.
3920 * objfiles.h (gdb_bfd_close_or_warn): Remove.
3921 (gdb_bfd_ref, gdb_bfd_unref): Move to gdb_bfd.h.
3922 * objfiles.c: Include gdb_bfd.h.
3923 (free_objfile): Use gdb_bfd_unref.
3924 (gdb_bfd_close_or_warn, gdb_bfd_ref, gdb_bfd_unref): Move to
3925 gdb_bfd.c.
3926 * machoread.c (macho_add_oso_symfile): Use gdb_bfd_unref.
3927 (macho_symfile_read_all_oso): Use gdb_bfd_ref, gdb_bfd_unref.
3928 (macho_check_dsym): Likewise.
3929 * m32r-rom.c: Include gdb_bfd.h.
3930 (m32r_load): Use gdb_bfd_ref.
3931 (m32r_upload_command): Use gdb_bfd_ref.
3932 * jit.c: Include gdb_bfd.h.
3933 (jit_bfd_try_read_symtab): Use gdb_bfd_ref, gdb_bfd_unref.
3934 * gdb_bfd.h: New file.
3935 * gdb_bfd.c: New file.
3936 * gcore.c: Include gdb_bfd.h.
3937 (create_gcore_bfd): Use gdb_bfd_ref.
3938 (do_bfd_delete_cleanup): Use gdb_bfd_unref.
3939 (gcore_command): Use gdb_bfd_unref.
3940 * exec.c: Include gdb_bfd.h.
3941 (exec_close): Use gdb_bfd_unref.
3942 (exec_close_1): Use gdb_bfd_unref.
3943 (exec_file_attach): Use gdb_bfd_ref.
3944 * elfread.c: Include gdb_bfd.h.
3945 (build_id_verify): Use gdb_bfd_unref.
3946 * dsrec.c: Include gdb_bfd.h.
3947 (load_srec): Use gdb_bfd_ref.
3948 * corelow.c: Include gdb_bfd.h.
3949 (core_close): Use gdb_bfd_unref.
3950 (core_open): Use gdb_bfd_ref.
3951 * bfd-target.c: Include gdb_bfd.h.
3952 (target_bfd_xclose): Use gdb_bfd_unref.
3953 (target_bfd_reopen): Use gdb_bfd_ref.
3954 * Makefile.in (SFILES): Add gdb_bfd.c.
3955 (HFILES_NO_SRCDIR): Add gdb_bfd.h.
3956 (COMMON_OBS): Add gdb_bfd.o.
3957
ed1d1739
KS
39582012-07-18 Keith Seitz <keiths@redhat.com>
3959
3960 * breakpoint.c (find_condition_and_thread): Initialize
3961 TASK and REST.
3962 (create_breakpiont): find_condition_and_thread will now
3963 initialize COND_STRING, THREAD, and REST (and TASK).
3964 (addr_string_to_sals): Likewise.
3965
eab402df
PA
39662012-07-18 Pedro Alves <palves@redhat.com>
3967
3968 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_NO_HISTORY>:
3969 Pull the single step breakpoints out of the target.
3970
2b963b68
SDJ
39712012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
3972
3973 * probe.c (probe_safe_evaluate_at_pc): Rename variable `n_probes'.
3974 * stap-probe.c (compile_probe_arg): Likewise.
3975
6bac7473
SDJ
39762012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
3977
3978 * elfread.c (elf_get_probe_argument_count): Remove `objfile' argument.
3979 (elf_compile_to_ax): Likewise.
3980 * infrun.c (insert_exception_resume_from_probe): Likewise.
3981 (check_exception_resume): Remove `objfile' variable.
3982 * probe.c (find_probe_by_pc): Remove `objfile' argument.
3983 (struct probe_and_objfile, probe_and_objfile_s): Delete.
3984 (collect_probes): Adjust return value to `VEC (probe_p) *'.
3985 (compare_entries): Rename to...
3986 (compare_probes): ...this. Adjust function to work with
3987 `struct probe *'. Rename variables `ea' and `eb' to `pa' and `pb'
3988 respectively.
3989 (gen_ui_out_table_header_info): Adjust `probes' argument to be
3990 `VEC (probe_p) *'.
3991 (print_ui_out_info): Adjust argument to be `struct probe *'.
3992 (info_probes_for_ops): Adjust internal computations to use
3993 `VEC (probe_p) *'.
3994 (probe_safe_evaluate_at_pc): Refactor to not pass `objfile' anymore.
3995 * probe.h (struct probe_ops) <get_probe_argument_count, compile_to_ax,
3996 gen_info_probes_table_values>: Remove `objfile' argument.
3997 (struct probe) <objfile>: New field.
3998 (find_probe_by_pc): Remove `objfile' argument.
3999 * stap-probe.c (stap_parse_probe_arguments): Likewise.
4000 (stap_get_probe_argument_count): Likewise.
4001 (stap_get_arg): Likewise.
4002 (stap_evaluate_probe_argument): Likewise.
4003 (stap_compile_to_ax): Likewise.
4004 (compile_probe_arg): Refactor not to pass `objfile' anymore.
4005 (handle_stap_probe): Fill `objfile' field from `struct probe'.
4006 (stap_gen_info_probes_table_header): Remove `objfile' argument.
4007 * symfile.h (struct sym_probe_fns) <sym_evaluate_probe_argument,
4008 sym_compile_to_ax>: Likewise.
4009
3347eb1a 40102012-07-18 Terry Guo <terry.guo@arm.com>
4011
4012 PR 14329
4013 * defs.h (GDB_MI_MSG_WIDTH): New.
4014 * ser_base (ser_base_read_error_fd): New function.
4015 (do_ser_base_readchar): Poll error file descriptor as well as
4016 standard output.
f782ad9b 4017 (generic_readchar): Refactor error handling.
3347eb1a 4018
80c8d323
JB
40192012-07-18 Joel Brobecker <brobecker@adacore.com>
4020
4021 * NEWS: Create a new section for the next release branch.
4022 Rename the section of the current branch, now that it has
4023 been cut.
4024
b45a0664 40252012-07-18 Joel Brobecker <brobecker@adacore.com>
4026
4027 GDB 7.5 branch created (branch timestamp: 2012-07-18 03:22 UTC)
4028 * version.in: Bump version to 7.5.50.20120718-cvs.
4029
09cf2b22
KS
40302012-07-17 Keith Seitz <keiths@redhat.com>
4031
4032 * linespec.c (linespec_parse_line_offset): Make parameter
4033 const.
4034
8f043999
JK
40352012-07-16 Jan Kratochvil <jan.kratochvil@redhat.com>
4036
4037 PR 11914
4038 * f-valprint.c (info_common_command): New variable frame_id.
4039 Reinitialize FI form FRAME_ID after each print_variable_and_value.
4040 * printcmd.c (print_variable_and_value): Extend function comment.
4041 Add comment for invalidated FRAME.
4042 * stack.c (backtrace_command_1): New variable frame_id. Reinitialize
4043 FI form FRAME_ID after each print_frame_local_vars.
4044 (struct print_variable_and_value_data): Change frame to frame_id.
4045 (do_print_variable_and_value): New variable frame, initialize it from
4046 p->frame_id. Add comment for invalidated FRAME.
4047 (print_frame_local_vars, print_frame_arg_vars): New function comment.
4048 Update CB_DATA.FRAME to CB_DATA.FRAME_ID initialization. Add comment
4049 for invalidated FRAME.
4050
ae5e0686
MK
40512012-07-16 Marc Khouzam <marc.khouzam@ericsson.com>
4052 Pedro Alves <palves@redhat.com>
4053
4054 * linux-nat.c (linux_nat_detach): Don't unregister from the event
4055 loop.
4056
5049c5be
TT
40572012-07-16 Tom Tromey <tromey@redhat.com>
4058
4059 * jv-typeprint.c (c_type_print_varspec_suffix): Don't declare.
4060
2908cac6
DE
40612012-07-15 Doug Evans <dje@google.com>
4062
094b34ac
DE
4063 * dwarf2read.c (stmt_list_hash): New struct.
4064 (type_unit_group): Embed "per_cu" member, remove pointer.
4065 New union member "t", move member "tus" into it, all uses updated.
4066 New member "hash", replaces member "line_offset, all uses updated.
4067 (quick_file_names): Replace member "offset" with "hash", all uses
4068 updated.
4069 (hash_stmt_list_entry, eq_stmt_list_entry): New functions.
4070 (hash_file_name_entry, eq_file_name_entry): Call them.
4071 (hash_type_unit_group, eq_type_unit_group): Ditto.
4072 (dw2_get_cu, dw2_get_primary_cu): Replace assert with a better one.
4073 (dw2_get_file_names_reader): Fix file name table calculation for TUs.
4074 (dw2_get_file_names): Update.
4075 (create_type_unit_group): Replace "per_cu" arg with "cu".
4076 All callers updated. Fix "quick" (.gdb_index) handling.
4077 (get_type_unit_group): Replace "per_cu" arg with "cu".
4078 All callers updated.
4079 (build_type_unit_groups): Don't reset tu_stats.
4080
2908cac6
DE
4081 * symtab.c (filename_seen_cache): Delete members "tab_alloc_size",
4082 "tab_cur_size". Change member "tab" to be a htab_t.
4083 (create_filename_seen_cache): Update.
4084 (clear_filename_seen_cache, delete_filename_seen_cache): Update.
4085 (filename_seen): Update.
4086
a2b6eff5
DE
40872012-07-13 Doug Evans <dje@google.com>
4088
4089 * symtab.c (filename_seen): Update comment.
4090
4359dff1
JK
40912012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4092 Doug Evans <dje@google.com>
4093
4094 * buildsym.c (end_symtab_1): Split it to ...
4095 (end_symtab_get_static_block): ... this ...
4096 (end_symtab_from_static_block): ... and this function.
4097 (end_symtab, end_expandable_symtab): Call them.
4098 * buildsym.h (end_symtab_get_static_block)
4099 (end_symtab_from_static_block): New declarations.
4100 * dwarf2read.c (process_full_comp_unit): New variable static_block.
4101 Set its valid CU ranges.
4102
a24f71ab
JK
41032012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4104
4105 * dwarf2loc.c (disassemble_dwarf_expression): Handle
4106 DW_OP_GNU_parameter_ref.
4107
d76b7dbc
JK
41082012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4109
4110 * dwarf2read.c (read_call_site_scope): Do not gdb_assert for invalid
4111 read-in CALL_SITE_PARAMETER_PARAM_OFFSET.
4112
9fdc877b
DE
41132012-07-13 Doug Evans <dje@google.com>
4114
4115 * symtab.c (output_source_filename): Delete unnecessary forward decl.
4116 (filename_seen_cache): New struct.
4117 (INITIAL_FILENAME_SEEN_CACHE_SIZE): New macro.
4118 (create_filename_seen_cache): New function.
4119 (clear_filename_seen_cache, delete_filename_seen_cache): New functions.
4120 (filename_seen): Delete arg "first". New arg "cache". All callers
4121 updated.
4122 (output_source_filename_data): New struct.
4123 (output_source_filename): Delete arg "first". New arg "data".
4124 All callers updated.
4125 (sources_info): Delete local "first". New locals "data", "cleanups".
4126 Rewrite to use filename_seen_cache.
4127 (add_partial_filename_data): Delete member "first". New member
4128 "filename_seen_cache". All uses updated.
4129 (make_source_files_completion_list): Rewrite to use
4130 filename_seen_cache.
4131
f80c6f3f
DE
41322012-07-12 Doug Evans <dje@google.com>
4133
4134 * psymtab.c (map_symbol_filenames_psymtab): Skip shared psymtabs.
4135
0bfa869d
DE
41362012-07-10 Doug Evans <dje@google.com>
4137
f4dc4d17
DE
4138 PR gdb/13498
4139 * dwarf2read.c (dwarf2_per_objfile): New members n_type_unit_groups,
4140 all_type_unit_groups, type_unit_groups, tu_stats.
4141 (dwarf2_per_cu_data): Move "imported_symtabs" into new union "s".
4142 All uses updated. Add type_unit_group to union "s".
4143 (type_unit_group): New struct.
4144 (IS_TYPE_UNIT_GROUP): New macro.
4145 (abbrev_table): Delete unused member "section".
4146 (dw2_do_instantiate_symtab): Early exit if type_unit_group.
4147 (dw2_get_cu): Assert not used with type_unit_group.
4148 (dw2_get_primary_cu): New function.
4149 (dw2_build_type_unit_groups_reader): New function.
4150 (dw2_build_type_unit_groups): New function.
4151 (dw2_get_file_names): Assert not called on type units.
4152 (dw2_map_symtabs_matching_filename): Call dw2_build_type_unit_groups.
4153 Redo loop to iterate over type unit groups instead of type units.
4154 (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Ditto.
4155 (read_abbrev_offset): New function.
4156 (init_cutu_and_read_dies): New arg "abbrev_table". All callers
4157 updated.
4158 (create_partial_symtab): New function.
4159 (process_psymtab_comp_unit_reader): Assert not used with type units.
4160 Call create_partial_symtab.
4161 (process_psymtab_type_unit): Delete.
4162 (hash_type_unit_group, eq_type_unit_group): New functions.
4163 (allocate_type_unit_groups_table): New function.
4164 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB): New macro.
4165 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB_SIZE): New macro.
4166 (create_type_unit_group, get_type_unit_group): New functions.
4167 (tu_abbrev_offset): New struct.
4168 (sort_tu_by_abbrev_offset): New function.
4169 (add_type_unit_group_to_table): New function.
4170 (build_type_unit_groups): New function.
4171 (build_type_psymtabs_reader): New function.
4172 (build_type_psymtab_dependencies): New function.
4173 (build_type_psymtabs): Rewrite.
4174 (scan_partial_symbols): Flag an error if a DW_TAG_imported_unit
4175 is seen in a type unit.
4176 (process_queue): Move symtab expansion debugging printfs here.
4177 Call process_full_type_unit for type units.
4178 (compute_symtab_includes): Assert not called for type units.
4179 (process_cu_includes): Don't call compute_symtab_includes for
4180 type units.
4181 (process_full_type_unit): New function.
4182 (process_imported_unit_die): Flag an error if called for type units.
4183 (handle_DW_AT_stmt_list): Delete arg "want_line_info". All callers
4184 updated. Assert not called for type units.
4185 (read_file_scope): Call dwarf2_start_symtab.
4186 (setup_type_unit_groups): New function.
4187 (read_type_unit_scope): Rewrite.
4188 (abbrev_table_read_table): Initialize abbrev_table->offset.
4189 (abbrev_table_free_cleanup): New function.
4190 (dwarf2_start_symtab): New function.
4191 (load_full_type_unit): Assert not called for type unit groups.
6d30eef8
DE
4192 * buildsym.c (finish_block_internal): New arg "expandable".
4193 All callers updated.
4194 (start_symtab): Move most contents to ...
4195 (restart_symtab): ... here. New function.
4196 (reset_symtab_globals): New function.
4197 (end_symtab_1): Renamed from end_symtab. New arg "expandable".
4198 Call reset_symtab_globals.
4199 (end_symtab, end_expandable_symtab): New functions.
4200 (set_missing_symtab, augment_type_symtab): New functions.
4201 * buildsym.h (end_expandable_symtab): Declare.
4202 (augment_type_symtab, restart_symtab): Declare.
b4c41fc7
DE
4203 * psympriv.h (struct partial_symtab): New member "anonymous".
4204 * psymtab.c (partial_map_symtabs_matching_filename): Ignore
4205 anonymous psymtabs.
4206 (read_psymtabs_with_filename): Ditto.
4207 (map_symbol_filenames_psymtab, psymtab_to_fullname): Ditto.
4208 (expand_symtabs_matching_via_partial): Ditto.
4209 (dump_psymtab): Update.
0bfa869d
DE
4210 * dictionary.c (dict_add_pending): New function.
4211 * dictionary.h (dict_add_pending): Declare.
4212
45e58e77
DE
42132012-07-09 Doug Evans <dje@google.com>
4214
b74db436
DE
4215 * buildsym.c (start_subfile): Remove unnecessary check for
4216 name == NULL.
4217
fd55216c
DE
4218 * psymtab.c (allocate_psymtab): Use host_address_to_string.
4219
6721b2ec
DE
4220 * dwarf2read.c (load_full_type_unit): Simplify.
4221
b4dd5633
DE
4222 * dwarf2read.c (dwarf2_per_objfile): Change type of all_type_units
4223 to struct signatured_type **. All uses updated.
4224
45e58e77
DE
4225 * dwarf2read.c (dwarf2_attr_no_follow): Delete unused arg "cu".
4226 All callers updated.
4227
e314d629
TT
42282012-07-09 Tom Tromey <tromey@redhat.com>
4229
4230 * c-exp.y (check_parameter_typelist): New function.
4231 (parameter_typelist): Call it.
4232 * eval.c (make_params): Handle '(void)' case.
4233 * gdbtypes.c (lookup_function_type_with_arguments): Handle
4234 '(void)' case.
4235
aa7c7447
JK
42362012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4237
4238 * common/linux-ptrace.c: Include gdb_assert.h.
4239 <__i386__> (linux_ptrace_test_ret_to_nx_instr): New declaration.
4240 <__i386__>: Include sys/reg.h, sys/mman.h, signal.h, sys/wait.h and
4241 stdint.h.
4242 (linux_ptrace_test_ret_to_nx, linux_ptrace_init_warnings): New
4243 functions.
4244 * common/linux-ptrace.h (linux_ptrace_init_warnings): New declarations.
4245 * linux-nat.c (linux_child_post_attach)
4246 (linux_child_post_startup_inferior): Call linux_ptrace_init_warnings.
4247
889003ed
JK
42482012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4249
4250 * linux-thread-db.c (thread_db_find_new_threads_silently): Do not apply
4251 nptl <2.7 bug workaround for core files.
4252
da559b09
JK
42532012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4254
4255 * linux-nat.c (resume_lwp, linux_nat_resume): Remove LP->SIGINFO
4256 clearing.
4257 (save_siginfo): Remove.
4258 (stop_wait_callback, linux_nat_filter_event): Remove the save_siginfo
4259 call.
4260 (resume_stopped_resumed_lwps): Remove LP->SIGINFO clearing.
4261 (linux_nat_get_siginfo): Use PTRACE_GETSIGINFO.
4262 * linux-nat.h (struct lwp_info): Remove field siginfo.
4263
f865ee35
JK
42642012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4265
4266 Code cleanup for the next patch.
4267 * arm-linux-nat.c (arm_linux_stopped_data_address): Change variable
4268 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
4269 call for it.
4270 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
4271 (ia64_linux_stopped_data_address):
4272 * linux-nat.c (linux_nat_get_siginfo): Add parameter siginfo, change
4273 the return value.
4274 * linux-nat.h (linux_nat_get_siginfo): Likewise.
4275 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Change variable
4276 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
4277 call for it.
4278
76b83c51
JK
42792012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4280
4281 PR 14321
4282 * findcmd.c (parse_find_args): New variable pattern_buf_size_need.
4283 Increase buffer sizes to 2x we need, not just 2x of the previous size.
4284
a6fb9c08
TT
42852012-07-06 Tom Tromey <tromey@redhat.com>
4286
4287 * c-exp.y (DOTDOTDOT): New token.
4288 (func_mod, exp): Use parameter_typelist.
4289 (parameter_typelist): New production.
4290 (tokentab3): Add "..." token.
4291 * eval.c (make_params): Handle varargs.
4292 * gdbtypes.c (lookup_function_type_with_arguments): Handle
4293 varargs.
4294
71918a86
TT
42952012-07-06 Tom Tromey <tromey@redhat.com>
4296
4297 PR exp/9608:
4298 * c-exp.y (%union) <tvec>: Change type.
4299 (func_mod): Now uses <tvec> type.
4300 (exp): Update for tvec change.
4301 (direct_abs_decl): Push the typelist.
4302 (func_mod): Return a typelist.
4303 (nonempty_typelist): Update for tvec change.
4304 * gdbtypes.c (lookup_function_type_with_arguments): New function.
4305 * gdbtypes.h (lookup_function_type_with_arguments): Declare.
4306 * parse.c (pop_type_list): New function.
4307 (push_typelist): New function.
4308 (follow_types): Handle tp_function_with_arguments.
4309 * parser-defs.h (type_ptr): New typedef. Define a VEC.
4310 (enum type_pieces) <tp_function_with_arguments>: New constant.
4311 (union type_stack_elt) <typelist_val>: New field.
4312 (push_typelist): Declare.
4313
fcde5961
TT
43142012-07-06 Tom Tromey <tromey@redhat.com>
4315
4316 * c-exp.y (%union) <type_stack>: New field.
4317 (abs_decl, direct_abs_decl): Use <type_stack> type. Update.
4318 (ptr_operator_ts): New production.
4319 (ptype): Update.
4320 * parse.c (type_stack_reserve): New function.
4321 (check_type_stack_depth): Use it.
4322 (pop_type_stack, append_type_stack, push_type_stack)
4323 (get_type_stack, type_stack_cleanup): New functions.
4324 (follow_types): Handle tp_type_stack.
4325 (_initialize_parse): Simplify initialization.
4326 * parser-defs.h (enum type_pieces) <tp_type_stack>: New
4327 constant.
4328 (union type_stack_elt) <stack_val>: New field.
4329 (get_type_stack, append_type_stack, push_type_stack)
4330 (type_stack_cleanup): Declare.
4331
1a7d0ce4
TT
43322012-07-06 Tom Tromey <tromey@redhat.com>
4333
4334 * parser-defs.h (type_stack, type_stack_size, type_stack_depth):
4335 Remove.
4336 (struct type_stack): New.
4337 * parse.c (type_stack, type_stack_size, type_stack_depth):
4338 Remove.
4339 (type_stack): New global.
4340 (parse_exp_in_context, check_type_stack_depth)
4341 (insert_into_type_stack, insert_type, push_type, push_type_int)
4342 (insert_type_address_space, pop_type, pop_type_int)
4343 (_initialize_parse): Update.
4344
16d01384
TT
43452012-07-06 Tom Tromey <tromey@redhat.com>
4346
4347 * c-exp.y (func_mod, direct_abs_decl, abs_decl, ptr_operator):
4348 Remove %type.
4349
9bfc60bf
SP
43502012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
4351
4352 * c-lang.c (c_printstr): Remove ununsed variable WIDTH.
4353
d5161074
SP
43542012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
4355 Jan Kratochvil <jan.kratochvil@redhat.com>
4356
4357 * cp-valprint.c (cp_print_value): Replace potentially unsafe
4358 alloca with xmalloc/xfree.
4359
a74bc576
SP
43602012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
4361
4362 * MAINTAINERS (Write After Approval): Add myself to the list.
4363
667e0a4b
DE
43642012-07-05 Doug Evans <dje@google.com>
4365
4366 * dwarf2read.c (dw2_expand_symtabs_matching): Fix typo.
4367
34b536a8
HZ
43682012-07-05 Hui Zhu <hui_zhu@mentor.com>
4369
4370 * ax-gdb.c (cli/cli-utils.h): New include.
4371 (linespec.h): Ditto.
4372 (agent_eval_command_one): New function.
4373 (agent_command_1): Ditto.
4374 (agent_command): Call function agent_command_1.
4375 (agent_eval_command): Ditto.
4376 (_initialize_ax_gdb): Change help for "maint agent"
4377 and "maint agent-eval".
4378
e6f0bce7
HZ
43792012-07-05 Hui Zhu <hui_zhu@mentor.com>
4380
4381 * breakpoint.c (check_for_argument): Move to file cli/cli-utils.c.
4382 * cli/cli-utils.c (check_for_argument): New function.
4383 * cli/cli-utils.h (check_for_argument): Ditto.
4384
1b3371b1
L
43852012-07-04 H.J. Lu <hongjiu.lu@intel.com>
4386
4387 * NEWS: Mention x32 ABI support.
4388
23e2d720
L
43892012-07-04 H.J. Lu <hongjiu.lu@intel.com>
4390
4391 * amd64-tdep.c (amd64_x32_init_abi): Set sp_regnum_from_eax to
4392 AMD64_RSP_REGNUM and pc_regnum_from_eax to AMD64_RIP_REGNUM.
4393
4394 * i386-tdep.c (i386_gdbarch_init): Initialize sp_regnum_from_eax
4395 and pc_regnum_from_eax to -1. Update SP regnum from
4396 sp_regnum_from_eax and PC regnum from pc_regnum_from_eax if
4397 needed.
4398
4399 * i386-tdep.h (gdbarch_tdep): Add sp_regnum_from_eax and
4400 pc_regnum_from_eax.
4401
836bf454
JK
44022012-07-03 Jan Kratochvil <jan.kratochvil@redhat.com>
4403
4404 Fix 'warning: parameter has incomplete type' with gcc-3.4.6.
4405 * dwarf2expr.h: Include gdbtypes.h.
4406 (enum call_site_parameter_kind, union call_site_parameter_u): Remove
4407 these forward declarations.
4408 (cu_offset, sect_offset): Move these ...
4409 * gdbtypes.h: Remove include dwarf2expr.h.
4410 (cu_offset, sect_offset): ... here.
4411
1e55e04f
L
44122012-07-03 H.J. Lu <hongjiu.lu@intel.com>
4413
4414 * amd64-linux-tdep.c (linux_sigtramp_code): Renamed to ...
4415 (amd64_linux_sigtramp_code): This.
4416 (amd64_x32_linux_sigtramp_code): New.
4417 (LINUX_SIGTRAMP_LEN): Updated.
4418 (amd64_linux_sigtramp_start): Check x32 sigtramp.
4419
7d0e21ad
JK
44202012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4421
4422 * linux-thread-db.c (thread_db_new_objfile): Fix comment typos.
4423
8775fd2d
JK
44242012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4425
4426 * config.in: Regenerate.
4427 * configure: Regenerate.
4428 * configure.ac: Remove check for gnu/libc-version.h.
4429 * linux-thread-db.c <HAVE_GNU_LIBC_VERSION_H>: Remove include of
4430 gnu/libc-version.h.
4431 (enable_thread_event_reporting) <HAVE_GNU_LIBC_VERSION_H>: Remove
4432 variables libc_version, libc_major and libc_minor. Replace sscanf by
4433 inferior_has_bug. Extend the comment.
4434
fcb44371
JK
44352012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4436
4437 * linux-thread-db.c (inferior_has_bug): New function.
4438 (thread_db_find_new_threads_silently): Return boolean as checked by
4439 inferior_has_bug, describe it in the comments.
4440 (try_thread_db_load_1): Move call to thread_db_find_new_threads_silently
4441 earlier. Abort the initialization if it returned non-zero.
7d0e21ad 4442 (thread_db_new_objfile): Exclude debug files.
fcb44371
JK
4443 (thread_db_find_new_threads_2): Preinitialize ERR. Check errors also
4444 if UNTIL_NO_NEW,
4445
09406207
DE
44462012-07-02 Doug Evans <dje@google.com>
4447
0907af0c
DE
4448 * dwarf2read.c (maybe_queue_comp_unit): Move definition next to others
4449 related to queue management.
4450
09406207
DE
4451 * dwarf2read.c (create_debug_types_hash_table): Use "debug dwarf2-read"
4452 instead of "debug dwarf2-die" in debugging printfs.
4453 (create_debug_info_hash_table_reader): Ditto.
4454 (create_debug_info_hash_table): Ditto.
4455 (init_dwo_file): Ditto.
4456 (init_cutu_and_read_dies): Add debugging printf.
4457 (init_cutu_and_read_dies_no_follow): Ditto.
4458 (process_psymtab_comp_unit_reader): Ditto.
4459
d3ce09f5
SS
44602012-07-02 Stan Shebs <stan@codesourcery.com>
4461
4462 Add target-side support for dynamic printf.
4463 * NEWS: Mention the additional style.
4464 * breakpoint.h (struct bp_target_info): New fields tcommands, persist.
4465 (struct bp_location): New field cmd_bytecode.
4466 * breakpoint.c: Include format.h.
4467 (disconnected_dprintf): New global.
4468 (parse_cmd_to_aexpr): New function.
4469 (build_target_command_list): New function.
4470 (insert_bp_location): Call it.
4471 (remove_breakpoints_pid): Skip dprintf breakpoints.
4472 (print_one_breakpoint_location): Ditto.
4473 (dprintf_style_agent): New global.
4474 (dprintf_style_enums): Add dprintf_style_agent.
4475 (update_dprintf_command_list): Add agent case.
4476 (agent_printf_command): New function.
4477 (_initialize_breakpoint): Add new commands.
4478 * common/ax.def (printf): New bytecode.
4479 * ax.h (ax_string): Declare.
4480 * ax-gdb.h (gen_printf): Declare.
4481 * ax-gdb.c: Include cli-utils.h, format.h.
4482 (gen_printf): New function.
4483 (maint_agent_print_command): New function.
4484 (_initialize_ax_gdb): Add maint agent-printf command.
4485 * ax-general.c (ax_string): New function.
4486 (ax_print): Add printf disassembly.
4487 * Makefile.in (SFILES): Add format.c
4488 (COMMON_OBS): Add format.o.
4489 * common/format.h: New file.
4490 * common/format.c: New file.
4491 * printcmd.c: Include format.h.
4492 (ui_printf): Call parse_format_string.
4493 * remote.c (remote_state): New field breakpoint_commands.
4494 (PACKET_BreakpointCommands): New enum.
4495 (remote_breakpoint_commands_feature): New function.
4496 (remote_protocol_features): Add new BreakpointCommands entry.
4497 (remote_can_run_breakpoint_commands): New function.
4498 (remote_add_target_side_commands): New function.
4499 (remote_insert_breakpoint): Call it.
4500 (remote_insert_hw_breakpoint): Ditto.
4501 (_initialize_remote): Add new packet configuration for
4502 target-side breakpoint commands.
4503 * target.h (struct target_ops): New field
4504 to_can_run_breakpoint_commands.
4505 (target_can_run_breakpoint_commands): New macro.
4506 * target.c (update_current_target): Handle
4507 to_can_run_breakpoint_commands.
4508
2d7b58e8
JK
45092012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4510
4511 Execute -ix and -iex only after system and user gdbinit files.
4512 * main.c (captured_main): Move CMDARG_INIT_FILE and CMDARG_INIT_COMMAND
4513 processing down after gdbinit files.
4514
8690e634
JK
45152012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4516
4517 Add fnmatch-gnu module.
4518 * gnulib/Makefile.in (aclocal_m4_deps): Add new files and remove one.
4519 * gnulib/configure.ac (AC_INIT): Use now import/memmem.c.
4520 * gnulib/aclocal.m4: Regenerate.
4521 * gnulib/config.in: Regenerate.
4522 * gnulib/configure: Regenerate.
4523 * gnulib/import/dummy.c: Remove.
4524 * gnulib/import/Makefile.am: Regenerate.
4525 * gnulib/import/Makefile.in: Likewise.
4526 * gnulib/import/m4/gnulib-cache.m4: Likewise.
4527 * gnulib/import/m4/gnulib-comp.m4: Likewise.
4528 * gnulib/import/alloca.c: New file.
4529 * gnulib/import/alloca.in.h: Likewise.
4530 * gnulib/import/config.charset: Likewise.
4531 * gnulib/import/fnmatch.c: Likewise.
4532 * gnulib/import/fnmatch.in.h: Likewise.
4533 * gnulib/import/fnmatch_loop.c: Likewise.
4534 * gnulib/import/localcharset.c: Likewise.
4535 * gnulib/import/localcharset.h: Likewise.
4536 * gnulib/import/m4/alloca.m4: Likewise.
4537 * gnulib/import/m4/codeset.m4: Likewise.
4538 * gnulib/import/m4/configmake.m4: Likewise.
4539 * gnulib/import/m4/fcntl-o.m4: Likewise.
4540 * gnulib/import/m4/fnmatch.m4: Likewise.
4541 * gnulib/import/m4/glibc21.m4: Likewise.
4542 * gnulib/import/m4/localcharset.m4: Likewise.
4543 * gnulib/import/m4/locale-fr.m4: Likewise.
4544 * gnulib/import/m4/locale-ja.m4: Likewise.
4545 * gnulib/import/m4/locale-zh.m4: Likewise.
4546 * gnulib/import/m4/mbrtowc.m4: Likewise.
4547 * gnulib/import/m4/mbsinit.m4: Likewise.
4548 * gnulib/import/m4/mbsrtowcs.m4: Likewise.
4549 * gnulib/import/m4/mbstate_t.m4: Likewise.
4550 * gnulib/import/m4/stdbool.m4: Likewise.
4551 * gnulib/import/m4/wchar_h.m4: Likewise.
4552 * gnulib/import/m4/wctype_h.m4: Likewise.
4553 * gnulib/import/m4/wint_t.m4: Likewise.
4554 * gnulib/import/mbrtowc.c: Likewise.
4555 * gnulib/import/mbsinit.c: Likewise.
4556 * gnulib/import/mbsrtowcs-impl.h: Likewise.
4557 * gnulib/import/mbsrtowcs-state.c: Likewise.
4558 * gnulib/import/mbsrtowcs.c: Likewise.
4559 * gnulib/import/ref-add.sin: Likewise.
4560 * gnulib/import/ref-del.sin: Likewise.
4561 * gnulib/import/stdbool.in.h: Likewise.
4562 * gnulib/import/streq.h: Likewise.
4563 * gnulib/import/strnlen1.c: Likewise.
4564 * gnulib/import/strnlen1.h: Likewise.
4565 * gnulib/import/verify.h: Likewise.
4566 * gnulib/import/wchar.in.h: Likewise.
4567 * gnulib/import/wctype.in.h: Likewise.
4568
202cbf1c
JK
45692012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4570
4571 Support shell wildcards for 'set auto-load safe-path'.
4572 * auto-load.c: Include fnmatch.h.
4573 (filename_is_in_dir): Rename to ...
4574 (filename_is_in_pattern_1, filename_is_in_pattern): ... here and split
4575 it. Update function comment. Rename dir_len to pattern_len. New
4576 variables filename_len, pattern and filename. Add more DEBUG_AUTO_LOAD
4577 messages. Use gdb_filename_fnmatch.
4578 (filename_is_in_auto_load_safe_path_vec): Rename variable dir to
4579 pattern.
4580 (_initialize_auto_load): Extend the "set auto-load safe-path" help text.
4581 * defs.h (gdb_filename_fnmatch): New declaration.
4582 * utils.c: Include fnmatch.h.
4583 (gdb_filename_fnmatch): New function.
4584
fb7b5af4
SDJ
45852012-07-02 Sergio Durigan Junior <sergiodj@redhat.com>
4586
4587 * breakpoint.c (BREAK_ARGS_HELP): Include help message for the new
4588 `-probe' and `-probe-stap' options.
4589
72d0e2c5
YQ
45902012-07-01 Yao Qi <yao@codesourcery.com>
4591
4592 * breakpoint.c: Removed always_inserted_auto, always_inserted_on,
4593 always_inserted_off, and always_inserted_enums.
4594 Change always_inserted_mode's type to 'enum auto_boolean'.
4595 (show_always_inserted_mode, breakpoint_always_inserted_mode): Update
4596 callers.
4597 (_initialize_breakpoint): Call add_setshow_auto_boolean_cmd instead
4598 of add_setshow_enum_cmd.
4599 * infrun.c: Remove can_use_displaced_stepping_auto,
4600 can_use_displaced_stepping_on, can_use_displaced_stepping_off, and
4601 can_use_displaced_stepping_enum.
4602 Change can_use_displaced_stepping's type to 'enum auto_boolean'.
4603 (show_can_use_displaced_stepping, use_displaced_stepping): Update callers.
4604 (_initialize_infrun): Call add_setshow_auto_boolean_cmd instead of
4605 add_setshow_enum_cmd.
4606
42e7ad6c
DE
46072012-06-30 Doug Evans <dje@google.com>
4608
4609 * dwarf2read.c (signatured_type): Make "per_cu" member first.
4610 (init_cutu_and_read_dies): Handle rereading a DWO CU while it's
4611 currently being read. Propagate DW_AT_comp_dir to DWO DIE.
4612
39cf75f7
DE
46132012-06-29 Doug Evans <dje@google.com>
4614
4615 * linespec.c: #include "stack.h".
4616 (decode_line_with_current_source): Moved here from symtab.c and
4617 renamed from decode_line_spec. All callers updated.
4618 (decode_line_with_last_displayed): Moved here from breakpoint.c and
4619 renamed from decode_line_spec_1. All callers updated.
4620 * linespec.h (decode_line_with_current_source): Move declaration here
4621 from symtab.h and renamed from decode_line_spec.
4622 (decode_line_with_last_displayed): Move declaration here from symtab.h
4623 and renamed from decode_line_spec_1.
4624 * macrocmd.c: #include "linespec.h".
4625 * symtab.c: Remove #include "linespec.h".
4626
433df2d4
DE
46272012-06-28 Doug Evans <dje@google.com>
4628
1ce1cefd
DE
4629 * dwarf2read.c (get_cu_length): New function.
4630 (offset_in_cu_p, error_check_comp_unit_head): Call it.
4631 (create_debug_types_hash_table): Ditto.
4632 (init_cutu_and_read_dies): Ditto.
4633 (init_cutu_and_read_dies_no_follow): Ditto.
4634
3b80fe9b
DE
4635 * dwarf2read.c (dwarf2_find_base_address): Move definition.
4636
433df2d4
DE
4637 * dwarf2read.c (ABBREV_HASH_SIZE): Remove enclosing #ifndef/#endif.
4638 (struct abbrev_table): Define.
4639 (dwarf2_cu): Replace members dwarf2_abbrevs, abbrev_obstack with
4640 abbrev_table.
4641 (init_cutu_and_read_dies): Update.
4642 (abbrev_table_alloc_abbrev): New function. Replaces
4643 dwarf_alloc_abbrev. All callers updated.
4644 (abbrev_table_add_abbrev): New function.
4645 (abbrev_table_lookup_abbrev): New function. Replaces
4646 dwarf2_lookup_abbrev. All callers updated.
4647 (abbrev_table_read_table): New function. Contents moved here from
4648 dwarf2_read_abbrevs.
4649 (dwarf2_read_abbrevs): Call it.
4650 (abbrev_table_free): New function.
4651 (dwarf2_free_abbrev_table): Call it.
4652
71caed83
SS
46532012-06-28 Stan Shebs <stan@codesourcery.com>
4654
4655 * osdata.c (info_osdata_command): Filter out "Title" columns
4656 from non-MI uses.
4657 * common/linux-osdata.c (struct osdata_type): Add title field.
4658 (osdata_table): Add titles to each entry.
4659 (linux_command_xfer_osdata): Add a column for title data.
4660
37ce89eb
SS
46612012-06-28 Stan Shebs <stan@codesourcery.com>
4662
4663 Make logging work for MI.
4664 * NEWS: Mention it.
4665 * interps.h (interp_set_logging_ftype): New typedef.
4666 (struct interp_procs): New field set_logging_proc.
4667 (current_interp_set_logging): Declare.
4668 * interps.c (current_interp_set_logging): New function.
4669 * cli/cli-logging.c: Include interps.h.
4670 (set_logging_redirect): Call current_interp_set_logging.
4671 (pop_output_files): Ditto.
4672 (handle_redirections): Ditto, plus skip ui-out redirect if MI.
4673 * mi/mi-console.h (mi_console_set_raw): Declare.
4674 * mi/mi-console.c (mi_console_set_raw): New function.
4675 * mi/mi-interp.c (saved_raw_stdout): New global.
4676 (mi_set_logging): New function.
4677 (_initialize_mi_interp): Add it to interp procs.
4678
659c9f3a
DE
46792012-06-28 Doug Evans <dje@google.com>
4680
a743abeb
DE
4681 * symtab.c (lookup_symbol_aux_objfile): Use
4682 ALL_OBJFILE_PRIMARY_SYMTABS.
4683
659c9f3a
DE
4684 * gdbtypes.c (lookup_typename): Rename local variable "tmp" to "type".
4685
da2d6d3d
JK
46862012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4687
4688 * common/buffer.c: Include inttypes.h and stdint.h.
4689 (buffer_xml_printf): Use PRId64, PRIu64, PRIx64 and PRIo64.
4690
e5ef252a
PA
46912012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4692 Pedro Alves <palves@redhat.com>
4693
4694 * gdbthread.h (ALL_THREADS): New macro.
4695 (thread_list): Declare.
4696 * infrun.c (handle_inferior_event) <spurious signal>: Don't keep
4697 going, but instead fall through to the stepping handling.
4698 * linux-nat.c (resume_lwp): New parameter 'signo'. Resume with
4699 the passed in signal. Adjust debug output.
4700 (resume_callback): Rename to ...
4701 (linux_nat_resume_callback): ... this. Pass the thread's last
4702 stop signal, if in "pass" state.
4703 (linux_nat_resume): Adjust to rename.
4704 (stop_wait_callback): New assertion. Don't respawn signals;
4705 instead let the LWP remain with SIGNALLED set.
4706 (linux_nat_wait_1): Remove flushing of pending SIGSTOPs.
4707 * remote.c (append_pending_thread_resumptions): New.
4708 (remote_vcont_resume): Call it.
4709 * target.h (target_resume): Extend comment.
4710
1d7975eb
IS
47112012-06-28 Iain Sandoe <iain@codesourcery.com>
4712
4713 * auxv.c (fprint_target_auxv): Handle extended cache data tags.
4714
2e3cf129
DE
47152012-06-27 Doug Evans <dje@google.com>
4716
4717 * dwarf2read.c (dwarf2_cu): Add ranges_base.
4718 Delete have_addr_base, unused. All uses updated.
4719 (init_cutu_and_read_dies): Process DW_AT_GNU_ranges_base.
4720 (dwarf2_get_pc_bounds): Add ranges_base.
4721 (dwarf2_record_block_ranges): Ditto.
4722
1bb9788d
TT
47232012-06-27 Tom Tromey <tromey@redhat.com>
4724
4725 PR macros/7961:
4726 * varobj.c (varobj_create): Update.
4727 (varobj_set_value): Update.
4728 * tracepoint.c (validate_actionline): Update.
4729 (encode_actions_1): Update.
4730 * parse.c (parse_exp_1): Add 'pc' argument.
4731 (parse_exp_in_context): Add 'pc' argument. Change how
4732 expression_context_pc is set.
4733 (parse_expression): Update.
4734 (parse_field_expression): Update.
4735 * expression.h (parse_exp_1): Update.
4736 * eval.c (parse_to_comma_and_eval): Update.
4737 * breakpoint.c (set_breakpoint_condition): Update.
4738 (update_watchpoint): Update.
4739 (init_breakpoint_sal): Update
4740 (find_condition_and_thread): Update.
4741 (watch_command_1): Update.
4742 (update_breakpoint_locations): Update.
4743 * ada-lang.c (ada_read_renaming_var_value): Update.
4744 (create_excep_cond_exprs): Update.
4745
0bc3a05c
DE
47462012-06-27 Doug Evans <dje@google.com>
4747
4748 * dwarf2read.c (per_cu_header_read_in): Simplify, and handle
4749 type units.
4750
4bdcc0c1
DE
47512012-06-26 Doug Evans <dje@google.com>
4752
4753 * dwarf2read.c (read_and_check_comp_unit_head): Delete unnecessary
4754 prototype.
4755 (error_check_comp_unit_head): New arg abbrev_section. All callers
4756 updated.
4757 (read_and_check_comp_unit_head): Ditto.
4758 (read_and_check_type_unit_head): Ditto.
4759
ee0bf529
SCR
47602012-06-26 Siva Chandra Reddy <sivachandra@google.com>
4761
4762 New attribute 'last' for gdb.Symtab_and_line.
4763 * NEWS (Python Scripting): Add entry about the new attribute.
4764 * python/py-symtab.c (salpy_get_last): New function which
4765 implements the get method for the 'last' attribute of
4766 gdb.Symtab_and_line.
4767 (sal_object_getset): Add entry for the 'last' attribute.
4768
1c658ad5
DE
47692012-06-26 Doug Evans <dje@google.com>
4770
09262596
DE
4771 * dwarf2read.c (dwo_section_names): Add macinfo_dwo, macro_dwo.
4772 (dwo_sections): Add macinfo, macro.
4773 (dwarf2_locate_dwo_sections): Watch for macro sections.
4774 (dwarf_decode_macros): Remove args lh, abfd, section, section_name.
4775 All callers updated. Handle DWO files.
4776
45cfd468
DE
4777 * NEWS: Mention new options "set debug dwarf2-read" and
4778 "set debug symtab-create".
4779 * dwarf2read.c (dwarf2_read_debug): New static global.
4780 (dwarf2_build_psymtabs_hard): Add debugging printfs.
4781 (process_queue): Ditto.
4782 (process_full_comp_unit): Ditto.
4783 (_initialize_dwarf2_read): Add new option "set debug dwarf2-read".
4784 * elfread.c (elf_symfile_read): Add debugging printf.
4785 * minsyms.c (install_minimal_symbols): Ditto.
4786 * psymtab.c (allocate_psymtab): Ditto.
4787 * symfile.c (allocate_symtab): Ditto.
4788 * symtab.c (symtab_create_debug): New global.
4789 (_initialize_symtab): Add new option "set debug symtab-create".
4790 * symtab.h (symtab_create_debug): Declare.
4791
1c658ad5
DE
4792 * dwarf2read.c (lookup_dwo_comp_unit): Enhance comment.
4793 (lookup_dwo_type_unit): Ditto.
4794
6fea9e18
L
47952012-06-26 Roland McGrath <roland@hack.frob.com>
4796 H.J. Lu <hongjiu.lu@intel.com>
4797
4798 * amd64-linux-nat.c: Include <sys/user.h>.
4799 (ps_get_thread_area): Use PTRACE_PEEKUSER to get fs_base/gs_base
4800 if HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE or
4801 HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE is defined.
4802
4803 * configure.ac: Check if the fs_base and gs_base members of
4804 `struct user_regs_struct' exist.
4805 * config.in: Regenerated.
4806 * configure: Likewise.
4807
adb4fe3b
ME
48082012-06-25 Michael Eager <eager@eagercon.com>
4809
4810 PR python/14291
f782ad9b 4811 * python/python.c (gdbpy_write): Check for interrupted output.
adb4fe3b 4812
fc51cce1
MGD
48132012-06-25 Greta Yorsh <greta.yorsh@arm.com>
4814
4815 * arm-tdep.c (arm_in_function_epilogue_p): Recognize POP with a single
4816 register as a stack alignment in ARM mode.
4817
40a73391
JK
48182012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
4819
4820 Update gnulib to GIT commit a39f53ccb70a613e647e1019fb4c63645220267e.
4821 * gnulib/config.in: Regenerate.
4822 * gnulib/configure: Likewise.
4823 * gnulib/import/m4/extensions.m4: Update it.
4824 * gnulib/import/m4/gnulib-common.m4: Likewise.
4825 * gnulib/import/m4/memmem.m4: Likewise.
4826 * gnulib/import/m4/mmap-anon.m4: Likewise.
4827 * gnulib/import/m4/multiarch.m4: Likewise.
4828 * gnulib/import/stdint.in.h: Likewise.
4829
972daa01
YQ
48302012-06-24 Yao Qi <yao@codesourcery.com>
4831
4832 * corefile.c (write_memory_with_notification): New.
4833 * gdbcore.h: Declare write_memory_with_notification.
4834 * ada-lang.c (ada_value_assign): Replace 'write_memory' and
4835 'observer_notify_memory_changed' with 'write_memory_with_notification'.
4836 * valops.c (value_assign): Likewise.
4837 * python/py-inferior.c (infpy_write_memory): Call
4838 'write_memory_with_notification'.
4839
8d6e0714
JK
48402012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
4841
4842 * cc-with-index.sh: Use also -ex "set auto-load no".
4843
156942c7
DE
48442012-06-23 Doug Evans <dje@google.com>
4845
4846 PR 14125
4847 * NEWS: Document additions to .gdb_index.
4848 * dwarf2read.c: #include "gdb/gdb-index.h".
4849 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): New macro.
4850 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): New macro.
4851 (DW2_GDB_INDEX_CU_SET_VALUE): New macro.
4852 (dwarf2_read_index): Recognize version 7.
4853 (dw2_do_expand_symtabs_matching): New args want_specific_block,
4854 block_kind, domain): All callers updated.
4855 (dw2_find_symbol_file): Handle new index CU values.
4856 (dw2_expand_symtabs_matching): Match symbol kind if requested.
4857 (add_index_entry): New args is_static, kind. All callers updated.
4858 (offset_type_compare, uniquify_cu_indices): New functions
4859 (symbol_kind): New function.
4860 (write_psymtabs_to_index): Remove duplicate CU values.
4861 (write_psymtabs_to_index): Write .gdb_index version 7.
4862
352b3eda
JB
48632012-06-22 Joel Brobecker <brobecker@adacore.com>
4864
4865 * configure.ac (build_warnings): Add -Wdeclaration-after-statement.
4866 * configure: Regenerate.
4867
2678e2af
YQ
48682012-06-20 Yao Qi <yao@codesourcery.com>
4869
4870 * python/py-inferior.c: Update comments of infpy_read_memory
4871 and infpy_write_memory.
4872
95c391b6
TT
48732012-06-19 Tom Tromey <tromey@redhat.com>
4874
4875 PR exp/9514:
4876 * parser-defs.h (insert_type, insert_type_address_space): Declare.
4877 (push_type_address_space): Remove.
4878 * parse.c (insert_into_type_stack): New function.
4879 (insert_type): Likewise.
4880 (insert_type_address_space): Rename from push_type_address_space.
4881 Insert tp_space_identifier.
4882 * c-exp.y (ptr_operator): New production.
4883 (abs_decl): Use ptr_operator.
4884 (space_identifier): Call insert_type_address_space.
4885 (ptype): Don't use const_or_volatile_or_space_identifier.
4886 (const_or_volatile_noopt): Call insert_type.
4887 (conversion_type_id, conversion_declarator): New productions.
4888 (operator): Use conversion_type_id.
4889
6ac9ef80
DE
48902012-06-18 Doug Evans <dje@google.com>
4891
422d65e7
DE
4892 * symtab.h (minimal_symbol): New member created_by_gdb.
4893 * elfread.c (elf_symtab_read): Set created_by_gdb for @plt minsym
4894 created by gdb.
4895 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): New function.
4896 (search_symbols): Call it instead of lookup_symbol.
4897 Skip symbols created by gdb. Only scan minsyms if nfiles == 0.
4898
49f6c839
DE
4899 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_const_index.
4900 Adjust address for DW_OP_GNU_addr_index.
4901 * dwarf2expr.h (dwarf_expr_context): Update comment.
4902 * dwarf2loc.c (locexpr_describe_location_piece): New arg per_cu,
4903 all callers updated. Handle TLS vars described with
4904 DW_OP_GNU_const_index.
4905 (disassemble_dwarf_expression): Handle DW_OP_GNU_addr_index
4906 and DW_OP_GNU_const_index.
4907 * dwarf2read.c (decode_locdesc): Handle DW_OP_GNU_addr_index.
4908
6ac9ef80
DE
4909 * block.c (find_block_in_blockvector): Make explicit the fact that we
4910 ignore GLOBAL_BLOCK.
4911
4cd18215
TT
49122012-06-18 Tom Tromey <tromey@redhat.com>
4913
4914 * c-exp.y (operator): Remove trailing space after "delete" and
4915 "delete[]".
4916
a9b8d892
JK
49172012-06-18 Mark Kettenis <kettenis@gnu.org>
4918 Jan Kratochvil <jan.kratochvil@redhat.com>
4919
4920 Switch i386 and derived targets to ON_STACK.
4921 * amd64-dicos-tdep.c (amd64_dicos_push_dummy_code): Remove.
4922 (amd64_dicos_init_abi): Remove its installment.
4923 * dicos-tdep.c (dicos_init_abi): Remove the
4924 set_gdbarch_call_dummy_location call. Update the comment here.
4925 * i386-dicos-tdep.c (i386_dicos_push_dummy_code): Remove.
4926 (i386_dicos_init_abi): Remove its installment.
4927 * i386-tdep.c (i386_push_dummy_code): New function.
4928 (i386_gdbarch_init): Call set_gdbarch_call_dummy_location, install
4929 i386_push_dummy_code.
4930
e2e4d78b
JK
49312012-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4932
4933 Remove stale dummy frames.
4934 * breakpoint.c: Include dummy-frame.h.
4935 (longjmp_breakpoint_ops): New variable.
4936 (update_breakpoints_after_exec, breakpoint_init_inferior): Delete also
4937 bp_longjmp_call_dummy.
4938 (bpstat_what, bptype_string, print_one_breakpoint_location)
4939 (init_bp_location): Support bp_longjmp_call_dummy.
4940 (set_longjmp_breakpoint): Use longjmp_breakpoint_ops. Comment why.
4941 (set_longjmp_breakpoint_for_call_dummy)
4942 (check_longjmp_breakpoint_for_call_dummy, longjmp_bkpt_dtor): New
4943 functions.
4944 (initialize_breakpoint_ops): Initialize longjmp_breakpoint_ops.
4945 * breakpoint.h (enum bptype): New item bp_longjmp_call_dummy. Delete
4946 FIXME comment and extend the other comment for bp_call_dummy.
4947 (set_longjmp_breakpoint_for_call_dummy)
4948 (check_longjmp_breakpoint_for_call_dummy): New declarations.
4949 * dummy-frame.c: Include gdbthread.h.
4950 (pop_dummy_frame_bpt): New function.
4951 (pop_dummy_frame): Call pop_dummy_frame_bpt.
4952 (dummy_frame_discard): New function.
4953 (cleanup_dummy_frames): Update the comment about longjmps.
4954 * dummy-frame.h (dummy_frame_discard): New declaration.
4955 * gdbthread.h (struct thread_info): Extend initiating_frame comment.
4956 * infcall.c (call_function_by_hand): New variable longjmp_b. Call
4957 set_longjmp_breakpoint_for_call_dummy. Chain its breakpoints with BPT.
4958 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>:
4959 Add case 4 comment. Call check_longjmp_breakpoint_for_call_dummy and
4960 keep_going if IS_LONGJMP and there is no other reason to stop.
4961
09d5912c
TT
49622012-06-18 Greta Yorsh <Greta.Yorsh@arm.com>
4963
4964 * remote-sim.c (sim_command_completer): Initialize
4965 variable 'result'.
4966
1788b2d3
JK
49672012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4968
4969 * dwarf2expr.c (execute_stack_op): Support DW_OP_GNU_parameter_ref.
4970 * dwarf2loc.c (call_site_parameter_matches): Support
4971 CALL_SITE_PARAMETER_PARAM_OFFSET.
4972 (needs_dwarf_reg_entry_value): Push stub value.
4973 * dwarf2read.c (read_call_site_scope): New variable origin. Support
4974 CALL_SITE_PARAMETER_PARAM_OFFSET and its DW_AT_abstract_origin.
4975 * gdbtypes.h (enum call_site_parameter_kind): New item
4976 CALL_SITE_PARAMETER_PARAM_OFFSET.
4977 (struct call_site.parameter.u): New field param_offset.
4978
24c5c679
JK
49792012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4980
4981 Code cleanup: Generalize call_site.parameter key.
4982 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_entry_value>: Remove
4983 variable dwarf_reg. New variable kind_u. Update parameters to
4984 push_dwarf_reg_entry_value.
4985 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
4986 * dwarf2expr.h (enum call_site_parameter_kind)
4987 (union call_site_parameter_u): Forward declarations.
4988 (struct dwarf_expr_context_funcs): Update parameters and their
4989 description for push_dwarf_reg_entry_value.
4990 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
4991 * dwarf2loc.c (call_site_parameter_matches): New function.
4992 (dwarf_expr_reg_to_entry_parameter): Update parameters and their
4993 description. Use call_site_parameter_matches.
4994 (dwarf_expr_push_dwarf_reg_entry_value, value_of_dwarf_reg_entry):
4995 Update parameters and their description.
4996 (value_of_dwarf_block_entry): Remove variables dwarf_reg and fb_offset.
4997 New variable kind_u. Adjust the caller for updated parameters.
4998 (needs_dwarf_reg_entry_value): Update parameters.
4999 * dwarf2read.c (read_call_site_scope): New variable loc. Use it
5000 instead of attr. Update for the changed fields of struct
5001 call_site_parameter.
5002 * gdbtypes.h: Include dwarf2expr.h.
5003 (enum call_site_parameter_kind): New.
5004 (struct call_site.parameter): New field kind. Wrap dwarf_reg and
5005 fb_offset into new union u.
5006
ac142d96
L
50072012-06-16 H.J. Lu <hongjiu.lu@intel.com>
5008
5009 * amd64-tdep.c (amd64_x32_analyze_stack_align): New function.
5010 (amd64_analyze_prologue): Call amd64_x32_analyze_stack_align
5011 for x32.
5012
ba224c70
L
50132012-06-16 H.J. Lu <hongjiu.lu@intel.com>
5014
5015 * amd64-linux-nat.c (compat_x32_clock_t): New.
5016 (compat_x32_siginfo_t): Likewise.
5017 (compat_x32_siginfo_from_siginfo): Likewise.
5018 (siginfo_from_compat_x32_siginfo): Likewise.
5019 (amd64_linux_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
5020 and siginfo_from_compat_x32_siginfo for x32.
5021
7ecbc825
HZ
50222012-06-15 Hui Zhu <hui_zhu@mentor.com>
5023
5024 * tracepoint.c (tfile_xfer_partial): Add a lseek.
5025
233dfcf0
L
50262012-06-15 H.J. Lu <hongjiu.lu@intel.com>
5027
5028 * amd64-linux-nat.c (ps_get_thread_area): Check bits_per_word
5029 instead of gdbarch_ptr_bit.
5030 * amd64-nat.c (amd64_native_gregset_reg_offset): Likewise.
5031 (amd64_supply_native_gregset): Likewise.
5032 (amd64_collect_native_gregset): Likewise.
5033 * amd64-tdep.c (amd64_supply_fxsave): Likewise.
5034 (amd64_supply_xsave): Likewise.
5035 (amd64_collect_fxsave): Likewise.
5036 (amd64_collect_xsave): Likewise.
5037
6da38f42
L
50382012-06-15 H.J. Lu <hongjiu.lu@intel.com>
5039
5040 * amd64-linux-nat.c (AMD64_LINUX_X32_DS): New.
5041 (amd64_linux_read_description): Check DS segment register for
5042 x32 process.
5043
663b969e
TT
50442012-06-15 Tom Tromey <tromey@redhat.com>
5045
5046 * dwarf2read.c (dw2_find_symbol_file): Unconditionally use
5047 init_cutu_and_read_dies.
5048
d6f05027
IS
50492012-06-15 Iain Sandoe <iain@codesourcery.com>
5050
5051 * MAINTAINERS (Write After Approval): Add myself to the list.
5052
6598ed07
TT
50532012-06-15 Tom Tromey <tromey@redhat.com>
5054
5055 * valops.c (value_find_oload_method_list): Now static.
5056 * value.h (value_find_oload_method_list): Don't declare.
5057
2b214ea6
TT
50582012-06-15 Tom Tromey <tromey@redhat.com>
5059
5060 * valops.c (find_overload_match): Use value_ind.
5061
a210c238
MR
50622012-06-15 Maciej W. Rozycki <macro@codesourcery.com>
5063
5064 * infrun.c (handle_inferior_event): Correct indentation.
5065
3771a44c
DE
50662012-06-14 Doug Evans <dje@google.com>
5067
5068 * dwarf2loc.c (debug_loc_kind): Add DEBUG_LOC_START_LENGTH.
5069 (DEBUG_LOC_START_END): Renamed from DEBUG_LOC_NORMAL.
5070 All uses updated.
5071 (decode_debug_loc_dwo_addresses): New arg "byte_order". All callers
5072 updated. Handle DEBUG_LOC_START_LENGTH.
5073 (dwarf2_find_location_expression): Handle DEBUG_LOC_START_LENGTH.
5074 (loclist_describe_location): Ditto.
5075
1c5a993e
MR
50762012-06-14 Maciej W. Rozycki <macro@codesourcery.com>
5077
5078 PR backtrace/13866
5079 * infrun.c (handle_inferior_event): Re-fetch frame and gdbarch
5080 after hiding inline functions.
5081
0b155465
JB
50822012-06-13 Joel Brobecker <brobecker@adacore.com>
5083
5084 * inf-ttrace.c (_initialize_hppa_hpux_nat): Rename into
5085 _initialize_inf_ttrace.
5086
45717bac
JB
50872012-06-13 Joel Brobecker <brobecker@adacore.com>
5088
5089 * ia64-hpux-nat.c (_initialize_ia64_hpux_nat): Renames
5090 _initialize_hppa_hpux_nat.
5091
34370865
JB
50922012-06-13 Joel Brobecker <brobecker@adacore.com>
5093
5094 * remote-sim.c (sim_command_completer): Change type of return
5095 value to "VEC (char_ptr) *". Adjust implementation accordingly.
5096
284c5a60
MK
50972012-06-13 Mark Kettenis <kettenis@gnu.org>
5098 Jan Kratochvil <jan.kratochvil@redhat.com>
5099
5100 PR tdep/14222
5101 * i386-tdep.c (i386_push_dummy_call): Unconditionally align the
5102 stack on a 16-byte boundary.
5103
2535757a
TT
51042012-06-13 Kaushik Srenevasan <kaushik@twitter.com>
5105
5106 * jit.c (finalize_symtab): Set function's return type to 'void' by
5107 default.
5108
fff4548b
MK
51092012-06-13 Mark Kettenis <kettenis@gnu.org>
5110 H.J. Lu <hongjiu.lu@intel.com>
5111
5a83521a
MK
5112 * amd64-linux-tdep.c (amd64_linux_init_abi_common): New function.
5113 Move bits common to both the classic LP64 and the new x32 ILP32
5114 ABI here.
5115 (amd64_linux_init_abi): Call amd64_linux_init_abi_common.
5116 (amd64_x32_linux_init_abi): New function.
5117 (_initialize_amd64_linux_tdep): Register osabi for bfd_mach_x64_32
5118 subtype.
5119
fff4548b
MK
5120 * i386-tdep.h (i386_pseudo_register_name): New prototype.
5121 * i386-tdep.c (i386_pseudo_register_name): Make public.
5122 * amd64-tdep.h (amd64_x32_init_abi): New prototype.
5123 * amd64-tdep.c (amd64_dword_names): Add "eip".
5124 (amd64_x32_pseudo_register_type): New function
5125 (amd64_x32_init_abi): New function.
5126
dd80ea3c
JK
51272012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5128
5129 PR build/14003
5130 * inferior.h (struct inferior_suspend_state): Comment out.
5131 (struct inferior): Comment out the field suspend.
5132 * infrun.c (struct infcall_suspend_state): Comment out the field
5133 inferior_suspend.
5134 (save_infcall_suspend_state, restore_infcall_suspend_state): Comment
5135 out its assignment.
5136
50af5481
JK
51372012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5138
5139 PR c++/14177 - Fix parsing TYPENAME:: in parentheses.
5140 * c-exp.y (classify_inner_name): Remove caller assumptions in the
5141 function comment. Return ERROR for unresolved cases. Implement
5142 returning proper NAME.
5143 (yylex): Accept also NAME from classify_inner_name.
5144 * cp-namespace.c (cp_lookup_nested_type): Rename to ...
5145 (cp_lookup_nested_symbol): ... here. Return any found symbol, not just
5146 LOC_TYPEDEF type.
5147 * cp-support.h (cp_lookup_nested_type): Update its declaration.
5148
d55637df
TT
51492012-06-13 Tom Tromey <tromey@redhat.com>
5150
5151 * breakpoint.c (condition_completer): New function.
5152 (_initialize_breakpoint): Use it.
5153 * value.c (complete_internalvar): New function.
5154 * value.h (complete_internalvar): Declare.
5155
49c4e619
TT
51562012-06-13 Tom Tromey <tromey@redhat.com>
5157
5158 * ada-lang.c (ada_make_symbol_completion_list): Return a VEC.
5159 * breakpoint.c (catch_syscall_completer): Return a VEC.
5160 * cli/cli-cmds.c (complete_command): Update.
5161 * cli/cli-decode.c (complete_on_cmdlist): Return a VEC.
5162 (complete_on_enum): Likewise.
5163 * command.h: Include gdb_vecs.h.
5164 (completer_ftype): Change return type.
5165 (complete_on_cmdlist, complete_on_enum): Likewise.
5166 * completer.c (noop_completer, filename_completer)
5167 (location_completer): Return a VEC.
5168 (add_struct_fields): Remove 'nextp' argument. Change 'output'
5169 to a VEC.
5170 (expression_completer, complete_line_internal, complete_line)
5171 (command_completer): Return a VEC.
5172 (gdb_completion_word_break_characters, line_completion_function):
5173 Update.
5174 * completer.h: Include gdb_vecs.h.
5175 (complete_line, noop_completer, filename_completer)
5176 (expression_completer, location_completer, command_completer):
5177 Update.
5178 * f-lang.c (f_word_break_characters): Return a VEC.
5179 * interps.c (interpreter_completer): Return a VEC.
5180 * language.h (struct language_defn)
5181 <la_make_symbol_completion_list>: Return a VEC.
5182 * python/py-cmd.c (cmdpy_completer): Return a VEC.
5183 * symtab.c (free_completion_list): Take a VEC.
5184 (return_val_size, return_val_index): Remove.
5185 (return_val): Now a VEC.
5186 (completion_list_add_name): Update.
5187 (default_make_symbol_completion_list_break_on)
5188 (default_make_symbol_completion_list, make_symbol_completion_list)
5189 (make_symbol_completion_list_fn, make_file_symbol_completion_list):
5190 Return a VEC.
5191 (add_filename_to_list): Update.
5192 (struct add_partial_filename_data) <list_used, list_alloced>: Remove.
5193 <list>: Now a VEC.
5194 (maybe_add_partial_symtab_filename): Update.
5195 (make_source_files_completion_list): Return a VEC.
5196 * symtab.h (default_make_symbol_completion_list_break_on)
5197 (default_make_symbol_completion_list, make_symbol_completion_list)
5198 (make_symbol_completion_list_fn, make_file_symbol_completion_list)
5199 (make_source_files_completion_list): Update.
5200
625e8578
TT
52012012-06-13 Tom Tromey <tromey@redhat.com>
5202
5203 * breakpoint.c (add_catch_command): Use completer_ftype.
5204 * breakpoint.h: Include command.h.
5205 (add_catch_command): Use completer_ftype.
5206 * cli/cli-decode.c (set_cmd_completer): Use completer_ftype.
5207 * cli/cli-decode.h (struct cmd_list_element) <completer>:
5208 Use completer_ftype.
5209 * command.h (completer_ftype): New typedef.
5210 (set_cmd_completer): Use it.
5211 * python/py-cmd.c (struct cmdpy_completer) <completer>: Use
5212 completer_ftype.
5213
5eb3b062
PA
52142012-06-13 Pedro Alves <palves@redhat.com>
5215
5216 Partial revert of previous change.
5217
5218 * serial.c (scb_base): New global.
5219 (serial_for_fd): New.
5220 (serial_open, serial_fdopen_ops): Link new serial in open serials
5221 chain.
5222 (do_serial_close): Unlink serial from the open serials chain.
5223
8b3ee56d
PA
52242012-06-12 Pedro Alves <palves@redhat.com>
5225
5226 * infrun.c (infrun_thread_stop_requested_callback): Don't switch
5227 threads here.
5228 (prepare_for_detach): No longer context switch here in non-stop
5229 mode.
5230 (fetch_inferior_event): Ditto.
5231 (handle_inferior_event) <STOP_QUIETLY || NO_STOP_QUIETLY>: Switch
5232 to the event thread before removing breakpoints. Switch to the
5233 event thread before inserting breakpoints and resuming.
5234 (handle_inferior_event) <TARGET_WAITKIND_SPURIOUS>: Switch to the
5235 event thread before resuming.
5236 (handle_inferior_event) <stepping_past_singlestep_breakpoint>:
5237 Switch to the event thread before removing breakpoints.
5238
5d60742e
EZ
52392012-06-12 Eli Zaretskii <eliz@gnu.org>
5240
5241 * infcmd.c (construct_inferior_arguments) [__MINGW32__]: Quote
5242 special characters correctly for the Windows shells. See
5243 http://sourceware.org/ml/gdb/2012-06/msg00047.html for the bug
5244 report.
5245 [!__MINGW32__]: Remove extra double quote character from special
5246 characters.
5247
a6feecf7
SS
52482012-06-11 Stan Shebs <stan@codesourcery.com>
5249
5250 * ui-out.h: Remove #if 0 declarations.
5251 * ui-out.c: Remove #if 0 functions.
5252
ddefb60f
PA
52532012-06-11 Pedro Alves <palves@redhat.com>
5254
5255 * ser-base.c (run_async_handler_and_reschedule): New.
5256 (fd_event, push_event): Use it.
5257 * serial.c (serial_open, serial_fdopen_ops): Set the initial
5258 reference count to 1.
5259 (do_serial_close): Set the bufp field to NULL. Use serial_unref
5260 instead of xfree.
5261 (serial_is_open, serial_ref, serial_unref): New.
5262 * serial.h (serial_open): Adjust comment.
5263 (serial_is_open): Declare.
5264 (serial_close): Adjust comment.
5265 (serial_ref, serial_unref) Declare.
5266 (struct serial): New field 'refcnt'.
5267
d5ad6aa5
PA
52682012-06-11 Pedro Alves <palves@redhat.com>
5269
5270 Remove #if 0'd "connect" command, and unnecessary associated
5271 refcounting and serial reuse bits.
5272
5273 * serial.h (struct serial): Remove fields 'next' and 'refcnt'.
5274 * serial.c (last_serial_opened): Delete.
5275 (scb_base): Delete.
5276 (serial_open): Adjust.
5277 (serial_for_fd): Delete.
5278 (serial_fdopen_ops, do_serial_close): Adjust.
5279 (serial_fdopen_ops): Adjust.
5280
318aa544
PA
52812012-06-11 Pedro Alves <palves@redhat.com>
5282
5283 * serial.c (do_serial_close): Remove early return when SCB is
5284 null.
5285
07261596
TT
52862012-06-11 Tom Tromey <tromey@redhat.com>
5287
5288 * dwarf2read.c (dw2_get_file_names_reader): Ignore partial units.
5289
cc80f267
JK
52902012-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5291
5292 Fix regression by the "ambiguous linespec" series.
5293 * breakpoint.c (parse_breakpoint_sals): New variable cursal. Use
5294 get_last_displayed_symtab and get_last_displayed_line and depending
5295 on CURSAL.
5296
356d9f9d
TT
52972012-06-11 Tom Tromey <tromey@redhat.com>
5298
5299 * dwarf2read.c (dw2_get_primary_filename_reader): New function.
5300 (dw2_find_symbol_file): Use it.
5301
232b8704
ME
53022012-06-11 Michael Eager <eager@eagercon.com>
5303
5304 * mips-linux-tdep.c (mips_gdb_signal_from_target): New
5305 * mips-linux-tdep.h (mips_signals): New
5306
e81a37f7
TT
53072012-06-11 Tom Tromey <tromey@redhat.com>
5308
5309 * infrun.c (handle_inferior_event)
5310 <BPSTAT_WHAT_SET_LONGJMP_RESUME>: Don't delete the step-resume
5311 breakpoint.
5312 <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>: Remove longjmp logic; use
5313 exception logic in all cases. Update comments.
5314 (insert_longjmp_resume_breakpoint): Set the exception resume
5315 breakpoint.
5316
2e81047f
MR
53172012-06-11 Maciej W. Rozycki <macro@codesourcery.com>
5318
5319 * mips-tdep.c (mips_push_dummy_code): Handle microMIPS code.
5320
4e32eda7
SCR
53212012-06-09 Siva Chandra Reddy <sivachandra@google.com>
5322
5323 * valarith.c (binop_types_user_defined_p): Fix a typo.
5324
18648a37 53252012-06-08 Yao Qi <yao@codesourcery.com>
f782ad9b 5326 Chung-Lin Tang <cltang@codesourcery.com>
18648a37
YQ
5327
5328 * arch-utils.c (default_return_in_first_hidden_param_p): New.
5329 * arch-utils.h: Declare.
5330 * gdbarch.sh: Add return_in_first_hidden_param_p.
5331 * gdbarch.c, gdbarch.h: Regenerated.
5332 * infcall.c (call_function_by_hand): Call
5333 gdbarch_return_in_first_hidden_param_p instead of
5334 language_pass_by_reference.
5335
5336 * m68k-tdep.c (m68k_return_in_first_hidden_param_p): New.
5337 (m68k_gdbarch_init): Install m68k_return_in_first_hidden_param_p.
5338 * sh-tdep.c (sh_return_in_first_hidden_param_p): New.
5339 (sh_gdbarch_init): Install sh_return_in_first_hidden_param_p.
5340 * tic6x-tdep.c (tic6x_push_dummy_call): Remove local variable
5341 `cplus_return_struct_by_reference'.
5342 (tic6x_return_value): Handle language cplusplus.
5343 (tic6x_return_in_first_hidden_param_p): New.
5344 (tic6x_gdbarch_init): Install tic6x_return_in_first_hidden_param_p.
5345
034e5797
DE
53462012-06-07 Doug Evans <dje@google.com>
5347
5348 * dwarf2read.c (dwarf2_cu): Add comment.
5349
6a00aa1e
MR
53502012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
5351
5352 * mips-tdep.c (mips_pseudo_register_type): Remove tdep local
5353 variable.
5354 (mips_eabi_push_dummy_call): Likewise.
5355 (mips_n32n64_push_dummy_call): Likewise.
5356 (mips_o32_push_dummy_call): Likewise.
5357 (mips_o64_push_dummy_call): Likewise.
5358
eaa05d59
MR
53592012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
5360
5361 * mips-tdep.c (mips_convert_register_p): Correct coding style.
5362
de13fcf2
MR
53632012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
5364
5365 * mips-tdep.c (mips_pseudo_register_type): Use
5366 mips_float_register_p.
5367
c3a01a22
PA
53682012-06-06 Pedro Alves <palves@redhat.com>
5369
5370 * infrun.c (handle_inferior_event): Remove calls to
5371 reinit_frame_cache that follow a context_switch call.
5372
d25f45d9
PA
53732012-06-06 Pedro Alves <palves@redhat.com>
5374
5375 * infrun.c (handle_inferior_event) <deferred_step_ptid>: Use
5376 context_switch and remove stale comment.
5377
359f5fe6
PA
53782012-06-06 Pedro Alves <palves@redhat.com>
5379
5380 * infrun.c (struct execution_control_state): Remove
5381 `new_thread_event' field.
5382 (handle_inferior_event): Simplify new threads handling; don't
5383 resume the inferior if we find a new thread.
5384
2d4c29c5
TS
53852012-06-06 Thomas Schwinge <thomas@codesourcery.com>
5386
5387 * NEWS: Document the deprecation of SH's 'regs' command.
5388 * inferior.h (all_registers_info): Add function declaration.
5389 * sh-tdep.c (sh_show_regs): Remove variable.
5390 (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs, sh2a_show_regs)
5391 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
5392 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs)
5393 (sh_show_regs_command): Remove functions.
5394 (sh_gdbarch_init): Don't set sh_show_regs.
5395 (_initialize_sh_tdep): Make the 'regs' command an deprecated alias to
5396 'info all-registers'.
5397 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs)
5398 (sh64_show_regs): Remove functions.
5399 * sh64-tdep.h (sh64_show_regs): Remove function declaration.
5400
f5f1cdb6
JK
54012012-06-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5402
5403 * configure.ac: Move development=true below AC_INIT.
5404 * configure: Regenerate.
5405
bf6309af
SS
54062012-06-05 Stan Shebs <stan@codesourcery.com>
5407
5408 * mi/mi-interp.c (mi_interpreter_init): Set raw_stdout from
5409 gdb_stdout.
5410
45aa4659
JK
54112012-06-05 Siddhesh Poyarekar <siddhesh@redhat.com>
5412
5413 * corefile.c (read_memory, read_stack, write_memory): Accept LEN
5414 argument as ssize_t.
5415 * gdbcore.h (read_memory, read_stack, write_memory): Likewise.
5416 * remote.c (remote_write_bytes_aux, remote_write_bytes): Likewise.
5417 * target.c (target_read_stack, target_write_memory)
5418 (target_write_raw_memory): Likewise.
5419 * target.h (target_read_stack, target_write_memory)
5420 (target_write_raw_memory): Likewise.
5421
1b162304
JK
54222012-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
5423
5424 * symfile-mem.c: Change gdb_static_assert to ssize_t.
5425 (target_read_memory_bfd): Cast gdb_assert LEN to ssize_t.
5426 * target.c (target_read_memory): Change LEN to ssize_t.
5427 * target.h (target_read_memory): Change LEN to ssize_t.
5428
8556afb4
PA
54292012-06-05 Pedro Alves <palves@redhat.com>
5430
5431 PR backtrace/13866
5432
5433 * breakpoint.c (until_break_command): Only fetch the selected
5434 frame after decode_line_1.
5435
fb139f32
PA
54362012-06-05 Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
5437
5438 * solib-svr4.c (enable_break): Don't fallback to setting the solib
5439 event breakpoint at _start, __start or main if a program
5440 interpreter is not found.
5441
a8e1bb34
JB
54422012-06-05 Joel Brobecker <brobecker@adacore.com>
5443
5444 * windows-tdep.h (windows_iterate_over_objfiles_in_search_order):
5445 Add declaration.
5446 * windows-tdep.c: #include "objfiles.h".
5447 (windows_iterate_over_objfiles_in_search_order): New function.
5448 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
5449 iterate_over_objfiles_in_search_order gdbarch method to
5450 windows_iterate_over_objfiles_in_search_order.
5451 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
5452
19630284
JB
54532012-06-05 Joel Brobecker <brobecker@adacore.com>
5454
5455 * gdbarch.sh: Add generation of
5456 "iterate_over_objfiles_in_search_order_cb_ftype" typedef in
5457 gdbarch.h. Add include of "objfiles.h" in gdbarch.c.
5458 (iterate_over_objfiles_in_search_order): New gdbarch method.
5459 * gdbarch.h, gdbarch.c: Regenerate.
5460 * objfiles.h (default_iterate_over_objfiles_in_search_order):
5461 Add declaration.
5462 * objfiles.c (default_iterate_over_objfiles_in_search_order):
5463 New function.
5464 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
5465 out of lookup_symbol_aux_symtabs.
5466 (lookup_symbol_aux_symtabs): Replace extracted-out code by
5467 call to lookup_symbol_aux_objfile.
5468 (struct global_sym_lookup_data): New type.
5469 (lookup_symbol_global_iterator_cb): New function.
5470 (lookup_symbol_global): Search for symbol using
5471 gdbarch_iterate_over_objfiles_in_search_order and
5472 lookup_symbol_global_iterator_cb.
5473 * findvar.c (struct minsym_lookup_data): New type.
5474 (minsym_lookup_iterator_cb): New function.
5475 (default_read_var_value) [case LOC_UNRESOLVED]: Resolve the
5476 symbol's address via gdbarch_iterate_over_objfiles_in_search_order
5477 and minsym_lookup_iterator_cb.
5478
67ff19f7
JB
54792012-06-05 Joel Brobecker <brobecker@adacore.com>
5480
5481 Revert the following patch:
5482 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
5483 try locating the symbol in the symbol's own objfile first, before
5484 extending the search to all objfiles.
5485 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
5486 out of lookup_symbol_aux_symtabs.
5487 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
5488 Replace extracted-out code by call to lookup_symbol_aux_objfile.
5489 Do not search EXCLUDE_OBJFILE.
5490 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
5491 (lookup_symbol_global): Search for matches in the block's objfile
5492 first, before searching all other objfiles.
5493
ccab2054
JB
54942012-06-05 Joel Brobecker <brobecker@adacore.com>
5495
5496 * breakpoint.c (find_condition_and_thread): Stop parsing
5497 as soon as the first invalid keyword is found.
5498
e23d4a9c
JB
54992012-06-05 Joel Brobecker <brobecker@adacore.com>
5500
5501 * copyright.py (EXCLUDE_LIST): Add 'gdb/CONTRIBUTE' to list.
5502
70160166
JB
55032012-06-05 Joel Brobecker <brobecker@adacore.com>
5504
5505 * config/djgpp/djcheck.sh: Add copyright header.
5506
399501a5
JB
55072012-06-05 Joel Brobecker <brobecker@adacore.com>
5508
5509 * copyright.py (update_files, main): Fix path to update-copyright
5510 script.
5511
3770a159
JB
55122012-06-05 Joel Brobecker <brobecker@adacore.com>
5513
5514 * copyright.py (MULTIPLE_COPYRIGHT_HEADERS): New constant.
5515 (main): Add MULTIPLE_COPYRIGHT_HEADERS to the list of files
5516 for which a reminder to update by hand is printed.
5517
4aad0dfc
DE
55182012-06-04 Doug Evans <dje@google.com>
5519
5520 * buildsym.c (make_blockvector): Add comment.
5521
1f8cf220
PA
55222012-06-04 Pedro Alves <palves@redhat.com>
5523
5524 * arch-utils.c (default_gdb_signal_from_target): Delete.
5525 * arch-utils.h (default_gdb_signal_from_target): Delete.
5526 * corelow.c (core_open) <signal mapping>: Extended comment. Check
5527 gdbarch_gdb_signal_from_target_p.
5528 * gdbarch.sh (gdb_signal_from_target): Make it an M method (with
5529 predicate).
5530 * gdbarch.h: Regenerate.
5531 * gdbarch.c: Regenerate.
5532
86b49880
PA
55332012-06-04 Pedro Alves <palves@redhat.com>
5534
5535 * gdbarch.sh (gdb_signal_from_target): Mention that the
5536 implementation of the method must be host independent.
5537 * gdbarch.h: Regenerate.
5538
fe78531d
JK
55392012-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5540
5541 * symfile-mem.c: 3 new gdb_static_assert for target_read_memory_bfd
5542 parameters.
5543 (target_read_memory_bfd): New function.
5544 (symbol_file_add_from_memory): Use it.
5545
d790cf0a
DE
55462012-06-03 Doug Evans <dje@google.com>
5547
78e5175a
DE
5548 * symtab.c (lookup_global_symbol_from_objfile): Only scan blockvector
5549 of primary symtab.
5550 (basic_lookup_transparent_type): Ditto.
5551
d790cf0a
DE
5552 * objfiles.h (ALL_OBJFILE_PRIMARY_SYMTABS): New macro.
5553 (ALL_PRIMARY_SYMTABS): Use it.
5554 (ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
5555 * dwarf2read.c (dw2_find_symbol_file): Ditto.
5556 * linespec.c (iterate_over_all_matching_symtabs): Ditto.
5557 * symtab.c (lookup_symbol_aux_objfile): Ditto.
5558 (basic_lookup_transparent_type): Ditto.
5559
c6e5ee5e
SDJ
55602012-06-02 Sergio Durigan Junior <sergiodj@redhat.com>
5561
5562 * symtab.c (symbol_demangled_name): New variable `dem_name'. Use
5563 it to optimize resolution of demangled name.
5564
a68ffae9
JK
55652012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5566
5567 * configure.ac (development): Define new variable.
5568 Call AC_CHECK_LIB for mcheck if $development.
5569 (ERROR_ON_WARNING): Enable it by default only if $development.
5570 * config.in: Regenerate.
5571 * configure: Regenerate.
5572
5299c1c4
JK
55732012-06-01 Siddhesh Poyarekar <siddhesh@redhat.com>
5574
5575 * target.c (target_read_memory): Make LEN argument as size_t.
5576 * target.h (target_read_memory): Likewise.
5577
55782012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
7c71816c
JK
5579
5580 * tilegx-linux-tdep.c (tilegx_l): Use ULL for 64-bit values.
5581
0c56f59b
EBM
55822012-05-31 Edjunior Machado <emachado@linux.vnet.ibm.com>
5583
5584 * ppc-linux-nat.c (have_ptrace_booke_interface): Disable ptrace
5585 BookE interface for PowerPC server processors if not available
5586 in the Linux Kernel.
5587
71bdabee
KS
55882012-05-31 Keith Seitz <keiths@redhat.com>
5589
5590 * linespec.c (decode_objc): Add cleanup to free
5591 INFO.FILE_SYMTABS.
5592 (find_linespec_symbols): Add cleanup to free CLASSES.
5593 * symfile.c (find_separate_debug_file_by_debuglink): Add
5594 cleanup to free DEBUGLINK.
5595 * ui-out.c (clear_header_list): No need to check if
5596 HEADER_NEXT.COLHDR is NULL.
5597 Free HEADER_NEXT.COL_NAME.
5598
acbd605d
MGD
55992012-05-31 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
5600
5601 * ada-lang.c (standard_lookup): Prevent uninitialized variable
5602 warning.
5603
65662cde
PA
56042012-05-30 Jeff Kenton <jkenton@tilera.com>
5605
5606 * configure.host (gdb_host_cpu): Handle tilegx*.
5607 (gdb_host): Handle tilegx-*-linux*.
5608 * tilegx-linux-nat.c: New file.
5609 * config/tilegx/linux.mh: New file.
5610
ade64f0e
PA
56112012-05-30 Jeff Kenton <jkenton@tilera.com>
5612
5613 * Makefile.in (ALL_TARGET_OBJS): Add tilegx-tdep.o and
5614 tilegx-linux-tdep.o.
5615 (ALLDEPFILES): Add tilegx-linux-nat.c, tilegx-tdep.c and
5616 tilegx-linux-tdep.c.
5617 * configure.tgt: Handle tilegx-*-linux*.
5618 * tilegx-tdep.h: New file.
5619 * tilegx-tdep.c: New file.
5620 * tilegx-linux-tdep.c: New file.
5621 * regformats/reg-tilegx.dat: New file.
5622
bb08bdbd
EBM
56232012-05-30 Edjunior Machado <emachado@linux.vnet.ibm.com>
5624
5625 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): fix
5626 accounting of hw watchpoints on ppc.
5627
ebd86fb5
TJB
56282012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
5629
5630 * source.c (openp): Expand tilde in path entries.
5631
0a0edcd5
DE
56322012-05-29 Doug Evans <dje@google.com>
5633
98cc87bd
DE
5634 * buildsym.c (block_compar): Fix comment.
5635 (end_symtab): Fix and clarify some comments.
5636
0a0edcd5
DE
5637 * stabsread.h (cleanup_undefined_stabs_types): Renamed from
5638 cleanup_undefined_types.
5639 * stabsread.c (cleanup_undefined_stabs_types): Ditto.
5640 All callers updated.
5641
6f0c7050
TT
56422012-05-29 Tom Tromey <tromey@redhat.com>
5643
5644 * symfile.c (symfile_bfd_open): Don't close desc if bfd_fopen
5645 fails.
5646 * solib.c (solib_bfd_fopen): Don't close fd if bfd_fopen fails.
5647 * exec.c (exec_file_attach): Don't close scratch_chan if bfd_fopen
5648 fails.
5649 * dwarf2read.c (try_open_dwo_file): Don't close fd if bfd_fopen
5650 fails.
5651
ec95993c
TG
56522012-05-29 Tristan Gingold <gingold@adacore.com>
5653
5654 * solib-darwin.c (dyld_all_image_addr, dyld_all_image): Move into...
5655 (struct darwin_info): ... New struct.
5656 (solib_darwin_pspace_data): New variable.
5657 (darwin_pspace_data_cleanup): New function.
5658 (get_darwin_info): Likewise.
5659 (darwin_dyld_version_ok, darwin_load_image_infos)
5660 (darwin_solib_get_all_image_info_addr_at_init)
5661 (darwin_solib_read_all_image_info_addr): Add info argument.
5662 Adjust code.
5663 (darwin_current_sos): Use per pspace structure.
5664 (darwin_solib_create_inferior_hook): Likewise.
5665 (darwin_clear_solib): Likewise.
5666 (_initialize_darwin_solib): Initialize solib_darwin_pspace_data.
5667
ae25568b
PA
56682012-05-28 Pedro Alves <palves@redhat.com>
5669
5670 * infrun.c (wait_for_inferior): Move ecss and ecs locals to the
5671 block that uses them. Clear ecss before handling each event.
5672
0c5bf5a9
JK
56732012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5674
5675 * solib-svr4.c (svr4_current_sos): New comment on
5676 svr4_current_sos_via_xfer_libraries fall back.
5677
bfb05775
JK
56782012-05-24 Jan Kratochvil <jan.kratochvil@redhat.com>
5679
5680 * psymtab.c (lookup_symbol_aux_psymtabs): New variable stab_best. Use
5681 it as a fallback for TYPE_IS_OPAQUE.
5682 * symfile.h (struct quick_symbol_functions): Mention TYPE_OPAQUE
5683 symbols for lookup_symbol.
5684
685b1105
JK
56852012-05-24 John Steele Scott <toojays@toojays.net>
5686
5687 PR symtab/13277: Resolving opaque structures in ICC generated binaries.
5688 * dwarf2read.c (struct dwarf2_cu) <producer_is_icc>: New field.
5689 (producer_is_gxx_lt_4_6): Move the checking and caching to...
5690 (check_producer): ... this new function, which also checks for ICC
5691 and caches the result.
5692 (producer_is_icc): New function.
5693 (read_structure_type): Don't set TYPE_STUB_SUPPORTED if the
5694 producer was ICC.
5695
22203bbf
PA
56962012-05-24 Pedro Alves <palves@redhat.com>
5697
5698 PR gdb/7205
5699
5700 * arch-utils.c (default_gdb_signal_to_host): Rename to ...
5701 (default_gdb_signal_to_target): ... this. Add comment.
5702 (default_gdb_signal_from_host): Rename to ...
5703 (default_gdb_signal_from_target): ... this. Add comment.
5704 * arch-utils.h (default_gdb_signal_to_host): Rename to ...
5705 (default_gdb_signal_to_target): ... this.
5706 (default_gdb_signal_from_host): Rename to ...
5707 (default_gdb_signal_from_target): ... this.
5708 * corelow.c (core_open): Adjust to naming change. Replace comment.
5709 * gdbarch.sh (gdb_signal_from_host): Rename to ...
5710 (gdb_signal_from_target): ... this. Adjust to
5711 default_gdb_signal_from_host naming change. Extend comment.
5712 (gdb_signal_to_host): Rename to ...
5713 (gdb_signal_to_target): ... this. Adjust to
5714 default_gdb_signal_to_host naming change.
5715 * gdbarch.h, gdbarch.c: Renegerate.
5716
a493e3e2
PA
57172012-05-24 Pedro Alves <palves@redhat.com>
5718
5719 PR gdb/7205
5720
f782ad9b 5721 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
a493e3e2 5722
2ea28649
PA
57232012-05-24 Pedro Alves <palves@redhat.com>
5724
5725 PR gdb/7205
5726
5727 Replace target_signal with gdb_signal throughout.
5728
b09846a9
PA
57292012-05-24 Pedro Alves <palves@redhat.com>
5730
5731 PR tui/14159
5732
5733 * tui/tui-hooks.c (tui_query_hook): Pre-compute the question
5734 string, instead of reusing the va_list argument.
5735
e77c107e
TT
57362012-05-24 Tom Tromey <tromey@redhat.com>
5737
5738 * cp-support.h (cp_finalize_namespace, cp_initialize_namespace):
5739 Remove.
5740
9fccedf7
DE
57412012-05-23 Doug Evans <dje@google.com>
5742
d50bd42b
DE
5743 * symtab.c (search_symbols): Formatting fixes.
5744 (print_symbol_info): Formatting fixes.
5745
9fccedf7
DE
5746 * dwarf2-frame.c (execute_cfa_program): Update to handle long long ->
5747 int64_t change to leb128 API.
5748 (read_encoded_value, decode_frame_entry_1): Ditto.
5749 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Ditto.
5750 (dwarf_block_to_dwarf_reg, dwarf_block_to_dwarf_reg_deref): Ditto.
5751 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
5752 (execute_stack_op): Ditto.
5753 * dwarf2expr.h (gdb_read_uleb128, gdb_read_sleb128): Ditto.
5754 (safe_read_uleb128, safe_read_sleb128): Ditto.
5755 * dwarf2loc.c (decode_debug_loc_dwo_addresses): Ditto.
5756 (dwarf2_compile_expr_to_ax): Ditto.
5757 (locexpr_describe_location_piece): Ditto.
5758 (disassemble_dwarf_expression): Ditto.
5759 (locexpr_describe_location_1): Ditto.
5760
f3e0e960
SS
57612012-05-23 Stan Shebs <stan@codesourcery.com>
5762 Kwok Cheung Yeung <kcy@codesourcery.com>
5763
5764 * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-info.o.
5765 (SUBDIR_MI_SRCS): Add mi-cmd-info.c.
5766 (mi-cmd-info.o): New rule.
5767 * osdata.h (info_osdata_command): New declaration.
5768 * osdata.c (info_osdata_command): Change to non-static.
5769 * mi/mi-cmds.h (mi_cmd_info_os): New declaration.
5770 * mi/mi-cmds.c (mi_cmds): Add -info-os MI command.
5771 * mi/mi-cmd-info.c: New file.
5772
c51fe631
DE
57732012-05-23 Doug Evans <dje@google.com>
5774
71cddcc1
DE
5775 * symtab.c (search_symbols): Pass NULL for file_matcher to
5776 expand_symtabs_matching if there are no files to match.
5777
c51fe631
DE
5778 * gdbtypes.c (lookup_typename): Simplify.
5779
a79378d4
PA
57802012-05-23 Pedro Alves <palves@redhat.com>
5781
5782 * arch-utils.h (default_target_signal_to_host): Delete.
5783 * arch-utils.c (default_target_signal_to_host): Delete.
5784 * gdbarch.sh (target_signal_to_host): Remove.
5785 * gdbarch.h, gdbarch.c: Regenerate.
5786
f664829e
DE
57872012-05-22 Doug Evans <dje@google.com>
5788
5789 * dwarf2-frame.c (struct dwarf2_cie): Make initial_instructions, end
5790 "const gdb_byte *".
5791 (struct dwarf2_fde): Make instructions, end "const gdb_byte *".
5792 (execute_cfa_program): Update to match API of leb128 functions.
5793 (read_1_byte, read_4_bytes, read_8_bytes): Make buf parameter
5794 "const gdb_byte *".
5795 (read_unsigned_leb128, read_signed_leb128): Delete.
5796 (read_initial_length): Change type of buf argument to
5797 "const gdb_byte *".
5798 (read_encoded_value): Update to match API of leb128 functions.
5799 (decode_frame_entry): Change result to "const gdb_byte *", and
5800 similarly for "start" parameter.
5801 (decode_frame_entry_1): Ditto. Use new leb128 reader functions.
5802 (dwarf2_build_frame_info): Change local frame_ptr to
5803 "const gdb_byte *".
5804 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Replaces
5805 read_uleb128, read_sleb128. All callers updated.
5806 (safe_skip_leb128): New function.
5807 (dwarf_block_to_dwarf_reg): Update to match API of leb128 functions.
5808 Call gdb_read_uleb128, gdb_skip_leb128 instead of read_uleb128.
5809 (dwarf_block_to_dwarf_reg_deref): Update to match API of leb128
5810 functions. Call gdb_read_uleb128, gdb_read_sleb128 instead of
5811 read_uleb128, read_sleb128.
5812 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
5813 (execute_stack_op): Update to match API of leb128 functions.
5814 * dwarf2expr.h: #include "leb128.h".
5815 (read_uleb128, read_sleb128): Delete.
5816 (gdb_read_uleb128, gdb_read_sleb128, gdb_skip_leb128): New functions.
5817 (safe_read_uleb128, safe_read_sleb128, safe_skip_leb128): Declare.
5818 * dwarf2loc.c (debug_loc_kind): New enum.
5819 (decode_debug_loc_addresses): New function.
5820 (decode_debug_loc_dwo_addresses): New function.
5821 (dwarf2_find_location_expression): Rewrite.
5822 (dwarf2_compile_expr_to_ax): Update to match API of leb128 functions.
5823 (locexpr_describe_location_piece): Ditto.
5824 (disassemble_dwarf_expression): Ditto.
5825 (locexpr_describe_location_1): Ditto.
5826 (loclist_describe_location): Rewrite.
5827 * dwarf2loc.h (dwarf2_loclist_baton): New member "from_dwo".
5828 * dwarf2read.c (die_reader_specs): New member "buffer_end".
5829 (dwarf2_section_buffer_overflow_complaint): Renamed from
5830 dwarf2_macros_too_long_complaint. All callers updated.
5831 (skip_leb128): Delete.
5832 (init_cu_die_reader): Initialize reader->buffer_end.
5833 (skip_one_die): Replace call to skip_leb128 with safe_skip_leb128.
5834 (skip_form_bytes): New arg buffer_end. All callers updated.
5835 Replace call to skip_leb128 with gdb_skip_leb128.
5836 (skip_unknown_opcode): New arg mac_end. All callers updated.
5837 (fill_in_loclist_baton): Initialize baton->from_dwo.
5838
837a1b32
MR
58392012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
5840
5841 * mips-linux-nat.c (mips_linux_read_description): Use a more
5842 verbose error message.
5843
d0e64392
MR
58442012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
5845
5846 * NEWS: Add MIPS/Linux DSP support.
5847 * mips-linux-tdep.c: Document post-2.6.12 o32 sigcontext layout.
5848 (SIGCONTEXT_DSPCTL): New macro.
5849 (SIGCONTEXT_HI1, SIGCONTEXT_LO1): Likewise.
5850 (SIGCONTEXT_HI2, SIGCONTEXT_LO2): Likewise.
5851 (SIGCONTEXT_HI3, SIGCONTEXT_LO3): Likewise.
5852 (N64_SIGCONTEXT_HI1, N64_SIGCONTEXT_HI2): Likewise.
5853 (N64_SIGCONTEXT_HI3): Likewise.
5854 (N64_SIGCONTEXT_LO1, N64_SIGCONTEXT_LO2): Likewise.
5855 (N64_SIGCONTEXT_LO3): Likewise.
5856 (N64_SIGCONTEXT_DSPCTL): Likewise.
5857 (N64_SIGCONTEXT_FPCSR): Clarify definition.
5858 (mips_linux_o32_sigframe_init): Handle DSP registers.
5859 (mips_linux_n32n64_sigframe_init): Likewise.
5860
8bea7ed1
PM
58612012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
5862
5863 * common/buffer.c (buffer_grow): ARI fix: Remove unneeded
5864 call to abort.
5865
dab06dbe
PA
58662012-05-22 Pedro Alves <palves@redhat.com>
5867
5868 * target.h (store_waitstatus): Move declaration ...
5869 * inf-child.h (store_waitstatus): ... here.
5870 * target.c: Move inclusion of gdb_wait.h, and ...
5871 (store_waitstatus): ... this ...
5872 * inf-child.c: ... here.
5873 * linux-nat.c: Include inf-child.h.
5874 * rs6000-nat.c: Include inf-child.h.
5875 * spu-linux-nat.c: Include inf-child.h.
5876
43011e52
PM
58772012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
5878
5879 * tracepoint.c (start_tracing): Add missing i18n markup.
5880 (stop_tracing, set_trace_user): Ditto.
5881 (set_trace_notes, set_trace_stop_notes): Ditto.
5882
b1af9e97
TT
58832012-05-21 Tom Tromey <tromey@redhat.com>
5884
5885 PR c++/7173:
5886 * gnu-v3-abi.c (gnuv3_baseclass_offset): Return early for Java
5887 types.
5888 * value.h (value_cast_pointers): Update.
5889 * valops.c (value_cast_pointers): Add 'subclass_check' argument.
5890 (value_cast): Update.
5891 (update_search_result): New function.
5892 (do_search_struct_field): New, from search_struct_field. Check
5893 for ambiguous results.
5894 (search_struct_field): Rewrite.
5895 * infcall.c (value_arg_coerce): Update.
5896 * eval.c (evaluate_subexp_standard) <STRUCTOP_MEMBER>: Use
5897 value_cast_pointers.
5898 * ada-lang.c (ada_convert_actual): Update.
5899
e9e5e6b3
TT
59002012-05-21 Tom Tromey <tromey@redhat.com>
5901
5902 * macroexp.c (macro_stringify): Terminate the string.
5903
1564a261
JK
59042012-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
5905
5906 * NEWS (--with-auto-load-dir): Prepend $debugdir to the default path.
5907 Describe it.
5908 * auto-load.c (auto_load_expand_dir_vars): New function.
5909 (auto_load_safe_path_vec_update): Use it, remove the
5910 substitute_path_component call thanks to it.
5911 (auto_load_objfile_script): Remove the debug_file_directory processing.
5912 Use auto_load_expand_dir_vars, remove the substitute_path_component
5913 call thanks to it.
5914 * configure: Regenerate.
5915 * configure.ac (--with-auto-load-dir): Prepend $debugdir to the default
5916 path. Escape $ also for $debugdir.
5917 (--with_auto_load_safe_path): Escape $ also for $debugdir.
5918 * utils.c (substitute_path_component): Accept also DIRNAME_SEPARATOR.
5919
a3ec0bb1
DE
59202012-05-20 Doug Evans <dje@google.com>
5921
5922 * dwarf2read.c (recursively_find_pc_sect_symtab): Initialize "s"
5923 before use. Check for symtab->includes == NULL before scanning it.
5924
d467df4e
MR
59252012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
5926
5927 * mips-tdep.c (mips_reg3_to_reg): Optimize storage.
5928
4cc0665f
MR
59292012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
5930
5931 * NEWS: Add microMIPS support and "set mips compression",
5932 "show mips compression" commands.
5933 * mips-tdep.h (mips_isa): New enum.
5934 (gdbarch_tdep): Add mips_isa.
5935 (mips_pc_is_mips16): Update prototype.
5936 (mips_pc_is_mips, mips_pc_is_micromips): New prototypes.
5937 * mips-tdep.c (mips_compression_mips16): New variable.
5938 (mips_compression_micromips): Likewise.
5939 (mips_compression_strings): Likewise.
5940 (mips_compression_string): Likewise.
5941 (is_mips16_isa, is_micromips_isa): New functions.
5942 (is_mips16_addr): Rename to...
5943 (is_compact_addr): ... this.
5944 (unmake_mips16_addr): Likewise to...
5945 (unmake_compact_addr): ... this.
5946 (make_mips16_addr): Likewise to...
5947 (make_compact_addr): ... this.
5948 (is_mips_addr, is_mips16_addr, is_micromips_addr): New
5949 functions.
5950 (mips_elf_make_msymbol_special): Handle microMIPS code.
5951 (msymbol_is_special): Rename to...
5952 (msymbol_is_mips16): ... this.
5953 (mips_make_symbol_special, mips_pc_is_mips16): Update
5954 accordingly.
5955 (msymbol_is_mips, msymbol_is_micromips): New functions.
5956 (mips16_to_32_reg): Rename to...
5957 (mips_reg3_to_reg): ... this.
5958 (mips_pc_is_mips, mips_pc_is_micromips): New functions.
5959 (mips_pc_isa): Likewise.
5960 (mips_read_pc, mips_unwind_pc, mips_write_pc): Handle microMIPS
5961 code.
5962 (mips_fetch_instruction): Pass return status instead of printing
5963 an error message if requested. Handle microMIPS code. Bail out
5964 on an invalid ISA.
5965 (micromips_op): New macro.
5966 (b0s4_imm, b0s5_imm, b0s5_reg, b0s7_imm, b0s10_imm): Likewise.
5967 (b1s9_imm, b2s3_cc, b4s2_regl, b5s5_op, b5s5_reg): Likewise.
5968 (b6s4_op, b7s3_reg): Likewise.
5969 (b0s6_op, b0s11_op, b0s12_imm, b0s16_imm, b0s26_imm): Likewise.
5970 (b6s10_ext, b11s5_reg, b12s4_op): Likewise.
5971 (mips_insn_size): New function.
5972 (mips32_next_pc): Update mips_fetch_instruction call.
5973 (micromips_relative_offset7): New function.
5974 (micromips_relative_offset10): Likewise.
5975 (micromips_relative_offset16): Likewise.
5976 (micromips_pc_insn_size): Likewise.
5977 (micromips_bc1_pc): Likewise.
5978 (micromips_next_pc): Likewise.
5979 (unpack_mips16): Update mips_fetch_instruction call.
5980 (extended_mips16_next_pc): Update according to change to
5981 mips16_to_32_reg.
5982 (mips_next_pc): Update mips_pc_is_mips16 call. Handle microMIPS
5983 code.
5984 (mips16_scan_prologue): Update mips_fetch_instruction call.
5985 Update according to change to mips16_to_32_reg.
5986 (mips_insn16_frame_sniffer): Update mips_pc_is_mips16 call.
5987 (mips_insn16_frame_base_sniffer): Likewise.
5988 (micromips_decode_imm9): New function.
5989 (micromips_scan_prologue): Likewise.
5990 (mips_micro_frame_cache): Likewise.
5991 (mips_micro_frame_this_id): Likewise.
5992 (mips_micro_frame_prev_register): Likewise.
5993 (mips_micro_frame_sniffer): Likewise.
5994 (mips_micro_frame_unwind): New variable.
5995 (mips_micro_frame_base_address): New function.
5996 (mips_micro_frame_base): New variable.
5997 (mips_micro_frame_base_sniffer): New function.
5998 (mips32_scan_prologue): Update mips_fetch_instruction call.
5999 (mips_insn32_frame_sniffer): Check for the standard MIPS ISA
6000 rather than for MIPS16.
6001 (mips_insn32_frame_base_sniffer): Likewise.
6002 (mips_addr_bits_remove): Handle microMIPS code.
6003 (deal_with_atomic_sequence): Rename to...
6004 (mips_deal_with_atomic_sequence): ... this. Update the type
6005 of the variable used to hold an instruction. Remove the ISA bit
6006 check. Update mips_fetch_instruction call.
6007 (micromips_deal_with_atomic_sequence): New function.
6008 (deal_with_atomic_sequence): Likewise.
6009 (mips_about_to_return): Handle microMIPS code. Update
6010 mips_fetch_instruction call.
6011 (heuristic_proc_start): Check for the standard MIPS ISA rather
6012 than for MIPS16. Update mips_pc_is_mips16 and
6013 mips_fetch_instruction calls. Handle microMIPS code.
6014 (mips_push_dummy_code): Handle microMIPS code.
6015 (mips_eabi_push_dummy_call): Likewise.
6016 (mips_o32_return_value): Update mips_pc_is_mips16 call.
6017 (mips_o64_push_dummy_call): Handle microMIPS code.
6018 (mips_o64_return_value): Update mips_pc_is_mips16 call.
6019 (is_delayed): Remove function.
6020 (mips_single_step_through_delay): Replace the call to is_delayed
6021 with mips32_instruction_has_delay_slot. Correct MIPS16 handling.
6022 Handle microMIPS code.
6023 (mips_skip_prologue): Update mips_pc_is_mips16 call. Handle
6024 microMIPS code.
6025 (mips32_in_function_epilogue_p): Update mips_fetch_instruction
6026 call.
6027 (micromips_in_function_epilogue_p): New function.
6028 (mips16_in_function_epilogue_p): Update mips_fetch_instruction
6029 call.
6030 (mips_in_function_epilogue_p): Update mips_pc_is_mips16 call.
6031 Handle microMIPS.
6032 (gdb_print_insn_mips): Likewise.
6033 (mips_breakpoint_from_pc): Likewise.
6034 (mips_remote_breakpoint_from_pc): New function.
6035 (mips32_instruction_has_delay_slot): Simplify making use of the
6036 updated mips_fetch_instruction interface.
6037 (micromips_instruction_has_delay_slot): New function.
6038 (mips16_instruction_has_delay_slot): Simplify making use of the
6039 updated mips_fetch_instruction interface.
6040 (mips_adjust_breakpoint_address): Check for the standard MIPS
f782ad9b 6041 ISA rather than for MIPS16 ISA. Update for unmake_compact_addr
4cc0665f
MR
6042 calls. Handle microMIPS code.
6043 (mips_get_mips16_fn_stub_pc): Update mips_fetch_instruction call.
6044 (mips_skip_trampoline_code): Handle microMIPS code.
6045 (global_mips_compression): New function.
6046 (mips_gdbarch_init): Handle the compressed ISA setting from ELF
6047 file flags. Register the microMIPS remote breakpoint handler
6048 and heuristic frame unwinder.
6049 (show_mips_compression): New function.
6050 (_initialize_mips_tdep): Add the "set mips compression" and
6051 "show mips compression" commands.
6052
22e048c9
SDJ
60532012-05-18 Sergio Durigan Junior <sergiodj@redhat.com>
6054
6055 * ada-lang.c:
6056 * ada-tasks.c:
6057 * ada-varobj.c:
6058 * amd64-darwin-tdep.c:
6059 * arm-symbian-tdep.c:
6060 * arm-tdep.c:
6061 * avr-tdep.c:
6062 * ax-gdb.c:
6063 * bfin-linux-tdep.c:
6064 * breakpoint.c:
6065 * c-valprint.c:
6066 * cli/cli-cmds.c:
6067 * coffread.c:
6068 * cp-support.c:
6069 * cris-tdep.c:
6070 * dwarf2-frame-tailcall.c:
6071 * dwarf2-frame.c:
6072 * dwarf2expr.c:
6073 * dwarf2loc.c:
6074 * dwarf2read.c:
6075 * elfread.c:
6076 * eval.c:
6077 * expprint.c:
6078 * f-valprint.c:
6079 * frv-tdep.c:
6080 * h8300-tdep.c:
6081 * hppa-hpux-tdep.c:
6082 * hppa-tdep.c:
6083 * hppanbsd-tdep.c:
6084 * i386-nto-tdep.c:
6085 * i386-tdep.c:
6086 * i387-tdep.c:
6087 * ia64-tdep.c:
6088 * jit.c:
6089 * linespec.c:
6090 * linux-tdep.c:
6091 * lm32-tdep.c:
6092 * m2-valprint.c:
6093 * m32c-tdep.c:
6094 * m32r-rom.c:
6095 * m32r-tdep.c:
6096 * m68k-tdep.c:
6097 * m68klinux-tdep.c:
6098 * mi/mi-main.c:
6099 * microblaze-tdep.c:
6100 * mips-linux-tdep.c:
6101 * mips-tdep.c:
6102 * mn10300-tdep.c:
6103 * p-valprint.c:
6104 * parse.c:
6105 * ppc-linux-tdep.c:
6106 * ppc-sysv-tdep.c:
6107 * printcmd.c:
6108 * python/py-finishbreakpoint.c:
6109 * python/py-inferior.c:
6110 * python/py-infthread.c:
6111 * python/py-type.c:
6112 * python/python.c:
6113 * remote-fileio.c:
6114 * remote-m32r-sdi.c:
6115 * remote-mips.c:
6116 * reverse.c:
6117 * rl78-tdep.c:
6118 * rs6000-aix-tdep.c:
6119 * rs6000-tdep.c:
6120 * s390-tdep.c:
6121 * score-tdep.c:
6122 * sh64-tdep.c:
6123 * skip.c:
6124 * solib-darwin.c:
6125 * solib-dsbt.c:
6126 * solib-frv.c:
6127 * sparc-tdep.c:
6128 * spu-multiarch.c:
6129 * spu-tdep.c:
6130 * stack.c:
6131 * symfile.c:
6132 * symtab.c:
6133 * tic6x-tdep.c:
6134 * tracepoint.c:
6135 * v850-tdep.c:
6136 * valarith.c:
6137 * valprint.c:
6138 * value.c:
6139 * xcoffread.c:
6140 * xtensa-tdep.c:
6141 * ada-lang.c:
6142 * ada-tasks.c:
6143 * ada-varobj.c:
6144 * amd64-darwin-tdep.c:
6145 * arm-symbian-tdep.c:
6146 * arm-tdep.c: Delete unused variables.
6147
aff139ff
JK
61482012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6149
6150 Rename $ddir to $datadir.
6151 * NEWS (--with-auto-load-dir): Rename $ddir to $datadir.
6152 * auto-load.c (auto_load_safe_path_vec_update)
6153 (auto_load_gdb_datadir_changed, auto_load_objfile_script): Likewise.
6154 * configure: Regenerate.
6155 * configure.ac (--with-auto-load-dir, --with-auto-load-safe-path):
6156 Likewise. Remove the 'use $ddir' help string.
6157
f7bfa992
JK
61582012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6159
6160 * auto-load.c (show_auto_load_safe_path): Accept any combination of
6161 DIRNAME_SEPARATOR and IS_DIR_SEPARATOR for wild-match.
6162
9cb709b6
TT
61632012-05-18 Tom Tromey <tromey@redhat.com>
6164
6165 PR exp/13907:
6166 * valprint.h (struct value_print_options) <symbol_print>: New
6167 field.
6168 * valprint.c (user_print_options): Add default for symbol_print.
6169 (show_symbol_print): New function.
6170 (generic_val_print): Respect symbol_print.
6171 (_initialize_valprint): Add "print symbol" setting.
6172 * f-valprint.c (f_val_print): Respect symbol_print.
6173 * c-valprint.c (c_val_print): Respect symbol_print.
6174 * NEWS: Update.
6175 * printcmd.c (print_address_symbolic): Return int. Ignore some
6176 zero-size symbols.
6177 (print_address_demangle): Return int.
6178 * defs.h: (print_address_symbolic): Return int.
6179 * value.h (print_address_demangle): Return int.
6180
b012acdd
TT
61812012-05-18 Tom Tromey <tromey@redhat.com>
6182
6183 * valprint.c (val_print_string): Don't print leading space.
6184 * p-valprint.c (pascal_val_print) <TYPE_CODE_PTR>: Optionally
6185 print space before string or vtbl.
6186 * m2-valprint.c (print_unpacked_pointer): Optionally print space
6187 before string.
6188 * jv-valprint.c (java_value_print): Print space before string.
6189 * go-valprint.c (print_go_string): Print space before string.
6190 * f-valprint.c (f_val_print) <TYPE_CODE_PTR>: Optionally print
6191 space before string.
6192 * c-valprint.c (c_val_print) <TYPE_CODE_PTR>: Optionally print
6193 space before string or vtbl.
6194 * auxv.c (fprint_target_auxv): Print space after address.
6195
1d51a733
TT
61962012-05-18 Tom Tromey <tromey@redhat.com>
6197
6198 * printcmd.c (print_address_demangle): Remove special case for 0.
6199
edf0c1b7
TT
62002012-05-18 Tom Tromey <tromey@redhat.com>
6201
6202 * printcmd.c (print_address_demangle): Add 'opts' argument.
6203 * p-valprint.c (pascal_val_print): Update.
6204 * jv-valprint.c (java_val_print): Update.
6205 * value.h: Update.
6206 * valprint.c (generic_val_print): Update.
6207 (print_function_pointer_address): Add 'options' argument. Remove
6208 'addressprint' argument. Update.
6209 * m2-valprint.c (print_unpacked_pointer): Update.
6210 * gnu-v3-abi.c (print_one_vtable): Update.
6211 (gnuv3_print_method_ptr): Update.
6212 * f-valprint.c (f_val_print): Update.
6213 * cp-valprint.c (cp_print_value_fields): Update.
6214 * valprint.h (print_function_pointer_address): Update.
6215 * c-valprint.c (c_val_print): Update.
6216
9703b513
TT
62172012-05-18 Tom Tromey <tromey@redhat.com>
6218
6219 * psymtab.c (find_pc_sect_symtab_from_partial): Return the symtab
6220 directly corresponding to the found psymtab.
6221 * dwarf2read.c (recursively_find_pc_sect_symtab): New function.
6222 (dw2_find_pc_sect_symtab): Use it.
6223 * block.h (blockvector_contains_pc): Declare.
6224 * block.c (find_block_in_blockvector): New function.
6225 (blockvector_for_pc_sect): Use it.
6226 (blockvector_contains_pc): New function.
6227
5a439849
MR
62282012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
6229
6230 * mips-tdep.h (mips_write_pc): New prototype.
6231 * mips-tdep.c (mips_write_pc): Make external, add description.
6232 * mips-linux-tdep.c (mips_linux_write_pc): Use mips_write_pc,
6233 add description.
6234
8376de04
MR
62352012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
6236
6237 * mips-tdep.c (mips_read_pc): Use gdbarch_pc_regnum instead of
6238 mips_regnum->pc.
6239 (mips_unwind_pc, mips_write_pc): Likewise.
6240 (mips_gdbarch_init): Remove a comment on gdbarch_pc_regnum and
6241 gdbarch_read_pc.
6242
d3581e61
JB
62432012-05-17 Joel Brobecker <brobecker@adacore.com>
6244
6245 * procfs.c (procfs_find_new_threads, procfs_pid_to_str,
6246 proc_warn, proc_error, proc_get_status, proc_flags,
6247 proc_why, proc_what, proc_nsysarg, proc_sysargs,
6248 proc_set_run_on_last_close, proc_unset_run_on_last_close,
6249 proc_unset_inherit_on_fork, proc_set_async, proc_unset_async,
6250 proc_stop_process, proc_wait_for_stop, proc_run_process,
6251 proc_set_traced_signals, proc_set_traced_faults,
6252 proc_set_traced_sysentry, proc_set_traced_sysexit,
6253 proc_set_held_signals, proc_get_held_signals,
6254 proc_get_traced_signals, proc_get_traced_faults,
6255 proc_get_traced_sysentry, proc_get_traced_sysexit,
6256 proc_clear_current_fault, proc_set_current_signal,
6257 proc_clear_current_signal, proc_get_gregs, proc_get_fpregs,
6258 proc_set_gregs, proc_set_fpregs, proc_kill, proc_parent_pid,
6259 proc_get_nthreads, proc_get_nthreads, proc_get_nthreads,
6260 proc_get_current_thread, proc_get_current_thread,
6261 proc_get_current_thread, proc_update_threads,
6262 proc_update_threads, proc_update_threads, proc_update_threads,
6263 proc_iterate_over_threads, procfs_find_new_threads,
6264 procfs_pid_to_str): Make static. Remove advance declaration.
6265 (proc_cursig): Make static. Conditionalized defintion on
6266 PROCFS_DONT_PIOCSSIG_CURSIG being defined.
6267 (proc_syscall, proc_set_kill_on_last_close,
6268 proc_unset_kill_on_last_close, proc_set_inherit_on_fork,
6269 proc_get_pending_signals, proc_get_signal_actions,
6270 proc_trace_signal, proc_ignore_signal): Delete.
6271
81b9b86e
SDJ
62722012-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
6273
6274 * coffread.c (cs_section_address): Passing proper argument for
6275 `bfd_get_section_vma'.
6276 * dwarf2read.c (dwarf2_locate_sections): Likewise, for
6277 `bfd_get_section_flags'.
6278 * remote.c (remote_trace_set_readonly_regions): Likewise, for
6279 `bfd_get_section_vma'.
6280
abc9d0dc
TT
62812012-05-16 Tom Tromey <tromey@redhat.com>
6282
6283 PR macros/13205:
6284 * macrotab.h: (macro_define_special): Declare.
6285 (enum macro_special_kind): New.
6286 (struct macro_definition) <argc, replacement>: Update comments.
6287 * macrotab.c (new_macro_definition): Unconditionally set 'argc'.
6288 (macro_define_object_internal): New function.
6289 (macro_define_object): Use it.
6290 (macro_define_special): New function.
6291 (fixup_definition): New function.
6292 (macro_lookup_definition, foreach_macro_in_scope)
6293 (foreach_macro): Use fixup_definition.
6294 * macroexp.h (macro_stringify): Declare.
6295 * macroexp.c (free_buffer_return_text): New function.
6296 (stringify): Constify "arg".
6297 (macro_stringify): New function.
6298 * dwarf2read.c (macro_start_file): Call macro_define_special.
6299
6a3a010b 63002012-05-16 Maciej W. Rozycki <macro@codesourcery.com>
f782ad9b 6301 Maciej W. Rozycki <macro@mips.com>
6a3a010b
MR
6302
6303 * breakpoint.h (bp_location): Add related_address member.
6304 * inferior.h (get_return_value): Take a pointer to struct value
6305 instead of struct type for the function requested.
6306 * value.h (using_struct_return): Likewise.
6307 * gdbarch.sh (return_value): Take a pointer to struct value
6308 instead of struct type for the function requested.
6309 * breakpoint.c (set_breakpoint_location_function): Initialize
6310 related_address for bp_gnu_ifunc_resolver breakpoints.
6311 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the
6312 requested function's address to gdbarch_return_value.
6313 * eval.c (evaluate_subexp_standard): Pass the requested
6314 function's address to using_struct_return.
6315 * infcall.c (call_function_by_hand): Pass the requested
6316 function's address to using_struct_return and
6317 gdbarch_return_value.
6318 * infcmd.c (get_return_value): Take a pointer to struct value
6319 instead of struct type for the function requested.
6320 (print_return_value): Update accordingly.
6321 (finish_command_continuation): Likewise.
6322 * stack.c (return_command): Pass the requested function's
6323 address to using_struct_return and gdbarch_return_value.
6324 * value.c (using_struct_return): Take a pointer to struct value
6325 instead of struct type for the function requested. Pass the
6326 requested function's address to gdbarch_return_value.
6327 * python/py-finishbreakpoint.c (finish_breakpoint_object):
6328 New function_value member, replacing function_type.
6329 (bpfinishpy_dealloc): Update accordingly.
6330 (bpfinishpy_pre_stop_hook): Likewise.
6331 (bpfinishpy_init): Likewise. Record the requested function's
6332 address.
6333 * mips-tdep.c (mips_fval_reg): New enum.
6334 (mips_o32_push_dummy_call): For MIPS16 FP doubles do not swap
6335 words put in GP registers.
6336 (mips_o64_push_dummy_call): Update a comment.
6337 (mips_o32_return_value): Take a pointer to struct value instead
6338 of struct type for the function requested and use it to check if
6339 using the MIPS16 calling convention. Return the designated
6340 general purpose registers for floating-point values returned in
6341 MIPS16 mode.
6342 (mips_o64_return_value): Likewise.
6343 * ppc-tdep.h (ppc_sysv_abi_return_value): Update prototype.
6344 (ppc_sysv_abi_broken_return_value): Likewise.
6345 (ppc64_sysv_abi_return_value): Likewise.
6346 * alpha-tdep.c (alpha_return_value): Take a pointer to struct
6347 value instead of struct type for the function requested.
6348 * amd64-tdep.c (amd64_return_value): Likewise.
6349 * amd64-windows-tdep.c (amd64_windows_return_value): Likewise.
6350 * arm-tdep.c (arm_return_value): Likewise.
6351 * avr-tdep.c (avr_return_value): Likewise.
6352 * bfin-tdep.c (bfin_return_value): Likewise.
6353 * cris-tdep.c (cris_return_value): Likewise.
6354 * frv-tdep.c (frv_return_value): Likewise.
6355 * h8300-tdep.c (h8300_return_value): Likewise.
6356 (h8300h_return_value): Likewise.
6357 * hppa-tdep.c (hppa32_return_value): Likewise.
6358 (hppa64_return_value): Likewise.
6359 * i386-tdep.c (i386_return_value): Likewise.
6360 * ia64-tdep.c (ia64_return_value): Likewise.
6361 * iq2000-tdep.c (iq2000_return_value): Likewise.
6362 * lm32-tdep.c (lm32_return_value): Likewise.
6363 * m32c-tdep.c (m32c_return_value): Likewise.
6364 * m32r-tdep.c (m32r_return_value): Likewise.
6365 * m68hc11-tdep.c (m68hc11_return_value): Likewise.
6366 * m68k-tdep.c (m68k_return_value): Likewise.
6367 (m68k_svr4_return_value): Likewise.
6368 * m88k-tdep.c (m88k_return_value): Likewise.
6369 * mep-tdep.c (mep_return_value): Likewise.
6370 * microblaze-tdep.c (microblaze_return_value): Likewise.
6371 * mn10300-tdep.c (mn10300_return_value): Likewise.
6372 * moxie-tdep.c (moxie_return_value): Likewise.
6373 * mt-tdep.c (mt_return_value): Likewise.
6374 * ppc-linux-tdep.c (ppc_linux_return_value): Likewise.
6375 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Likewise.
6376 (ppc_sysv_abi_broken_return_value): Likewise.
6377 (ppc64_sysv_abi_return_value): Likewise.
6378 * ppcnbsd-tdep.c (ppcnbsd_return_value): Likewise.
6379 * rl78-tdep.c (rl78_return_value): Likewise.
6380 * rs6000-aix-tdep.c (rs6000_return_value): Likewise.
6381 * rx-tdep.c (rx_return_value): Likewise.
6382 * s390-tdep.c (s390_return_value): Likewise.
6383 * score-tdep.c (score_return_value): Likewise.
6384 * sh-tdep.c (sh_return_value_nofpu): Likewise.
6385 (sh_return_value_fpu): Likewise.
6386 * sh64-tdep.c (sh64_return_value): Likewise.
6387 * sparc-tdep.c (sparc32_return_value): Likewise.
6388 * sparc64-tdep.c (sparc64_return_value): Likewise.
6389 * spu-tdep.c (spu_return_value): Likewise.
6390 * tic6x-tdep.c (tic6x_return_value): Likewise.
6391 * v850-tdep.c (v850_return_value): Likewise.
6392 * vax-tdep.c (vax_return_value): Likewise.
6393 * xstormy16-tdep.c (xstormy16_return_value): Likewise.
6394 * xtensa-tdep.c (xtensa_return_value): Likewise.
6395 * gdbarch.c: Regenerate.
6396 * gdbarch.h: Regenerate.
6397
29ca12b3
TT
63982012-05-15 Tom Tromey <tromey@redhat.com>
6399
6400 * python/python.c (gdbpy_find_pc_line): Use gdb_py_ulongest.
6401
588ae58c
JB
64022012-05-15 Joel Brobecker <brobecker@adacore.com>
6403
6404 * breakpoint.c (init_breakpoint_sal): Add quotes around part
6405 of command in two error message.
6406
855a6e68
JB
64072012-05-15 Joel Brobecker <brobecker@adacore.com>
6408
6409 * breakpoint.c (init_breakpoint_sal): Remove trailing spaces.
6410
d634f2de
JB
64112012-05-15 Joel Brobecker <brobecker@adacore.com>
6412
6413 * breakpoint.c (find_condition_and_thread): Minor reformatting.
6414
9cc815f5
JK
64152012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6416
6417 * NEWS (show auto-load scripts-directory): Add forgotten command.
6418
6a609e58
JK
64192012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6420
6421 * spu-tdep.c (spu_catch_start): Update create_breakpoint caller
6422 parameters.
6423
ac1438b5
L
64242012-05-14 H.J. Lu <hongjiu.lu@intel.com>
6425
6426 * amd64-tdep.c: Include features/i386/x32.c and
6427 features/i386/x32-avx.c.
6428 (_initialize_amd64_tdep): Call initialize_tdesc_x32 and
6429 initialize_tdesc_x32_avx.
6430
e7e0cddf
SS
64312012-05-14 Stan Shebs <stan@codesourcery.com>
6432
6433 Add dynamic printf.
6434 * breakpoint.h (enum bptype): New type bp_dprintf.
6435 (struct breakpoint): New field extra_string.
6436 (struct breakpoint_ops): Add arg to create_breakpoints_sal.
6437 (create_breakpoint): Add extra_string arg.
6438 * breakpoint.c (dprintf_breakpoint_ops): New.
6439 (is_breakpoint): Add bp_dprintf.
6440 (bpstat_what): Add dprintf case.
6441 (bptype_string): Ditto.
6442 (print_one_breakpoint_location): Ditto.
6443 (init_bp_location): Ditto.
6444 (bkpt_print_mention): Ditto.
6445 (dprintf_style_enums): New array.
6446 (dprintf_style): New global.
6447 (dprintf_function): New global.
6448 (dprintf_channel): New global.
6449 (update_dprintf_command_list): New function.
6450 (update_dprintf_commands): New function.
6451 (init_breakpoint_sal): Add extra_string argument, handle it.
6452 (create_breakpoint_sal): Add extra_string argument.
6453 (create_breakpoints_sal): Add extra_string argument, update callers.
6454 (find_condition_and_thread): Add extra argument.
6455 (create_breakpoint): Add extra_string argument, record it.
6456 (dprintf_command): New function.
6457 (break_command_1): Add arg to create_breakpoint call.
6458 (handle_gnu_v3_exceptions): Ditto.
6459 (trace_command): Ditto.
6460 (ftrace_command): Ditto.
6461 (strace_command): Ditto.
6462 (bkpt_print_mention): Add dprintf case.
6463 (create_breakpoint_sal_default): Add extra_string argument.
6464 (_initialize_breakpoint): Add new commands.
6465 * mi/mi-cmd-break.c (mi_cmd_break_insert): Add arg to call.
6466 * python/py-breakpoint.c (bppy_init): Ditto.
6467 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
6468
8ae38c14
MR
64692012-05-14 Maciej W. Rozycki <macro@codesourcery.com>
6470
6471 * mips-tdep.c (mips_push_dummy_code): Correct description typo.
6472
9f676e66
SCR
64732012-05-14 Siva Chandra Reddy <sivachandra@google.com>
6474
6475 * python/python.c (gdbpy_find_pc_line): Use ULONGEST instead of
6476 unsigned long long.
6477
7efc75aa
SCR
64782012-05-13 Siva Chandra Reddy <sivachandra@google.com>
6479
6480 Add a new function gdb.find_pc_line to the Python API.
6481 * NEWS (Python Scripting): Add entry about the new function.
6482 * python/python.c (gdbpy_find_pc_line): New function which
6483 implements gdb.find_pc_line.
6484 (GdbMethods): Add entry for the new function.
6485
70af3797
PA
64862012-05-12 Pedro Alves <palves@redhat.com>
6487
6488 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Call
6489 initialize_tdesc_x32_linux and initialize_tdesc_x32_avx_linux.
6490
06da564e
EZ
64912012-05-12 Eli Zaretskii <eliz@gnu.org>
6492
6493 * inferior.c: Include completer.h
6494 (initialize_inferiors): Set completer of add-inferior to
6495 filename_completer.
6496
0288cee2
L
64972012-05-11 H.J. Lu <hongjiu.lu@intel.com>
6498
6499 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
6500 gdbarch_ptr_bit for x32 core dump.
6501
f6537a2c
L
65022012-05-11 H.J. Lu <hongjiu.lu@intel.com>
6503
6504 * amd64-linux-tdep.c: Include features/i386/x32-linux.c
6505 and features/i386/x32-avx-linux.c.
6506
85d4a676
SS
65072012-05-11 Stan Shebs <stan@codesourcery.com>
6508 Kwok Cheung Yeung <kcy@codesourcery.com>
6509
6510 * NEWS: Describe new info os commands.
6511 * common/linux-osdata.c (PID_T, TIME_T): Define.
6512 (MAX_PID_T_STRLEN): New.
6513 (linux_common_core_of_thread): Add comment. Change to use PID_T and
6514 MAX_PID_T_STRLEN.
6515 (command_from_pid): Add comment. Change to use PID_T.
6516 (commandline_from_pid): Change to use PID_T.
6517 (user_from_pid): Add comment.
6518 (get_process_owner): Add comment. Change to use PID_T and
6519 MAX_PID_T_STRLEN.
6520 (get_number_of_cpu_cores): Add comment.
6521 (get_cores_used_by_process): Add comment. Change to use PID_T and
6522 MAX_PID_T_STRLEN.
6523 (linux_xfer_osdata_processes): Change to use PID_T and
6524 MAX_PID_T_STRLEN.
6525 (compare_processes): New function.
6526 (linux_xfer_osdata_processgroups): New function.
6527 (linux_xfer_osdata_threads): Change to use PID_T.
6528 (linux_xfer_osdata_fds): New function.
6529 (format_socket_state, print_sockets): New functions.
6530 (union socket_addr): New union.
6531 (linux_xfer_osdata_isockets): New function.
6532 (time_from_time_t, group_from_gid): New functions.
6533 (linux_xfer_osdata_shm): New function.
6534 (linux_xfer_osdata_sem): New function.
6535 (linux_xfer_osdata_msg): New function.
6536 (linux_xfer_osdata_modules): New function.
6537 (osdata_table): Add new entries.
6538 * common/buffer.c (buffer_xml_printf): Add support for long and
6539 long long format specifiers.
6540
f24afd6d
L
65412012-05-11 H.J. Lu <hongjiu.lu@intel.com>
6542
6543 * amd64-linux-tdep.h (tdesc_x32_linux): New.
6544 (tdesc_x32_avx_linux): Likewise.
6545
7349ff92
JK
65462012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6547
6548 Implement multi-component --with-auto-load-dir.
6549 * NEWS (set auto-load scripts-directory, --with-auto-load-dir): New
6550 entries.
6551 (--with-auto-load-safe-path): Update the default value description.
6552 * auto-load.c (auto_load_dir, set_auto_load_dir, show_auto_load_dir):
6553 New.
6554 (auto_load_objfile_script): Add DEBUG_AUTO_LOAD output. Remove
6555 GDB_DATADIR NULL check. Replace GDB_DATADIR/auto-load by
6556 AUTO_LOAD_DIR. Support $ddir and multiple components in it.
6557 (_initialize_auto_load): Initialize also auto_load_dir. Install new
6558 "set auto-load scripts-directory".
6559 * config.in: Regenerate.
6560 * configure: Regenerate.
6561 * configure.ac (--with-auto-load-dir): New configure option.
6562 (--auto-load-safe-path): Change the default to --with-auto-load-dir.
6563
6dea1fbd
JK
65642012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6565
6566 Provide $ddir substitution for --with-auto-load-safe-path.
6567 * NEWS (--with-auto-load-safe-path, --without-auto-load-safe-path): New
6568 entries.
6569 * auto-load.c: Include observer.h.
6570 (auto_load_safe_path_vec_update): Call substitute_path_component for
6571 each component. New variable ddir_subst.
6572 (auto_load_gdb_datadir_changed): New function.
6573 (set_auto_load_safe_path): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
6574 AUTO_LOAD_SAFE_PATH. New comment.
6575 (_initialize_auto_load): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
6576 AUTO_LOAD_SAFE_PATH. Install auto_load_gdb_datadir_changed.
6577 * config.in: Regenerate.
6578 * configure: Regenerate.
6579 * configure.ac (--auto-load-safe-path): Rename
6580 DEFAULT_AUTO_LOAD_SAFE_PATH to AUTO_LOAD_SAFE_PATH. Default to
6581 GDB_DATADIR/auto-load.
6582 * defs.h (substitute_path_component): New declaration.
6583 * top.c: Include observer.h.
6584 (set_gdb_datadir): New function.
6585 (init_main): Install it for "set data-directory".
6586 * utils.c (substitute_path_component): New function.
6587
b09aca3a
JK
65882012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6589
6590 Make auto-load handle multiple components of DEBUG_FILE_DIRECTORY.
6591 * auto-load.c (auto_load_objfile_script): Remove check for NULL
6592 DEBUG_FILE_DIRECTORY. Handle multiple components of
6593 DEBUG_FILE_DIRECTORY.
6594
95554aad
TT
65952012-05-10 Tom Tromey <tromey@redhat.com>
6596
6597 * dwarf2read.c (recursively_write_psymbols): New function.
6598 (write_psymtabs_to_index): Use it.
6599
6600 * dwarf2read.c (struct dwarf2_queue_item) <pretend_language>: New
6601 field.
6602 (load_cu, dw2_do_instantiate_symtab, process_psymtab_comp_unit)
6603 (load_partial_comp_unit): Update.
6604 (queue_comp_unit): Add argument 'pretend_language'.
6605 (process_queue): Update.
6606 (psymtab_to_symtab_1): Skip dependencies that have a user.
6607 (load_partial_comp_unit_reader): Give meaning to the 'data'
6608 argument.
6609 (load_full_comp_unit): Add 'pretend_language' argument.
6610 (process_full_comp_unit): Add 'pretend_language' argument. Set
6611 language on CU.
6612 (process_imported_unit_die, read_file_scope, read_type_unit_scope):
6613 Update.
6614 (maybe_queue_comp_unit): Add 'pretend_language' argument.
6615 (follow_die_offset, follow_die_sig, read_signatured_type_reader):
6616 Update.
6617 (prepare_one_comp_unit): Add 'pretend_language' argument.
6618
6619 * dwarf2read.c: (dwarf2_per_cu_ptr): New typedef.
6620 (struct dwarf2_per_objfile) <just_read_cus>: New field.
6621 (struct dwarf2_per_cu_data) <imported_symtabs>: New field.
6622 (dw2_do_instantiate_symtab): Check whether symtab was read in
6623 before queueing.
6624 (dw2_instantiate_symtab): Add assertion. Call
6625 process_cu_includes.
6626 (process_psymtab_comp_unit): Compute 'dependencies' for psymtab.
6627 (partial_symtab_p): New typedef.
6628 (set_partial_user): New function.
6629 (dwarf2_build_psymtabs_hard): Use set_partial_user.
6630 (scan_partial_symbols): Add imported CU to imported_symtabs.
6631 (dwarf2_psymtab_to_symtab): Call process_cu_includes.
6632 (psymtab_to_symtab_1): Do nothing if psymtab is readin.
6633 (get_symtab, recursively_compute_inclusions)
6634 (compute_symtab_includes, process_cu_includes)
6635 (process_imported_unit_die): New functions.
6636 (process_die) <DW_TAG_imported_unit>: New case.
6637 (dwarf2_per_objfile_free): Free 'imported_symtabs'.
6638
6639 * dwarf2read.c (struct dwarf2_per_cu_data) <psymtab>: Update
6640 comment.
6641 (struct partial_die_info) <locdesc>: Remove.
6642 <d>: New field.
6643 (process_psymtab_comp_unit): Add 'read_partial' argument.
6644 Update.
6645 (process_type_comp_unit, dwarf2_build_psymtabs_hard): Update.
6646 (scan_partial_symbols): Handle DW_TAG_imported_unit.
6647 (add_partial_symbol): Update.
6648 (process_die): Handle DW_TAG_partial_unit.
6649 (read_file_scope): Update comment.
6650 (load_partial_dies): Handle DW_TAG_imported_unit.
6651 (read_partial_die): Handle DW_TAG_partial_unit, DW_AT_import.
6652 (determine_prefix, dwarf2_name): Handle DW_TAG_partial_unit.
6653
e871fbb9
TT
66542012-05-10 Tom Tromey <tromey@redhat.com>
6655
6656 * cc-with-dwz.sh: New file.
6657
b5b04b5b
TT
66582012-05-10 Tom Tromey <tromey@redhat.com>
6659
6660 * symtab.h (struct symtab) <includes, user>: New fields.
6661 * block.h (struct block_iterator) <d, idx, which>: New fields.
6662 * block.c (initialize_block_iterator, find_iterator_symtab)
6663 (block_iterator_step, block_iter_name_step)
6664 (block_iter_match_step): New functions.
6665 (block_iterator_first, block_iterator_next)
6666 (block_iter_name_first, block_iter_name_next)
6667 (block_iter_match_first, block_iter_match_next): Rewrite.
6668 (get_block_symtab): New function.
6669
84a146c9
TT
66702012-05-10 Tom Tromey <tromey@redhat.com>
6671
6672 * jv-lang.c (get_java_class_symtab): Use allocate_global_block,
6673 set_block_symtab.
6674 * jit.c (finalize_symtab): Use allocate_global_block,
6675 set_block_symtab.
6676 * buildsym.c (finish_block_internal): New function, from old
6677 finish_block.
6678 (finish_block): Rewrite.
6679 (end_symtab): Use finish_block_internal, set_block_symtab.
6680 * block.h (struct global_block): New.
6681 (allocate_global_block, set_block_symtab): Declare.
6682 * block.c (allocate_global_block, set_block_symtab): New
6683 functions.
6684
9439a077
TT
66852012-05-10 Tom Tromey <tromey@redhat.com>
6686
6687 * psymtab.c (partial_map_expand_apply): Add assertion.
6688 (partial_map_symtabs_matching_filename): Skip included psymtabs.
6689 (psymtab_to_symtab): Find unshared psymtab.
6690 (dump_psymtab): Print including psymtabs.
6691 (recursively_search_psymtabs): New function.
6692 (expand_symtabs_matching_via_partial): Use it.
6693 * psympriv.h (struct partial_symtab) <user, searched_flag>: New
6694 fields.
6695 (enum psymtab_search_status): New.
6696
8157b174
TT
66972012-05-10 Tom Tromey <tromey@redhat.com>
6698
6699 * tracepoint.c (scope_info): Update.
6700 * symtab.c (lookup_block_symbol, iterate_over_symbols)
6701 (find_pc_sect_symtab, search_symbols)
6702 (default_make_symbol_completion_list_break_on)
6703 (make_file_symbol_completion_list): Update.
6704 * symmisc.c (dump_symtab_1): Update.
6705 * stack.c (print_frame_args, iterate_over_block_locals)
6706 (print_frame_labels, iterate_over_block_arg_vars): Update.
6707 * python/py-block.c (block_object) <dict>: Remove.
6708 <block>: New field.
6709 <iter>: Change type.
6710 (blpy_iter): Update.
6711 (blpy_block_syms_iternext): Update.
6712 * psymtab.c (map_block): Use block iterators.
6713 * objfiles.c (objfile_relocate1): Use ALL_DICT_SYMBOLS.
6714 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
6715 * mdebugread.c (parse_symbol, mylookup_symbol): Update.
6716 * infrun.c (check_exception_resume): Update.
6717 * cp-support.c (make_symbol_overload_list_block): Update.
6718 * coffread.c (patch_opaque_types): Update.
6719 * buildsym.c (finish_block, end_symtab): Use ALL_DICT_SYMBOLS.
6720 * block.h (struct block_iterator): New.
6721 (block_iterator_first, block_iterator_next, block_iter_name_first)
6722 (block_iter_name_next, block_iter_match_first)
6723 (block_iter_match_next): Declare.
6724 (ALL_BLOCK_SYMBOLS): Redefine.
6725 * block.c (block_iterator_first, block_iterator_next)
6726 (block_iter_name_first, block_iter_name_next)
6727 (block_iter_match_first, block_iter_match_next): New functions.
6728 * ada-lang.c (ada_add_block_symbols)
6729 (ada_make_symbol_completion_list): Use block iterator.
6730
a2ca7a52
TT
67312012-05-10 Tom Tromey <tromey@redhat.com>
6732
6733 * psymtab.c (PSYMTAB_TO_SYMTAB): Remove.
6734 (find_pc_sect_symtab_from_partial, lookup_symbol_aux_psymtabs)
6735 (lookup_partial_symbol, find_last_source_symtab_from_partial)
6736 (read_psymtabs_with_filename, map_matching_symbols_psymtab)
6737 (expand_symtabs_matching_via_partial, maintenance_check_symtabs):
6738 Update.
6739
64ea88dc
JB
67402012-05-10 Joel Brobecker <brobecker@adacore.com>
6741
6742 * config/djgpp/fnchange.lst: Add entries for print-file-var-lib1.c,
6743 print-file-var-lib2.c, print-file-var-main.c and
6744 print-file-var.exp (located in gdb/testsuite/gdb.base).
6745
99a547d6
JB
67462012-05-10 Joel Brobecker <brobecker@adacore.com>
6747
6748 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
6749 try locating the symbol in the symbol's own objfile first, before
6750 extending the search to all objfiles.
6751 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
6752 out of lookup_symbol_aux_symtabs.
6753 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
6754 Replace extracted-out code by call to lookup_symbol_aux_objfile.
6755 Do not search EXCLUDE_OBJFILE.
6756 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
6757 (lookup_symbol_global): Search for matches in the block's objfile
6758 first, before searching all other objfiles.
6759
0ece64fd
TG
67602012-05-10 Tristan Gingold <gingold@adacore.com>
6761
6762 * printcmd.c (set_command): Add pre/post inc/dec.
6763
3d16a105
FCE
67642012-05-09 Frank Ch. Eigler <fche@redhat.com>
6765
6766 * gdb.1: Document -ex option.
6767
2efbc0f7
JB
67682012-05-09 Joel Brobecker <brobecker@adacore.com>
6769
6770 * infcall.c (call_function_by_hand): Remove AT_SYMBOL handling.
6771 * inferior.h (AT_SYMBOL): Delete.
6772
2c76a0c7
JB
67732012-05-09 Joel Brobecker <brobecker@adacore.com>
6774
6775 * mips-tdep.c (mips_push_dummy_code): New function.
6776 (mips_gdbarch_init): Set the gdbarch call_dummy_location to
6777 ON_STACK and install mips_push_dummy_code as our gdbarch
6778 push_dummy_code routine.
6779
9401a810
PA
67802012-05-09 Pedro Alves <palves@redhat.com>
6781
6782 * target.c (set_maintenance_target_async_permitted): Rename to ...
6783 (set_target_async_command): ... this.
6784 (show_maintenance_target_async_permitted): Rename to ...
6785 (show_target_async_command): ... this.
6786 (initialize_targets): Adjust.
6787
3929b321
DE
67882012-05-08 Doug Evans <dje@google.com>
6789
6790 * go-exp.y (classify_name): Add missing assignment of fields of
6791 yylval.ssym.
6792
c41535fd
EZ
67932012-05-08 Eli Zaretskii <eliz@gnu.org>
6794
6795 Display the ">" prompt in interactive mode while reading canned
6796 commands, even when the current interpreter is MI.
6797
6798 * interps.c (interp_set_temp): New function.
6799
6800 * interps.h (interp_set_temp): Add prototype.
6801
6802 * cli/cli-script.c (restore_interp): New cleanup function.
6803 (read_command_lines): Temporarily override the current interpreter
6804 with CLI and arrange for restoring the original one.
6805
c0749c4d
JS
68062012-05-12 Joel Sherrill <joel.sherrill@oarcorp.com>
6807
6808 * microblaze-rom.c (_initialize_picobug_rom): Add prototype.
6809
d7333987
SDJ
68102012-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
6811
6812 * probe.c (parse_probes): Move conditional to check for
6813 debuginfo files from here...
6814 * stap-probe.c (stap_get_probes): ... to here.
6815
649e6d92
MK
68162012-05-07 Mark Kettenis <kettenis@gnu.org>
6817 H.J. Lu <hongjiu.lu@intel.com>
6818
6819 * amd64-tdep.c (amd64_analyze_prologue): Additionally check for
6820 `movl %esp, %ebp' for the X32 ABI.
6821
f39c6ffd
TT
68222012-05-07 Tom Tromey <tromey@redhat.com>
6823
6824 * dwarf2read.c (dwarf_tag_name): Return const char *. Use
6825 get_DW_TAG_name.
6826 (dwarf_attr_name): Return const char *. Use get_DW_AT_name.
6827 (dwarf_form_name): Return const char *. Use get_DW_FORM_name.
6828 (dwarf_stack_op_name): Remove.
6829 (dwarf_cfi_name): Return const char *. Use get_DW_ATE_name.
6830 (decode_locdesc): Use get_DW_OP_name.
6831 * dwarf2loc.c (unimplemented): Use get_DW_OP_name.
6832 (dwarf2_compile_expr_to_ax): Likewise.
6833 (disassemble_dwarf_expression): Likewise.
6834 * dwarf2expr.h: (dwarf_stack_op_name): Remove.
6835
1e1f6591
CLT
68362012-05-07 Chung-Lin Tang <cltang@codesourcery.com>
6837
6838 * sh-linux-tdep.c: Include trad-frame.h and tramp-frame.h.
6839 (sh_linux_sigtramp_cache): New function.
6840 (sh_linux_sigreturn_init): New function.
6841 (sh_linux_rt_sigreturn_init): New function.
6842 (SH_MOVW,SH_TRAP,SH_OR_R0_R0): New symbols for instruction
6843 patterns.
6844 (SH_NR_SIGRETURN,SH_NR_RT_SIGRETURN): New symbols for sigreturn
6845 syscall codes.
6846 (sh_linux_sigreturn_tramp_frame): New tramp_frame definition.
6847 (sh_linux_rt_sigreturn_tramp_frame): Likewise.
6848 (sh_linux_init_abi): Add init calls to register new tramp_frame
6849 definitions under 32-bit SH, update comments.
6850
545c08b4
PA
68512012-05-07 Pedro Alves <palves@redhat.com>
6852
daac165e
PA
6853 PR gdb/10952
6854
545c08b4
PA
6855 * amd64-linux-tdep.c: Include glibc-tdep.h.
6856 (amd64_linux_init_abi): Install glibc_skip_solib_resolver as
6857 gdbarch_skip_solib_resolver callback.
6858
af2c1515
JK
68592012-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6860
6861 * auto-load.c (set_auto_load_safe_path): Reset AUTO_LOAD_SAFE_PATH
6862 back to DEFAULT_AUTO_LOAD_SAFE_PATH if it is being set to "".
6863 (show_auto_load_safe_path): Check any-directory by comparison with "/".
6864 (add_auto_load_safe_path): Change the error message.
6865 (_initialize_auto_load): Change the "safe-path" help text.
6866 * configure: Regenerate
6867 * configure.ac (--without-auto-load-safe-path): Set
6868 WITH_AUTO_LOAD_SAFE_PATH to /.
6869
1067f998
SDJ
68702012-05-05 Sergio Durigan Junior <sergiodj@redhat.com>
6871
6872 * stap-probe.h: Do not include unecessary `probe.h'.
6873
45dfa85a
AM
68742012-05-05 Alan Modra <amodra@gmail.com>
6875
6876 * elfread.c (elf_symtab_read): Use bfd_abs_section_ptr and
6877 bfd_und_section_ptr.
6878 * machoread.c (macho_symtab_add_minsym): Use bfd_abs_section_ptr
6879 and bfd_com_section_ptr.
6880
cf093994
JB
68812012-05-04 Joel Brobecker <brobecker@adacore.com>
6882
762ebb75 6883 * MAINTAINERS (Past Maintainers): Add Chris Faylor.
cf093994 6884
d40dc7a8
JB
68852012-05-04 Joel Brobecker <brobecker@adacore.com>
6886
6887 * windows-nat.h (segment_register_p_ftype): New typedef.
6888 (windows_set_segment_register_p): Add declaration.
6889 * windows-nat.c (segment_register_p): New static global.
6890 (windows_set_segment_register_p): New function.
6891 (do_windows_fetch_inferior_registers): Add special handling
6892 for segment registers.
6893 * amd64-windows-nat.c: #include "amd64-tdep.h".
6894 (amd64_windows_segment_register_p): New function.
6895 (_initialize_amd64_windows_nat): Call windows_set_segment_register_p.
6896 * i386-windows-nat.c: #include "i386-tdep.h".
6897 (i386_windows_segment_register_p): New function.
6898 (_initialize_i386_windows_nat): Call windows_set_segment_register_p.
6899
52b3699b
TG
69002012-05-04 Tristan Gingold <gingold@adacore.com>
6901
6902 * printcmd.c (set_command): Emit a warning if the expression is not
6903 an assignment.
6904
94c74239
JB
69052012-05-03 Joel Brobecker <brobecker@adacore.com>
6906
6907 * nto-procfs.c (procfs_find_new_threads, procfs_pid_to_str):
6908 Make static.
6909
fcf57f19
SDJ
69102012-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
6911
6912 * stap-probe.c (stap_is_operator): Change declaration.
6913 (stap_get_opcode): Change return value.
6914 (stap_parse_argument_1): Update calls to `stap_get_opcode' and
6915 `stap_parse_argument_1'.
6916
27d2932e
PA
69172012-05-03 Pedro Alves <pedro@codesourcery.com>
6918
6919 * infrun.c (displaced_step_fixup): Add "displaced:" prefix to
6920 debug log.
6921
a20ee7a4
SCR
69222012-05-03 Siva Chandra Reddy <sivachandra@google.com>
6923
6924 Add two new methods global_block and static_block to gdb.Symtab
6925 objects.
6926 * NEWS (Python scripting): Add entry about the new methods.
6927 * python/py-symtab.c (stpy_global_block): New function which
6928 implements the gdb.Symtab.global_block() method.
6929 (stpy_static_block): New function which implements the
6930 gdb.Symtab.static_block() method.
6931 (symtab_object_methods): Add entries for the two new methods.
6932
943cb756
DE
69332012-05-03 Doug Evans <dje@google.com>
6934
6935 * dwarf2read.c (dw2_find_symbol_file): Don't crash if there are no
6936 files.
6937
f4644a3f
YQ
69382012-05-03 Yao Qi <yao@codesourcery.com>
6939
6940 * i386-tdep.c (i386_fetch_pointer_argument): Remove extra
6941 space.
6942 (i386_process_record): Ditto.
6943
ef61f180
JB
69442012-05-02 Joel Brobecker <brobecker@adacore.com>
6945
6946 * infcall.c (unwind_on_signal_p): Make static.
6947
02f1df11
JB
69482012-05-02 Joel Brobecker <brobecker@adacore.com>
6949
6950 * sol-thread.c (solaris_pid_to_str): Make static.
6951 (_initialize_sol_thread): Add prototype.
6952
39023530
JB
69532012-05-02 Joel Brobecker <brobecker@adacore.com>
6954
6955 * sol-thread.c (procfs_pid_to_str): Delete extern declaration.
6956
c6b0c501
CF
69572012-05-02 Christopher Faylor <me.cygwin2012@cgf.cx>
6958
6959 * MAINTAINERS: Remove myself.
6960
1ef71717
JK
69612012-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6962
6963 Fix --without-auto-load-safe-path for MS-Windows host platform.
6964 * auto-load.c (filename_is_in_dir): Return 1 for DIR_LEN 0.
6965
b31b86a7
EZ
69662012-05-02 Eli Zaretskii <eliz@gnu.org>
6967
6968 * gdb_curses.h: Undefine KEY_EVENT before including curses
6969 headers. Move "#undef MOUSE_MOVED" before any curses header
6970 inclusion.
6971
777532fc
SDJ
69722012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
6973
6974 * features/i386/i386-mmx-linux.c: Regenerate.
6975 * features/rs6000/powerpc-32.c: Likewise.
6976 * features/rs6000/powerpc-32l.c: Likewise.
6977 * features/rs6000/powerpc-403.c: Likewise.
6978 * features/rs6000/powerpc-403gc.c: Likewise.
6979 * features/rs6000/powerpc-405.c: Likewise.
6980 * features/rs6000/powerpc-505.c: Likewise.
6981 * features/rs6000/powerpc-601.c: Likewise.
6982 * features/rs6000/powerpc-602.c: Likewise.
6983 * features/rs6000/powerpc-603.c: Likewise.
6984 * features/rs6000/powerpc-604.c: Likewise.
6985 * features/rs6000/powerpc-64.c: Likewise.
6986 * features/rs6000/powerpc-64l.c: Likewise.
6987 * features/rs6000/powerpc-750.c: Likewise.
6988 * features/rs6000/powerpc-860.c: Likewise.
6989 * features/rs6000/powerpc-e500.c: Likewise.
6990 * features/rs6000/powerpc-e500l.c: Likewise.
6991 * features/rs6000/powerpc-isa205-32l.c: Likewise.
6992 * features/rs6000/powerpc-isa205-64l.c: Likewise.
6993 * features/rs6000/rs6000.c: Likewise.
6994
d71871bc
SDJ
69952012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
6996
6997 * i386-tdep.c (i386_stap_parse_special_token) <s>: Remove unused
6998 variable.
6999 * stap-probe.c (stap_parse_single_operand) <reg_suffix,
7000 reg_ind_suffix, reg_suffix_len, reg_ind_suffix_len>: Likewise.
7001 (stap_parse_argument) <e>: Likewise.
7002 (handle_stap_probe) <byte_order>: Likewise.
7003
fd820528
DE
70042012-04-30 Doug Evans <dje@google.com>
7005
7006 * dwarf2read.c (init_cutu_and_read_dies): Renamed from
7007 init_and_read_dies_worker. All callers updated.
7008 (init_cu_and_read_dies, init_tu_and_read_dies): Delete. All calls
7009 replaced with init_cutu_and_read_dies.
7010 (load_partial_comp_unit): Pass 1 for use_existing_cu.
7011 (find_partial_die): Remove FIXME. Don't free current CU.
7012
ec3f619d 70132012-04-30 Sterling Augustine <saugustine@google.com>
be36f02d
SA
7014
7015 * contrib: New directory.
7016 * contrib/test_pubnames_and_indexes.py: New file.
7017
fceca515
DE
70182012-04-30 Doug Evans <dje@google.com>
7019
7020 * dwarf2read.c (dwarf_decode_macros): New arg section_name.
7021 All callers updated.
7022 (init_cu_die_reader): Verify the section is non-empty.
7023 (dwarf_decode_line_header): Don't dereference section->asection
7024 until we know the section is present.
7025
311fe7e1
SDJ
70262012-04-29 Sergio Durigan Junior <sergiodj@redhat.com>
7027
7028 * tracepoint.c (start_tracing, stop_tracing): Checking for NULL
7029 probes.
7030
5977971a
YQ
70312012-04-29 Yao Qi <yao@codesourcery.com>
7032
7033 * gdb-code-style.el: New hook gdb-markup-hook
7034 and gdb-comment-hook.
7035
dee91e82
DE
70362012-04-28 Doug Evans <dje@google.com>
7037
3019eac3
DE
7038 Initial support for Fission. http://gcc.gnu.org/wiki/DebugFission
7039 * symfile.c (default_symfile_relocate): Use sectp->owner instead of
7040 objfile->obfd.
7041 * symfile.h (dwarf2_debug_sections): New member addr.
7042 * dwarf2expr.c (execute_stack_op): New case DW_OP_GNU_addr_index.
7043 (ctx_no_get_addr_index): New function.
7044 * dwarf2expr.h (dwarf_expr_context_funcs): New member get_addr_index.
7045 (ctx_no_get_addr_index): Declare.
7046 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Update.
7047 * dwarf2loc.c (dwarf_expr_get_addr_index): New function.
7048 (dwarf_expr_ctx_funcs): Update.
7049 (needs_get_addr_index): New function.
7050 (needs_frame_ctx_funcs): Update.
7051 * dwarf2loc.h (dwarf2_read_addr_index): Declare.
7052 * dwarf2read.c: #include "gdbcore.h".
7053 (dwarf2_per_objfile): New members addr, dwo_files.
7054 (dwarf2_elf_names): Add entry for addr.
7055 (struct dwo_section_names): New type.
7056 (dwo_section_names): New static global.
7057 (dwarf2_cu): New members dwo_unit, addr_base, have_addr_base.
7058 (dwarf2_per_cu_data): New member is_debug_types, all boolean uses of
7059 old debug_types_section member updated to use this.
7060 Rename member debug_types_section to info_or_types_section,
7061 all uses updated.
7062 (signatured_type): Rename member type_offset to type_offset_in_tu,
7063 all uses updated. New member type_offset_in_section.
7064 (struct dwo_sections): New type.
7065 (struct dwo_unit): New type.
7066 (struct dwo_file): New type.
7067 (die_reader_specs): New member dwo_file.
7068 (dwarf2_locate_sections): Watch for .debug_addr.
7069 (zlib_decompress_section): Use sectp->owner instead of objfile->obfd.
7070 (dwarf2_read_section): Get bfd of section from bfd's asection,
7071 instead of objfile.
7072 (create_cus_from_index): Initialize the_cu->info_or_types_section.
7073 (create_signatured_type_table_from_index): Initialize
7074 sig_type->info_or_types_section.
7075 (dw2_get_file_names): Statement lists for type units with DWO files
7076 live in the DWO file.
7077 (create_debug_types_hash_table): New function.
7078 (create_all_type_units): Rewrite.
7079 (init_cu_die_reader): New arg dwo_file, all callers updated.
7080 (init_and_read_dies_worker): Get section from
7081 this_cu->info_or_types_section. Set sig_type->type_offset_in_section.
7082 Watch for DW_AT_GNU_dwo_name and if present lookup the file and
7083 continue reading the CU/TU from there.
7084 (init_cutu_and_read_dies_no_follow): New arg dwo_file, all callers
7085 updated. Get section from this_cu->info_or_types_section.
7086 (create_all_comp_units): Initialize this_cu->info_or_types_section.
7087 (skip_one_die): New cases DW_FORM_GNU_addr_index,
7088 DW_FORM_GNU_str_index.
7089 (hash_dwo_file, eq_dwo_file): New functions.
7090 (allocate_dwo_file_hash_table): New function.
7091 (hash_dwo_unit, eq_dwo_unit): New functions.
7092 (allocate_dwo_unit_table): New function.
7093 (dwarf2_locate_dwo_sections): New function.
7094 (struct create_dwo_info_table_data): New type.
7095 (create_debug_info_hash_table_reader): New function.
7096 (create_debug_info_hash_table): New function.
7097 (try_open_dwo_file, open_dwo_file, init_dwo_file): New function.
7098 (lookup_dwo_file): New function.
7099 (lookup_dwo_comp_unit, lookup_dwo_type_unit): New functions.
7100 (free_dwo_file, free_dwo_file_cleanup): New functions.
7101 (free_dwo_file_from_slot, free_dwo_files): New functions.
7102 (dwarf2_get_pc_bounds): Handle DW_FORM_GNU_addr_index.
7103 (dwarf2_record_block_ranges): Ditto.
7104 (read_partial_die): Ditto.
7105 (process_enumeration_scope): Update to use type_offset_in_section.
7106 (read_full_die_1): New function.
7107 (read_full_die): Rewrite.
7108 (read_attribute_value): New cases DW_FORM_GNU_addr_index,
7109 DW_FORM_GNU_str_index.
7110 (read_addr_index_1, read_addr_index): New functions.
7111 (read_addr_index_from_leb128): New function.
7112 (struct dwarf2_read_addr_index_data): New type.
7113 (dwarf2_read_addr_index_reader): New function.
7114 (dwarf2_read_addr_index): New function.
7115 (read_str_index): New function.
7116 (leb128_size): New function.
7117 (dwarf_decode_line_header): Delete arg abfd, all callers updated.
7118 If processing a type unit from a DWO file, get the line section
7119 from the DWO file.
7120 (var_decode_location): Watch for DW_OP_GNU_addr_index.
7121 (dwarf2_const_value_attr): New cases DW_FORM_GNU_addr_index,
7122 DW_FORM_GNU_str_index.
7123 (lookup_die_type): Check whether section offset of type's die is
7124 known before looking it up. Remove assert. Condition can
7125 legimately happen for inter-cu type references.
7126 (dwarf_attr_name): Handle Fission attributes.
7127 (dwarf_form_name): Handle Fission forms.
7128 (dump_die_shallow): New cases DW_FORM_GNU_addr_index,
7129 DW_FORM_GNU_str_index.
7130 (follow_die_sig): Update to use type_offset_in_section.
7131 (decode_locdesc): New case DW_OP_GNU_addr_index.
7132 (skip_form_bytes): New cases DW_FORM_GNU_addr_index,
7133 DW_FORM_GNU_str_index.
7134 (cu_debug_loc_section): New function.
7135 (fill_in_loclist_baton, dwarf2_symbol_mark_computed): Call it.
7136 (dwarf2_per_objfile_free): Unmap .debug_addr section.
7137 Free DWO files if present.
7138 * xcoffread.c (dwarf2_xcoff_names): Add .debug_addr.
7139
dee91e82
DE
7140 Refactor DIE reading.
7141 * dwarf2read.c (dwarf2_per_objfile): Replace members
7142 debug_info_type_hash and debug_types_type_hash with die_type_hash.
7143 (die_reader_specs): New member "die_section". Temporarily make
7144 member "buffer" non-const, pending constifying all info_ptr uses.
7145 (die_reader_func_ftype): New typedef.
7146 (dw2_get_file_names_reader): New function.
7147 (dw2_get_file_names): Rewrite.
7148 (read_and_check_type_unit_head): Rename arg type_offset to
7149 type_offset_in_tu.
7150 (create_all_type_units): Improve debugging message.
7151 Improve dummy type unit check.
7152 (init_cu_die_reader): New arg "section". All callers updated.
7153 (init_and_read_dies_worker): New function.
7154 (init_cu_and_read_dies, init_tu_and_read_dies): New functions.
7155 (init_cutu_and_read_dies_no_follow): New function.
7156 (init_cutu_and_read_dies_simple): New function.
7157 (process_psymtab_comp_unit_reader): New function.
7158 (process_psymtab_comp_unit): Delete args section,
7159 is_debug_types_section. Rewrite. All callers updated.
7160 (process_psymtab_type_unit): Renamed from process_type_comp_unit.
7161 All callers updated. Rewrite.
7162 (load_partial_comp_unit_reader): New function.
7163 (load_partial_comp_unit): Rewrite.
7164 (skip_children): New arg reader. Delete args buffer, cu.
7165 All callers updated.
7166 (skip_one_die): New arg reader. Delete args buffer, cu.
7167 All callers updated.
7168 (locate_pdi_sibling): New arg reader. Delete args buffer, abfd, cu.
7169 All callers updated.
7170 (load_full_comp_unit_reader): New function.
7171 (load_full_comp_unit): Rewrite.
7172 (read_comp_unit): Delete.
7173 (read_die_and_children_1): Delete, contents moved ...
7174 (read_die_and_children): ... here.
7175 (dwarf2_read_abbrevs): New arg abbrev_section. All callers updated.
7176 (load_partial_dies): New arg reader. Delete args abfd, buffer, cu.
7177 All callers updated.
7178 (read_partial_die): New arg reader. Delete args abfd, buffer, cu.
7179 All callers updated.
7180 (find_partial_die): Rewrite load_all_dies support.
7181 (read_attribute_value): New arg reader. Delete args abfd, cu.
7182 All callers updated.
7183 (read_attribute): New arg reader. Delete args abfd, cu.
7184 All callers updated.
7185 (load_full_type_unit): Add assert.
7186 (read_signatured_type_reader): New function.
7187 (read_signatured_type): Rewrite.
7188 (free_stack_comp_unit): Remove call to age_cached_comp_units.
7189 (free_one_cached_comp_unit): Change target_cu arg to target_per_cu.
7190 All callers updated. Set per_cu->cu = NULL after freeing it.
7191 (dwarf2_per_cu_offset_and_type): Renamed from dwarf2_offset_and_type.
7192 (per_cu_offset_and_type_hash): Renamed from offset_and_type_hash.
7193 (per_cu_offset_and_type_eq): Renamed from offset_and_type_eq.
7194 (set_die_type): Update.
7195 (get_die_type_at_offset): Update.
7196 (read_file_scope): Call prepare_one_comp_unit.
7197 (read_type_unit_scope): Ditto.
7198 (prepare_one_comp_unit): Set producer if present.
7199
72d59e0d
SDJ
72002012-04-28 Sergio Durigan Junior <sergiodj@redhat.com>
7201
7202 * probe.c (compile_rx_or_error): Silence ARI warning about missing
7203 gettext function on `error'.
7204
0fefef59
DE
72052012-04-27 Doug Evans <dje@google.com>
7206
7207 * dwarf2read.c (dwarf2_read_index): Don't use index if symbol table
7208 is empty.
7209
28106bc2
SDJ
72102012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
7211 Tom Tromey <tromey@redhat.com>
7212
7213 * breakpoint.c (struct breakpoint_objfile_data)
7214 <longjmp_searched>,<longjmp_probes>,<exception_searched>,
7215 <exception_probes>: New fields.
7216 (free_breakpoint_probes): New function.
7217 (create_longjmp_master_breakpoint): Prefer SystemTap probe over
7218 `_Unwind_DebugHook'.
7219 (create_exception_master_breakpoint): Likewise.
7220 (_initialize_breakpoint): Registering cleanup for SystemTap probes.
7221 * infrun.c: Including necessary header files for handling SystemTap
7222 probes.
7223 (handle_inferior_event): Handling longjmp breakpoint and exceptions
7224 via SystemTap probes.
7225 (check_exception_resume): Remove `func' argument. Handle exception
7226 unwinding breakpoint set via a SystemTap probe.
7227 (insert_exception_resume_from_probe): New function.
7228
55aa24fb
SDJ
72292012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
7230 Tom Tromey <tromey@redhat.com>
7231 Jan Kratochvil <jan.kratochvil@redhat.com>
7232
7233 * Makefile.in (SFILES): Add `probe' and `stap-probe'.
7234 (COMMON_OBS): Likewise.
7235 (HFILES_NO_SRCDIR): Add `probe'.
7236 * NEWS: Mention support for static and SystemTap probes.
7237 * amd64-tdep.c (amd64_init_abi): Initializing proper fields used by
7238 SystemTap probes' arguments parser.
7239 * arm-linux-tdep.c: Including headers needed to perform the parsing
7240 of SystemTap probes' arguments.
7241 (arm_stap_is_single_operand): New function.
7242 (arm_stap_parse_special_token): Likewise.
7243 (arm_linux_init_abi): Initializing proper fields used by SystemTap
7244 probes' arguments parser.
7245 * ax-gdb.c (require_rvalue): Removing static declaration.
7246 (gen_expr): Likewise.
7247 * ax-gdb.h (gen_expr): Declaring function.
7248 (require_rvalue): Likewise.
7249 * breakpoint.c: Include `gdb_regex.h' and `probe.h'.
7250 (bkpt_probe_breakpoint_ops): New variable.
7251 (momentary_breakpoint_from_master): Set the `probe' value.
7252 (add_location_to_breakpoint): Likewise.
7253 (break_command_1): Using proper breakpoint_ops according to the
7254 argument passed by the user in the command line.
7255 (bkpt_probe_insert_location): New function.
7256 (bkpt_probe_remove_location): Likewise.
7257 (bkpt_probe_create_sals_from_address): Likewise.
7258 (bkpt_probe_decode_linespec): Likewise.
7259 (tracepoint_probe_create_sals_from_address): Likewise.
7260 (tracepoint_probe_decode_linespec): Likewise.
7261 (tracepoint_probe_breakpoint_ops): New variable.
7262 (trace_command): Using proper breakpoint_ops according to the
7263 argument passed by the user in the command line.
7264 (initialize_breakpoint_ops): Initializing breakpoint_ops for
7265 static probes on breakpoints and tracepoints.
7266 * breakpoint.h (struct bp_location) <probe>: New field.
7267 * cli-utils.c (skip_spaces_const): New function.
7268 (extract_arg): Likewise.
7269 * cli-utils.h (skip_spaces_const): Likewise.
7270 (extract_arg): Likewise.
7271 * coffread.c (coff_sym_fns): Add `sym_probe_fns' value.
7272 * configure.ac: Append `stap-probe.o' to be generated when ELF
7273 support is present.
7274 * configure: Regenerate.
7275 * dbxread.c (aout_sym_fns): Add `sym_probe_fns' value.
7276 * elfread.c: Include `probe.h' and `arch-utils.h'.
7277 (probe_key): New variable.
7278 (elf_get_probes): New function.
7279 (elf_get_probe_argument_count): Likewise.
7280 (elf_evaluate_probe_argument): Likewise.
7281 (elf_compile_to_ax): Likewise.
7282 (elf_symfile_relocate_probe): Likewise.
7283 (stap_probe_key_free): Likewise.
7284 (elf_probe_fns): New variable.
7285 (elf_sym_fns): Add `sym_probe_fns' value.
7286 (elf_sym_fns_lazy_psyms): Likewise.
7287 (elf_sym_fns_gdb_index): Likewise.
7288 (_initialize_elfread): Initialize objfile cache for static
7289 probes.
7290 * gdb_vecs.h (struct probe): New forward declaration.
7291 (probe_p): New VEC declaration.
7292 * gdbarch.c: Regenerate.
7293 * gdbarch.h: Regenerate.
7294 * gdbarch.sh (stap_integer_prefix): New variable.
7295 (stap_integer_suffix): Likewise.
7296 (stap_register_prefix): Likewise.
7297 (stap_register_suffix): Likewise.
7298 (stap_register_indirection_prefix): Likewise.
7299 (stap_register_indirection_suffix): Likewise.
7300 (stap_gdb_register_prefix): Likewise.
7301 (stap_gdb_register_suffix): Likewise.
7302 (stap_is_single_operand): New function.
7303 (stap_parse_special_token): Likewise.
7304 (struct stap_parse_info): Forward declaration.
7305 * i386-tdep.c: Including headers needed to perform the parsing
7306 of SystemTap probes' arguments.
7307 (i386_stap_is_single_operand): New function.
7308 (i386_stap_parse_special_token): Likewise.
7309 (i386_elf_init_abi): Initializing proper fields used by SystemTap
7310 probes' arguments parser.
7311 * i386-tdep.h (i386_stap_is_single_operand): New function.
7312 (i386_stap_parse_special_token): Likewise.
7313 * machoread.c (macho_sym_fns): Add `sym_probe_fns' value.
7314 * mipsread.c (ecoff_sym_fns): Likewise.
7315 * objfiles.c (objfile_relocate1): Support relocation for static
7316 probes.
7317 * parse.c (prefixify_expression): Remove static declaration.
7318 (initialize_expout): Likewise.
7319 (reallocate_expout): Likewise.
7320 * parser-defs.h (initialize_expout): Declare function.
7321 (reallocate_expout): Likewise.
7322 (prefixify_expression): Likewise.
7323 * ppc-linux-tdep.c: Including headers needed to perform the parsing
7324 of SystemTap probes' arguments.
7325 (ppc_stap_is_single_operand): New function.
7326 (ppc_stap_parse_special_token): Likewise.
7327 (ppc_linux_init_abi): Initializing proper fields used by SystemTap
7328 probes' arguments parser.
7329 * probe.c: New file, for generic statically defined probe support.
7330 * probe.h: Likewise.
7331 * s390-tdep.c: Including headers needed to perform the parsing of
7332 SystemTap probes' arguments.
7333 (s390_stap_is_single_operand): New function.
7334 (s390_gdbarch_init): Initializing proper fields used by SystemTap
7335 probes' arguments parser.
7336 * somread.c (som_sym_fns): Add `sym_probe_fns' value.
7337 * stap-probe.c: New file, for SystemTap probe support.
7338 * stap-probe.h: Likewise.
7339 * symfile.h: Include `gdb_vecs.h'.
7340 (struct sym_probe_fns): New struct.
7341 (struct sym_fns) <sym_probe_fns>: New field.
7342 * symtab.c (init_sal): Initialize `probe' field.
7343 * symtab.h (struct probe): Forward declaration.
7344 (struct symtab_and_line) <probe>: New field.
7345 * tracepoint.c (start_tracing): Adjust semaphore on breakpoints
7346 locations.
7347 (stop_tracing): Likewise.
7348 * xcoffread.c (xcoff_sym_fns): Add `sym_probe_fns' value.
7349
22d2b532
SDJ
73502012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
7351 Tom Tromey <tromey@redhat.com>
7352
7353 * ax-gdb.c (gen_expr): Clean up code to handle internal variables
7354 and to compile agent expressions.
7355 * infrun.c (siginfo_make_value): New argument `ignore'.
7356 (siginfo_funcs): New struct.
7357 (_initialize_infrun): New argument when calling
7358 `create_internalvar_type_lazy'.
7359 * thread.c (thread_id_make_value): New argument `ignore'.
7360 (thread_funcs): New struct.
7361 (_initialize_thread): New argument when calling
7362 `create_internalvar_type_lazy'.
7363 * tracepoint.c (sdata_make_value): New argument `ignore'.
7364 (sdata_funcs): New struct.
7365 (_initialize_tracepoint): New argument when calling
7366 `create_internalvar_type_lazy'.
7367 * value.c (make_value): New struct.
7368 (create_internalvar_type_lazy): New argument `data'.
7369 (compile_internalvar_to_ax): New function.
7370 (value_of_internalvar): Properly handling `make_value' case.
7371 (clear_internalvar): Likewise.
7372 (show_convenience): Adding `TRY_CATCH' block.
7373 * value.h (internalvar_make_value): Delete, replace by...
7374 (struct internalvar_funcs): ... this.
7375 (create_internalvar_type_lazy) <fun>: Delete argument.
7376 (create_internalvar_type_lazy) <funcs>, <data>: New arguments.
7377 (compile_internalvar_to_ax): New function.
7378 * windows-tdep.c (tlb_make_value): New argument `ignore'.
7379 (tlb_funcs): New struct.
7380 (_initialize_windows_tdep): New argument when calling
7381 `create_internalvar_type_lazy'.
7382
91da1414
MW
73832012-04-27 Mark Wielaard <mjw@redhat.com>
7384
7385 * dwarf2read.c (dwarf2_get_pc_bounds): Check DW_AT_high_pc form to
7386 see whether it is an address or a constant offset from DW_AT_low_pc.
7387 (dwarf2_record_block_ranges): Likewise.
7388 (read_partial_die): Likewise.
7389
4ab9d8ec
MW
73902012-04-26 Mark Wielaard <mjw@redhat.com>
7391
7392 * MAINTAINERS (Write After Approval): Add myself to the list.
7393
a0911fd0
MR
73942012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
7395
7396 * proc-utils.h (proc_prettyprint_signalset): New prototype.
7397 (proc_prettyprint_signal): Likewise.
7398 (proc_prettyprint_faultset): Likewise.
7399 (proc_prettyprint_fault): Likewise.
7400 (proc_prettyprint_actionset): Likewise.
7401 (proc_prettyprint_flags): Move to new proc-flags.c section.
7402 (proc_prettyfprint_flags): New prototype.
7403 * procfs.c (proc_nsysarg, proc_sysargs): Add prototypes.
7404 (proc_syscall, proc_cursig): Likewise.
7405 (proc_set_kill_on_last_close): Likewise.
7406 (proc_unset_kill_on_last_close): Likewise.
7407 (proc_set_watchpoint): Make static.
7408 (proc_delete_dead_threads): Likewise.
7409 (procfs_set_watchpoint): Likewise.
7410 (_initialize_procfs): Add prototype.
7411 * proc-events.c: Include proc-utils.h.
7412 (init_syscall_table): Make static.
7413 * proc-api.c (_initialize_proc_api): Add prototype.
7414 * proc-flags.c: Include proc-utils.h.
7415
9009e1ae
MR
74162012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
7417
7418 * configure.ac: Add AC_ARG_PROGRAM.
7419 * configure: Regenerate.
7420
4fae6e18
JK
74212012-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
7422
7423 Fix DW_AT_lower_bound defaults for DWARF-4+.
7424 * dwarf2read.c (read_subrange_type): Remove initialization of low and
7425 high. New variable low_default_is_valid. Implement DWARF-4+
7426 DW_AT_lower_bound defaults. Print complaint for DW_AT_lower_bound with
7427 no default by the DWARF standard.
7428
14132e89 74292012-04-26 Maciej W. Rozycki <macro@mips.com>
f782ad9b 7430 Maciej W. Rozycki <macro@codesourcery.com>
14132e89
MR
7431
7432 * infrun.c (handle_inferior_event): Move the check for return
7433 trampolines ahead of the check for function trampolines.
7434 * mips-tdep.h (MIPS_S2_REGNUM, MIPS_GP_REGNUM): New macros.
7435 * mips-tdep.c (mips_str_mips16_call_stub): New variable.
7436 (mips_str_mips16_ret_stub): Likewise.
7437 (mips_str_call_fp_stub): Likewise.
7438 (mips_str_call_stub): Likewise.
7439 (mips_str_fn_stub): Likewise.
7440 (mips_str_pic): Likewise.
7441 (mips_in_frame_stub): New function.
7442 (mips_unwind_pc): Return the return address rather than the PC
7443 if the PC of an intermediate frame is inside a call thunk.
7444 (mips_is_stub_suffix): New function.
7445 (mips_is_stub_mode): Likewise.
7446 (mips_get_mips16_fn_stub_pc): Likewise.
7447 (mips_skip_mips16_trampoline_code): Update to handle all the
7448 currently generated stub types. Don't recurse into __fn_stub
7449 thunks. Remove heuristics to handle stubs beyond etext/_etext.
7450 Use cooked register accesses.
7451 (mips_in_return_stub): Reintroduce function.
7452 (mips_skip_trampoline_code): Traverse trampolines recursively.
7453 (mips_gdbarch_init): Handle MIPS16 return trampolines.
7454
518f0db5 74552012-04-26 Joel Brobecker <brobecker@adacore.com>
7456
7457 GDB 7.4.1 released.
7458
3184d3f9
JL
74592012-04-26 Jonathan Larmour <jifl@eCosCentric.com>
7460
7461 * arm-tdep.h (VFP_REGISTER_SIZE): Define.
7462 * features/arm-with-m-vfp-d16.xml: New file. Describes
7463 Cortex-M with VFPv4-sp-d16 FPU register layout.
7464 * features/Makefile (WHICH): Add arm-with-m-vfp-d16.
7465 * features/arm-with-m-vfp-d16.c: New. Generated from above.
7466 * arm-tdep.c: Include arm-with-m-vfp-d16.c.
7467 (arm-register_g_packet_guesses): Add vfp-d16 guess.
7468 (_initialise_arm_tdep): Initialize arm-with-m-vfp-d16 tdesc.
7469
b6201d44
DE
74702012-04-25 Doug Evans <dje@google.com>
7471
7472 * cli/cli-decode.c (print_doc_line): Use stream instead of
7473 current_uiout.
7474
4e2f8df6
SDJ
74752012-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
7476
7477 * features/arm-with-iwmmxt.c: Regenerate.
7478 * features/arm-with-m-fpa-layout.c: Likewise.
7479 * features/arm-with-m.c: Likewise.
7480 * features/arm-with-neon.c: Likewise.
7481 * features/arm-with-vfpv2.c: Likewise.
7482 * features/arm-with-vfpv3.c: Likewise.
7483 * features/mips-dsp-linux.c: Likewise.
7484 * features/mips-linux.c: Likewise.
7485 * features/mips64-dsp-linux.c: Likewise.
7486 * features/mips64-linux.c: Likewise.
7487 * features/s390-linux32.c: Likewise.
7488 * features/s390-linux32v1.c: Likewise.
7489 * features/s390-linux32v2.c: Likewise.
7490 * features/s390-linux64.c: Likewise.
7491 * features/s390-linux64v1.c: Likewise.
7492 * features/s390-linux64v2.c: Likewise.
7493 * features/s390x-linux64.c: Likewise.
7494 * features/s390x-linux64v1.c: Likewise.
7495 * features/s390x-linux64v2.c: Likewise.
7496 * features/tic6x-c62x-linux.c: Likewise.
7497 * features/tic6x-c62x.c: Likewise.
7498 * features/tic6x-c64x-linux.c: Likewise.
7499 * features/tic6x-c64x.c: Likewise.
7500 * features/tic6x-c64xp-linux.c: Likewise.
7501 * features/tic6x-c64xp.c: Likewise.
7502 * target-descriptions.c: Only generate `field_type' and `type'
7503 variables when needed.
7504
2def3e66
JB
75052012-04-25 Fredrik Hederstierna <fredrikh.hederstierna@securitas-direct.com>
7506
7507 * cli/cli-cmds.c (cd_command): Use memmove instead of strcpy.
7508
a766d390
DE
75092012-04-25 Doug Evans <dje@google.com>
7510
7511 Initial pass at Go language support.
7512 * NEWS: Mention Go.
7513 * Makefile.in (SFILES): Add go-exp.y, go-lang.c, go-typeprint.c,
7514 go-valprint.c.
7515 (COMMON_OBS): Add go-lang.o, go-val.print.o, go-typeprint.o.
7516 (YYFILES): Add go-exp.c.
7517 (YYOBJ): Add go-exp.o.
7518 (local-maintainer-clean): Delete go-exp.c.
7519 * defs.h (enum language): Add language_go.
7520 * dwarf2read.c: #include "go-lang.h".
7521 (fixup_go_packaging): New function.
7522 (process_full_comp_unit): Call it when processing Go CUs.
7523 (dwarf2_physname): Add Go support.
7524 (read_file_scope): Handle missing language spec for GNU Go.
7525 (set_cu_language): Handle DW_LANG_Go.
7526 * go-exp.y: New file.
7527 * go-lang.h: New file.
7528 * go-lang.c: New file.
7529 * go-typeprint.c: New file.
7530 * go-valprint.c: New file.
7531 * symtab.c: #include "go-lang.h".
7532 (symbol_set_language): Handle language_go.
7533 (symbol_find_demangled_name, symbol_set_names): Ditto.
7534 (symbol_natural_name, demangle_for_lookup, find_main_name): Ditto.
7535
4e2af517
JM
75362012-04-24 Jim Meyering <meyering@redhat.com>
7537
7538 avoid a few strncpy-induced buffer overruns
7539 * procfs.c (procfs_make_note_section): Be sure to NUL-terminate
7540 fname and psargs before trying to concatenate.
7541 * tui/tui-stack.c (tui_get_function_from_frame): NUL-terminate
7542 "name" before applying strchr.
7543
b77b7f52
SCR
75442012-04-25 Siva Chandra Reddy <sivachandra@google.com>
7545
7546 * CONTRIBUTE: Use unified diff instead of context diff when
7547 generating patches.
7548
6321c22a
MR
75492012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
7550
7551 * mips-tdep.c (mips_about_to_return): Remove dead MIPS16 support
7552 code. Handle JR.HB correctly.
7553
742c84f6
MR
75542012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
7555
7556 * mips-tdep.c
7557 (is_mips16_addr, unmake_mips16_addr, make_mips16_addr): Group
7558 with the other MIPS16 helpers.
7559
7fc7e0c3
SDJ
75602012-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
7561
7562 * observer.sh: Conditionally declare `args', thus cleaning up
7563 unused instances of this variable.
7564
20388dd6
YQ
75652012-04-24 Yao Qi <yao@codesourcery.com>
7566
7567 Revert this patch to allow breakpoint always-inserted
7568 in record target.
7569 2011-12-05 Pedro Alves <pedro@codesourcery.com>
f782ad9b
AS
7570 * breakpoint.c: Include record.h.
7571 (breakpoints_always_inserted_mode): Return false when the record
7572 target is in use.
20388dd6
YQ
7573
7574 * breakpoint.c (iterate_over_bp_locations): New.
7575 * breakpoint.h: Declare.
7576 New typedef walk_bp_location_callback.
7577 * record.c (record_open): Call record_init_record_breakpoints.
7578 (record_sync_record_breakpoints): New.
7579 (record_init_record_breakpoints): New.
7580 * NEWS: Mention supporting breakpoint always-inserted mode in
7581 record target.
7582
4734f50e
MK
75832012-04-24 Marc Khouzam <marc.khouzam@ericsson.com>
7584
7585 * mi/mi-main.c (mi_cmd_execute): Choose a live thread not just
7586 any thread.
7587
c326b90e
YQ
75882012-04-24 Yao Qi <yao@codesourcery.com>
7589
7590 * breakpoint.c (ep_is_catchpoint): Renamed to ...
7591 (is_catchpoint): ... it.
7592 (print_one_breakpoint_location): Caller update.
7593 * breakpoint.h: Update declaration.
7594
d8fb5a1e
DM
75952012-04-23 David S. Miller <davem@davemloft.net>
7596
7597 * configure.tgt (sparc-*-linux*): Set build_gdbserver to yes.
7598
34431a2a
TT
75992012-04-23 Tom Tromey <tromey@redhat.com>
7600
7601 * buildsym.c (add_free_pendings): Remove.
7602 * buildsym.h (add_free_pendings): Remove.
7603
4568ecf9
DE
76042012-04-23 Doug Evans <dje@google.com>
7605
7606 * dwarf2read.c (partial_die_full_name): Record DW_FORM_ref_addr in
7607 attr.u.unsnd instead of attr.u.addr.
7608 (read_attribute_value) Ditto for cases DW_FORM_ref_addr,
7609 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4, DW_FORM_reg8,
7610 DW_FORM_ref_udata.
7611 (dump_die_shallow): Update cases DW_FORM_ref_addr,
7612 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4. Add cases DW_FORM_ref8,
7613 DW_FORM_ref_udata.
7614 (dwarf2_get_ref_die_offset): Use DW_UNSND for reference attributes.
7615
dca9aa3a
MR
76162012-04-23 Maciej W. Rozycki <macro@codesourcery.com>
7617
7618 * mips-tdep.c (mips_n32n64_return_value): Fix coding style.
7619 (mips_o32_return_value): Likewise.
7620 (mips_o64_return_value): Likewise.
7621
c8ea1972
PH
76222012-04-21 Paul Hilfinger <hilfinger@adacore.com>
7623
7624 * ada-lang.c (ada_evaluate_subexp): Add cases for
f782ad9b
AS
7625 TYPE_CODE_INTERNAL_FUNCTION and for TYPE_GNU_IFUNC, following
7626 their treatment in eval.c.
c8ea1972 7627
8d1b3521
DM
76282012-04-21 David S. Miller <davem@davemloft.net>
7629
7630 * sparc-tdep.c (X_DISP10): Define.
7631 (sparc_analyze_control_transfer): Handle compare-and-branch.
7632
03145bf4
JL
76332012-04-21 Jonathan Larmour <jifl@eCosCentric.com>
7634
7635 * features/Makefile (WHICH): Add arm-with-m and arm-with-m-fpa-layout.
7636 * arm-tdep.c (arm_register_g_packet_guesses): Fix comment.
7637
004159a2 76382012-04-20 Nigel Stephens <nigel@mips.com>
f782ad9b 7639 Maciej W. Rozycki <macro@codesourcery.com>
004159a2
MR
7640
7641 * mips-tdep.c (mips_float_register_p): New function.
7642 (mips_convert_register_float_case_p): Use mips_float_register_p.
7643 (mips_register_type): Likewise.
7644 (mips_print_register): Likewise.
7645 (print_gp_register_row): Likewise.
7646 (mips_print_registers_info): Likewise.
7647
7f0e6aae
MR
76482012-04-20 Shun-Yen Lu <dark.asparagus@gmail.com>
7649
7650 * mips-tdep.c (mips_elf_make_msymbol_special): Fix identification
7651 of mips16 symbols.
7652
bc17beea
AP
76532012-04-20 Andrew Pinski <apinski@cavium.com>
7654
7655 * MAINTAINERS (Write After Approval): Add myself to the list.
7656
1730a5a5
SDJ
76572012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
7658
7659 * MAINTAINERS: Update my e-mail address.
7660
38ea300a
PA
76612012-04-20 Pedro Alves <palves@redhat.com>
7662
7663 * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Handle absolute
7664 $srcdir.
7665 * configure: Regenerate.
7666
111dfaae
SDJ
76672012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
7668
7669 * cp-support.h: Include `gdb_vecs.h'. Delete `const_char_ptr' VEC
7670 declaration.
7671 * gdb_vecs.h: Declare `const_char_ptr' VEC.
7672
4fb2c64a
JK
76732012-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
7674
7675 Fix compilation compatibility with python-2.4
7676 * python/py-type.c (convert_field): Cast ADDRSTRING for
7677 PyObject_SetAttrString as non-const. New comment.
7678
6328eb38
TT
76792012-04-19 Tom Tromey <tromey@redhat.com>
7680
7681 * top.c (quit_target): Use all_cleanups.
7682 * main.c (captured_command_loop): Use all_cleanups.
7683 * exceptions.c (throw_exception): Use all_cleanups.
7684
c971b7fa
PA
76852012-04-19 Pedro Alves <palves@redhat.com>
7686
7687 * Makefile.in (GNULIB_BUILDDIR): New.
7688 (LIBGNU, INCGNU, GNULIB_H): Adjust.
7689 (SUBDIRS): Add $(GNULIB_BUILDDIR).
7690 (CLEANDIRS). Remove gnulib/import.
7691 (REQUIRED_SUBDIRS): Replace gnulib/import with $(GNULIB_BUILDDIR).
7692 (all-lib): Ditto.
7693 (distclean): Remove the $(GNULIB_BUILDDIR) directory.
7694 (gnulib/import/Makefile): Replace gnulib/import with
7695 $(GNULIB_BUILDDIR). Set CONFIG_FILES to just Makefile.
7696 (ACLOCAL_AMFLAGS): Remove '-I gnulib/import/m4'.
7697 (aclocal_m4_deps): Remove the gnulib dependencies. Add
7698 acx_configure_dir.m4.
7699 * acinclude.m4: Include acx_configure_dir.m4.
7700 * acx_configure_dir.m4: New file.
7701 * aclocal.m4: Regenerate.
a09130f9
PA
7702 * configure.ac: Remove gl_EARLY, gl_INIT and AM_INIT_AUTOMAKE
7703 calls. Configure gnulib using ACX_CONFIGURE_DIR.
7704 (GNULIB): New variable.
7705 (GNULIB_STDINT_H): Adjust.
7706 (AC_OUTPUT): Don't output gnulib/Makefile.
7707 * gdb/defs.h: Include build-gnulib/config.h.
7708 * aclocal.m4: Regenerate.
7709 * config.in: Regenerate.
7710 * configure: Regenerate.
7711
7712 * gnulib/Makefile.in: New file.
7713 * gnulib/configure.ac: New file.
7714 * gnulib/aclocal.m4: New file.
7715 * gnulib/config.in: New file.
7716 * gnulib/configure: New file.
c971b7fa
PA
7717 * gnulib/: Re-run gnulib-tool to adjust.
7718
b10faa68
DE
77192012-04-19 Doug Evans <dje@google.com>
7720
7721 * cleanups.h (struct cleanup): Move to cleanups.c.
7722 (make_cleanup_dtor_ftype): New typedef.
7723 (make_cleanup_dtor): Use it.
7724 (ALL_CLEANUPS): Replace with ...
7725 (all_cleanups): ... this. Declare. All uses updated.
7726 * cleanups.c: #include "gdb_assert.h".
7727 (sentinel_cleanup): New static global.
7728 (SENTINEL_CLEANUP): Define.
7729 (cleanup_chain, final_cleanup_chain): Initialize to SENTINEL_CLEANUP.
7730 (make_my_cleanup2): Assert result is non-NULL.
7731 (all_cleanups): New function.
7732 (save_my_cleanups): Initialize new chain to SENTINEL_CLEANUP instead
7733 of NULL.
7734
d8c267cc
PA
77352012-04-19 Pedro Alves <palves@redhat.com>
7736
7737 * Makefile.in (HFILES_NO_SRCDIR): Remove gnulib/wchar.in.h.
7738 Adjust paths to gnulib imported files.
7739
809277f8
PA
77402012-04-19 Pedro Alves <palves@redhat.com>
7741
7742 * gnulib/: Move whole directory ...
7743 * gnulib/import/: ... here, and re-rerun gnulib-tool to adjust.
7744 * Makefile.in (LIBGNU, INCGNU, GNULIB_H, CLEANDIRS)
7745 (REQUIRED_SUBDIRS, all-lib, gnulib/Makefile, ACLOCAL_AMFLAGS)
7746 (aclocal_m4_deps): Adjust.
7747 * aclocal.m4: Regenerate.
7748 * configure: Regenerate.
7749 * configure.ac: Adjust AC_OUTPUT output.
7750
aad9eab9
YQ
77512012-04-19 Yao Qi <yao@codesourcery.com>
7752
7753 * Makefile.in (SFILES): Add common/vec.c and remove vec.c.
7754 (vec.o): New rule.
7755 * vec.c: Move it ...
7756 * common/vec.c: ... here.
7757 * vec.h: Move it ...
7758 * common/vec.h: ... here.
7759
48fe4669
YQ
77602012-04-19 Yao Qi <yao@codesourcery.com>
7761
7762 * gdb-code-style.el: New.
7763
770d76d7
PA
77642012-04-18 Pedro Alves <palves@redhat.com>
7765
7766 Update gnulib from latest git.
7767 (639ea5ae15e39fe48d43e04864b2997301e4b969)
7768
7769 * gnulib/Makefile.am: Update.
7770 * gnulib/dummy.c: Update.
7771 * gnulib/extra/arg-nonnull.h: Update.
7772 * gnulib/extra/c++defs.h: Update.
7773 * gnulib/extra/update-copyright: Update.
7774 * gnulib/extra/warn-on-use.h: Update.
7775 * gnulib/inttypes.in.h: Update.
7776 * gnulib/m4/00gnulib.m4: Update.
7777 * gnulib/m4/extensions.m4: Update.
7778 * gnulib/m4/gnulib-cache.m4: Update.
7779 * gnulib/m4/gnulib-common.m4: Update.
7780 * gnulib/m4/gnulib-comp.m4: Update.
7781 * gnulib/m4/gnulib-tool.m4: Update.
7782 * gnulib/m4/include_next.m4: Update.
7783 * gnulib/m4/inttypes-pri.m4: Update.
7784 * gnulib/m4/inttypes.m4: Update.
7785 * gnulib/m4/longlong.m4: Update.
7786 * gnulib/m4/memchr.m4: Update.
7787 * gnulib/m4/memmem.m4: Update.
7788 * gnulib/m4/mmap-anon.m4: Update.
7789 * gnulib/m4/multiarch.m4: Update.
7790 * gnulib/m4/onceonly.m4: Update.
7791 * gnulib/m4/stddef_h.m4: Update.
7792 * gnulib/m4/stdint.m4: Update.
7793 * gnulib/m4/string_h.m4: Update.
7794 * gnulib/m4/warn-on-use.m4: Update.
7795 * gnulib/m4/wchar_h.m4: Update.
7796 * gnulib/m4/wchar_t.m4: Update.
7797 * gnulib/m4/wint_t.m4: Update.
7798 * gnulib/memchr.c: Update.
7799 * gnulib/memmem.c: Update.
7800 * gnulib/stddef.in.h: Update.
7801 * gnulib/stdint.in.h: Update.
7802 * gnulib/str-two-way.h: Update.
7803 * gnulib/string.in.h: Update.
7804 * gnulib/wchar.in.h: Update.
7805
7806 * gnulib/extra/arg-nonnull.h: Delete.
7807 * gnulib/extra/c++defs.h: Delete.
7808 * gnulib/extra/warn-on-use.h: Delete.
7809 * gnulib/m4/wchar_h.m4: Delete.
7810 * gnulib/m4/wint_t.m4: Delete.
7811 * gnulib/wchar.in.h: Delete.
7812
7813 * gnulib/extra/snippets/arg-nonnull.h: New.
7814 * gnulib/extra/snippets/c++defs.h: New.
7815 * gnulib/extra/snippets/warn-on-use.h: New.
7816
7817 * aclocal.m4: Regenerate.
7818 * config.in: Regenerate.
7819 * configure: Regenerate.
7820 * gnulib/Makefile.in: Regenerate.
7821
174e088e
PA
78222012-04-18 Pedro Alves <palves@redhat.com>
7823
7824 Reimport the update-copyright module from gnulib
7825 (250b80067c1e1d8faa0c42fb572f721975b929c5).
7826
7827 * configure: Regenerate.
7828 * gnulib/Makefile.am: Update.
7829 * gnulib/Makefile.in: Regenerate.
7830 * gnulib/extra/update-copyright: Update.
7831 * gnulib/m4/gnulib-cache.m4: Update.
7832 * gnulib/m4/gnulib-comp.m4: Update.
7833
7f533142
JB
78342012-04-18 Tristan Gingold <gingold@adacore.com>
7835
7836 * configure.ac (aix): Put -lpthread into libs.
7837 * configure: Regenerate.
7838
001822aa
TT
78392012-04-18 Tom Tromey <tromey@redhat.com>
7840
7841 * linespec.c (convert_linespec_to_sals): Don't use
7842 SYMBOL_OBJ_SECTION.
7843 (compare_msymbols): Arguments are minsym_and_objfile, not
7844 minimal_symbol*. Don't use SYMBOL_OBJ_SECTION.
7845
db026a31
PA
78462012-04-18 Pedro Alves <palves@redhat.com>
7847
7848 Revert gnulib/ part of:
7849 2011-01-01 Joel Brobecker <brobecker@adacore.com>
7850 Copyright year update in most files (performed by copyright.sh).
7851
12df843f
JK
78522012-04-18 Jan Kratochvil <jan.kratochvil@redhat.com>
7853
7854 Fix 64-bit constants on 32-bit hosts.
7855 * dwarf2read.c (read_unsigned_leb128): Change declaration return type
7856 from unsigned long to ULONGEST.
7857 (read_signed_leb128): Change declaration return type from long to
7858 LONGEST.
7859 (dwarf2_const_value_attr): Change declaration parameter value from long
7860 to LONGEST.
7861 (dwarf2_compute_name): Change variable value from long to LONGEST.
7862 (read_unsigned_leb128): Change return type, variable result and some
7863 casts from unsigned long to ULONGEST.
7864 (read_signed_leb128): Change return type, variable result and some
7865 casts from long to LONGEST.
7866 (dwarf2_const_value_data, dwarf2_const_value_attr): Change parameter
7867 value from long to LONGEST.
7868 (dwarf2_const_value): Change variable value from long to LONGEST.
7869 * symmisc.c (print_symbol): Change SYMBOL_VALUE format strings to use
7870 plongest and hex_string.
7871 * symtab.h (struct general_symbol_info): Change ivalue from long to
7872 LONGEST, remove the comment.
7873 * tracepoint.c (validate_actionline, collect_symbol, scope_info):
7874 Change SYMBOL_VALUE format strings to use plongest and hex_string.
7875
14e75d8e
JK
78762012-04-18 Siddhesh Poyarekar <siddhesh@redhat.com>
7877
7878 PR symtab/7259:
7879 * ada-exp.y (convert_char_literal): Use TYPE_FIELD_ENUMVAL.
7880 * ada-lang.c (ada_discrete_type_high_bound)
ac4ea3c2
JK
7881 (ada_discrete_type_low_bound): Fix function comment. Use
7882 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
14e75d8e
JK
7883 (ada_identical_enum_types_p): Use TYPE_FIELD_ENUMVAL.
7884 (pos_atr, value_val_atr): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
7885 * ada-typeprint.c (print_enum_type): Change variable lastval to LONGEST.
7886 Use TYPE_FIELD_ENUMVAL.
7887 * ada-valprint.c (print_optional_low_bound, ada_print_scalar)
7888 (ada_val_print_1): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
7889 * c-typeprint.c (c_type_print_base): Move variable lastval to inner
7890 block, change it to LONGEST. Use TYPE_FIELD_ENUMVAL for
7891 TYPE_CODE_ENUM.
7892 * coffread.c (coff_read_enum_type): Use SET_FIELD_ENUMVAL.
7893 * dwarf2read.c (process_enumeration_scope): Likewise.
7894 * gdb-gdb.py (TypeFlagsPrinter): Use field.enumval instead of
7895 field.bitpos.
7896 (class StructMainTypePrettyPrinter): Support also
7897 FIELD_LOC_KIND_ENUMVAL.
7898 * gdbtypes.c (get_discrete_bounds): Use TYPE_FIELD_ENUMVAL for
7899 TYPE_CODE_ENUM.
7900 (recursive_dump_type): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
7901 (copy_type_recursive): Support also FIELD_LOC_KIND_ENUMVAL.
7902 * gdbtypes.h (enum field_loc_kind): New FIELD_LOC_KIND_ENUMVAL.
7903 (struct main_type.flds_bnds.fields.loc): Adjust bitpos comment. New
7904 field enumval.
7905 (struct main_type.flds_bnds.bields): Adjust loc_kind and bitsize to
7906 accommodate enumval.
7907 (struct call_site): Adjust loc_kind to accommodate enumval.
7908 (FIELD_ENUMVAL, FIELD_ENUMVAL_LVAL, SET_FIELD_ENUMVAL)
7909 (TYPE_FIELD_ENUMVAL): New macros.
7910 * m2-typeprint.c (m2_enum): Use TYPE_FIELD_ENUMVAL.
7911 * mdebugread.c (parse_symbol): Use TYPE_FIELD_ENUMVAL for
7912 TYPE_CODE_ENUM.
7913 * p-typeprint.c (pascal_type_print_base): Likewise.
7914 * python/lib/gdb/printing.py (class FlagEnumerationPrinter): Use
7915 enumval.
7916 * python/lib/gdb/types.py (make_enum_dict): Likewise.
7917 * python/py-type.c (convert_field): New variable addrstring. Use
7918 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
7919 (check_types_equal): Support also FIELD_LOC_KIND_ENUMVAL.
7920 * stabsread.c (read_enum_type): Use SET_FIELD_ENUMVAL.
7921 * typepint.c (print_type_scalar): Use TYPE_FIELD_ENUMVAL for
7922 TYPE_CODE_ENUM.
7923 * valprint.c (generic_val_print): Likewise.
7924
380bca97
DE
79252012-04-17 Doug Evans <dje@google.com>
7926
dcc07052
DE
7927 * dwarf2read.c (lookup_signatured_type): Return NULL instead of 0.
7928
380bca97
DE
7929 * dwarf2read.c: Whitespace fixes.
7930 (lookup_signatured_type): Tweak comment.
7931 (get_die_type_at_offset): Fix comment.
7932
ec92004f
JB
79332012-04-17 Joel Brobecker <brobecker@adacore.com>
7934
7935 * xcoffread.c (xcoff_secnum_to_sections): New function.
7936 (secnum_to_section, secnum_to_bfd_section): Reimplement
7937 using xcoff_secnum_to_sections. Rename "secnum" parameter
7938 into "n_scnum".
7939 (RECORD_MINIMAL_SYMBOL): Delete.
7940 (record_minimal_symbol): New function.
7941 (scan_xcoff_symtab): Replace uses of RECORD_MINIMAL_SYMBOL
7942 by call to record_minimal_symbol and set misc_func_recorded
7943 to 1. Set last_csect_sec to the XCOFF section index instead
7944 of GDB's section_offset index. Update calls to
7945 prim_record_minimal_symbol_and_info to pass the BFD section
7946 as well.
7947
40301fb7
JB
79482012-04-17 Joel Brobecker <brobecker@adacore.com>
7949
7950 * xcoffread.c (read_xcoff_symtab): Delete variables
7951 last_csect_val and last_csect_sec and associated code.
7952
e0088cfd
DE
79532012-04-17 Doug Evans <dje@google.com>
7954
58d5e2c3
DE
7955 * cleanups.c (make_my_cleanup,make_my_cleanup2): Make static.
7956 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
7957 * cleanups.h (make_my_cleanup,make_my_cleanup2): Delete
7958 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Delete.
7959
c27f5738
DE
7960 * cleanups.h: New file.
7961 * cleanups.c: New file.
7962 * Makefile.in (SFILES): Add cleanups.c.
7963 (HFILES_NO_SRCDIR): Add cleanups.h.
7964 (COMMON_OBS): Add cleanups.o.
7965 * defs.h (struct cleanup): Moved to cleanups.h.
7966 (do_cleanups,do_final_cleanups): Ditto.
7967 (discard_cleanups,discard_final_cleanups): Ditto
7968 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
7969 (save_cleanups,save_final_cleanups): Ditto.
7970 (restore_cleanups,restore_final_cleanups): Ditto.
7971 (null_cleanup): Ditto.
7972 (make_my_cleanup,make_my_cleanup2): Ditto.
7973 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
7974 * utils.c (cleanup_chain,final_cleanup_chain): Moved to cleanups.c.
7975 (do_cleanups,do_final_cleanups): Ditto.
7976 (discard_cleanups,discard_final_cleanups): Ditto
7977 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
7978 (save_cleanups,save_final_cleanups): Ditto.
7979 (restore_cleanups,restore_final_cleanups): Ditto.
7980 (null_cleanup): Ditto.
7981 (make_my_cleanup,make_my_cleanup2): Ditto.
7982 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
7983
e0088cfd
DE
7984 * utils.c (make_cleanup_freeargv): Use make_cleanup instead of
7985 make_my_cleanup.
7986 (make_cleanup_dyn_string_delete): Ditto.
7987 (make_cleanup_ui_file_delete): Ditto.
7988 (make_cleanup_ui_out_redirect_pop): Ditto.
7989 (make_cleanup_free_section_addr_info): Ditto.
7990 (make_cleanup_restore_integer): Ditto.
7991 (make_cleanup_unpush_target): Ditto.
7992 (make_cleanup_value_free_to_mark): Ditto.
7993 (make_cleanup_value_free): Ditto.
7994 (make_cleanup_free_so): Ditto.
7995
4dc84fd1
JK
79962012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7997
7998 New option "set debug auto-load".
7999 * NEWS: New commands "set debug auto-load" and "show debug auto-load".
8000 * auto-load.c (debug_auto_load, show_debug_auto_load: New.
8001 (auto_load_safe_path_vec_update)
8002 (filename_is_in_auto_load_safe_path_vec): Call fprintf_unfiltered
8003 if DEBUG_AUTO_LOAD.
8004 (file_is_auto_load_safe): New parameters debug_fmt and ....
8005 Call fprintf_unfiltered if DEBUG_AUTO_LOAD.
8006 (source_gdb_script_for_objfile): Extend the file_is_auto_load_safe
8007 caller by explanatory string.
8008 (_initialize_auto_load): Register "set debug auto-load".
8009 * auto-load.h (file_is_auto_load_safe): New parameters debug_fmt
8010 and ....
8011 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
8012 (try_thread_db_load_from_dir): Extend the file_is_auto_load_safe caller
8013 by explanatory string.
8014 * main.c (captured_main): Likewise.
8015 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
8016 (source_section_scripts): Likewise.
8017
bccbefd2
JK
80182012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8019
8020 New option "set auto-load safe-path".
8021 * NEWS: New commands "set auto-load safe-path"
8022 and "show auto-load safe-path".
8023 * auto-load.c: Include gdb_vecs.h, readline/tilde.h and completer.h.
8024 (auto_load_safe_path, auto_load_safe_path_vec)
8025 (auto_load_safe_path_vec_update, set_auto_load_safe_path)
8026 (show_auto_load_safe_path, add_auto_load_safe_path, filename_is_in_dir)
8027 (filename_is_in_auto_load_safe_path_vec, file_is_auto_load_safe): New.
8028 (source_gdb_script_for_objfile): New variable is_safe. Call
8029 file_is_auto_load_safe. Return if it is not.
8030 (struct loaded_script): New field loaded.
8031 (maybe_add_script): Add parameter loaded. Initialize SLOT with it.
8032 (print_script): Use LOADED indicator instead of FULL_PATH. Change
8033 output "Missing" to "No".
8034 (_initialize_auto_load): New variable cmd. Initialize
8035 auto_load_safe_path. Register "set auto-load safe-path",
8036 "show auto-load safe-path" and "add-auto-load-safe-path".
8037 * auto-load.h (maybe_add_script): Add parameter loaded.
8038 (file_is_auto_load_safe): New declaration.
8039 * config.in: Regenerate.
8040 * configure: Regenerate.
8041 * configure.ac: New parameters --with-auto-load-safe-path
8042 and --without-auto-load-safe-path.
8043 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
8044 (try_thread_db_load_from_dir): Check file_is_auto_load_safe first.
8045 * main.c (captured_main): Check file_is_auto_load_safe for
8046 LOCAL_GDBINIT.
8047 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile): New
8048 variable is_safe. Call file_is_auto_load_safe. Return if it is not.
8049 (source_section_scripts): Call file_is_auto_load_safe. Return if it is
8050 not.
8051
bf88dd68
JK
80522012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8053
8054 auto-load: Implementation.
8055 * NEWS: New descriptions for "info auto-load",
8056 "info auto-load gdb-scripts", "info auto-load python-scripts",
8057 "info auto-load local-gdbinit" and "info auto-load libthread-db".
8058 Deprecate "info auto-load-scripts", "set auto-load-scripts on|off"
8059 and "show auto-load-scripts". New description for "set auto-load",
8060 "show auto-load", "set auto-load gdb-scripts",
8061 "show auto-load gdb-scripts", "set auto-load python-scripts",
8062 "show auto-load python-scripts", "set auto-load local-gdbinit",
8063 "show auto-load local-gdbinit", "set auto-load libthread-db" and
8064 "show auto-load libthread-db".
8065 * auto-load.c: Remove include python/python-internal.h. Add includes
8066 exceptions.h, cli/cli-script.h, gdbcmd.h, cli/cli-decode.h and
8067 cli/cli-setshow.h.
8068 (GDB_AUTO_FILE_NAME, source_gdb_script_for_objfile)
8069 (auto_load_gdb_scripts, show_auto_load_gdb_scripts): New.
8070 (gdbpy_global_auto_load): Rename to ...
8071 (global_auto_load): ... here.
8072 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
8073 (auto_load_local_gdbinit_loaded, show_auto_load_local_gdbinit)
8074 (script_language_gdb, source_gdb_script_for_objfile): New.
8075 (struct loaded_script): New field language.
8076 (hash_loaded_script_entry, eq_loaded_script_entry): Calculate also
8077 LANGUAGE.
8078 (maybe_add_script): Add parameter language. Drop redundant
8079 entry.full_path initialization. Initialize entry.language and
8080 (*slot)->language.
8081 (auto_load_objfile_script): Change parameter suffix to language.
8082 Remove the call of maybe_add_script.
8083 Call language->source_script_for_objfile.
8084 (load_auto_scripts_for_objfile, struct collect_matching_scripts_data):
8085 New.
8086 (collect_matching_scripts): Adjust it for
8087 struct collect_matching_scripts_data.
8088 (auto_load_info_scripts_pattern_nl): New variable.
8089 (info_auto_load_scripts): Rename to ...
8090 (auto_load_info_scripts): ... here, add parameter language. Adjust it
8091 for struct collect_matching_scripts_data.
8092 (info_auto_load_gdb_scripts, info_auto_load_local_gdbinit)
8093 (set_auto_load_cmd, auto_load_set_cmdlist_get, show_auto_load_cmd)
8094 (auto_load_show_cmdlist_get, info_auto_load_cmd)
8095 (auto_load_info_cmdlist_get): New.
8096 (_initialize_auto_load): Move add_info of "auto-load-scripts" to
8097 python/py-auto-load.c. New installment for "set auto-load gdb-scripts",
8098 "info auto-load gdb-scripts", "set auto-load local-gdbinit" and
8099 "info auto-load local-gdbinit".
8100 * auto-load.h (struct script_language): New.
8101 (gdbpy_global_auto_load): Rename to ...
8102 (global_auto_load): ... here.
8103 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
8104 (auto_load_local_gdbinit_loaded): New declarations.
8105 (maybe_add_script): New parameter language.
8106 (auto_load_objfile_script): Change parameter suffix to language.
8107 (load_auto_scripts_for_objfile, auto_load_info_scripts_pattern_nl)
8108 (auto_load_info_scripts, auto_load_set_cmdlist_get)
8109 (auto_load_show_cmdlist_get, auto_load_info_cmdlist_get): New
8110 declarations.
8111 * linux-thread-db.c: Include auto-load.h and ctype.h.
8112 (auto_load_thread_db, show_auto_load_thread_db): New.
8113 (struct thread_db_info): New field filename.
8114 (delete_thread_db_info): Call xfree for FILENAME.
8115 (try_thread_db_load): Initialize FILENAME.
8116 (try_thread_db_load_from_pdir, try_thread_db_load_from_dir): Return
8117 if !AUTO_LOAD_THREAD_DB.
8118 (info_auto_load_libthread_db_compare, info_auto_load_libthread_db): New.
8119 (_initialize_thread_db): Install auto_load_thread_db
8120 as "set auto-load libthread-db" and install info_auto_load_libthread_db
8121 as "info auto-load libthread-db".
8122 * main.c (captured_main): Rename gdbpy_global_auto_load to
8123 global_auto_load. Initialize AUTO_LOAD_LOCAL_GDBINIT_PATHNAME and
8124 AUTO_LOAD_LOCAL_GDBINIT_LOADED.
8125 (print_gdb_help): Extend the help for 'local init file'.
8126 * python/py-auto-load.c: Remove a comment about gdb scripts extension.
8127 (GDBPY_AUTO_SECTION_NAME): Extend the comment it is Python specific.
8128 (auto_load_scripts): Rename to ...
8129 (auto_load_python_scripts): ... here, update the comment.
8130 (gdbpy_load_auto_script_for_objfile): New declaration.
8131 (show_auto_load_python_scripts, script_language_python)
8132 (gdbpy_load_auto_script_for_objfile): New.
8133 (source_section_scripts): Refactor the code.
8134 (load_auto_scripts_for_objfile): Rename to ...
8135 (gdbpy_load_auto_scripts_for_objfile): ... here, update the
8136 auto_load_objfile_script caller, drop GDBPY_GLOBAL_AUTO_LOAD checking.
8137 (info_auto_load_python_scripts): New.
8138 (gdbpy_initialize_auto_load): New variables cmd and cmd_name.
8139 Rename "set auto-load-scripts" to "set auto-load python-scripts".
8140 Register "set auto-load-scripts" as its deprecated alias. Register
8141 "info auto-load python-scripts". Register "info auto-load-scripts" as
8142 its deprecated alias.
8143 (load_auto_scripts_for_objfile): Rename to ...
8144 (gdbpy_load_auto_scripts_for_objfile): ... here.
8145 * python/python.h (load_auto_scripts_for_objfile): Rename to ...
8146 (gdbpy_load_auto_scripts_for_objfile): ... here.
8147
e2207b9a
JK
81482012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8149
8150 auto-load: Move files.
8151 * Makefile.in (SFILES): Add auto-load.c.
8152 (HFILES_NO_SRCDIR): Add auto-load.h.
8153 (COMMON_OBS): Add auto-load.o.
8154 (distclean): Change .gdbinit for gdb-gdb.gdb.
8155 * auto-load.c: New file, with parts from python/py-auto-load.c.
8156 * auto-load.h: New file, with parts from python/python.h.
8157 * configure: Regenerate.
8158 * configure.ac (AC_OUTPUT): Change .gdbinit for gdb-gdb.gdb.
8159 * gdb-gdb.gdb.in: New file, renamed from gdbinit.in.
8160 * gdbinit.in: Remove file, rename it to gdb-gdb.gdb.in.
8161 * main.c: Include auto-load.h.
8162 * python/py-auto-load.c: Move include filenames.h, gdb_regex.h,
8163 command.h, observer.h and progspace.h to auto-load.c. Add include
8164 auto-load.h.
8165 (gdbpy_global_auto_load, struct auto_load_pspace_info)
8166 (struct loaded_script, auto_load_pspace_data)
8167 (auto_load_pspace_data_cleanup, get_auto_load_pspace_data)
8168 (hash_loaded_script_entry, eq_loaded_script_entry)
8169 (init_loaded_scripts_info, get_auto_load_pspace_data_for_loading)
8170 (maybe_add_script): Move to auto-load.c.
8171 (source_section_scripts): Change maybe_add_script parameters passing,
8172 use script_not_found_warning_print.
8173 (clear_section_scripts, auto_load_objfile_script)
8174 (auto_load_new_objfile, loaded_script_ptr)
8175 (DEF_VEC_P (loaded_script_ptr), collect_matching_scripts, print_script)
8176 (sort_scripts_by_name, info_auto_load_scripts): Move to auto-load.c.
8177 (gdbpy_initialize_auto_load): Move auto_load_pspace_data,
8178 auto_load_new_objfile and info_auto_load_scripts initizations to
8179 auto-load.c.
8180 * python/python.h (gdbpy_global_auto_load): Move to auto-load.h.
8181
e4ab2fad
JK
81822012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8183
8184 Code cleanup.
8185 * charset.c (find_charset_names): Remove variables ix and elt.
8186 Use free_char_ptr_vec.
8187 * elfread.c (build_id_to_debug_filename): New variables debugdir_vec,
8188 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
8189 debugdir_end. New variable debugdir_len.
8190 * gdb_vecs.h (free_char_ptr_vec, make_cleanup_free_char_ptr_vec)
8191 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): New
8192 declarations.
8193 * progspace.c (clear_program_space_solib_cache): Remove variables ix
8194 and elt. Use free_char_ptr_vec.
8195 * source.c (add_path): Remove variables argv, arg and argv_index.
8196 New variables dir_vec, back_to, ix and name.
8197 Use dirnames_to_char_ptr_vec_append. Use freeargv instead of
8198 make_cleanup_freeargv. Remove variable separator. Simplify the code
8199 no longer expecting DIRNAME_SEPARATOR.
8200 (openp): Remove variable p, p1 and len. New variables dir_vec,
8201 back_to, ix and dir. Use dirnames_to_char_ptr_vec. Simplify the code
8202 no longer expecting DIRNAME_SEPARATOR.
8203 * symfile.c (find_separate_debug_file): New variables debugdir_vec,
8204 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
8205 debugdir_end.
8206 * utils.c (free_char_ptr_vec, do_free_char_ptr_vec)
8207 (make_cleanup_free_char_ptr_vec, dirnames_to_char_ptr_vec_append)
8208 (dirnames_to_char_ptr_vec): New functions.
8209
5ee4ed9f
JK
82102012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8211
8212 Code cleanup.
8213 * source.c (add_path): Remove always true conditional 'p == 0' and
8214 unindent its code block.
8215
f41f5e61
PA
82162012-04-17 Pedro Alves <palves@redhat.com>
8217
8218 * gdbtypes.h (FIELD_BITPOS): Rename to ...
8219 (FIELD_BITPOS_LVAL): ... this.
8220 (FIELD_BITPOS): New.
8221 (SET_FIELD_BITPOS): Adjust to use FIELD_BITPOS_LVAL.
8222 * dwarf2read.c (dwarf2_add_field): Use SET_FIELD_BITPOS.
8223 * gdbtypes.c (append_composite_type_field_aligned): Adjust to use
8224 SET_FIELD_BITPOS.
8225 * gnu-v3-abi.c (build_gdb_vtable_type): Adjust to use
8226 SET_FIELD_BITPOS.
8227 * stabsread.c (read_cpp_abbrev, read_one_struct_field)
8228 (read_baseclasses): Adjust to use SET_FIELD_BITPOS.
8229 * target-descriptions.c (tdesc_gdb_type): Adjust to use
8230 SET_FIELD_BITPOS.
8231
945b3a32
JK
82322012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8233
8234 Do not rely on FIELD_LOC_KIND_BITPOS being zero.
8235 * ada-lang.c (ada_template_to_fixed_record_type_1): Replace
8236 TYPE_FIELD_BITPOS used as lvalue by SET_FIELD_BITPOS.
8237 * gdbtypes.c (append_flags_type_flag): Likewise, twice.
8238 * jv-lang.c (java_link_class_type): Likewise, once.
8239 * stabsread.c (read_enum_type): Likewise.
8240
42476b70
YQ
82412012-04-16 Yao Qi <yao@codesourcery.com>
8242
8243 * common/agent.c (agent_run_command): Add one more parameter `len'.
8244 Update callers.
8245 * common/agent.h: Update declaration.
8246 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
8247 Update.
8248 (linux_child_static_tracepoint_markers_by_strid): Ditto.
8249
8264ba82
AG
82502012-04-14 Anton Gorenkov <xgsa@yandex.ru>
8251
8252 PR mi/13393
8253 * value.c (value_actual_type): New function.
8254 * value.h (value_actual_type): New declaration.
8255 * varobj.c (update_type_if_necessary): New function.
8256 (varobj_create): Call value_actual_type instead of
8257 value_type.
8258 (install_dynamic_child): distinct changed and type changed MI variable
8259 objects.
8260 (update_dynamic_varobj_children): Updated for install_dynamic_child
8261 change. All callers updated.
a09130f9 8262 (varobj_update): Support for MI variable object type change if
8264ba82
AG
8263 the value changed and RTTI is used to determine the type.
8264 (create_child_with_value): Call value_actual_type instead of
8265 value_type.
a09130f9 8266 (adjust_value_for_child_access): Extended with a new parameter which
8264ba82
AG
8267 specify whether the given value should be casted to enclosing type.
8268 All callers updated.
8269
55a8c076
YQ
82702012-04-14 Yao Qi <yao@codesourcery.com>
8271
8272 Import gnulib module inttypes from git
8273 (250b80067c1e1d8faa0c42fb572f721975b929c5)
8274 * Makefile.in (HFILES_NO_SRCDIR): Add gnulib/inttypes.in.h.
a09130f9
PA
8275 (aclocal_m4_deps): Add gnulib/m4/inttypes.m4 and
8276 gnulib/m4/inttypes-pri.m4
55a8c076
YQ
8277 * aclocal.m4, config.in, configure: Regenerated.
8278 * gnulib/Makefile.am: Update.
8279 * gnulib/Makefile.in: Update.
8280 * gnulib/m4/gnulib-cache.m4: Update.
8281 * gnulib/m4/gnulib-comp.m4: Update.
8282 * gnulib/inttypes.in.h: New.
8283 * gnulib/m4/inttypes-pri.m4: New.
a09130f9 8284 * gnulib/m4/inttypes.m4: New.
55a8c076 8285
ca7781d2
LM
82862012-04-13 Luis Machado <lgustavo@codesourcery.com>
8287
8288 * infrun.c (resume): Update PC address to the real PC after
8289 preparing to do displaced stepping.
8290
e319fa28
DE
82912012-04-12 Doug Evans <dje@google.com>
8292
8293 * dwarf2read.c (lookup_signatured_type): Remove arg "objfile", unused.
8294 All callers updated.
8295
15add3f5
MK
82962012-04-12 Mark Kettenis <kettenis@gnu.org>
8297
8298 * i386bsd-nat.c (_initialize_i386bsd_nat): Add missing prototype.
8299
52dc124a
DE
83002012-04-12 Doug Evans <dje@google.com>
8301
0e50663e
DE
8302 * dwarf2read.c (create_all_type_units): Renamed from
8303 create_debug_types_hash_table. All callers updated.
8304
52dc124a
DE
8305 * dwarf2read.c (create_signatured_type_table_from_index): Rename
8306 local type_sig to sig_type, type_offset to type_offset_in_tu.
8307 (hash_signatured_type): Renamed from hash_type_signature,
8308 all callers updated.
8309 (eq_signatured_type): Renamed from eq_type_signature,
8310 all callers updated.
8311 (create_debug_types_hash_table): Rename local type_sig to sig_type.
8312 (process_enumeration_scope): Ditto.
8313 (lookup_signatured_type_at_offset): Ditto.
8314 (load_full_type_unit, read_signatured_type): Ditto.
8315
248fd3bf
YQ
83162012-04-12 Yao Qi <yao@codesourcery.com>
8317
8318 * remote.c (async_remote_interrupt): Correct function name in
8319 debug message.
8320 (async_remote_interrupt_twice): Ditto.
8321
bc3aa6c3
DE
83222012-04-11 Yuanhui Zhang <asmwarrior@gmail.com>
8323
8324 * source.c (find_and_open_source): Consistently pass resulting
8325 full path through xfullpath.
8326
9e529e1d
JK
83272012-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8328
8329 Provide more specific displaced-stepping memory error message.
8330 * infrun.c (displaced_step_prepare): New variable status. Call
8331 target_read_memory instead of read_memory, provide more specific
8332 error message.
8333
82e0cec1
TG
83342012-04-11 Tristan Gingold <gingold@adacore.com>
8335
8336 PR gdb/13901
8337 * darwin-nat.c (darwin_execvp): Revert previous patch.
8338
d987a266
TG
83392012-04-11 Tristan Gingold <gingold@adacore.com>
8340
8341 PR gdb/13901
8342 * darwin-nat.c (darwin_resume_thread): Call darwin_set_sstep only
8343 in case of change.
8344
016b7430
TG
83452012-04-11 Tristan Gingold <gingold@adacore.com>
8346
8347 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
8348 warning.
8349
06fc020f
SCR
83502012-04-11 Siva Chandra Reddy <sivachandra@google.com>
8351
8352 New command 'explore' which helps explore values and types in
8353 scope.
8354 * NEWS: Add an entry about the new 'explore' command.
8355 * data-directory/Makefile.in: Add gdb/command/explore.py
8356 * python/lib/gdb/command/explore.py: Implemention of the 'explore'
a09130f9 8357 command using the GDB Python API.
06fc020f 8358
de0919f8 83592012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
34b192ce
MR
8360
8361 * mips-tdep.c (mips_skip_pic_trampoline_code): Correct sign
8362 extension in jump target calculation.
8363
de0919f8 83642012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
9e8da49c
MR
8365
8366 * mips-tdep.c (mips32_next_pc): Handle JALX.
8367
2f26ef89
YQ
83682012-04-10 Yao Qi <yao@codesourcery.com>
8369
8370 * Makefile.in (gnulib/Makefile): Remove duplicated dependency.
8371
2e505b66
YQ
83722012-04-10 Yao Qi <yao@codesourcery.com>
8373
8374 * Makefile.in (aclocal_m4_deps): Add gnulib/m4/gnulib-cache.m4
8375 and gnulib/m4/gnulib-tool.m4.
8376
0d99eb77
DE
83772012-04-10 Doug Evans <dje@google.com>
8378
8379 * dwarf2read.c (dwarf2_per_cu_data). Clarify comment.
8380 (load_partial_dies): Clarify comment.
8381 (find_partial_die): Support rereading type units.
8382 Clarify CU handling, if we know offset is in CU, don't search for the
8383 containing CU. Add comment regarding memory waste.
8384
9a82b8ff
L
83852012-04-10 H.J. Lu <hongjiu.lu@intel.com>
8386
8387 * features/Makefile (WHICH): Add i386/x32, i386/x32-linux,
8388 i386/x32-avx and i386/x32-avx-linux.
8389 (i386/x32-expedite): New.
8390 (i386/x32-linux-expedite): Likewise.
8391 (i386/x32-avx-expedite): Likewise.
8392 (i386/x32-avx-linux-expedite): Likewise.
8393 ($(outdir)/i386/x32.dat): Likewise.
8394 ($(outdir)/i386/x32-linux.dat): Likewise.
8395 ($(outdir)/i386/x32-avx.dat): Likewise.
8396 ($(outdir)/i386/x32-avx-linux.dat): Likewise.
8397
8398 * features/i386/x32-avx-linux.xml: New file.
8399 * features/i386/x32-avx.xml: Likewise.
8400 * features/i386/x32-core.xml: Likewise.
8401 * features/i386/x32-linux.xml: Likewise.
8402 * features/i386/x32.xml: Likewise.
8403
8404 * features/i386/x32-avx-linux.c: New. Generated.
8405 * features/i386/x32-avx.c: Likewise.
8406 * features/i386/x32-linux.c: Likewise.
8407 * features/i386/x32.c: Likewise.
8408 * regformats/i386/x32-avx-linux.dat: Likewise.
8409 * regformats/i386/x32-avx.dat: Likewise.
8410 * regformats/i386/x32-linux.dat: Likewise.
8411 * regformats/i386/x32.dat: Likewise.
8412
ee41036f
TG
84132012-04-10 Tristan Gingold <gingold@adacore.com>
8414
8415 * darwin-nat.c (darwin_kill_inferior): Always use the no ptrace
8416 code to kill the inferior.
8417
a7aa5b8a
MK
84182012-04-09 Mark Kettenis <kettenis@gnu.org>
8419
8420 * ada-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8421 defines.
8422 * c-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8423 defines.
a09130f9 8424 * cp-name-parser.y (yyss, yysslim, yyssp, yystacksize, yyvs)
a7aa5b8a
MK
8425 (yyvsp): New defines.
8426 * f-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8427 defines.
8428 * jv-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8429 defines.
8430 * m2-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8431 defines.
8432 * objc-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8433 defines.
8434 * p-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8435 defines.
8436
fb57d452
MK
84372012-04-09 Mark Kettenis <kettenis@gnu.org>
8438
a09130f9 8439 * sparc64-tdep.c (sparc64_store_arguments)
fb57d452
MK
8440 (sparc64_store_arguments): Fix coding style.
8441
cdc7b32f
MK
84422012-04-07 Mark Kettenis <kettenis@gnu.org>
8443
8444 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
8445 complex floats, adjust some related comments and tighten a related
8446 assertion.
8447 (sparc64_extract_return_value): Handle complex floats.
8448
7adf1e79
DE
84492012-04-07 Doug Evans <dje@google.com>
8450
8451 * dwarf2read.c (load_partial_dies): Change condition to assert.
8452
50f1ae7b
DE
84532012-04-06 Doug Evans <dje@google.com>
8454
8455 * amd64-tdep.c (amd64_analyze_prologue): Recognize both variations of
8456 "mov %rsp,%rbp".
8457
55fa75c3
KB
84582012-04-05 Kevin Buettner <kevinb@redhat.com>
8459
8460 * v850-tdep.c (E_NUM_OF_V850_REGS, E_NUM_OF_V850E_REGS): Fix
8461 fencepost error.
8462 (v850_frame_cache): Use gdbarch_num_regs() instead of E_NUM_REGS.
8463 (v850_gdbarch_init): Set `num_regs' as appropriate for the
8464 architecture.
8465
40e084e1
KS
84662012-04-05 Keith Seitz <keiths@redhat.com>
8467
8468 * linespec.c (decode_compound): Remove.
8469 (enum offset_relative_sign): New enum.
8470 (struct line_offset): New struct.
8471 (struct linespec): New struct.
8472 (struct linespec_state): Move file_symtabs,
8473 user_filename, and user_function into struct linespec.
8474 Make result an anonymous struct holding vectors of
8475 symbolp and minsym_and_objfile_d.
8476 Add language member.
8477 (enum ls_token_type): New enum.
8478 (linespec_keywords): New array.
8479 (struct ls_token): New struct.
8480 (struct ls_parser): New struct.
8481 (linespec_lexer_lex_number): New function.
8482 (linespec_lexer_lex_keyword): New function.
8483 (is_ada_operator): New function.
8484 (skip_quote_char): New function.
8485 (copy_token_string): New function.
8486 (is_closing_quote_enclosed): New function.
8487 (find_parameter_list_end): New function.
8488 (linespec_lexer_lex_string): New function.
8489 (linespec_lexer_lex_one): New function.
8490 (linespec_lexer_consume_token): New function.
8491 (linespec_lexer_peek_token): New function.
8492 (cplusplus_error): Remove unused function.
8493 (find_methods): Update comment.
8494 (find_toplevel_char): Return const.
8495 (is_objc_method_format): Remove unused function.
8496 (find_toplevel_string): New function.
8497 (is_linespec_boundary): Remove.
8498 (symbol_not_found_error): New function.
8499 (find_method_overload_end): Remove function.
8500 (unexpected_linespec_error): New function.
8501 (keep_name_info): Remove.
8502 (linespec_parse_line_offset): New function.
8503 (linespec_parse_basic): New function.
8504 (canonicalize_linespec): New function.
8505 (decode_line_internal): Remove.
8506 (create_sals_line_offset): New function adapted from
8507 decode_all_digits.
8508 (convert_linespec_to_sals): New function.
8509 (parse_linespec): New function.
8510 (linespec_parser_new): New function.
8511 (linespec_state_destructor): Change parameter type to
8512 struct linespec_state *.
8513 Add language parameter.
8514 Remove freeing of moved members.
8515 (linespec_parser_delete): New function.
8516 (decode_line_full): Use parse_linespec and linespec_parser_new.
8517 (decode_line_1): Likewise.
8518 (decode_indirect): Rename to ...
8519 (linespec_expression_to_pc): ... this and rewrite
8520 to simply find CORE_ADDR, storing this result for later
8521 conversion to SALs.
8522 (locate_first_half): Remove.
8523 (deocde_objc): Add parameter LS.
8524 Initialize new struct collect_info members.
8525 Handle minimal symbols, too.
8526 (decode_compound): Delete.
8527 (lookup_prefix_sym): Rewrite.
8528 (compare_msymbols): New function.
8529 (find_method): Rewrite.
8530 Do not call cplusplus_error.
8531 (symtabs_from_filename): Rewrite.
8532 (collect_function_symbols): Delete.
8533 (find_function_symbols): Rewrite without ARGPTR-style
8534 processing.
8535 (decode_all_digits): Delete. (Rewritten as create_sals_line_offset.)
8536 (decode_dollar): Adapted and renamed to ...
8537 (linespec_parse_variable): ... this.
8538 (find_linespec_symbols): New function.
8539 (decode_label): Adapted and renamed to ...
8540 (find_label_symbols): ... this.
8541 (decode_digits_list_mode): Add and use LS argument.
8542 (decode_digits_ordinary): Likewise.
8543 (collect_symbols): Do not collect SALs, just symbols and msymbols.
8544 If in list mode, allow any symbol class. Otherwise, only
8545 permit LOC_BLOCK symbols.
8546 (minsym_found): Update comments.
8547 (search_minsyms_for_name): Do not convert the matching symbol
8548 into a SAL. Simply push the symbol and objfile into the
8549 result vector.
8550 (decode_variable): Delete. Contents adapted into
8551 find_linespec_symbols.
8552
8553 * cp-support.c (SKIP_SPACE): Remove.
8554 (operator_tokens): Remove unused global.
8555 (cp_validate_operator): Remove.
8556 * cp-support.h (cp_validate_operator): Remove declaration.
8557
a72c8f6a
JK
85582012-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8559
8560 * cp-valprint.c (cp_print_value_fields): Check valprint_check_validity
8561 for TYPE_VPTR_FIELDNO.
8562 * valprint.c (valprint_check_validity): Make it global, move the
8563 function comment ...
8564 * value.h (valprint_check_validity): ... to this new declaration.
8565
cf9bb588
TG
85662012-04-02 Tristan Gingold <gingold@adacore.com>
8567
8568 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Use
8569 the STATE32 api for i386 state.
8570 (i386_darwin_store_inferior_registers): Likewise.
8571
17092398
TG
85722012-04-02 Tristan Gingold <gingold@adacore.com>
8573
8574 * i386-darwin-tdep.c (i386_darwin_thread_state_reg_offset): Fix
8575 SS offset.
8576 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
8577 format_string.
8578
ece0061f
TG
85792012-04-02 Tristan Gingold <gingold@adacore.com>
8580
8581 PR gdb/13901
d987a266 8582 * darwin-nat.c (darwin_execvp): Set binary preference.
ece0061f 8583
cf65ecd3
JK
85842012-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8585
8586 * NEWS (set breakpoint condition-evaluation): Use imperative mood.
8587
9bc3523d
TT
85882012-03-30 Tom Tromey <tromey@redhat.com>
8589
8590 * python/python.c (gdbpy_decode_line): Move cleanup creation out
8591 of TRY_CATCH. Fix error handling.
8592 * python/py-value.c (convert_value_from_python): Move 'old'
8593 declaration to innermost scope.
8594
b1ed564a
JB
85952012-03-29 Joel Brobecker <brobecker@adacore.com>
8596 Andrey Smirnov <andrew.smirnov@gmail.com>
8597
8598 -Wshadow warning fix.
8599 * ada-lang.c (ada_make_symbol_completion_list): Rename parameters
8600 "wild_match" and "encoded" into "wild_match_p" and "encoded_p".
8601 Adjust code accordingly.
8602
cb8e9b97
JB
86032012-03-29 Joel Brobecker <brobecker@adacore.com>
8604
8605 * ada-lang.c (symbol_completion_add): Rename parameter
8606 "encoded" into "encoded_p". Ajust code and documentation
8607 accordingly.
8608
c0af1706
JB
86092012-03-29 Joel Brobecker <brobecker@adacore.com>
8610 Andrey Smirnov <andrew.smirnov@gmail.com>
8611
8612 -Wshadow warning fix.
8613 * ada-lang.c (symbol_completion_add): Rename parameter
8614 "wild_match" into wild_match_p. Update code and documentation
8615 accordingly.
8616
6ea35997
JB
86172012-03-29 Joel Brobecker <brobecker@adacore.com>
8618
8619 * ada-lang.c (symbol_completion_match): Rename parameter
8620 "encoded" into "encoded_p". Ajust code and documentation
8621 accordingly.
8622
e701b3c0
JB
86232012-03-29 Joel Brobecker <brobecker@adacore.com>
8624 Andrey Smirnov <andrew.smirnov@gmail.com>
8625
8626 -Wshadow warning fix.
8627 * ada-lang.c (symbol_completion_match): Rename parameter
8628 "wild_match" into "wild_match_p". Adjust code and function
8629 documentation accordingly.
8630
5e2336be
JB
86312012-03-29 Joel Brobecker <brobecker@adacore.com>
8632 Andrey Smirnov <andrew.smirnov@gmail.com>
8633
8634 -Wshadow warning fix.
8635 * ada-lang.c (ada_lookup_encoded_symbol): Rename parameter
8636 "symbol_info" into "info". Adjust code accordingly.
8637 (ada_lookup_symbol): Likewise.
8638
9f88c959
JB
86392012-03-29 Joel Brobecker <brobecker@adacore.com>
8640
8641 * ada-lang.c (ada_lookup_symbol_list): Minor reformatting
8642 of this function's documentation.
8643
82ccd55e
JB
86442012-03-29 Joel Brobecker <brobecker@adacore.com>
8645 Andrey Smirnov <andrew.smirnov@gmail.com>
8646
8647 -Wshadow warning fix.
8648 * ada-lang.c (ada_lookup_symbol_list): Rename "wild_match"
8649 variable into "wild_match_p". Adjust code accordingly.
8650
d0a8ab18
JB
86512012-03-29 Joel Brobecker <brobecker@adacore.com>
8652 Andrey Smirnov <andrew.smirnov@gmail.com>
8653
8654 -Wshadow warning fix.
8655 * ada-lang.c (ada_add_local_symbols): Rename "wild_match"
8656 parameter into "wild_match_p". Adjust code accordingly.
8657 Document this parameter in the function description.
8658
48b78332
JB
86592012-03-29 Joel Brobecker <brobecker@adacore.com>
8660 Andrey Smirnov <andrew.smirnov@gmail.com>
8661
8662 -Wshadow warning fix.
8663 * ada-lang.c (add_symbols_from_enclosing_procs): Rename
8664 "wild_match" parameter to "wild_match_p" (-Wshadow).
8665
2e6e0353
JB
86662012-03-29 Joel Brobecker <brobecker@adacore.com>
8667
8668 * ada-lang.c (ada_lookup_simple_minsym): Remove trailing spaces
8669 in function documentation.
8670
dc4024cd
JB
86712012-03-29 Joel Brobecker <brobecker@adacore.com>
8672 Andrey Smirnov <andrew.smirnov@gmail.com>
8673
8674 -Wshadow warning fix.
8675 * ada-lang.c (ada_lookup_simple_minsym): Rename wild_match local
8676 variable into wild_match_p. Adjust code accordingly.
8677
6c88661c
JB
86782012-03-29 Joel Brobecker <brobecker@adacore.com>
8679 Andrey Smirnov <andrew.smirnov@gmail.com>
8680
8681 * ada-valprint.c (ada_val_print_1): Move the code handling
8682 TYPE_CODE_ENUM inside its own lexical block. Declare
8683 variables len and val there, instead of in the function's
8684 top level block. Avoid declaring deref_val again in a way
8685 that shadows another variable of the same name declared
8686 in one of the up-level blocks. Just re-use the up-level
8687 variable instead.
8688
4e5c77fe
JB
86892012-03-29 Joel Brobecker <brobecker@adacore.com>
8690
8691 * ada-lang.c (ada_lookup_encoded_symbol): Now returns void.
8692 Replace block_found argument by symbol_info. Adjust
8693 implementation accordingly. Add function documentation.
8694 (ada_lookup_symbol): Adjust to new ada_lookup_encoded_symbol.
8695 Fix documentation.
8696 * ada-lang.h (ada_lookup_encoded_symbol): Update declaration.
8697 * ada-exp.y (write_object_renaming): Adjust to new
8698 ada_lookup_encoded_symbol API.
8699
1c0ac8c7
JB
87002012-03-29 Joel Brobecker <brobecker@adacore.com>
8701
8702 * ada-lang.h (struct ada_symbol_info): Reformat. Improve
8703 documentation.
8704
2aaed979
KB
87052012-03-28 Rathish C <rathish.c@kpitcummins.com>
8706
8707 * v850-tdep.c: Add the enum values for mpu and fpu registers.
8708 (v850_register_name): Add the mpu and fpu register names.
8709 (v850e_register_name): Add the mpu and fpu register names.
8710 (v850e2_register_name): New function.
a09130f9 8711 (v850_gdbarch_init): Add case for bfd_mach_v850e2 and
2aaed979
KB
8712 bfd_mach_v850e2v3.
8713
927fbba6
JB
87142012-03-28 Joel Brobecker <brobecker@adacore.com>
8715
8716 * NEWS: Add entry for Ada varobj support.
8717
d32cafc7
JB
87182012-03-28 Joel Brobecker <brobecker@adacore.com>
8719
8720 * varobj.c (default_value_is_changeable_p): New function,
8721 extracted from varobj_value_is_changeable_p. Add declaration.
8722 (ada_value_is_changeable_p): New function, extracted from
8723 varobj_value_is_changeable_p. Add declaration.
8724 (struct language_specific): New field "value_is_changeable_p".
8725 (languages): Add entries for new field.
8726 (varobj_create): Set language before calling install_new_value.
8727 (varobj_value_is_changeable_p): Reimplement to call the varobj's
8728 "value_is_changeable_p" language callback.
8729
181875a4
JB
87302012-03-28 Joel Brobecker <brobecker@adacore.com>
8731
8732 * ada-varobj.h, ada-varobj.c: New files.
8733 * Makefile.in (SFILES): Add ada-varobj.c.
8734 (HFILES_NO_SRCDIR): Add ada-varobj.h.
8735 (COMMON_OBS): Add ada-varobj.o.
8736
7a290c40
JB
87372012-03-28 Joel Brobecker <brobecker@adacore.com>
8738
8739 * varobj.c (ada_value_has_mutated): Add declaration. New function.
8740 (struct language_specific): New field "value_has_mutated".
8741 (languages): Set field "value_has_mutated" in each entry of array.
8742 (varobj_value_has_mutated): New function.
8743 (varobj_udpdate): Add handling of type mutation.
8744 (value_of_root): Add handling of type mutation.
8745 (ada_value_has_mutated): New function.
8746
ca9b8b9c
PA
87472012-03-28 Pedro Alves <palves@redhat.com>
8748
8749 * ia64-linux-nat.c (supply_fpregset, ia64_linux_fetch_register):
8750 Always supply $fr0 as 0.0 and $fr1 as 1.0.
8751
cc0265cd
TT
87522012-03-28 Tom Tromey <tromey@redhat.com>
8753
8754 * python/py-inferior.c (infpy_read_memory): Remove cleanups and
8755 explicitly free 'buffer' on exit paths. Decref 'membuf_object'
8756 before returning.
8757
3ad2ec6f
TT
87582012-03-28 Tom Tromey <tromey@redhat.com>
8759
8760 * .dir-locals.el: New file.
8761
4a6510ba
PA
87622012-03-28 Pedro Alves <palves@redhat.com>
8763
8764 * ia64-linux-nat.c (u_offsets): Map IA64_EC_REGNUM to PT_AR_EC.
8765
5a75128f
JB
87662012-03-28 Joel Brobecker <brobecker@adacore.com>
8767
8768 * ia64-linux-nat.c (ia64_linux_fetch_register): Add special
8769 handling for r0.
8770
f99d8bf4
PA
87712012-03-27 Pedro Alves <palves@redhat.com>
8772
8773 Eliminate struct ui_stream.
8774
8775 * ui-out.h (struct ui_stream): Delete.
8776 (ui_out_field_stream): Adjust prototype.
8777 (ui_out_stream_new, ui_out_stream_delete)
8778 (make_cleanup_ui_out_stream_delete): Delete declarations.
8779 * ui-out.c (ui_out_field_stream): Change prototype to take a
8780 ui_file instead of a ui_stream. Adjust.
8781 (ui_out_stream_new, ui_out_stream_delete, do_stream_delete)
8782 (make_cleanup_ui_out_stream_delete): Delete.
8783 * breakpoint.c (print_breakpoint_location)
8784 (print_one_detail_ranged_breakpoint, print_it_watchpoint): Use
8785 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
8786 * disasm.c (dump_insns): Ditto.
8787 (do_mixed_source_and_assembly, do_assembly_only): Adjust
8788 prototype.
8789 (gdb_disassembly): Use ui_file/mem_fileopen instead of
8790 ui_stream/ui_out_stream_new.
8791 * infcmd.c (print_return_value): Ditto.
8792 * osdata.c (info_osdata_command): Don't allocate a local
8793 ui_stream.
8794 * stack.c (print_frame_arg, print_frame_args, print_frame): Use
8795 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
8796 * tracepoint.c (print_one_static_tracepoint_marker): Don't
8797 allocate a local ui_stream.
8798 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_file/mem_fileopen
8799 instead of ui_stream/ui_out_stream_new.
8800 (list_args_or_locals): Don't allocate a local ui_stream.
8801 * mi/mi-main.c (get_register, mi_cmd_data_evaluate_expression)
8802 (mi_cmd_data_read_memory): Use ui_file/mem_fileopen instead of
8803 ui_stream/ui_out_stream_new.
8804 * cli/cli-setshow.c (do_setshow_command): Ditto.
8805
6350a066 88062012-03-27 Oza Pawandeep <oza.pawandeep@gmail.com>
72508ac0 8807
6350a066
PA
8808 * arm-linux-tdep.c (arm_linux_init_abi): Call
8809 set_gdbarch_process_record. Initialize `arm_swi_record' field.
8810 * arm-tdep.c (arm_process_record): New function.
8811 (deallocate_reg_mem): New function.
8812 (decode_insn): New function.
8813 (thumb_record_branch): New function.
8814 (thumb_record_ldm_stm_swi(): New function.
8815 (thumb_record_misc): New function.
8816 (thumb_record_ld_st_stack): New function.
8817 (thumb_record_ld_st_imm_offset): New function.
8818 (thumb_record_ld_st_reg_offset(): New function.
8819 (thumb_record_add_sub_cmp_mov): New function.
8820 (thumb_record_shift_add_sub): New function.
8821 (arm_record_coproc_data_proc): New function.
8822 (arm_record_coproc): New function.
8823 (arm_record_b_bl): New function.
8824 (arm_record_ld_st_multiple): New function.
8825 (arm_record_ld_st_reg_offset): New function.
8826 (arm_record_ld_st_imm_offset): New function.
8827 (arm_record_data_proc_imm): New function.
8828 (arm_record_data_proc_misc_ld_str): New function.
8829 (arm_record_extension_space): New function.
8830 (arm_record_strx): New function.
8831 (sbo_sbz): New function.
8832 (struct insn_decode_record): New structure for arm insn record.
8833 (REG_ALLOC): New macro for reg allocations.
8834 (MEM_ALLOC): New macro for memory allocations.
8835 * arm-tdep.h (struct gdbarch_tdep): New field 'arm_swi_record'.
72508ac0 8836
89e028e2
AS
88372012-03-27 Andreas Schwab <schwab@linux-m68k.org>
8838
8839 * m68klinux-nat.c (fetch_register): Fix strict-aliasing violation.
8840 (store_register): Likewise.
8841
6350a066 88422012-03-26 Oza Pawandeep <oza.pawandeep@gmail.com>
3d9a9eb0 8843
6350a066 8844 * MAINTAINERS (Write After Approval): Add myself to the list.
3d9a9eb0 8845
5b43fab2
JK
88462012-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
8847
8848 * NEWS (set breakpoint condition-evaluation): Change "gdb" to "host".
8849 Describe also the option "auto".
8850
b5453b95
RH
88512012-03-22 Richard Henderson <rth@redhat.com>
8852
8853 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Fix prototype.
8854 * sparc-nat.c (sparc_xfer_wcookie): Make static.
8855
227ee7fc
RH
88562012-03-22 Richard Henderson <rth@redhat.com>
8857
8858 * jit.c (jit_read_code_entry): Compute alignment and offset of
8859 int64_t member before computing entry_size.
8860
7b282c5a
SCR
88612012-03-22 Siva Chandra Reddy <sivachandra@google.com>
8862
8863 Python scripting: Add new method Value.referenced_value to
8864 gdb.Value which can dereference pointer as well as reference
8865 values.
8866 * NEWS: Add entry under 'Python scripting' about the new method
8867 Value.referenced_value on gdb.Value objects.
8868 * python/py-value.c (valpy_referenced_value): New function
8869 defining a new method on gdb.Value objects which can dereference
8870 pointer and reference values.
8871
0c83539f
SCR
88722012-03-22 Siva Chandra Reddy <sivachandra@google.com>
8873
8874 * MAINTAINERS (Write After Approval): Add myself to the list.
8875
7ccffd7c
KB
88762012-03-21 Kevin Buettner <kevinb@redhat.com>
8877
8878 * symtab.c (skip_prologue_sal): Change test to check for "main()"
8879 in addition to "main".
8880
bd0b9f9e
JB
88812012-03-21 Joel Brobecker <brobecker@adacore.com>
8882
8883 * expression.h (op_name): Add declaration.
8884 * expprint.c (op_name): Remove declaration. Make non-static.
8885 * ax-gdb.c (gen_expr): Use op_name instead of op_string.
8886
a5362b9a
TS
88872012-03-21 Thomas Schwinge <thomas@codesourcery.com>
8888
8889 * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Use siginfo_t instead
8890 of struct siginfo.
8891 * arm-linux-nat.c (arm_linux_stopped_data_address): Likewise.
8892 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
8893 * linux-nat.c (linux_nat_siginfo_fixup, siginfo_fixup)
8894 (linux_xfer_siginfo, linux_nat_set_siginfo_fixup)
8895 (linux_nat_get_siginfo): Likewise.
8896 * linux-nat.h (struct lwp_info, linux_nat_set_siginfo_fixup)
8897 (linux_nat_get_siginfo): Likewise.
8898 * linux-tdep.c (linux_get_siginfo_type): Likewise.
8899 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Likewise.
8900 * procfs.c (gdb_siginfo_t): Likewise.
8901
adcadaab
MF
89022012-03-21 Mike Frysinger <vapier@gentoo.org>
8903
8904 * .gitignore: Ignore more files.
8905
e278ad5b
PA
89062012-03-20 Pedro Alves <palves@redhat.com>
8907
8908 * remote.c (remote_start_remote): Clear `rs->starting_up' on early
8909 returns.
8910
741e63d7
YQ
89112012-03-20 Yao Qi <yao@codesourcery.com>
8912
8913 * amd64-tdep.c (amd64_displaced_step_copy_insn): Complete missing "}" in
8914 comment.
8915
b64f50a1
JK
89162012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
8917
8918 Code cleanupp: Use cu_offset and sect_offset compile time type checking.
8919 * dwarf2expr.c (add_piece, dwarf_get_base_type, execute_stack_op)
8920 (ctx_no_dwarf_call, ctx_no_get_base_type): Use cu_offset and
8921 sect_offset.
8922 * dwarf2expr.h (cu_offset, sect_offset): New types.
8923 (struct dwarf_expr_context_funcs) <dwarf_call>
8924 (struct dwarf_expr_context_funcs) <get_base_type>: Use cu_offset and
8925 sect_offset.
8926 (struct dwarf_expr_context) <len>: Improve the comment.
8927 (struct dwarf_expr_piece, ctx_no_dwarf_call, ctx_no_get_base_type): Use
8928 cu_offset and sect_offset.
8929 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call)
8930 (dwarf_expr_get_base_type, needs_frame_dwarf_call)
8931 (dwarf2_compile_expr_to_ax, disassemble_dwarf_expression): Likewise.
8932 * dwarf2loc.h: Include dwarf2expr.h.
8933 (dwarf2_fetch_die_location_block, dwarf2_get_die_type): Use cu_offset
8934 and sect_offset.
8935 * dwarf2read.c (struct dwarf2_per_objfile) <debug_types_type_hash>:
8936 Improve the comment.
8937 (struct comp_unit_head, struct dwarf2_cu, struct dwarf2_per_cu_data)
8938 (struct signatured_type, struct line_header, struct partial_die_info)
8939 (struct die_info, find_partial_die, dwarf2_get_ref_die_offset)
8940 (lookup_signatured_type_at_offset, dwarf2_find_containing_comp_unit)
8941 (get_die_type_at_offset, create_cus_from_index)
8942 (create_signatured_type_table_from_index, dw2_get_file_names)
8943 (offset_in_cu_p, read_comp_unit_head, error_check_comp_unit_head)
8944 (read_and_check_comp_unit_head, read_and_check_type_unit_head)
8945 (create_debug_types_hash_table, process_psymtab_comp_unit)
8946 (load_partial_comp_unit, create_all_comp_units)
8947 (partial_die_parent_scope, partial_die_full_name, skip_one_die)
8948 (load_full_comp_unit, dwarf2_physname, read_import_statement)
8949 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
8950 (dwarf2_add_member_fn, process_enumeration_scope, read_module_type)
8951 (read_typedef, die_hash, die_eq, read_full_die, dwarf2_read_abbrevs)
8952 (load_partial_dies, read_partial_die, find_partial_die_in_comp_unit)
8953 (find_partial_die, read_attribute_value, lookup_die_type)
8954 (dump_die_shallow, store_in_ref_table): Use cu_offset and sect_offset.
8955 (is_ref_attr): New function comment.
8956 (dwarf2_get_ref_die_offset): New function comment, new variable retval.
8957 Use cu_offset and sect_offset.
8958 (follow_die_offset, follow_die_ref, dwarf2_fetch_die_location_block)
8959 (dwarf2_get_die_type, follow_die_sig, lookup_signatured_type_at_offset)
8960 (load_full_type_unit, read_signatured_type, per_cu_header_read_in)
8961 (dwarf2_find_containing_comp_unit, struct dwarf2_offset_and_type)
8962 (offset_and_type_hash, offset_and_type_eq, set_die_type)
8963 (get_die_type_at_offset, partial_die_hash, partial_die_eq)
8964 (write_one_signatured_type, write_psymtabs_to_index): Use cu_offset and
8965 sect_offset.
8966
e97a38f7
JK
89672012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
8968
8969 Code cleanup.
8970 * python/py-auto-load.c (source_section_scripts): New variable back_to.
8971 Turn fclose and xfree calls into make_cleanup_fclose and make_cleanup
8972 with xfree.
8973 (auto_load_objfile_script): Turn fclose into make_cleanup_fclose.
8974
8320cc4f
JK
89752012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
8976
8977 * NEWS: Describe new options --init-command=FILE, -ix and
8978 --init-eval-command=COMMAND, -iex.
8979 * main.c (struct cmdarg): New enum items CMDARG_INIT_FILE and
8980 CMDARG_INIT_COMMAND.
8981 (captured_main): New enum items OPT_IX and OPT_IEX. Add
8982 "init-command", "init-eval-command", "ix" and "iex" to the variable
8983 long_options. Handle OPT_IX and OPT_IEX. Process them from CMDARG_VEC.
8984 New comment for CMDARG_FILE and CMDARG_COMMAND processing.
8985 (print_gdb_help): Describe --init-command=FILE, -ix and
8986 --init-eval-command=COMMAND, -iex.
8987
26743505
JK
89882012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
8989
8990 Code cleanup.
8991 * main.c (struct cmdarg): Move it here from main. Add more comments.
8992 (cmdarg_s, VEC (cmdarg_s)): New.
8993 (main): Move struct cmdarg from here. New variables cmdarg_vec and
8994 cmdarg_p. Remove variables cmdsize and ncmd and their initialization.
8995 Install cleanup for cmdarg_vec. Update filling for options 'x' and
8996 'X'. Replace cmdarg processing by cmdarg_vec processing. Remove xfree
8997 of CMDARG.
8998
5ff5c7b4
TT
89992012-03-19 Tom Tromey <tromey@redhat.com>
9000
9001 * gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'.
9002
ab260dad
JK
90032012-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
9004
9005 PR symtab/13777
9006 * dwarf2read.c (process_full_comp_unit): Set LOCATIONS_VALID only for
9007 GCC >=4.5.
9008
c366c1f0
TT
90092012-03-16 Chris January <chris.january@allinea.com>
9010
9011 * tui-tui.win.c (tui_resize_all): Use erase and clearok instead
9012 of clear.
9013
e16edb45
TT
90142012-03-16 Chris January <chris.january@allinea.com>
9015
9016 * source.c (add_path): Use memmove instead of strcpy because the
9017 strings overlap.
9018
53ba8333
JB
90192012-03-16 Joel Brobecker <brobecker@adacore.com>
9020
9021 * value.h (set_value_parent): Add declaration.
9022 * value.c (set_value_parent): New function.
9023 (value_address): If VALUE->PARENT is not NULL, then use it as
9024 the base address instead of VALUE->LOCATION.address.
9025 * ada-lang.c (ada_value_primitive_packed_val): Keep V's address
9026 the same as OBJ's address. Adjust V's offset accordingly.
9027 Set V's parent.
9028
481860b3
GB
90292012-03-16 Gary Benson <gbenson@redhat.com>
9030
9031 PR breakpoints/10738
9032 * dwarf2read.c (use_deprecated_index_sections): New global.
9033 (struct partial_die_info): New member may_be_inlined.
9034 (read_partial_die): Set may_be_inlined where appropriate.
9035 (add_partial_subprogram): Add partial symbols for partial
9036 DIEs that may be inlined.
9037 (new_symbol_full): Add inlined subroutines to the current
9038 scope.
9039 (write_psymtabs_to_index): Bump version number.
9040 (dwarf2_read_index): Read only version 6 indices unless
9041 use_deprecated_index_sections is set.
9042 * linespec.c (symbol_and_data_callback): New structure.
9043 (iterate_inline_only): New function.
9044 (iterate_over_all_matching_symtabs): New argument
9045 "include_inline". If nonzero, also call the callback for
9046 symbols representing inlined subroutines.
9047 (lookup_prefix_sym): Pass extra argument to the above.
9048 (find_function_symbols): Likewise.
9049 (add_matching_symbols_to_info): Likewise.
9050 * NEWS: Mention that GDB can now set breakpoints on inlined
9051 functions.
9052
d0e7e15a
PM
90532012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
9054
9055 * p-typeprint.c (pascal_type_print_method_args):
9056 Fix display of parameter of methods.
9057
3d354654
PM
90582012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
9059
9060 * amd64-windows-nat.c (_initialize_amd64_windows_nat):
9061 Add missing prototype.
9062
cafe75b0
JK
90632012-03-16 Yao Qi <yao@codesourcery.com>
9064 Jan Kratochvil <jan.kratochvil@redhat.com>
9065
9066 Fix false compilation warning.
9067 * gnu-v3-abi.c (print_one_vtable): Initialize ADDR.
9068
25f8c692
JL
90692012-03-15 Jonathan Larmour <jifl@eCosCentric.com>
9070 Pedro Alves <pedro@codesourcery.com>
9071
9072 * arm-tdep.c: Include "remote.h" and "features/arm-with-m-fpa-layout.c".
9073 (arm_register_g_packet_guesses): New function.
9074 (arm_gdbarch_init): Don't force a target description with
9075 registers when the executable is detected as M-profile. Instead
9076 set gdbarch->tdep->is_m. Register `g' packet guesses.
9077 (_initialize_arm_tdep): Initialize the new target description.
9078 * features/arm-with-m-fpa-layout.xml: New description.
9079 * features/arm-with-m-fpa-layout.c: New, generated.
9080
35c63cd8
JB
90812012-03-15 Joel Brobecker <brobecker@adacore.com>
9082
9083 * breakpoint.c (breakpoint_xfer_memory): Add assertion.
9084 Update function description.
9085 (insert_bp_location): Do not wipe bl->target_info out.
9086 * mem-break.c: #include "gdb_string.h".
9087 (default_memory_insert_breakpoint): Do not call target_read_memory
9088 with a pointer to the breakpoint's shadow_contents buffer. Use
9089 a local buffer instead.
9090 * m32r-tdep.c (m32r_memory_insert_breakpoint): Ditto.
9091
57651221
TT
90922012-03-15 Tom Tromey <tromey@redhat.com>
9093
9094 * NEWS: Mention "info vtbl", not "info vtable".
9095 * cp-support.c (info_vtbl_command): Fix comment.
9096 (_initialize_cp_support): Fix text.
9097
410528f0
TT
90982012-03-15 Tom Tromey <tromey@redhat.com>
9099
9100 * cp-valprint.c (cp_print_value_fields): Use
9101 print_function_pointer_address for vtable slot.
9102
c4aeac85
TT
91032012-03-15 Tom Tromey <tromey@redhat.com>
9104
9105 * gnu-v3-abi.c (struct value_and_voffset): New.
9106 (hash_value_and_voffset, eq_value_and_voffset)
9107 (compare_value_and_voffset, compute_vtable_size)
9108 (print_one_vtable, gnuv3_print_vtable): New functions.
9109 (init_gnuv3_ops): Initialize 'print_vtable' field.
9110 * cp-support.c (info_vtbl_command): New function.
9111 (_initialize_cp_support): Add "info vtbl".
9112 * cp-abi.h (cplus_print_vtable): Declare.
9113 (struct cp_abi_ops) <print_vtable>: New field.
9114 * cp-abi.c (cplus_print_vtable): New function.
9115 * NEWS: Update.
9116
95cbceff
TT
91172012-03-15 Tom Tromey <tromey@redhat.com>
9118
9119 * d-lang.c (d_language_defn) <la_iterate_over_symbols>: Set to
9120 iterate_over_symbols.
9121
589b4a32
DE
91222012-03-14 Doug Evans <dje@google.com>
9123
9124 * dwarf2read.c (dwarf_stack_op_name): Add DW_OP_GNU_encoded_addr,
9125 DW_OP_GNU_parameter_ref.
9126
e837f12a
JK
91272012-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9128
9129 Fix double prompt of 'interpreter-exec mi'.
9130 * mi/mi-interp.c (mi_execute_command_input_handler): New prototype.
9131 (mi_interpreter_resume): use it.
9132 (mi_execute_command_input_handler): New function.
9133 * mi/mi-main.c (mi_execute_command): Move prompt printing to
9134 mi_execute_command_input_handler.
9135
ff1e4526 91362012-03-13 Josh Matthews <josh@joshmatthews.net> (tiny change)
c381a3f6
JB
9137
9138 * darwin-nat-info.c (_initialize_darwin_info_commands): Add
9139 prototype.
9140 (darwin_debug_port_info): Make static.
9141 * darwin-nat.c (_initialize_darwin_inferior): Add prototype.
9142 * machoread.c (_initialize_machoread): Add prototype.
9143 * i386-darwin-nat.c (i386_darwin_dr_set, i386_darwin_dr_get)
9144 (i386_darwin_set_control, i386_darwin_get_control)
9145 i386_darwin_dr_set_addr, i386_darwin_get_addr)
9146 i386_darwin_get_status, i386_darwin_get_control):
9147 Comment out with HW_WATCHPOINT_NOT_YET_ENABLED macro.
9148
d8a5d6ee
JB
91492012-03-13 Joel Brobecker <brobecker@adacore.com>
9150
9151 * ax-gdb.c (gen_usual_unary): Remove special handling of
9152 enum and bool types.
9153
af381b8c
JB
91542012-03-13 Joel Brobecker <brobecker@adacore.com>
9155
9156 * ax-gdb.c (gen_fetch): Add handling for TYPE_CODE_RANGE types.
9157
786c562f
JB
91582012-03-13 Joel Brobecker <brobecker@adacore.com>
9159
9160 * aix-thread.c (supply_fprs): Make more consistent with fill_fprs.
9161
e3ebf1bb
JB
91622012-03-13 Chris January <chris.january@allinea.com>
9163
9164 * aix-thread.c (fill_sprs): Store the floating point registers
9165 at the correct offsets into vals.
9166
c5b7e1cb
DE
91672012-03-13 Doug Evans <dje@google.com>
9168
16899756
DE
9169 * NEWS: Mention symbol-reloading has been deleted.
9170 * symfile.c (symbol_reloading): Delete.
9171 (show_symbol_reloading): Delete.
9172 (_initialize_symfile): Delete set/show symbol-reloading.
9173
c5b7e1cb
DE
9174 * dwarf2read.c (load_partial_comp_unit): Defer adding cu to
9175 read_in_chain until we have successfully read it in.
9176 (load_full_comp_unit): Ditto.
9177 (read_signatured_type): Add comment.
9178
46cb6474
JB
91792012-03-13 Chris January <chris.january@allinea.com>
9180
9181 * stabsread.c (fix_common_block): Change type of valu argument
9182 to CORE_ADDR.
9183
76219d77
JB
91842012-03-13 Chris January <chris.january@allinea.com>
9185
9186 * rs6000-tdep.c (skip_prologue): Support the oril r29, r1, 0x0
9187 instruction.
9188
87b0bb13
JK
91892012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9190
9191 * common/linux-procfs.c (linux_proc_get_int): New, from
9192 linux_proc_get_tgid, change its LWPID type to pid_t, add parameter
9193 field.
9194 (linux_proc_get_tgid): Only call linux_proc_get_int.
9195 (linux_proc_get_tracerpid): New.
9196 (linux_proc_pid_has_state): New, from linux_proc_pid_is_zombie.
9197 (linux_proc_pid_is_stopped, linux_proc_pid_is_zombie): Only call
9198 linux_proc_pid_has_state.
9199 * common/linux-procfs.h (linux_proc_get_tracerpid): New declaration.
9200 * common/linux-ptrace.c: Include linux-procfs.h and buffer.h.
9201 (linux_ptrace_attach_warnings): New.
9202 * common/linux-ptrace.h (struct buffer, linux_ptrace_attach_warnings):
9203 New declaration.
9204 * linux-nat.c: Include exceptions.h, linux-ptrace.h and buffer.h.
9205 (linux_nat_attach): New variables ex, buffer, message and message_s.
9206 Wrap to_attach by TRY_CATCH and call linux_ptrace_attach_warnings.
9207
5f572dec
JK
92082012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9209
9210 * Makefile.in (linux-ptrace.o): New.
9211 * common/linux-procfs.c (linux_proc_pid_is_zombie): New,
9212 from linux-nat.c.
9213 * common/linux-procfs.h (linux_proc_pid_is_zombie): New declaration.
9214 * common/linux-ptrace.c: New file.
9215 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-ptrace.o.
9216 * config/arm/linux.mh: Likewise.
9217 * config/i386/linux.mh: Likewise.
9218 * config/i386/linux64.mh: Likewise.
9219 * config/ia64/linux.mh: Likewise.
9220 * config/m32r/linux.mh: Likewise.
9221 * config/m68k/linux.mh: Likewise.
9222 * config/mips/linux.mh: Likewise.
9223 * config/pa/linux.mh: Likewise.
9224 * config/powerpc/linux.mh: Likewise.
9225 * config/powerpc/ppc64-linux.mh: Likewise.
9226 * config/powerpc/spu-linux.mh: Likewise.
9227 * config/s390/s390.mh: Likewise.
9228 * config/sparc/linux.mh: Likewise.
9229 * config/sparc/linux64.mh: Likewise.
9230 * config/xtensa/linux.mh: Likewise.
9231 * linux-nat.c (linux_lwp_is_zombie): Remove, move it to
9232 common/linux-procfs.c.
9233 (wait_lwp): Rename linux_lwp_is_zombie to linux_proc_pid_is_zombie.
9234
44f238bb
PA
92352012-03-13 Hui Zhu <teawater@gmail.com>
9236 Pedro Alves <palves@redhat.com>
9237
9238 * breakpoint.c (init_breakpoint_sal): New flags parameter. Handle
9239 CREATE_BREAKPOINT_FLAGS_INSERTED.
9240 (create_breakpoint_sal, create_breakpoints_sal)
9241 (base_breakpoint_create_breakpoints_sal)
9242 (tracepoint_create_breakpoints_sal)
9243 (strace_marker_create_breakpoints_sal): New flags parameter. Pass
9244 down.
9245 (break_command_1, handle_gnu_v3_exceptions, trace_command)
9246 (ftrace_command, strace_command): Adjust.
9247 (create_tracepoint_from_upload): Pass
9248 CREATE_BREAKPOINT_FLAGS_INSERTED.
9249 * breakpoint.h (enum breakpoint_create_flags): New.
9250 (create_breakpoint): New flags parameter.
9251 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
9252 * python/py-breakpoint.c (bppy_init): Adjust.
9253 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust.
9254 * spu-tdep.c (spu_catch_start): Adjust.
9255
1e51243a
PA
92562012-03-13 Pedro Alves <palves@redhat.com>
9257 Hui Zhu <teawater@gmail.com>
9258 Yao Qi <yao@codesourcery.com>
9259
9260 * remote.c (struct remote_state): New field `starting_up'.
9261 (remote_start_remote): Set and clear it.
9262 (remote_can_download_tracepoint): If starting up, return false.
9263
fa3064dd
YQ
92642012-03-13 Yao Qi <yao@codesourcery.com>
9265
9266 * inferior.h (struct inferior): Remove fields any_syscall_count,
9267 syscalls_counts and total_syscalls_count. Move them to new
9268 struct catch_syscall_inferior_data in breakpoint.c.
9269 * breakpoint.c: Call DEF_VEC_I(int).
9270 (struct catch_syscall_inferior_data): New.
9271 (get_catch_syscall_inferior_data): New.
9272 (catch_syscall_inferior_data_cleanup): New.
9273 (insert_catch_syscall): Update to access data in
9274 struct catch_syscall_inferior_data.
9275 (insert_catch_syscall): Likewise.
9276 (remove_catch_syscall): Likewise.
9277 (remove_catch_syscall): Likewise.
9278 (is_syscall_catchpoint_enabled): Likewise.
9279 (add_catch_command): Likewise.
9280 (_initialize_breakpoint): Register cleanup.
9281 * breakpoint.h: Removed DEF_VEC_I(int).
9282 * dwarf2loc.c: Call DEF_VEC_I(int).
9283 * mi/mi-main.c: Likewise.
9284
460fac3c
MK
92852012-03-12 Mark Kettenis <kettenis@gnu.org>
9286
9287 * inf-ptrace.c (inf_ptrace_post_attach): Make static.
9288
e1aca11e
JB
92892012-03-12 Chris January <chris.january@allinea.com>
9290
9291 * aix-thread.c (_initialize_aix_thread): Add prototype.
9292 * rs6000-nat.c (_initialize_rs6000_nat): Ditto.
9293 * xcoffsolib.c (_initialize_xcoffsolib): Ditto.
9294
649c7061
JB
92952012-03-12 Joel Brobecker <brobecker@adacore.com>
9296
9297 * amd64bsd-nat.c: Move #include of "amd64bsd-nat.h" after
9298 include of "amd64-nat.h".
9299
0b49e518
TT
93002012-03-12 Tom Tromey <tromey@redhat.com>
9301
9302 * buildsym.c (record_pending_block): Now static.
9303 * buildsym.h: (record_pending_block): Remove.
9304
fd24fa94
AT
93052012-03-12 Andreas Tobler <andreast@fgznet.ch>
9306
9307 * amd64bsd-nat.c: Include amd64bsd-nat.h.
9308
ba919b58
TT
93092012-03-09 Tom Tromey <tromey@redhat.com>
9310
9311 * dwarf2read.c (struct dwarf2_cu) <checked_producer,
9312 producer_is_gxx_lt_4_6>: New fields.
9313 (producer_is_gxx_lt_4_6): Use and update producer cache fields.
9314
a48e046c
TT
93152012-03-09 Tom Tromey <tromey@redhat.com>
9316
9317 * dwarf2read.c (dwarf2_attr): Avoid tail-recursive call.
9318
6f5e9362
JB
93192012-03-08 Joel Brobecker <brobecker@adacore.com>
9320
9321 * ravenscar-sparc-thread.c (_initialize_ravenscar_sparc): Add
9322 prototype.
9323
8d037db9
JB
93242012-03-08 Joel Brobecker <brobecker@adacore.com>
9325
9326 * ravenscar-thread.c (_initialize_ravenscar): Add prototype.
9327
4e841acf
JK
93282012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9329
9330 Fix -Wmissing-prototypes build.
9331 * arm-linux-nat.c (get_thread_id): Make it static.
9332 * xtensa-linux-nat.c (get_thread_id): Likewise.
9333
c6030312
JB
93342012-03-08 Joel Brobecker <brobecker@adacore.com>
9335
9336 * server.c (process_point_options): If a conditional expression
9337 is found, only print a message if remote_debug is nonzero.
9338
52323be9
LM
93392012-03-08 Luis Machado <lgustavo@codesourcery.com>
9340
9341 * ax-gdb.c (gen_fetch): Fail gracefully and use error instead
9342 of internal error for unknown/unsupported types.
9343
7fe25d9b
JK
93442012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9345
9346 Fix CU relative vs. absolute DIE offsets.
9347 * dwarf2loc.h (dwarf2_fetch_die_location_block): Rename parameter
9348 offset to offset_in_cu.
9349 * dwarf2read.c (process_enumeration_scope): Add CU offset to
9350 TYPE_OFFSET.
9351 (dwarf2_fetch_die_location_block): Rename parameter offset to
9352 offset_in_cu. New variable offset, add CU offset to OFFSET_IN_CU.
9353
05e7c244
JK
93542012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9355
9356 * libunwind-frame.c: Rename to ...
9357 * ia64-libunwind-tdep.c: ... here.
9358 * libunwind-frame.h: Rename to ...
9359 * ia64-libunwind-tdep.h: ... here.
9360 * Makefile.in (HFILES_NO_SRCDIR): Rename libunwind-frame.h to
9361 ia64-libunwind-tdep.h.
9362 (ALLDEPFILES): Rename libunwind-frame.c to ia64-libunwind-tdep.c.
9363 * README (--with-libunwind): Rename to ...
9364 (--with-libunwind-ia64): ... here, note it is ia64 specific now.
9365 * config.in: Regenerate.
9366 * configure: Regenerate.
9367 * configure.ac: New option --with-libunwind-ia64, make the
9368 AS_HELP_STRING ia64 specific. Deprecate option --with-libunwind.
9369 Remove AC_DEFINE for HAVE_LIBUNWIND.
9370 * ia64-libunwind-tdep.c: Make the file top comment ia64 specific.
9371 Rename libunwind-frame.h #include to ia64-libunwind-tdep.h.
9372 Rename libunwind-frame in the general comment.
9373 * ia64-libunwind-tdep.h: Make the file top comment ia64 specific.
9374 Rename symbol LIBUNWIND_FRAME_H to IA64_TDEP_LIBUNWIND_FRAME_H.
9375 Move forward declarations inside #ifndef. Rename libunwind-frame in
9376 the general comment.
9377 * ia64-tdep.c: Rename libunwind-frame.h #include to
9378 ia64-libunwind-tdep.h.
9379 (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum, ia64_is_fpreg)
9380 (ia64_libunwind_descr): Rename libunwind-frame to
9381 ia64-libunwind-tdep in these function comments.
9382 * ia64-tdep.h: Rename libunwind-frame.h #include to
9383 ia64-libunwind-tdep.h.
9384 * ia64-vms-tdep.c (ia64_vms_libunwind_descr): Rename libunwind-frame to
9385 ia64-libunwind-tdep in that data comment.
9386
3755cbfd
JK
93872012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9388
9389 * libunwind-frame.h (struct frame_unwind): New declaration.
9390
d1cda5d9
JB
93912012-03-08 Joel Brobecker <brobecker@adacore.com>
9392
9393 * breakpoint.c (_initialize_breakpoint): Fix error in help of
9394 "set breakpoint condition-evaluation" command.
9395
a0ba0aa2
TG
93962012-03-08 Tristan Gingold <gingold@adacore.com>
9397
9398 * sparc-stub.c: Move to stubs/
9399 * sh-stub.c: Likewise.
9400 * m68k-stub.c: Likewise.
9401 * m32r-stub.c: Likewise.
9402 * i386-stub.c: Likewise.
9403
7b8b6d6d
AS
94042012-03-08 Andreas Schwab <schwab@linux-m68k.org>
9405
007cafee
AS
9406 * m68klinux-tdep.c (m68k_linux_init_abi): Register
9407 linux_get_siginfo_type.
9408
7b8b6d6d
AS
9409 * m68klinux-nat.c: Include "gdb_proc_service.h".
9410 (PTRACE_GET_THREAD_AREA): Define.
9411 (ps_get_thread_area): New function.
9412
bba74b36
YQ
94132012-03-08 Yao Qi <yao@codesourcery.com>
9414
9415 * remote.c (remote_get_noisy_reply): Replace `sprintf' with
9416 `xsnprintf'.
9417 (remote_query_attached): Likewise.
9418 (remote_static_tracepoint_marker_at): Likewise.
9419 (remote_set_permissions): Likewise.
9420 (remote_detach_1, extended_remote_attach_1): Likewise.
9421 (send_g_packet, remote_vkill): Likewise.
9422 (extended_remote_disable_randomization): Likewise.
9423 (remote_add_target_side_condition): Likewise.
9424 (remote_insert_breakpoint): Likewise.
9425 (remote_remove_breakpoint): Likewise.
9426 (remote_insert_watchpoint): Likewise.
9427 (remote_remove_watchpoint): Likewise.
9428 (remote_insert_hw_breakpoint): Likewise.
9429 (remote_insert_hw_breakpoint): Likewise.
9430 (remote_remove_hw_breakpoint): Likewise.
9431 (remote_download_command_source): Likewise.
9432 (remote_download_tracepoint): Likewise.
9433 (remote_download_trace_state_variable): Likewise.
9434 (remote_disable_tracepoint): Likewise.
9435 (remote_trace_set_readonly_regions): Likewise.
9436 (remote_get_tracepoint_status): Likewise.
9437 (remote_trace_find): Likewise.
9438 (remote_get_trace_state_variable_value): Likewise.
9439 (remote_set_disconnected_tracing): Likewise.
9440 (remote_set_circular_trace_buffer): Likewise.
9441 (remote_get_min_fast_tracepoint_insn_len): Likewise.
9442 (remote_use_agent): Likewise.
9443 (remote_add_target_side_condition): Add one parameter BUF_SIZE.
9444 Update callers.
9445
9b224c5e
PA
94462012-03-07 Pedro Alves <palves@redhat.com>
9447
9448 * NEWS: Mention QProgramSignals.
9449 * inferior.h (update_signals_program_target): Declare.
9450 * infrun.c: (update_signals_program_target): New.
9451 (handle_command): Update the target of the new program signals
9452 array changes.
9453 * remote.c (PACKET_QProgramSignals): New enum.
9454 (last_program_signals_packet): New global.
9455 (remote_program_signals): New.
9456 (remote_start_remote): Update the target with the program signals
9457 list.
9458 (remote_protocol_features): Add entry for QPassSignals.
9459 (remote_open_1): Free anc clear last_program_signals_packet.
9460 (init_remote_ops): Install remote_program_signals.
9461 * target.c (update_current_target): Adjust.
9462 (target_program_signals): New.
9463 * target.h (struct target_ops) <to_program_signals>: New field.
9464 (target_program_signals): Declare.
9465
74c48cbb
PA
94662012-03-07 Pedro Alves <palves@redhat.com>
9467
9468 * NEWS: Add subtitle for new z0/z1 conditional breakpoint
9469 extensions.
9470
0c13fc49
AS
94712012-03-07 Andreas Schwab <schwab@linux-m68k.org>
9472
9473 * m68klinux-nat.c (getregs_supplies): Make static.
9474 (getfpregs_supplies): Likewise.
9475 (have_ptrace_getregs): Likewise.
9476
1281d2a3
JB
94772012-03-06 Joel Brobecker <brobecker@adacore.com>
9478
9479 * dwarf2read.c (dwarf2_get_die_type): Pass absolute offset
9480 in call to get_die_type_at_offset.
9481
2b03b41d
SS
94822012-03-06 Stan Shebs <stan@codesourcery.com>
9483
9484 * mi/mi-cmd-break.c: Enforce coding standards, fix comments.
9485 * mi/mi-cmd-disas.c: Ditto.
9486 * mi/mi-cmd-env.c: Ditto.
9487 * mi/mi-cmd-file.c: Ditto.
9488 * mi/mi-cmd-stack.c: Ditto.
9489 * mi/mi-cmd-target.c: Ditto.
9490 * mi/mi-cmd-var.c: Ditto.
9491 * mi/mi-cmds.c: Ditto.
9492 * mi/mi-cmds.h: Ditto.
9493 * mi/mi-console.c: Ditto.
9494 * mi/mi-getopt.c: Ditto.
9495 * mi/mi-getopt.h: Ditto.
9496 * mi/mi-interp.c: Ditto.
9497 * mi/mi-main.c: Ditto.
9498 * mi/mi-out.c: Ditto.
9499 * mi/mi-parse.c: Ditto.
9500 * mi/mi-parse.h: Ditto.
9501 * mi/mi-symbol-cmds.c: Ditto.
9502
9503 * mi/mi-getopt.h: Move mi_opt struct up.
9504 * mi/mi-main.c (captured_mi_execute_command): Remove redundant
9505 return.
9506 * mi/mi-out.c (_initialize_mi_out): Remove empty initialize.
9507
c988ad87
TT
95082012-03-06 Tom Tromey <tromey@redhat.com>
9509
9510 * proc-service.c (ps_pglobal_lookup): Set the current program
9511 space.
9512
1b7c1b10
PA
95132012-03-06 Pedro Alves <palves@redhat.com>
9514
9515 * gregset.h [HAVE_SYS_PROCFS_H]: Include <sys/procfs.h>.
9516
3c182069
JB
95172012-03-05 Joel Brobecker <brobecker@adacore.com>
9518
9519 * MAINTAINERS: List Maciej W. Rozycki as the mips maintainer.
9520
2e794194
JK
95212012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
9522
9523 Code cleanup.
9524 * common/linux-osdata.c (linux_common_core_of_thread): New function
9525 comment.
9526 * linux-nat.c (linux_nat_wait_1): Replace linux_nat_core_of_thread_1
9527 call by linux_common_core_of_thread.
9528 (linux_nat_core_of_thread_1): Remove.
9529 * linux-nat.h (linux_nat_core_of_thread_1): Remove declaration.
9530 * linux-thread-db.c: Include linux-osdata.h.
9531 (update_thread_core): Replace linux_nat_core_of_thread_1 call by
9532 linux_common_core_of_thread.
9533
9f9f1f31
TT
95342012-03-05 Tom Tromey <tromey@redhat.com>
9535
9536 * value.c (value_primitive_field): Don't fetch contents for
9537 non-virtual bases.
9538
b7b189f3
TT
95392012-03-05 Tom Tromey <tromey@redhat.com>
9540
9541 * jv-valprint.c (java_value_print): Correctly compute 'obj_addr'.
9542
05b8a789 95432012-03-05 Andreas Arnez <arnez@linux.vnet.ibm.com>
5538f557 9544
5538f557
JB
9545 * s390-nat.c: Include "gregset.h".
9546
75528772
JK
95472012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
9548
9549 * libunwind-frame.c (LIBUNWIND_SO): Change .7 to .8.
9550 [!LIBUNWIND_SO] (LIBUNWIND_SO_7): New #define.
9551 (libunwind_load): New variable so_error, use it for dlerror. Try to
9552 load also LIBUNWIND_SO_7.
9553
275418ae
PA
95542012-03-05 Pedro Alves <palves@redhat.com>
9555
9556 * i387-tdep.c (i387_supply_xsave): Assert the xsave section buffer
9557 is not NULL, and remove resulting dead code.
9558
5cbb9812
TS
95592012-03-05 Thomas Schwinge <thomas@codesourcery.com>
9560
9561 * sh-tdep.c (sh_skip_prologue): Provide an upper limit on the function
9562 prologue to sh_analyze_prologue.
9563 (sh_analyze_prologue): Make better use of such an upper limit, and
9564 generally be more cautious about accessing memory.
9565
541515ad
TT
95662012-03-05 Tom Tromey <tromey@redhat.com>
9567
9568 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from
9569 _initialize_ia64_hpux_tdep.
9570
b4d36fb8
PA
95712012-03-05 Pedro Alves <palves@redhat.com>
9572
24490249
PA
9573 PR gdb/13766
9574
b4d36fb8
PA
9575 * i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and
9576 the register state is clear, supply explicit zero, instead of
9577 marking the register unavailable.
9578
60c9a3c0
TG
95792012-03-05 Tristan Gingold <gingold@adacore.com>
9580
9581 * NEWS: Mention OpenVMS ia64 new target.
9582
696759ad
TG
95832012-03-05 Tristan Gingold <gingold@adacore.com>
9584
9585 * ia64-tdep.h: Include libunwind-frame.h and libunwind-ia64.h.
9586 (ia64_unw_accessors, ia64_unw_rse_accessors)
9587 (ia64_libunwind_descr): Declare.
9588 * ia64-vms-tdep.c: New file.
9589 * ia64-tdep.c (ia64_unw_accessors, ia64_unw_rse_accessors)
9590 (ia64_libunwind_descr): Make them public.
9591 * configure.tgt: Add ia64-*-*vms*.
9592 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-vms-tdep.o
9593 (ALLDEPFILES): Add ia64-vms-tdep.c
9594
34864976
TG
95952012-03-05 Tristan Gingold <gingold@adacore.com>
9596
169081d0
TG
9597 * target.h (target_object): Add TARGET_OBJECT_OPENVMS_UIB.
9598 * remote.c (PACKET_qXfer_uib): New enum value.
9599 (remote_protocol_features): Add entry for PACKET_qXfer_uib.
9600 (remote_xfer_partial): Handle TARGET_OBJECT_OPENVMS_UIB.
9601 (_initialize_remote): Call add_packet_config_cmd for
9602 xfer:uib packet.
9603
96042012-03-05 Tristan Gingold <gingold@adacore.com>
9605
9606 * osabi.c (gdb_osabi_names): Add OpenVMS.
9607 (generic_elf_osabi_sniffer): Likewise.
9608 * defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS.
34864976 9609
6597b100
JK
96102012-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
9611
9612 Removed unused code.
9613 * libunwind-frame.c (libunwind_frame_unwind)
9614 (libunwind_frame_base_address): Remove.
9615 * libunwind-frame.h (libunwind_frame_base_address): Remove declaration.
9616
87399aa1
YQ
96172012-03-04 Yao Qi <yao@codesourcery.com>
9618
9619 * common/agent.c (gdb_connect_sync_socket): Add _ markup and
9620 remove trailing new line.
9621 (agent_run_command, agent_run_command): Add _ markup.
9622 (agent_capability_check): Likewise.
9623
abf1152a
JK
96242012-03-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9625
9626 * breakpoint.c (set_condition_evaluation_mode): Set
9627 CONDITION_EVALUATION_MODE unconditionally.
9628
5808517f
YQ
96292012-03-03 Yao Qi <yao@codesourcery.com>
9630
9631 * common/agent.c (agent_look_up_symbols): Add one parameter 'arg'.
9632 * common/agent.h: Update declaration.
9633 * inf-child.c (inf_child_use_agent): New.
9634 (inf_child_can_use_agent): New.
9635 (inf_child_target): Initialize fields `to_use_agent'
9636 and `to_can_use_agent'.
9637 * agent.c (agent_new_objfile): New.
89b7509a 9638 (_initialize_agent): Add agent_new_objfile to new_objfile
5808517f
YQ
9639 observer.
9640
9641 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
9642 New.
89b7509a 9643 (linux_target_install_ops): Initialize field
5808517f
YQ
9644 `to_static_tracepoint_markers_by_strid'.
9645 * remote.c (free_current_marker): Move it to ...
9646 * tracepoint.c (free_current_marker): ... here. New.
9647 (cleanup_target_stop): New.
9648 * tracepoint.h: Declare free_current_marker.
9649 * NEWS: Add one entry about `info static-tracepoint-marker'.
9650
58b4daa5
YQ
96512012-03-03 Yao Qi <yao@codesourcery.com>
9652
9653 * common/agent.c (agent_loaded_p): New.
89b7509a 9654 (agent_look_up_symbols): New global.
58b4daa5
YQ
9655 * common/agent.h: Declare agent_loaded_p.
9656
8ffcbaaf
YQ
96572012-03-03 Yao Qi <yao@codesourcery.com>
9658
9659 * common/agent.c (struct ipa_sym_addresses) <addr_capability>: New.
9660 (agent_capability_check, agent_capability_invalidate): New.
9661 (symbol_list): New array element.
9662 * common/agent.h (enum agent_capa): New.
9663 * target.c (target_pre_inferior): Call agent_capability_invalidate.
9664
d1feda86
YQ
96652012-03-03 Yao Qi <yao@codesourcery.com>
9666
9667 * target.h (struct target_ops) <to_use_agent>: New field.
9668 (struct target_ops) <to_can_use_agent>: New field.
9669 (target_use_agent, target_can_use_agent): New macro.
9670 * target.c (update_current_target): Update.
9671 * remote.c: New enum `PACKET_QAgent'.
9672 (remote_protocol_features): Add a new element.
9673 (remote_use_agent, remote_can_use_agent): New.
9674 (init_remote_ops): Initialize field `can_use_agent' with
9675 remote_can_use_agent. Intiailize field `use_agent' with
9676 remote_use_agent.
9677 * common/agent.c (use_agent): New global.
9678 * common/agent.h: Declare it.
9679 * tracepoint.c (info_static_tracepoint_markers_command): Add
9680 comment.
9681 * Makefile.in (SFILES): Add common/agent.c and agent.c.
9682 (COMMON_OBS): Add common/agent.o and agent.o
9683 (common-agent.o): New rule.
9684 * agent.c: New.
9685
2fa291ac
YQ
96862012-03-03 Yao Qi <yao@codesourcery.com>
9687
9688 * common/agent.c: New.
9689 * common/agent.h: New.
9690 * configure.ac: Add `sys/socket.h' and `sys/un.h' to
9691 AC_CHECK_HEADERS.
9692 * configure, configh.in: Regenerated.
9693
9fc05685
KB
96942012-03-02 Kevin Buettner <kevinb@redhat.com>
9695
9696 * sh-tdep.c (sh_frame_cache): Don't fetch the FPSCR register
9697 unless it exists for this architecture.
9698
a5ee536b
JB
96992012-03-02 Joel Brobecker <brobecker@adacore.com>
9700
9701 * language.h (struct language_defn): New "method" la_read_var_value.
9702 * findvar.c: #include "language.h".
9703 (default_read_var_value): Renames read_var_value. Rewrite
9704 function description.
9705 (read_var_value): New function.
9706 * value.h (default_read_var_value): Add prototype.
9707 * ada-lang.c (ada_read_renaming_var_value, ada_read_var_value):
9708 New functions.
9709 (ada_language_defn): Add entry for la_read_var_value.
9710 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, language.c,
9711 * m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Update
9712 language_defn structures to add entry for new la_read_var_value
9713 field.
9714
f59f708a
PA
97152012-03-02 Tom Tromey <tromey@redhat.com>
9716 Pedro Alves <palves@redhat.com>
9717
9718 PR breakpoints/13776:
9719 * breakpoint.c (breakpoint_init_inferior): Delete step-resume
9720 breakpoints.
9721 (delete_longjmp_breakpoint_at_next_stop): New.
9722 * breakpoint.h (delete_longjmp_breakpoint_at_next_stop): Declare.
9723 * target.c (generic_mourn_inferior): Call mark_breakpoints_out
9724 before deleting the inferior. Add comments.
9725 * thread.c (clear_thread_inferior_resources): Don't delete lonjmp
9726 breakpoints immediately, but only on next stop. Move that code
9727 next to where we mark other breakpoints for deletion.
9728
44099a67
JB
97292012-03-02 Joel Brobecker <brobecker@adacore.com>
9730
9731 * mips-linux-nat.c (mips_linux_read_description): Add missing i18n
9732 marker.
9733 * mips-tdep.c (mips_linux_reg_names): Improve comment to avoid ARI
9734 violation.
9735
2a2ef594
PA
97362012-03-02 Pedro Alves <palves@redhat.com>
9737
9738 * linux-thread-db.c (attach_thread): Avoid in_thread_list call.
9739
b261e0c5
UW
97402012-03-02 Ulrich Weigand <uweigand@de.ibm.com>
9741
9742 Fix -Wmissing-prototypes build.
9743 * ppc-linux-nat.c (ppc_linux_get_hwcap): Make static.
9744 * remote-sim.c (gdbsim_has_all_memory): Likewise.
9745 (gdbsim_has_memory): Likewise.
9746
a95babbf
YQ
97472012-03-02 Yao Qi <yao@codesourcery.com>
9748
9749 Fix -Wmissing-prototypes build.
9750 * charset.c (phony_iconv_open): Make static.
9751 (phony_iconv_close, phony_iconv): Likewise.
9752 * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype.
9753 * i386-windows-nat.c (_initialize_i386_windows_nat): New
9754 prototype.
9755 * mingw-hdep.c (_initialize_mingw_hdep): New prototype.
9756 * ser-mingw.c (create_select_thread): Make static.
9757 * windows-termcap.c (tgetent): New prototype.
9758 (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
9759
d603d4b3
JK
97602012-03-02 Zhang Yuanhui <asmwarrior@gmail.com>
9761
9762 Fix -Wmissing-prototypes build.
9763 * windows-nat.c (dll_symbol_command, ctrl_c_handler): Make them static.
9764 (_initialize_windows_nat, _initialize_check_for_gdb_ini)
9765 (_initialize_loadable): New prototypes.
9766
7fb3ad1f
DE
97672012-03-02 Doug Evans <dje@google.com>
9768
9769 * dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
9770 abbrev table, read_comp_unit will do it.
9771
693be288
JK
97722012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
9773
9774 Fix -Wmissing-prototypes build.
9775 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Make it static.
9776 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): New prototype.
9777 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Likewise.
9778 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code): Make it static.
9779 (_initialize_arm_symbian_tdep): New prototype.
9780 * arm-wince-tdep.c (arm_wince_skip_main_prologue): Make it static.
9781 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): New prototype.
9782 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Make it
9783 static.
9784 * lm32-tdep.c (_initialize_lm32_tdep): New prototype.
9785 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): New
9786 prototype.
9787 * microblaze-tdep.c (microblaze_debug, microblaze_fetch_instruction)
9788 (microblaze_skip_prologue, microblaze_frame_cache): Make them static.
9789 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Make it
9790 static.
9791 * moxie-tdep.c (moxie_process_record): Likewise.
9792 * remote-mips.c (mips_can_use_watchpoint, mips_insert_watchpoint)
9793 (mips_remove_watchpoint, mips_stopped_by_watchpoint): Make them static.
9794 * rl78-tdep.c (rl78_breakpoint_from_pc): Make it static.
9795 (_initialize_rl78_tdep): New prototype.
9796 * rx-tdep.c (rx_breakpoint_from_pc): Make it static.
9797 (_initialize_rx_tdep): New prototype.
9798 * solib-darwin.c (darwin_in_dynsym_resolve_code): Make it static.
9799 (_initialize_darwin_solib): New prototype.
9800 * solib-spu.c: Include solib-spu.h.
9801 (_initialize_spu_solib): New prototype.
9802 * spu-multiarch.c (_initialize_spu_multiarch): New prototype.
9803 * tic6x-tdep.c (tic6x_analyze_prologue, tic6x_skip_prologue)
9804 (tic6x_breakpoint_from_pc, tic6x_frame_unwind_cache)
9805 (tic6x_software_single_step): Make it static.
9806 (_initialize_tic6x_tdep): New prototype.
9807
638234e5
JK
98082012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
9809
9810 Fix -Wmissing-prototypes build.
9811 * cris-tdep.c (cris_can_use_hardware_watchpoint)
9812 (cris_region_ok_for_watchpoint, cris_stopped_data_address): Remove.
9813
f4a6f16d
JK
98142012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9815
9816 Fix -Wmissing-prototypes build.
9817 * frv-tdep.c (frv_check_watch_resources, frv_stopped_data_address)
9818 (frv_have_stopped_data_address): Remove.
9819
04dcf5fa
JK
98202012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9821
9822 Fix -Wmissing-prototypes build.
9823 * Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h.
9824 * sh-tdep.c: Include sh64-tdep.h.
9825 * sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations.
9826 * sh64-tdep.c: Include sh64-tdep.h.
9827 * sh64-tdep.h: New file.
9828
19080931
MR
98292012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
9830
9831 * mips-tdep.c (mips32_scan_prologue): Correct indentation.
9832
9aac7884
MR
98332012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
9834
9835 * mips-tdep.c (mips_gdbarch_init): Only set pc_regnum and
9836 sp_regnum once the gdbarch_init_osabi hook has been called.
9837
a385295e
MR
98382012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
9839
9840 * mips-tdep.c (mips32_bc1_pc): New function.
9841 (mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T,
9842 BPOSGE32 and BPOSGE64 instructions.
9843 (deal_with_atomic_sequence): Likewise.
9844 (mips32_instruction_has_delay_slot): Likewise.
9845
1faeff08 98462012-03-01 Maciej W. Rozycki <macro@mips.com>
a09130f9
PA
9847 Chris Dearman <chris@mips.com>
9848 Maciej W. Rozycki <macro@codesourcery.com>
9849 Joseph Myers <joseph@codesourcery.com>
1faeff08
MR
9850
9851 * features/mips-dsp.xml: New file.
9852 * features/mips64-dsp.xml: New file.
9853 * features/mips-dsp-linux.xml: New file.
9854 * features/mips64-dsp-linux.xml: New file.
9855 * features/Makefile (WHICH): Add mips-dsp-linux and
9856 mips64-dsp-linux.
9857 (mips-dsp-expedite, mips64-dsp-expedite): New variables.
9858 * features/mips-dsp-linux.c: New file.
9859 * features/mips64-dsp-linux.c: New file.
9860 * regformats/mips-dsp-linux.dat: New file.
9861 * regformats/mips64-dsp-linux.dat: New file.
9862 * mips-linux-nat.c (mips_linux_register_addr): Handle DSP
9863 registers.
9864 (mips64_linux_register_addr): Likewise.
9865 (mips64_linux_regsets_fetch_registers): Likewise.
9866 (mips64_linux_regsets_store_registers): Likewise.
9867 (mips64_linux_fetch_registers): Update call to
9868 mips64_linux_regsets_fetch_registers.
9869 (mips64_linux_store_registers): Update call to
9870 mips64_linux_regsets_store_registers.
9871 (mips_linux_read_description): Probe for DSP registers.
9872 (_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux
9873 and initialize_tdesc_mips64_dsp_linux.
9874 * mips-linux-tdep.c (supply_gregset, mips64_supply_gregset):
9875 Remove padding of no longer used embedded register slots.
9876 * mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros.
9877 (MIPS_RESTART_REGNUM): Redefine enum value.
9878 * mips-tdep.c (mips_generic_reg_names): Remove trailing null
9879 strings.
9880 (mips_tx39_reg_names): Likewise.
9881 (mips_linux_reg_names): New array of register names for Linux
9882 targets.
9883 (mips_register_name): Check for a null pointer in
9884 mips_processor_reg_names and return an empty string.
9885 (mips_register_type): Exclude embedded registers for the IRIX
9886 and Linux ABIs.
9887 (mips_pseudo_register_type): Likewise. Use dynamic numbers to
9888 refer to FP registers, LO, HI, BadVAddr, Cause and PC. Handle
9889 DSP registers.
9890 (mips_stab_reg_to_regnum): Handle DSP accumulators.
9891 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
9892 (mips_gdbarch_init): Likewise. Initialize internal register
9893 indices for the Linux ABI. Use dynamic numbers to refer to
9894 registers, as applicable, while parsing the target description.
9895 * mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets.
9896
263689d8
JB
98972012-03-01 Joel Brobecker <brobecker@adacore.com>
9898
9899 * frame.h (read_frame_register_unsigned): Fix typo in function
9900 description.
9901
f3b4f45c
PA
99022012-03-01 Pedro Alves <palves@redhat.com>
9903
9904 * jit-reader.in [!__cplusplus]
9905 (GDB_DECLARE_GPL_COMPATIBLE_READER): Add missing backslash.
9906
b03a2011
PA
99072012-03-01 Pedro Alves <palves@redhat.com>
9908
9909 * configure.ac (build_warnings): Add -Wmissing-prototypes.
9910 * configure: Regenerate.
9911
70221824
PA
99122012-03-01 Pedro Alves <palves@redhat.com>
9913
9914 * amd64-linux-tdep.c (amd64_linux_record_signal): Make static.
9915 * breakpoint.c (create_exception_master_breakpoint, trace_command)
9916 (ftrace_command, strace_command): Make static.
9917 * d-lang.c (_initialize_d_language): Declare.
9918 * dwarf2expr.c (_initialize_dwarf2expr): Declare.
9919 * dwarf2loc.c (_initialize_dwarf2loc):
9920 * dwarf2read.c (process_psymtab_comp_unit): Make static.
9921 * exec.c (exec_get_section_table): Make static.
9922 * i386-linux-tdep.c (i386_linux_record_signal): Make static.
9923 * infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static.
9924 * inferior.c (remove_inferior_command, add_inferior_command)
9925 (clone_inferior_command): Make static.
9926 * linux-nat.c (linux_nat_thread_address_space)
9927 (linux_nat_core_of_thread): Make static.
9928 * linux-tdep.c (_initialize_linux_tdep): Declare.
9929 * objc-lang.c (_initialize_objc_lang): Declare.
9930 * opencl-lang.c (builtin_opencl_type, opencl_language_arch_info):
9931 Make static.
9932 (_initialize_opencl_language): Declare.
9933 * record.c (_initialize_record): Declare.
9934 * remote.c (demand_private_info, remote_get_tib_address)
9935 (remote_supports_cond_tracepoints)
9936 (remote_supports_fast_tracepoints, remote_get_tracepoint_status):
9937 Make static.
9938 * skip.c (_initialize_step_skip): Declare.
9939 * symtab.c (skip_prologue_using_lineinfo): Make static.
9940 * tracepoint.c (delete_trace_state_variable)
9941 (trace_variable_command, delete_trace_variable_command)
9942 (get_uploaded_tsv, find_matching_tracepoint_location)
9943 (find_matching_tsv, create_tsv_from_upload, get_traceframe_info):
9944 Make static.
9945 * value.c (pack_unsigned_long): Make static.
9946 * varobj.c (varobj_ensure_python_env): Make static.
9947 * windows-tdep.c (_initialize_windows_tdep): Declare.
9948 * xml-syscall.c (make_cleanup_free_syscalls_info): Make static.
9949
33fbcbee
PA
99502012-03-01 Pedro Alves <palves@redhat.com>
9951
9952 * linux-tdep.c (linux_has_shared_address_space): Make static. Add
9953 gdbarch parameter.
9954 (linux_init_abi): Install it as has_shared_address_space gdbarch
9955 callback.
9956
44d0cd3b
PA
99572012-03-01 Pedro Alves <palves@redhat.com>
9958
9959 * observer.c (observer_test_first_notification_function)
9960 (observer_test_second_notification_function)
9961 (observer_test_third_notification_function): Add declarations.
9962
ed01b82c
PA
99632012-03-01 Pedro Alves <palves@redhat.com>
9964
9965 * common/signals.c (default_target_signal_to_host)
9966 (default_target_signal_from_host): Move ...
9967 * arch-utils.c: ... here.
9968 * arch-utils.h (default_target_signal_to_host)
9969 (default_target_signal_from_host): Declare.
9970
9971 * common/signals.c (target_signal_from_command): Move ...
9972 * infrun.c: ... here.
9973 * inferior.h (target_signal_from_command): Declare.
9974 * target.h (target_signal_from_command)
9975 (default_target_signal_from_host, default_target_signal_to_host):
9976 Delete declarations.
9977
9978 * common/signals.c (_initialize_signals): Delete.
9979
c9b87335
PA
99802012-03-01 Pedro Alves <palves@redhat.com>
9981
9982 * jit-reader.in (plugin_is_GPL_compatible): Add declarations for
9983 both __cplusplus and !__cplusplus.
9984
9340a6c0
PA
99852012-03-01 Pedro Alves <palves@redhat.com>
9986
9987 * psymtab.c (find_and_open_source): Delete declaration.
9988 * source.c (find_and_open_source): Move comment ...
9989 * source.h (find_and_open_source): ... to this new declaration.
9990
e451c4a1
PA
99912012-03-01 Pedro Alves <palves@redhat.com>
9992
9993 * inline-frame.c: Include inline-frame.h.
9994
983fb104
PA
99952012-03-01 Pedro Alves <palves@redhat.com>
9996
9997 * tui/tui-data.c (set_gen_win_origin): Delete.
9998 * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration.
9999 * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete.
10000
5fbce5df
PA
100012012-03-01 Pedro Alves <palves@redhat.com>
10002
10003 * remote.c (encode_actions): Delete declaration.
10004 * tracepoint.c (encode_actions): Make extern.
10005 * tracepoint.h (encode_actions): Declare.
10006
49a8461d
PA
100072012-03-01 Pedro Alves <palves@redhat.com>
10008
10009 * python/py-breakpoint.c: Include python.h.
10010 * python/py-continueevent.c (create_continue_event_object): Make
10011 static.
10012 * python/py-lazy-string.c (stpy_get_type): Make static.
10013 * python/py-newobjfileevent.c (create_new_objfile_event_object):
10014 Make static.
10015 * python/py-utils.c (unicode_to_target_python_string): Make
10016 static.
10017 * python/py-value.c: Include python.h.
10018
9079102f
PA
100192012-03-01 Pedro Alves <palves@redhat.com>
10020
10021 * inferior.c (delete_threads_of_inferior): Delete.
10022
a298c5e8
PA
100232012-03-01 Pedro Alves <palves@redhat.com>
10024
10025 Import fallback definitions from glibc.
10026
10027 * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
10028 ps_prochandle): Forward declare.
10029 (ps_err_e): Use glibc's comments.
10030 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
10031 (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
10032 (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup)
10033 (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize)
10034 (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare.
10035 (struct ps_prochandle): Adjust comment.
10036
e3084549
PA
100372012-03-01 Pedro Alves <palves@redhat.com>
10038
10039 * ada-lang.c (ada_modulus_from_name): Delete.
10040 * ada-lex.l (lexer_init): Make static.
10041
ad5f7d6e
PA
100422012-03-01 Pedro Alves <palves@redhat.com>
10043
10044 PR gdb/13767
10045
10046 * frame.c (read_frame_register_unsigned): New.
10047 * frame.h (read_frame_register_unsigned): Declare.
10048 * i387-tdep.c (print_i387_status_word): New parameter `status_p'.
10049 Handle it.
10050 (print_i387_control_word): New parameter `control_p'. Handle it.
10051 (i387_print_float_info): Handle unavailable float registers.
10052
e0a4d108
KS
100532012-03-01 Keith Seitz <keiths@redhat.com>
10054
10055 * linespec.c (decode_line_2): Sort the list of methods
10056 alphabetically before presenting the user with a selection
10057 menu.
10058
122d1940
DE
100592012-03-01 Doug Evans <dje@google.com>
10060
10061 * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
10062 has_namespace_info.
10063 (dwarf2_read_abbrevs): Remove corresponding initialization.
10064
7d74f244
DE
100652012-03-01 Scott J. Goldman <scottjg@vmware.com>
10066
10067 * NEWS: Mention new python command class gdb.COMMAND_USER.
10068 * cli/cli-cmds.c (show_user): Print error when used on a python
10069 command.
10070 (init_cli_cmds): Update documentation strings for "show user" and
10071 "set/show max-user-call-depth" to clarify that it does not apply to
10072 python commands.
10073 * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in
10074 error check.
10075 (gdbpy_initialize_commands): Add COMMAND_USER as a constant in
10076 gdb python api.
10077 * top.c (execute_command): Only execute a user-defined command as a
10078 legacy macro if c->user_commands is set.
10079
e88acd96
TT
100802012-03-01 Tom Tromey <tromey@redhat.com>
10081
10082 * valprint.h (struct generic_val_print_decorations): New.
10083 (generic_val_print): Declare.
10084 * valprint.c (generic_val_print): New function.
10085 * p-valprint.c (p_decorations): New global.
10086 (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM,
10087 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT,
10088 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF,
10089 TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print.
10090 * m2-valprint.c (m2_decorations): New global.
10091 (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC,
10092 TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR,
10093 TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF,
10094 TYPE_CODE_ERROR>: Call generic_val_print.
10095 * f-valprint.c (f_decorations): New global.
10096 (f_val_print): Use print_function_pointer_address.
10097 <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS,
10098 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE,
10099 TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call
10100 generic_val_print.
10101 * c-valprint.c (c_decorations): New global.
10102 (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM,
10103 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL,
10104 TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT,
10105 TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR,
10106 TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print.
10107 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove
10108 case.
10109
d3eab38a
TT
101102012-03-01 Tom Tromey <tromey@redhat.com>
10111
10112 * valprint.c (val_print): Update.
10113 * p-valprint (pascal_val_print): Return void.
10114 * p-lang.h (pascal_val_print): Return void.
10115 * m2-valprint.c (m2_val_print): Return void.
10116 * m2-lang.h (m2_val_print): Return void.
10117 * language.h (struct language_defn) <la_val_print>: Return void.
10118 * language.c (unk_lang_val_print): Return void.
10119 * jv-valprint.c (java_val_print): Return void.
10120 * jv-lang.h (java_val_print): Return void.
10121 * f-valprint.c (f_val_print): Return void.
10122 * f-lang.h (f_val_print): Return void.
10123 * d-valprint.c (d_val_print): Return void.
10124 (dynamic_array_type): Update.
10125 * d-lang.h (d_val_print): Return void.
10126 * c-valprint.c (c_val_print): Return void.
10127 * c-lang.h (c_val_print): Return void.
10128 * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
10129 void.
10130 * ada-lang.h (ada_val_print): Return void.
10131
35c0084b
TT
101322012-03-01 Tom Tromey <tromey@redhat.com>
10133
10134 * value.h (val_print): Return void.
10135 * valprint.c (val_print): Return void.
10136
a1f5dd1b
TT
101372012-03-01 Tom Tromey <tromey@redhat.com>
10138
10139 * value.h (common_val_print): Return void.
10140 * valprint.c (common_val_print): Return void.
10141
8e069a98
TT
101422012-03-01 Tom Tromey <tromey@redhat.com>
10143
10144 * value.h (value_print): Return void.
10145 * valprint.c (value_print): Return void.
10146 * p-valprint.c (pascal_value_print): Return void.
10147 * p-lang.h (pascal_value_print): Return void.
10148 * language.h (struct language_defn) <la_value_print>: Return
10149 void.
10150 * language.c (unk_lang_value_print): Return void.
10151 * jv-valprint.c (java_value_print): Return void.
10152 * jv-lang.h (java_value_print): Return void.
10153 * f-valprint.c (c_value_print): Don't declare.
10154 Include c-lang.h.
10155 * c-valprint.c (c_value_print): Return void.
10156 * c-lang.h (c_value_print): Return void.
10157 * ada-valprint.c (ada_value_print): Return void.
10158 * ada-lang.h (ada_value_print): Return void.
10159
be335936
TT
101602012-03-01 Tom Tromey <tromey@redhat.com>
10161
10162 * value.c (value_primitive_field): Handle virtual base classes.
10163
b0db66a7
TT
101642012-03-01 Tom Tromey <tromey@redhat.com>
10165
10166 * gdbtypes.h (struct vbase): Remove.
10167
132c57b4
TT
101682012-03-01 Tom Tromey <tromey@redhat.com>
10169
10170 * c-valprint.c (print_function_pointer_address): Move...
10171 * valprint.c: ... here. Make non-static.
10172 * m2-valprint.c (print_function_pointer_address): Remove.
10173 * valprint.h (print_function_pointer_address): Declare.
10174
e41eec66
JB
101752012-03-01 Joel Brobecker <brobecker@adacore.com>
10176
10177 * NEWS: Document the fact that one can provide a condition when
10178 creating an Ada exception catchpoint.
10179
19c37f24
TT
101802012-03-01 Tom Tromey <tromey@redhat.com>
10181
10182 * valprint.c (val_print_type_code_flags): Fix placement of
10183 trailing brace.
10184
f0fed3a3
JB
101852012-03-01 Joel Brobecker <brobecker@adacore.com>
10186
10187 * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
10188 (update_files): Do not set MULTILINE_COMMENT_PREFIXES
10189 environment variable before calling update-copyright.
10190
8ba85d85
JB
101912012-03-01 Joel Brobecker <brobecker@adacore.com>
10192
10193 * gnulib/extra/update-copyright: Update to the latest from
10194 gnulib's git repository.
10195 * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
10196 variable to 2 instead of 1.
10197
8219b1e8
JB
101982012-02-29 Joel Brobecker <brobecker@adacore.com>
10199
10200 * varobj.c (c_value_of_variable): Remove dead code.
10201
718cb7da
JB
102022012-02-29 Joel Brobecker <brobecker@adacore.com>
10203
10204 * ada-lex.p (processId): Do not modify already encoded IDs.
10205 Update function documentation.
10206
739593e0
JB
102072012-02-29 Joel Brobecker <brobecker@adacore.com>
10208
10209 * ada-lang.h (ada_find_renaming_symbol): Replace parameter
10210 "name" with "struct symbol *name_sym".
10211 * ada-exp.y (write_var_or_type): Update call to
10212 ada_find_renaming_symbol.
10213 "name" with "struct symbol *name_sym". Adjust Implementation
10214 accordingly. Adjust the function documentation.
10215
852dff6c
JB
102162012-02-29 Joel Brobecker <brobecker@adacore.com>
10217
10218 * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
10219 * ada-lang.c (ada_find_any_type): Add advance declaration.
10220 Make static. Replace ada_find_any_symbol by
10221 ada_find_any_type_symbol.
10222 (ada_find_any_type_symbol): Renames ada_find_any_symbol.
10223 Improve function description. Make static.
10224 (ada_find_renaming_symbol, find_old_style_renaming_symbol):
10225 Replace ada_find_any_symbol by ada_find_any_type_symbol.
10226
1b611343
JB
102272012-02-29 Joel Brobecker <brobecker@adacore.com>
10228
10229 * ada-lang.c (struct tag_args): Delete.
10230 (ada_get_tsd_type): Function body moved up in source file.
10231 (ada_tag_name_1, ada_tag_name_2): Delete.
10232 (ada_get_tsd_from_tag): New function.
10233 (ada_tag_name_from_tsd): New function.
10234 (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
10235 to determine the tag name.
10236
41246937
JB
102372012-02-29 Joel Brobecker <brobecker@adacore.com>
10238
10239 * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
10240 declaration.
10241 * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
10242 function.
10243
ffde82bf
JB
102442012-02-29 Joel Brobecker <brobecker@adacore.com>
10245
10246 * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
10247
2ad01556
JB
102482012-02-29 Joel Brobecker <brobecker@adacore.com>
10249
10250 * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
10251 full searches.
10252
99b1c762
JB
102532012-02-29 Joel Brobecker <brobecker@adacore.com>
10254
10255 * ada-lang.c (constrained_packed_array_type): If there is a
10256 parallel XA type, use it to determine the array index type.
10257
2d4a02ee
JB
102582012-02-29 Joel Brobecker <brobecker@adacore.com>
10259
10260 * ada-valprint.c (ada_val_print_1): If our value is a reference
10261 to an array descriptor, dereference it before converting it
10262 to a simple array.
10263
c48db5ca
JB
102642012-02-29 Joel Brobecker <brobecker@adacore.com>
10265
10266 * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
10267 creating fixed value.
10268 (ada_value_ind, ada_coerce_ref, assign_component)
10269 (ada_evaluate_subexp): Remove call to unwrap_value before
10270 call to ada_to_fixed_value.
10271
2e6fda7d
JB
102722012-02-29 Joel Brobecker <brobecker@adacore.com>
10273
10274 * ada-lang.c (to_fixed_array_type): Set result's type name.
10275
5845583d
JB
102762012-02-29 Joel Brobecker <brobecker@adacore.com>
10277
10278 * ada-lang.c (catch_ada_exception_command_split): Add new
10279 argument cond_string. Add support for condition at end of
10280 "catch exception" commands.
10281 (ada_decode_exception_location): Add new argument cond_string.
10282 Update call to catch_ada_exception_command_split.
10283 (create_ada_exception_catchpoint): Add new argument cond_string.
10284 Set the breakpoint condition if needed.
10285 (catch_ada_exception_command): Update call to
10286 ada_decode_exception_location.
10287 (ada_decode_assert_location): Add function documentation.
10288 Add support for condition at end of "catch assert" command.
10289 (catch_assert_command): Update calls to ada_decode_assert_location
10290 and create_ada_exception_catchpoint.
10291
9a7f938f
JK
102922012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
10293
10294 Fix disp-step-syscall.exp: fork: single step over fork.
10295 * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
10296 (i386_linux_get_syscall_number_from_regcache): ... here, new function
10297 comment, change parameters gdbarch and ptid to regcache. Remove
10298 parameter regcache, initialize gdbarch from regcache here.
10299 (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
10300 New functions.
10301 (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
10302 instead.
10303 * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
10304 'syscall'. Make the 'int' check more strict.
10305
ffdf6de5
JK
103062012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
10307
10308 Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
10309 * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
10310 (i386_linux_intx80_sysenter_syscall_record): ... here.
10311 (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
10312 Use the renamed function name.
10313
c70a6932
JK
103142012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
10315
10316 * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
10317 * breakpoint.c (until_break_command): Likewise.
10318 * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
10319 * infcall.c (call_function_by_hand): Likewise.
10320 * infcmd.c (finish_forward): Likewise.
10321 * infrun.c (insert_exception_resume_breakpoint): Likewise.
10322
05b8a789 103232012-02-28 Tristan Gingold <gingold@adacore.com>
d4cd3da9 10324
d4cd3da9
JB
10325 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
10326 avoid variable assignments inside condition.
10327
6425366c
JK
103282012-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
10329
10330 Fix static analysis issue found by cppcheck.
10331 * microblaze-tdep.c (microblaze_extract_return_value): Fix
10332 uninitialized BUF for size 2.
10333
c8cef75f 103342012-02-27 Chris Dearman <chris@mips.com>
a09130f9
PA
10335 Nathan Froyd <froydnj@codesourcery.com>
10336 Maciej W. Rozycki <macro@codesourcery.com>
c8cef75f
MR
10337
10338 * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
10339 (mips16_instruction_has_delay_slot): Likewise.
10340 (mips_segment_boundary): Likewise.
10341 (mips_adjust_breakpoint_address): Likewise.
10342 (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
10343
473347ad 103442012-02-27 Maciej W. Rozycki <macro@mips.com>
a09130f9 10345 Maciej W. Rozycki <macro@codesourcery.com>
473347ad
MR
10346
10347 * infrun.c (handle_inferior_event): Don't proceed through
10348 shared library trampolines if stepping at the machine
10349 instruction level.
10350
cf233303
MR
103512012-02-27 Maciej W. Rozycki <macro@codesourcery.com>
10352
10353 * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
10354 too.
10355
cb2cf4ce
TS
103562012-02-27 Thomas Schwinge <thomas@codesourcery.com>
10357
10358 * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
10359 (sh_stub_unwind_sniffer): New functions.
10360 (sh_stub_unwind): New variable.
10361 (sh_gdbarch_init): Wire everything.
10362
644cebc9
PA
103632012-02-27 Pedro Alves <palves@redhat.com>
10364
10365 * linux-nat.c (pid_is_stopped): Delete, moved to common/.
10366 (linux_nat_post_attach_wait): Adjust to use
10367 linux_proc_pid_is_stopped.
10368 * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
10369 * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
10370 based on pid_is_stopped from both linux-nat.c and
10371 gdbserver/linux-low.c, and renamed.
10372
283002cf
MR
103732012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
10374
10375 * remote.c (remote_watchpoint_addr_within_range): New function.
10376 (init_remote_ops): Use it.
10377
9b3e86b1
MR
103782012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
10379
10380 * target.h (target_watchpoint_addr_within_range): Document macro.
10381
e36930bb
PA
103822012-02-24 Pedro Alves <palves@redhat.com>
10383
10384 * stack.c (set_last_displayed_sal): Issue internal_error instead
10385 of warning, and issue it after clearing the last displayed sal.
10386
883bc8d1
PA
103872012-02-24 Jan Kratochvil <jan.kratochvil@redhat.com>
10388 Pedro Alves <palves@redhat.com>
10389
10390 * breakpoint.c (until_break_command): Install breakpoints after
10391 all frame manipulations.
10392
b775012e
LM
103932012-02-24 Luis Machado <lgustavo@codesourcery.com>
10394
10395 * remote.c (remote_supports_cond_breakpoints): New forward
10396 declaration.
10397 (remote_add_target_side_condition): New function.
10398 (remote_insert_breakpoint): Add target-side breakpoint
10399 conditional if supported.
10400 (remote_insert_hw_breakpoint): Likewise.
10401 (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
10402 hook.
10403
10404 * target.c (update_current_target): Inherit
10405 to_supports_evaluation_of_breakpoint_conditions.
10406 Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
10407
10408 * target.h (struct target_ops)
10409 <to_supports_evaluation_of_breakpoint_conditions>: New field.
10410 (target_supports_evaluation_of_breakpoint_conditions): New #define.
10411
10412 * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
10413 (condition_evaluation_both, condition_evaluation_auto,
10414 condition_evaluation_host, condition_evaluation_target,
10415 condition_evaluation_enums, condition_evaluation_mode_1,
10416 condition_evaluation_mode): New static globals.
10417 (translate_condition_evaluation_mode): New function.
10418 (breakpoint_condition_evaluation_mode): New function.
10419 (gdb_evaluates_breakpoint_condition_p): New function.
10420 (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
10421 (mark_breakpoint_modified): New function.
10422 (mark_breakpoint_location_modified): New function.
10423 (set_condition_evaluation_mode): New function.
10424 (show_condition_evaluation_mode): New function.
10425 (bp_location_compare_addrs): New function.
10426 (get_first_location_gte_addr): New helper function.
10427 (set_breakpoint_condition): Free condition bytecode if locations
10428 has become unconditional. Call mark_breakpoint_modified (...).
10429 (condition_command): Call update_global_location_list (1) for
10430 breakpoints.
10431 (breakpoint_xfer_memory): Use is_breakpoint (...).
10432 (is_breakpoint): New function.
10433 (parse_cond_to_aexpr): New function.
10434 (build_target_condition_list): New function.
10435 (insert_bp_location): Handle target-side conditional
10436 breakpoints and call build_target_condition_list (...).
10437 (update_inserted_breakpoint_locations): New function.
10438 (insert_breakpoint_locations): Handle target-side conditional
10439 breakpoints.
10440 (bpstat_check_breakpoint_conditions): Add comment.
10441 (bp_condition_evaluator): New function.
10442 (bp_location_condition_evaluator): New function.
10443 (print_breakpoint_location): Print information on where the condition
10444 will be evaluated.
10445 (print_one_breakpoint_location): Likewise.
10446 (init_bp_location): Call mark_breakpoint_location_modified (...) for
10447 breakpoint location.
10448 (force_breakpoint_reinsertion): New functions.
10449 (update_global_location_list): Handle target-side breakpoint
10450 conditions.
10451 Reinsert locations that are already inserted if conditions have
10452 changed.
10453 (bp_location_dtor): Free agent expression bytecode.
10454 (disable_breakpoint): Call mark_breakpoint_modified (...).
10455 Call update_global_location_list (...) with parameter 1 for breakpoints.
10456 (disable_command): Call mark_breakpoint_location_modified (...).
10457 Call update_global_location_list (...) with parameter 1 for breakpoints.
10458 (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
10459 (enable_command): mark_breakpoint_location_modified (...).
10460 (_initialize_breakpoint): Update documentation and add
10461 condition-evaluation breakpoint subcommand.
10462
10463 * breakpoint.h: Include ax.h.
10464 (condition_list): New data structure.
10465 (condition_status): New enum.
10466 (bp_target_info) <cond_list>: New field.
10467 (bp_location) <condition_changed, cond_bytecode>: New fields.
10468 (is_breakpoint): New prototype.
10469
3788aec7
LM
104702012-02-24 Luis Machado <lgustavo@codesourcery.com>
10471
10472 * remote.c (remote_state) <cond_breakpoints>: New field.
10473 (PACKET_ConditionalBreakpoints): New enum.
10474 (remote_cond_breakpoint_feature): New function.
10475 (remote_protocol_features): Add new ConditionalBreakpoints entry.
10476 (remote_supports_cond_breakpoints): New function.
10477 (_initialize_remote): Add new packet configuration for
10478 target-side conditional breakpoints.
10479
72895ff6
LM
104802012-02-24 Luis Machado <lgustavo@codesourcery.com>
10481
10482 * NEWS: Mention target-side conditional breakpoint support,
10483 new condition-evaluation breakpoint subcommand and remote
10484 packet extensions.
10485
dea2aa5f
LM
104862012-02-24 Luis Machado <lgustavo@codesourcery.com>
10487
10488 * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
10489 number.
10490
8a8bc27f
TS
104912012-02-24 Thomas Schwinge <thomas@codesourcery.com>
10492
10493 * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
10494 (after_prologue): Remove.
10495
6b446fdf
TT
104962012-02-23 Tom Tromey <tromey@redhat.com>
10497
10498 * jv-valprint.c (java_val_print): Remove dead code.
10499
ef59abfb
TG
105002012-02-23 Tristan Gingold <gingold@adacore.com>
10501
a09130f9
PA
10502 * ada-tasks.c (struct ada_tasks_inferior_data): Add
10503 known_tasks_element and known_tasks_length fields.
10504 (read_known_tasks_array): Change argument type. Use pointer type
10505 and number of elements from DATA. Adjust.
10506 (read_known_tasks_list): Likewise.
10507 (get_known_tasks_addr): Remove.
10508 (ada_set_current_inferior_known_tasks_addr): Renamed to ...
10509 (ada_tasks_inferior_data_sniffer): ... this. Use symtab for element
10510 type and array length. Merge former get_known_tasks_addr code.
ef59abfb 10511
def166f6
JK
105122012-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
10513
10514 PR backtrace/13716
10515 * infcmd.c (finish_forward): New variable frame_id, initialize it, use
10516 it after set_momentary_breakpoint.
10517
aeaa2474
SA
105182012-02-22 Sterling Augustine <saugustine@google.com>
10519
10520 PR 13689:
10521 * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
10522
feea76c2
GB
105232012-02-22 Gary Benson <gbenson@redhat.com>
10524
10525 * dwarf2read.c (dwarf2_read_index): Correct misspelling.
10526 (find_slot_in_mapped_hash): Likewise.
10527
f06e05e0
JK
105282012-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
10529
10530 PR build/13638
10531 * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
10532 (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
10533 * configure: Regenerate.
10534
b54a8fd7
PA
105352012-02-21 Tristan Gingold <gingold@adacore.com>
10536 Pedro Alves <palves@redhat.com>
10537
10538 * ia64-tdep.c: Do not include libunwind-ia64.h.
10539 * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
10540 Include libunwind-ia64.h instead of libunwind.h.
10541 * configure.ac (--with-libunwind, $enable_libunwind): Don't check
10542 for libunwind.h existence.
10543 * configure, config.in: Regenerate.
10544
dfcee124
AG
105452012-02-21 Anton Gorenkov <xgsa@yandex.ru>
10546
10547 * c-valprint.c (c_value_print): Use value_rtti_indirect_type
10548 instead of value_rtti_target_type.
10549 * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
10550 instead of value_rtti_target_type.
10551 * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
10552 value_rtti_target_type.
10553 * valops.c (value_ind): Extract function readjust_indirect_value_type.
10554 (value_rtti_target_type): Rename to ...
10555 (value_rtti_indirect_type): ... here and make it indirect. Update
10556 function comment.
10557 * value.c (readjust_indirect_value_type): New function.
10558 (coerce_ref): Support for enclosing type setting for references
10559 with readjust_indirect_value_type.
10560 * value.h (readjust_value_type): New declaration.
10561 (value_rtti_target_type): Rename to ...
10562 (value_rtti_indirect_type): ... here.
10563
02568277
AG
105642012-02-21 Anton Gorenkov <xgsa@yandex.ru>
10565
10566 * MAINTAINERS (Write After Approval): Add myself to the list.
10567
10c07b7e 105682012-02-20 Doug Evans <dje@google.com>
28ee876a 10569
d82ea6a8
DE
10570 * objfiles.c (add_to_objfile_sections): Remove outdated comments.
10571 Rename objfile_p_char parameter to objfilep.
10572 (build_objfile_section_table): Result is now void. All callers
10573 updated.
10574 * objfiles.h (struct objfile): Tweak comments, whitespace.
10575 (build_objfile_section_table): Update.
10576
28ee876a
DE
10577 * elfread.c (elf_symfile_segments): Fix warning text.
10578
24c79950
TT
105792012-02-20 Tom Tromey <tromey@redhat.com>
10580
10581 PR gdb/13498:
10582 * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
10583 particular set of file names once.
10584 (dw2_map_symbol_filenames): Likewise.
10585
3a9b40b6
JK
105862012-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10587
10588 Code cleanup.
10589 * main.c (write_files): Remove the declaration.
10590 (external_editor_command): Move the declaration ...
10591 [GDBTK] (external_editor_command): ... here. Fix the comment.
10592
4d0795ca
TT
105932012-02-20 Tom Tromey <tromey@redhat.com>
10594
10595 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
10596 extraneous block.
10597
637fd620
TG
105982012-02-20 Tristan Gingold <gingold@adacore.com>
10599
10600 * darwin-nat.h (enum darwin_msg_state): Add comments.
10601
6f124894
TG
106022012-02-20 Tristan Gingold <gingold@adacore.com>
10603
10604 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
10605 value.
10606
2e6e3d9c
JB
106072012-20-18 Joel Brobecker <brobecker@adacore.com>
10608
10609 * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
10610 between function description and implementation.
10611
2e8265fd
TT
106122012-02-17 Tom Tromey <tromey@redhat.com>
10613
10614 PR python/12070:
10615 * python/py-event.c (event_object_getset): New global.
10616 (event_object_type): Reference it.
10617 * python/py-type.c (field_object_getset): New global.
10618 (field_object_type): Reference it.
10619 * python/python-internal.h (gdb_py_generic_dict): Declare.
10620 * python/py-utils.c (gdb_py_generic_dict): New function.
10621
8544a150 106222012-02-17 Tristan Gingold <gingold@adacore.com>
6f124894 10623
8544a150 10624 * solib-darwin.c (darwin_current_sos): Check magic and filetype
6f124894 10625
ca193e27
TS
106262012-02-17 Thomas Schwinge <thomas@codesourcery.com>
10627
10628 * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
10629 TYPE_CALLING_CONVENTION annotation.
10630
e5586183
KB
106312012-02-16 Kevin Buettner <kevinb@redhat.com>
10632
10633 * MAINTAINERS: Add rx to target ISA section.
10634 * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
10635 (ALLDEPFILES): Add rx-tdep.c.
10636
7dcd53a0
TT
106372012-02-16 Tom Tromey <tromey@redhat.com>
10638
10639 * symfile.c (symbol_file_add_main_1): Use inferior's
10640 symfile_flags.
10641 * solib.c (solib_read_symbols): Use inferior's symfile_flags.
10642 * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
10643 inferior.
10644 * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
10645 inferior.
10646 (follow_exec): Use inferior's symfile_flags.
10647 * inferior.h (struct inferior) <symfile_flags>: New field.
10648
ddd60447
MF
106492012-02-16 Mike Frysinger <vapier@gentoo.org>
10650
10651 PR gdb/9734:
10652 * remote-sim.c (gdbsim_create_inferior): Call error() when
10653 sim_create_inferior() fails.
10654
b0d32fb6
TG
106552012-02-16 Josh Matthews <josh@joshmatthews.net>
10656
10657 * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
10658
9addecb9
TT
106592012-02-16 Tom Tromey <tromey@redhat.com>
10660
10661 PR c++/13653:
10662 * thread.c (struct current_thread_cleanup) <was_removable>: New
10663 field.
10664 (restore_current_thread_cleanup_dtor): Restore 'removable' field.
10665 (make_cleanup_restore_current_thread): Initialize new field.
10666
a58b110a
KB
106672012-02-15 Kevin Buettner <kevinb@redhat.com>
10668
10669 * MAINTAINERS: Add rl78 to target ISA section.
10670 * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
10671 (ALLDEPFILES): Add rl78-tdep.c.
10672 * NEWS: Mention rl78 as a new target.
10673
4cb6da1c
AR
106742012-02-15 Aleksandar Ristovski <aristovski@qnx.com>
10675
10676 * frame.c (find_frame_sal): Initialize sal->pspace field from frame
10677 data.
10678 * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
10679
3af2590d
TT
106802012-02-15 Tom Tromey <tromey@redhat.com>
10681
10682 PR gdb/12659:
10683 * infcmd.c (registers_info): Print just the current register's
10684 name.
10685
c6910659
TT
106862012-02-15 Tom Tromey <tromey@redhat.com>
10687
10688 * python/py-symbol.c (sympy_value): Use _().
10689
7cee1e54
PA
106902012-02-15 Pedro Alves <palves@redhat.com>
10691
10692 * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
10693 output to be like native targets'.
10694 (remote_pid_to_str): Special case the null ptid.
10695
816338b5
SS
106962012-02-14 Stan Shebs <stan@codesourcery.com>
10697
10698 * NEWS: Mention enable count command.
10699 * breakpoint.h (struct breakpoint): New field enable_count.
10700 * breakpoint.c (enable_breakpoint_disp): Add count argument.
10701 (enable_breakpoint): Add arg to call.
10702 (struct disp_data): New struct.
10703 (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
10704 (do_map_enable_once_breakpoint): Create a struct and pass it.
10705 (do_map_enable_delete_breakpoint): Ditto.
10706 (do_map_enable_count_breakpoint): New function.
10707 (enable_count_command): New function.
10708 (bpstat_stop_status): Decrement enable_count.
10709 (print_one_breakpoint_location): Report enable count.
10710 (_initialize_breakpoint): Add enable count command.
10711
c47a44f4
KB
107122012-02-14 Kevin Buettner <kevinb@redhat.com>
10713
10714 * rl78-tdep.c (reggroups.h): Include.
10715 (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
10716 (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
10717 (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
10718 (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
10719 (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
10720 (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
10721 (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
10722 (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
10723 (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
10724 (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
10725 (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
10726 (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
10727 (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
10728 (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
10729 (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
10730 (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
10731 beginning of register list.
10732 (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
10733 (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
10734 (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
10735 (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
10736 (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
10737 (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
10738 (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
10739 (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
10740 (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
10741 (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
10742 (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
10743 the pseudo registers. Rearrange other pseudo registers too so
10744 that the bank registers appear at the end.
10745 (rl78_register_type): Account for the fact that the byte sized
10746 bank registers are now pseudo-registers.
10747 (rl78_register_name): Rearrange the register name array. Make
10748 initial set of raw banked registers inaccessible.
10749 (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
10750 (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
10751 case for copying bytes back and forth between raw and pseudo
10752 versions of the banked registers. Update other cases to reflect
10753 the changed names.
10754 (rl78_return_value): Update to account for changed names of
10755 raw registers.
10756 (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
10757 rl78_register_sim_regno().
10758
e4569f1e
KB
107592012-02-14 Kevin Buettner <kevinb@redhat.com>
10760
10761 * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
10762 the name parameter being passed to find_pc_partial_function().
10763
7a05aae7
JK
107642012-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10765
10766 * MAINTAINERS: Step down from being ia64 target maintainer.
10767
11fde611
JK
107682012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
10769
10770 * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
10771 compilation warning.
10772
57008375
JK
107732012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
10774
10775 Fix crash on loaded shlibs without loaded exec_bfd.
10776 * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
10777 (set_section_command): Replace exec_bfd by p->bfd.
10778
ff3c9849
TT
107792012-02-10 Tom Tromey <tromey@redhat.com>
10780
10781 * linespec.c (decode_line_internal): Skip symtabs_from_filename
10782 when we have a C++ qualified name.
10783
db2b9fdd
PA
107842012-02-10 Pedro Alves <palves@redhat.com>
10785
10786 * inferior.c (inferior_pid_to_str): New.
10787 (print_inferior, inferior_command): Use it.
10788
12cd34f3
PA
107892012-02-10 Pedro Alves <palves@redhat.com>
10790
10791 * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
10792 the test CFLAGS.
10793 * configure: Regenerate.
10794
e871429d
JK
107952012-02-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10796
10797 * linespec.c (decode_line_internal): Fix comment correctness.
10798
1916efaf
PA
107992012-02-09 Valery Khromov <valery.khromov@gmail.com>
10800
10801 PR gdb/12953
10802 * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
10803 * amd64bsd-nat.c: Add support for debug registers (adapted from
10804 i386bsd-nat.c).
10805 [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
10806 (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
10807 (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
10808 (amd64bsd_dr_get_control): New functions.
10809 * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
10810 * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
10811 [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
10812 watchpoints initialization.
10813 * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
10814
f4859d94
JK
108152012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10816
10817 * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
10818 flds_bnds.fields.
10819 (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
10820
c56a97f9
JK
108212012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10822
10823 * breakpoint.c (bp_location_compare): Fix comment. Reindent the code.
10824
1a119f36
JB
108252012-02-08 Joel Brobecker <brobecker@adacore.com>
10826
10827 * language.h (symbol_name_cmp_ftype): Renames
10828 symbol_name_match_p_ftype.
10829 (struct language_defn)[la_get_symbol_name_cmp]: Renames
10830 la_get_symbol_name_match_p.
10831 * ada-lang.c (ada_get_symbol_name_cmp): Renames
10832 ada_get_symbol_name_match_p. Update comment.
10833 (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
10834 * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
10835 Renames symbol_name_match_p. Update field type.
10836 (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
10837 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
10838 opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
10839 "la_get_symbol_name_cmp" in comments.
10840 * language.c: Likewise.
10841
c71bb1cf
RO
108422012-02-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10843
10844 * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
10845 %eflags offset.
10846 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
10847 (amd64_sol2_gregset32_reg_offs): Likewise.
10848
4b2d20a5
TG
108492012-02-08 Joel Brobecker <brobecker@adacore.com>
10850
10851 * solib-darwin.c (darwin_bfd_open): Make sure that the filename
10852 of the returned BFD is allocated by GDB.
10853
f0823d2c
TT
108542012-02-07 Tom Tromey <tromey@redhat.com>
10855
10856 PR python/12027:
10857 * python/python-internal.h (frame_object_type): Declare.
10858 * python/py-symbol.c (sympy_needs_frame): New function.
10859 (sympy_value): New function.
10860 (symbol_object_getset): Add "needs_frame".
10861 (symbol_object_methods): Add "value".
10862 * python/py-frame.c (frame_object_type): No longer static.
10863
64e7d9dd
TT
108642012-02-07 Tom Tromey <tromey@redhat.com>
10865
10866 PR python/13599:
10867 * python/py-symbol.c (sympy_line): New function.
10868 (symbol_object_getset): Add "line".
10869
1d6b2d2b
TT
108702012-02-07 Tom Tromey <tromey@redhat.com>
10871
10872 * charset.c (find_charset_names): Check 'in' against NULL.
10873
0d5cff50
DE
108742012-02-06 Doug Evans <dje@google.com>
10875
10876 * gdbtypes.h (struct main_type): Change type of name,tag_name,
10877 and fields.name members from char * to const char *. All uses updated.
10878 (struct cplus_struct_type): Change type of fn_fieldlists.name member
10879 from char * to const char *. All uses updated.
10880 (type_name_no_tag): Update.
10881 (lookup_unsigned_typename, lookup_signed_typename): Update.
10882 * gdbtypes.c (type_name_no_tag): Change result type
10883 from char * to const char *. All callers updated.
10884 (lookup_unsigned_typename, lookup_signed_typename): Change type of
10885 name parameter from char * to const char *.
10886 * symtab.h (struct cplus_specific): Change type of demangled_name
10887 member from char * to const char *. All uses updated.
10888 (struct general_symbol_info): Change type of name and
10889 mangled_lang.demangled_name members from char * to const char *.
10890 All uses updated.
10891 (symbol_get_demangled_name, symbol_natural_name): Update.
10892 (symbol_demangled_name, symbol_search_name): Update.
10893 * symtab.c (symbol_get_demangled_name): Change result type
10894 from char * to const char *. All callers updated.
10895 (symbol_natural_name, symbol_demangled_name): Ditto.
10896 (symbol_search_name): Ditto.
10897 (completion_list_add_name): Change type of symname,sym_text,
10898 text,word parameters from char * to const char *.
10899 (completion_list_objc_symbol): Change type of sym_text,
10900 text,word parameters from char * to const char *.
10901 * ada-lang.c (find_struct_field): Change type of name parameter
10902 from char * to const char *.
10903 (encoded_ordered_before): Similarly for N0,N1 parameters.
10904 (old_renaming_is_invisible): Similarly for function_name parameter.
10905 (ada_type_name): Change result type from char * to const char *.
10906 All callers updated.
10907 * ada-lang.h (ada_type_name): Update.
10908 * buildsym.c (hashname): Change type of name parameter
10909 from char * to const char *.
10910 * buildsym.h (hashname): Update.
10911 * dbxread.c (end_psymtab): Change type of include_list parameter
10912 from char ** to const char **.
10913 * dwarf2read.c (determine_prefix): Change result type
10914 from char * to const char *. All callers updated.
10915 * f-lang.c (find_common_for_function): Change type of name, funcname
10916 parameters from char * to const char *.
10917 * f-lang.c (find_common_for_function): Update.
10918 * f-valprint.c (list_all_visible_commons): Change type of funcname
10919 parameters from char * to const char *.
10920 * gdbarch.sh (static_transform_name): Change type of name parameter
10921 and result from char * to const char *.
10922 * gdbarch.c: Regenerate.
10923 * gdbarch.h: Regenerate.
10924 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
10925 of name parameter from char * to const char *.
10926 * jv-lang.c (java_primitive_type_from_name): Ditto.
10927 (java_demangled_signature_length): Similarly for signature parameter.
10928 (java_demangled_signature_copy): Ditto.
10929 (java_demangle_type_signature): Ditto.
10930 * jv-lang.h (java_primitive_type_from_name): Update.
10931 (java_demangle_type_signature): Update.
10932 * objc-lang.c (specialcmp): Change type of a,b parameters
10933 from char * to const char *.
10934 * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
10935 from char * to const char *. All callers updated.
10936 * p-lang.h (is_pascal_string_type): Update.
10937 * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
10938 of name parameter from char * to const char *.
10939 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
10940 * utils.c (fprintf_symbol_filtered): Ditto.
10941 * defs.h (fprintf_symbol_filtered): Update.
10942 * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
10943 * stabsread.h (end_psymtab): Update.
10944 * stack.c (find_frame_funname): Change type of funname parameter
10945 from char ** to const char **.
10946 * stack.h (find_frame_funname): Update.
10947 * typeprint.c (type_print): Change type of varstring parameter
10948 from char * to const char *.
10949 * value.h (type_print): Update.
10950 * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
10951 from char * to const char *. All callers updated.
10952 (xcoff_end_psymtab): Change type of include_list parameter
10953 from char ** to const char **. All callers updated.
10954 (swap_sym): Similarly for name parameter. All callers updated.
10955 * coffread.c (patch_type): Add (char*) cast to xfree parameter.
10956 Use xstrdup.
10957 (process_coff_symbol): Use xstrdup.
10958 * stabsread.c (stabs_method_name_from_physname): Renamed from
10959 update_method_name_from_physname. Change result type from void
10960 to char *. All callers updated.
10961 (read_member_functions): In has_destructor case, store name in objfile
10962 obstack instead of malloc space. In !has_stub case, fix mem leak.
10963
5579a92e
TT
109642012-02-06 Luca Pizzamiglio <luca.pizzamiglio@gmail.com>
10965
10966 * configure: Rebuild.
10967 * configure.ac: Put -L../bfd and -L../libiberty at the front of
10968 LDFLAGS.
10969
9058f767
KB
109702012-02-03 Kevin Buettner <kevinb@redhat.com>
10971
10972 * configure.tgt (rl78-*-elf): New target.
10973 * rl78-tdep.c: New file.
10974
5b37825d
PW
109752012-02-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10976
10977 * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
10978 and continue the loop. Add QUIT statement.
10979
e009ee71
TT
109802012-02-03 Tom Tromey <tromey@redhat.com>
10981
10982 PR gdb/13596:
10983 * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
10984 bfd_lookup_symbol_from_symtab.
10985 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
10986 gdb_bfd_lookup_symbol_from_symtab.
10987
f7e44f65
JB
109882012-02-03 Joel Brobecker <brobecker@adacore.com>
10989
10990 * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
10991 use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
10992 symbol. Add assertion that sym2 is never NULL.
10993
2c02bd72
DE
109942012-02-02 Doug Evans <dje@google.com>
10995
10996 * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
10997 "name" parameter to const char ** from char **. All callers updated.
10998 (find_pc_partial_function): Ditto.
10999 (cache_pc_function_name): Change type to const char * from char *.
11000 * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
11001 (find_pc_partial_function): Update.
11002 * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
11003 type of "name" parameter to const char * from char *.
11004 All uses updated.
11005 * arch-utils.c (generic_in_solib_return_trampoline): Change
11006 type of "name" parameter to const char * from char *.
11007 * arch-utils.h (generic_in_solib_return_trampoline): Update.
11008 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
11009 type of "name" parameter to const char * from char *.
11010 * gdbarch.sh (in_solib_return_trampoline): Ditto.
11011 * gdbarch.c: Regenerate.
11012 * gdbarch.h: Regenerate.
11013 * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
11014 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
11015 * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
11016 type of "name" parameter to const char * from char *.
11017 * skip.c (skip_function_pc): Ditto.
11018 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
11019 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
11020 * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
11021 * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
11022 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
11023 * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
11024 * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
11025 * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
11026 * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
11027
e886a173
PA
110282012-02-02 Pedro Alves <palves@redhat.com>
11029
11030 * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
11031 the current inferior has no execution. Make sure the current
11032 remote process matches gdb's current inferior.
11033
c709a7c2
TT
110342012-02-02 Tom Tromey <tromey@redhat.com>
11035
11036 PR gdb/13405:
11037 * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
11038 read-only memory.
11039
f149aabd
TT
110402012-02-02 Tom Tromey <tromey@redhat.com>
11041
11042 PR gdb/9307:
11043 * symtab.c (lookup_language_this): Set block_found.
11044
03bef283
TT
110452012-02-01 Tom Tromey <tromey@redhat.com>
11046
11047 PR gdb/13431:
11048 * jit.c (struct jit_inferior_data): Rewrite.
11049 (struct jit_objfile_data): New.
11050 (get_jit_objfile_data): New function.
11051 (add_objfile_entry): Update.
11052 (jit_read_descriptor): Return int. Replace descriptor_addr
11053 argument with inf_data. Update. Don't call error.
11054 (jit_breakpoint_re_set_internal): Reorder logic. Update. Look up
11055 descriptor here.
11056 (jit_inferior_init): Don't look up descriptor. Don't call error.
11057 (jit_reset_inferior_data_and_breakpoints)
11058 (jit_inferior_created_observer): Remove.
11059 (jit_inferior_exit_hook): Update.
11060 (jit_executable_changed_observer): Remove.
11061 (jit_event_handler): Update.
11062 (free_objfile_data): Reset inferior data if needed.
11063 (_initialize_jit): Update.
11064
f0bbc364
TT
110652012-02-01 Tom Tromey <tromey@redhat.com>
11066
11067 * jit.c (bfd_open_from_target_memory): Move higher in file.
11068
47c1316c
TG
110692012-02-01 Tristan Gingold <gingold@adacore.com>
11070
11071 * libunwind-frame.c (libunwind_load): Display message if dlopen
11072 failed.
11073
8e704927
GB
110742012-02-01 Gary Benson <gbenson@redhat.com>
11075
09c7a31f 11076 * symtab.h (symbol_found_callback_ftype): New typedef.
8e704927
GB
11077 (iterate_over_symbols): Use the above.
11078 * symtab.c (iterate_over_symbols): Likewise.
11079 * language.h (language_defn->la_iterate_over_symbols): Likewise.
11080 * ada-lang.c (ada_iterate_over_symbols): Likewise.
11081 * linespec.c (iterate_over_all_matching_symtabs): Likewise.
11082 (iterate_name_matcher): Document return values.
11083 (collect_one_symbol): Likewise.
11084 (collect_function_symbols): Likewise.
11085 (collect_symbols): Likewise.
11086
d9680e73
TT
110872012-02-01 Tom Tromey <tromey@redhat.com>
11088
11089 * ada-lang.c (resolve_subexp): Update.
11090 (ada_lookup_symbol_list): Add 'full_search' argument.
11091 (ada_iterate_over_symbols): Pass 0 as full_search argument to
11092 ada_lookup_symbol_list.
11093 (ada_lookup_encoded_symbol): Update.
11094 (get_var_value): Update.
11095 * ada-exp.y (block_lookup): Update.
11096 (write_var_or_type): Update.
11097 (write_name_assoc): Update.
11098 * ada-lang.h (ada_lookup_symbol_list): Update.
11099
72e1143f
TT
111002012-01-31 Tom Tromey <tromey@redhat.com>
11101
11102 * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
11103 comment.
11104
ab2d2ad3
DE
111052012-01-31 Doug Evans <dje@google.com>
11106
11107 * symtab.h: Remove outdated comment.
e9111bf7 11108 (SYMBOL_MATCHES_NATURAL_NAME): Delete.
ab2d2ad3 11109
bc884eba
JB
111102012-02-01 Josh Matthews <josh@joshmatthews.net> (tiny change)
11111
11112 Fix build error in Darwin port.
11113 * i386-darwin-nat.c: Include i386-nat.h.
11114
8fc3fc34
TT
111152012-01-30 Tom Tromey <tromey@redhat.com>
11116
11117 PR breakpoints/13568:
11118 * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
11119 argument. Check for recursive includes.
11120 (dwarf_decode_macros): Create an include hash.
11121
5d853008
ME
111222012-01-30 Michael Eager <eager@eagercon.com>
11123
11124 * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
11125 * ppc-linux-tdep.c: Include glibc-tdep.h.
ab2d2ad3 11126 (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
5d853008
ME
11127 (powerpc_linux_in_plt_stub): New function.
11128 (powerpc_linux_in_dynsym_resolve_code): New function.
11129 (ppc_skip_trampoline_code): New function.
11130 (ppc_linux_init_abi): Use PPC specific functions rather than generic.
11131 Use glibc_skip_solib_resolver.
11132
40478521
JK
111332012-01-28 Jan Kratochvil <jan.kratochvil@redhat.com>
11134
11135 Code cleanup: Make 1440 bytes of data segment read-only.
11136 * arch-utils.c (endian_enum): Make it const char *const [].
11137 * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
11138 Likewise.
11139 * breakpoint.c (always_inserted_enums): Likewise.
11140 * cli/cli-cmds.c (script_ext_enums): Likewise.
11141 * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
11142 enumlist parameter const char *const *.
11143 * cli/cli-decode.h (struct cmd_list_element): Make the enums field
11144 const char *const *.
11145 * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
11146 parameter const char *const *.
11147 * cris-tdep.c (cris_modes): Make it const char *const [].
11148 * filesystem.c (target_file_system_kinds): Likewise.
11149 * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
11150 * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
11151 (can_use_displaced_stepping_enum, scheduler_enums)
11152 (exec_direction_names): Likewise.
11153 * language.c (_initialize_language): Make the type_or_range_names and
11154 case_sensitive_names variables const char *const [].
11155 * mips-tdep.c (mips_abi_strings): Make it const char *const [].
11156 * python/python.c (python_excp_enums): Likewise.
11157 * remote.c (interrupt_sequence_modes): Likewise.
11158 * rs6000-tdep.c (powerpc_vector_strings): Likewise.
11159 * serial.c (logbase_enums): Likewise.
11160 * sh-tdep.c (sh_cc_enum): Likewise.
11161 * stack.c (print_frame_arguments_choices, print_entry_values_choices):
11162 Likewise.
11163 * symtab.c (multiple_symbols_modes): Likewise.
11164 * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
11165 Likewise.
11166 * utils.c (internal_problem_modes): Likewise.
11167
b3b8b934
JK
111682012-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
11169
11170 Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
11171 * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
11172 result.
11173
8c85a4e2
DE
111742012-01-27 Doug Evans <dje@google.com>
11175
11176 * configure.ac (with_python): Fix absolute path handling for win32.
11177 * configure: Regenerate.
11178
78d8b4d7
DE
111792012-01-26 Doug Evans <dje@google.com>
11180
eca864fe
DE
11181 * symtab.c: Whitespace cleanup, no code changes.
11182
7e082072
DE
11183 * symtab.c (lookup_symbol_in_language): Improve comment.
11184 (lookup_symbol_aux): Fix comment.
11185
7dc25483
DE
11186 * psymtab.c (add_psymbol_to_list): Result is now "void".
11187 * psympriv.h (add_psymbol_to_list): Update.
11188
78d8b4d7
DE
11189 * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
11190
4c63965b
JK
111912012-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
11192
11193 Do not open script filenames twice.
11194 * cli/cli-cmds.c (source_script_from_stream): Pass to
11195 source_python_script also STREAM.
11196 * python/py-auto-load.c (source_section_scripts): Pass to
11197 source_python_script_for_objfile also STREAM.
11198 (auto_load_objfile_script): Pass to source_python_script_for_objfile
11199 also INPUT.
11200 * python/python-internal.h (source_python_script_for_objfile): New
11201 parameter file, rename parameter file to filename.
11202 * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
11203 instead if !_WIN32. Update the function comment.
11204 (source_python_script, source_python_script_for_objfile)
11205 (source_python_script): New parameter file, rename parameter file to
11206 filename. Pass FILENAME to python_run_simple_file.
11207 * python/python.h (source_python_script): New parameter file, rename
11208 parameter file to filename.
11209
88f38a04
PA
112102012-01-26 Pedro Alves <palves@redhat.com>
11211
11212 * corelow.c (core_has_fake_pid): Delete.
11213 (core_close): Delete references to `core_has_fake_pid'.
11214 (add_to_thread_list): Adjust to mark the inferior's pid as fake.
11215 (core_open): Delete references to `core_has_fake_pid'.
11216 (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
11217 the removed global.
11218
e078317b
JB
112192012-01-26 Joel Brobecker <brobecker@adacore.com>
11220
11221 * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
11222 Remove language parameter from name_matcher. Adjust the comment.
11223 * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
11224 Remove language parameter.
11225 * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
11226 * linespec.c (iterate_name_matcher): Likewise.
11227 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
11228 name_matcher. Adjust call accordingly.
11229 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
11230 (maintenance_check_symtabs): Adjust type of parameter "fun".
11231 * psymtab.h (maintenance_check_symtabs): Likewise.
11232
74ccd7f5
JB
112332012-01-26 Joel Brobecker <brobecker@adacore.com>
11234
11235 * language.h (symbol_name_match_p_ftype): New typedef.
11236 (struct language_defn): Replace field la_symbol_name_compare
11237 by la_get_symbol_name_match_p.
11238 * ada-lang.c (ada_get_symbol_name_match_p): New function.
11239 (ada_language_defn): Use it.
11240 * linespec.c (struct symbol_matcher_data): New type.
11241 (iterate_name_matcher): Rewrite.
11242 (iterate_over_all_matching_symtabs): Pass a pointer to
11243 a symbol_matcher_data struct to expand_symtabs_matching
11244 instead of just the lookup name.
11245 * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
11246 opencl-lang.c, p-lang.c, language.c: Delete field
11247 la_symbol_name_compare, and replace by NULL for new field
11248 la_get_symbol_name_match_p.
11249 * symfile.h (struct quick_symbol_functions): Update comment.
11250
5d268276
TT
112512012-01-25 Tom Tromey <tromey@redhat.com>
11252
11253 * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
11254 dereferencing.
11255
edcc5120
TT
112562012-01-24 Tom Tromey <tromey@redhat.com>
11257
11258 PR symtab/12406:
11259 * solib.c (update_solib_list): Update the program space's
11260 added_solibs and deleted_solibs fields.
11261 * progspace.h (struct program_space) <added_solibs,
11262 deleted_solibs>: New fields.
11263 (clear_program_space_solib_cache): Declare.
11264 * progspace.c (release_program_space): Call
11265 clear_program_space_solib_cache.
11266 (clear_program_space_solib_cache): New function.
11267 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
11268 bpstat_stop_status. Use handle_solib_event.
11269 * breakpoint.c: Include gdb_regex.h.
11270 (print_solib_event): New function.
11271 (bpstat_print): Use print_solib_event.
11272 (bpstat_stop_status): Add special case for bp_shlib_event.
11273 (handle_solib_event): New function.
11274 (bpstat_what): Use handle_solib_event.
11275 (struct solib_catchpoint): New.
11276 (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
11277 (breakpoint_hit_catch_solib, check_status_catch_solib)
11278 (print_it_catch_solib, print_one_catch_solib)
11279 (print_mention_catch_solib, print_recreate_catch_solib): New
11280 functions.
11281 (catch_solib_breakpoint_ops): New global.
11282 (catch_load_or_unload, catch_load_command_1)
11283 (catch_unload_command_1): New functions.
11284 (internal_bkpt_check_status): Add special case for
11285 bp_shlib_event.
11286 (internal_bkpt_print_it): Use print_solib_event.
11287 (initialize_breakpoint_ops): Initialize
11288 catch_solib_breakpoint_ops.
11289 (_initialize_breakpoint): Register "catch load" and "catch
11290 unload".
11291 * breakpoint.h (handle_solib_event): Declare.
11292 * NEWS: Add entry for "catch load" and "catch unload".
11293
fa864999
TT
112942012-01-24 Tom Tromey <tromey@redhat.com>
11295
11296 * ada-lang.c: Include gdb_vecs.h.
11297 * charset.c: Include gdb_vecs.h.
11298 * tracepoint.h: Include gdb_vecs.h.
11299 * gdb_vecs.h: New file.
11300
f90263c1
TT
113012012-01-24 Pedro Alves <pedro@codesourcery.com>
11302
11303 * breakpoint.c (breakpoint_hit_catch_fork)
11304 (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
11305 (breakpoint_hit_catch_exec): Make use of the `ws' argument.
11306 * infrun.c (inferior_has_forked, inferior_has_vforked)
11307 (inferior_has_execd, inferior_has_called_syscall): Delete.
11308 (handle_syscall_event): Get syscall_number from the execution
11309 control state's wait status.
11310 (wait_for_inferior): Don't clear syscall_number.
11311
09ac7c10
TT
113122012-01-24 Pedro Alves <palves@redhat.com>
11313
11314 * breakpoint.c (bpstat_check_location, bpstat_stop_status,
11315 pc_at_non_inline_function): Add `ws' parameter, and pass it down.
11316 (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
11317 (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
11318 `ws' parameter.
11319 (breakpoint_hit_ranged_breakpoint): Add `ws' parameter. Return
11320 false for events other than TARGET_SIGNAL_TRAP.
11321 (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
11322 Add `ws' parameter.
11323 (bkpt_breakpoint_hit): Add `ws' parameter. Return false for
11324 events other than TARGET_SIGNAL_TRAP.
11325 (tracepoint_breakpoint_hit): Add `ws' parameter.
11326 * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
11327 parameter.
11328 (bpstat_stop_status): Same.
11329 (pc_at_non_inline_function): Same.
11330 * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
11331 to pass the current event's waitstatus to bpstat_stop_status
11332 and pc_at_non_inline_function.
11333
86eb7e95
JK
113342012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
11335
11336 Code cleanup.
11337 * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
11338 Update the function comment for it.
11339 (source_script_with_search): Call make_cleanup_fclose for STREAM.
11340 * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
11341 for STREAM.
11342
a9b3a50f
PA
113432012-01-24 Pedro Alves <palves@redhat.com>
11344
11345 * breakpoint.c (bpstat_stop_status): Moving clearing print_it
11346 outside `bs->stop' block.
11347 (bpstat_what): Rework bp_shlib_event handling.
11348 (internal_bkpt_check_status): If the breakpoint is a
11349 bp_shlib_event, then set bs->stop and bs->print if
11350 stop_on_solib_events is set.
11351
53fe1783
GB
113522012-01-24 Gary Benson <gbenson@redhat.com>
11353
11354 Delete #if 0'd out code.
11355 * stack.c (print_frame_label_vars): Remove.
11356 (catch_info): Likewise.
11357 (_initialize_stack): Remove "info catch" command.
11358 * NEWS: Mention the above.
11359
49c62f2e
PA
113602012-01-24 Pedro Alves <palves@redhat.com>
11361
11362 * remote.c (remote_add_inferior): New `fake_pid_p' parameter. Use
11363 it.
11364 (remote_notice_new_inferior): If the remote end doesn't support
11365 the multiprocess extensions, then the PID is fake.
11366 (add_current_inferior_and_thread): New.
11367 (remote_start_remote): Use it.
11368 (extended_remote_attach_1): Adjust.
11369 (extended_remote_create_inferior_1): Use
11370 add_current_inferior_and_thread.
11371
d0d8b0c6
JK
113722012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
11373
11374 Fix watchpoints to be specific for each inferior.
11375 * breakpoint.c (watchpoint_in_thread_scope): Verify also
11376 current_program_space.
11377 * i386-nat.c (i386_inferior_data_cleanup): New.
11378 (i386_inferior_data_get): Replace variable inf_data_local by an
11379 inferior_data call.
11380 (i386_use_watchpoints): Initialize i386_inferior_data.
11381 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
11382 specific iterate_over_lwps.
11383
4403d8e9
JK
113842012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
11385
11386 Fix watchpoints across inferior fork.
11387 * amd64-linux-nat.c (update_debug_registers_callback): Update the
11388 comment for linux_nat_iterate_watchpoint_lwps.
11389 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
11390 linux_nat_iterate_watchpoint_lwps.
11391 (amd64_linux_prepare_to_resume): New comment on Linux kernel.
11392 * i386-linux-nat.c (update_debug_registers_callback): Update the
11393 comment for linux_nat_iterate_watchpoint_lwps.
11394 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
11395 linux_nat_iterate_watchpoint_lwps.
11396 (i386_linux_prepare_to_resume): New comment on Linux kernel.
11397 * i386-nat.c: Include inferior.h.
11398 (dr_mirror): Remove.
11399 (i386_inferior_data, struct i386_inferior_data)
11400 (i386_inferior_data_get): New.
11401 (i386_debug_reg_state): Use i386_inferior_data_get.
11402 (i386_cleanup_dregs, i386_update_inferior_debug_regs)
11403 (i386_insert_watchpoint, i386_remove_watchpoint)
11404 (i386_stopped_data_address, i386_insert_hw_breakpoint)
11405 (i386_remove_hw_breakpoint): New variable state, use
11406 i386_debug_reg_state instead of DR_MIRROR.
11407 * linux-nat.c (delete_lwp): New declaration.
11408 (num_lwps): Move here from downwards.
11409 (delete_lwp_cleanup): New.
11410 (linux_child_follow_fork): Create new child_lp, call
11411 linux_nat_new_thread and linux_nat_prepare_to_resume before calling
11412 PTRACE_DETACH.
11413 (num_lwps): Move upwards.
11414 (linux_nat_iterate_watchpoint_lwps): New.
11415 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
11416 (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
11417
2992c9a7 114182012-01-24 Joel Brobecker <brobecker@adacore.com>
11419
11420 GDB 7.4 released.
11421
e360902b
PA
114222012-01-23 Pedro Alves <palves@redhat.com>
11423
11424 * top.c (caution): Rename to ...
11425 (confirm): ... this.
11426 (show_caution): Rename to ...
11427 (show_confirm): ... this.
11428 (quit_cover): Adjust.
11429 (init_main): Adjust.
11430 * top.h (caution): Rename to ...
11431 (confirm): ... this.
11432 * utils.c (internal_vproblem, defaulted_query): Adjust.
11433
050a2e1d
PA
114342012-01-23 Pedro Alves <palves@redhat.com>
11435
11436 * top.c (caution): Update comment.
11437 (execute_command): Don't consider the current value of `caution'.
11438
77a35dd8
JK
114392012-01-23 Jan Kratochvil <jan.kratochvil@redhat.com>
11440
11441 * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
11442
a71b5a38
UW
114432012-01-23 Ulrich Weigand <ulrich.weigand@linaro.org>
11444
11445 * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
11446 * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
11447 * target.c (target_fileio_pwrite): Remove buffer address from
11448 debug output.
11449 (target_fileio_pread): Likewise.
11450
d99bd577
UW
114512012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
11452
11453 * NEWS: Document remote "info proc" and "generate-core-file".
11454
35c2fab7
UW
114552012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
11456
11457 * gdbarch.sh (find_memory_regions): New callback.
11458 * gdbarch.c, gdbarch.h: Regenerate.
11459
11460 * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
11461 callback before falling back to target method.
11462
11463 * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
11464 (linux_target_install_ops): No longer install it.
11465
11466 * linux-tdep.c (linux_find_memory_regions): New function.
11467 (linux_init_abi): Install it.
11468
6432734d
UW
114692012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
11470
11471 * gdbarch.sh (make_corefile_notes): New architecture callback.
11472 * gdbarch.c: Regenerate.
11473 * gdbarch.h: Likewise.
11474
11475 * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
11476 before target_make_corefile_notes. If NULL is returned, the
11477 target does not support core file generation.
11478
11479 * linux-nat.c: Include "linux-tdep.h".
11480 (find_signalled_thread, find_stop_signal): Remove.
11481 (linux_nat_do_thread_registers): Likewise.
11482 (struct linux_nat_corefile_thread_data): Likewise.
11483 (linux_nat_corefile_thread_callback): Likewise.
11484 (iterate_over_spus): Likewise.
11485 (struct linux_spu_corefile_data): Likewise.
11486 (linux_spu_corefile_callback): Likewise.
11487 (linux_spu_make_corefile_notes): Likewise.
11488 (linux_nat_collect_thread_registers): New function.
11489 (linux_nat_make_corefile_notes): Replace contents by call to
11490 linux_make_corefile_notes passing linux_nat_collect_thread_registers
11491 as native-only callback.
11492
11493 * linux-tdep.h: Include "bfd.h".
11494 (struct regcache): Add forward declaration.
11495 (linux_collect_thread_registers_ftype): New typedef.
11496 (linux_make_corefile_notes): Add prototype.
11497 * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
11498 "regset.h", and "elf-bfd.h".
11499 (find_signalled_thread, find_stop_signal): New functions.
11500 (linux_spu_make_corefile_notes): Likewise.
11501 (linux_collect_thread_registers): Likewise.
11502 (struct linux_corefile_thread_data): New data structure.
11503 (linux_corefile_thread_callback): New funcion.
11504 (linux_make_corefile_notes): Likewise.
11505 (linux_make_corefile_notes_1): Likewise.
11506 (linux_init_abi): Install it.
11507
3030c96e
UW
115082012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
11509
11510 * gdbarch.sh (info_proc): New callback.
11511 * gdbarch.c, gdbarch.h: Regenerate.
11512
11513 * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
11514 before falling back to the target info_proc callback.
11515
11516 * linux-nat.c: Do not include "cli/cli-utils.h".
11517 (linux_nat_info_proc): Remove.
11518 (linux_target_install_ops): No longer install it.
11519
11520 * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
11521 (read_mapping): New function.
11522 (linux_info_proc): Likewise.
11523 (linux_init_abi): Install it.
11524
145b16a9
UW
115252012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
11526
11527 * defs.h (enum info_proc_what): Moved here from linux-nat.c
11528 * infcmd.c: (info_proc_cmd_1): New function.
11529 (info_proc_cmd): New function, moved here from equivalent routine
11530 orignally in linux-nat.c.
11531 (info_proc_cmd_mappings): Likewise.
11532 (info_proc_cmd_stat): Likewise.
11533 (info_proc_cmd_status): Likewise.
11534 (info_proc_cmd_cwd): Likewise.
11535 (info_proc_cmd_cmdline): Likewise.
11536 (info_proc_cmd_exe): Likewise.
11537 (info_proc_cmd_all): Likewise.
11538 (_initialize_infcmd): Install "info proc" command and subcommands.
11539
11540 * target.h (struct target_ops): Add to_info_proc.
11541 (target_info_proc): Add prototype.
11542 * target.c (target_info_proc): New function.
11543
11544 * procfs.c (procfs_info_proc): Add prototype.
11545 (info_proc_cmd): Rename into ...
11546 (procfs_info_proc): ... this. Update argument types as appropriate
11547 for a to_info_proc implementation. Handle "what" argument.
11548 (procfs_target): Install procfs_info_proc.
11549 (_initialize_procfs): No longer install "info proc" command.
11550
11551 * linux-nat.c: (enum info_proc_what): Remove.
11552 (linux_nat_info_proc_cmd_1): Rename into ...
11553 (linux_nat_info_proc): ... this. Update argument types as appropriate
11554 for a to_info_proc implementation.
11555 (linux_nat_info_proc_cmd): Remove.
11556 (linux_nat_info_proc_cmd_mappings): Likewise.
11557 (linux_nat_info_proc_cmd_stat): Likewise.
11558 (linux_nat_info_proc_cmd_status): Likewise.
11559 (linux_nat_info_proc_cmd_cwd): Likewise.
11560 (linux_nat_info_proc_cmd_cmdline): Likewise.
11561 (linux_nat_info_proc_cmd_exe): Likewise.
11562 (linux_nat_info_proc_cmd_all): Likewise.
11563 (linux_target_install_ops): Install linux_nat_info_proc.
11564 (_initialize_linux_nat): No longer install "info proc" command
11565 and subcommands.
11566
b9e7b9c3
UW
115672012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
11568
11569 * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
11570 * config.in, configure: Regenerate.
11571
11572 * target.h (struct target_ops): Add to_fileio_readlink.
11573 (target_fileio_readlink): Add prototype.
11574 * target.c (target_fileio_readlink): New function.
11575
11576 * inf-child.c: Conditionally include <sys/param.h>.
11577 (inf_child_fileio_readlink): New function.
11578 (inf_child_target): Install it.
11579
11580 * remote.c (PACKET_vFile_readlink): New enum value.
11581 (remote_hostio_readlink): New function.
11582 (init_remote_ops): Install it.
11583 (_initialize_remote): Handle vFile:readlink packet type.
11584
7313baad
UW
115852012-01-20 Pedro Alves <palves@redhat.com>
11586 Ulrich Weigand <ulrich.weigand@linaro.org>
11587
11588 * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
11589 * config.in, configure: Regenerate.
11590
11591 * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
11592 to_fileio_pread, to_fileio_close, to_fileio_unlink.
11593 (target_fileio_open): Add prototype.
11594 (target_fileio_pwrite): Likewise.
11595 (target_fileio_pread): Likewise.
11596 (target_fileio_close): Likewise.
11597 (target_fileio_unlink): Likewise.
11598 (target_fileio_read_alloc): Likewise.
11599 (target_fileio_read_stralloc): Likewise.
11600
11601 * target.c: Include "gdb/fileio.h".
11602 (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
11603 (default_fileio_target): New function.
11604 (target_fileio_open): Likewise.
11605 (target_fileio_pwrite): Likewise.
11606 (target_fileio_pread): Likewise.
11607 (target_fileio_close): Likewise.
11608 (target_fileio_unlink): Likewise.
11609 (target_fileio_close_cleanup): Likewise.
11610 (target_fileio_read_alloc_1): Likewise.
11611 (target_fileio_read_alloc): Likewise.
11612 (target_fileio_read_stralloc): Likewise.
11613
11614 * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
11615 <fcntl.h>, and <unistd.h>.
11616 (inf_child_fileio_open_flags_to_host): New function.
11617 (inf_child_errno_to_fileio_error): Likewise.
11618 (inf_child_fileio_open): Likewise.
11619 (inf_child_fileio_pwrite): Likewise.
11620 (inf_child_fileio_pread): Likewise.
11621 (inf_child_fileio_close): Likewise.
11622 (inf_child_fileio_unlink): Likewise.
11623 (inf_child_target): Install to_fileio routines.
11624
11625 * remote.c (init_remote_ops): Install to_fileio routines.
11626
901f9912
UW
116272012-01-20 Pedro Alves <palves@redhat.com>
11628 Ulrich Weigand <ulrich.weigand@linaro.org>
11629
11630 * remote.c (remote_multi_process_p): Only check for multi-process
11631 protocol feature, do not check for extended protocol.
11632 (remote_supports_multi_process): Check for extended protocol here.
11633 (set_general_process): Likewise.
11634 (extended_remote_kill): Likewise.
11635 (remote_pid_to_str): Likewise.
11636 (remote_query_supported): Always query multiprocess mode.
11637
e714e1bf
UW
116382012-01-20 Pedro Alves <palves@redhat.com>
11639 Ulrich Weigand <ulrich.weigand@linaro.org>
11640
11641 * inferior.h (struct inferior): Add fake_pid_p.
11642 * inferior.c (exit_inferior_1): Clear fake_pid_p.
11643 * remote.c (remote_start_remote): Set fake_pid_p if we have to use
11644 magic_null_ptid since the remote side doesn't provide a real PID.
11645
50897289
TT
116462012-01-19 Tom Tromey <tromey@redhat.com>
11647
11648 * NEWS: Combine the two Python sections.
11649
1afc2033
JK
116502012-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
11651
11652 * target.h (target_close): Update comment on the target's unpush state.
11653
305436e0
PA
116542012-01-19 Pedro Alves <palves@redhat.com>
11655
11656 * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
11657 linux_nat_async directly instead of going through the target
11658 vector.
11659 * target.c (unpush_target): Close target after unpushing it, not
11660 before.
11661
49323895
GB
116622012-01-19 Gary Benson <gbenson@redhat.com>
11663
11664 * mdebugread.c (sort_blocks): Replace integer constants with ones
11665 derived from FIRST_LOCAL_BLOCK.
11666
1db33378
PP
116672012-01-18 Paul Pluzhnikov <ppluzhnikov@google.com>
11668 Jan Kratochvil <jan.kratochvil@redhat.com>
11669
11670 PR gdb/9538
11671 * symfile.c (find_separate_debug_file): New function.
11672 (terminate_after_last_dir_separator): Likewise.
11673 (find_separate_debug_file_by_debuglink): Also try realpath.
11674 * configure.ac (AC_CHECK_FUNCS): Add lstat.
11675 * configure: Regenerate.
11676 * config.in: Regenerate.
11677
f83d8a90
DE
116782012-01-18 Doug Evans <dje@google.com>
11679
11680 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
11681 (main.o): Remove rule.
11682 * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
11683 (--with-sysroot): Rewrite.
11684 * configure: Regenerate.
11685 * config.in: Regenerate.
11686
2dbca4d6
SDJ
116872012-01-18 Sergio Durigan Junior <sergiodj@redhat.com>
11688
11689 * parse.c (initialize_expout): New function.
11690 (reallocate_expout): Likewise.
11691 (parse_exp_in_context): Use `initialize_expout' and
11692 `reallocate_expout' when appropriate.
11693
0695b514
PA
116942012-01-18 Pedro Alves <palves@redhat.com>
11695
11696 * record.c (struct record_breakpoint, record_breakpoint_p)
11697 (record_breakpoints): New.
11698 (record_insert_breakpoint, record_remove_breakpoint): Manage
11699 record breakpoints list. Only remove breakpoints from the
11700 inferior if they had been inserted there in the first place.
11701
136e1c30
DE
117022012-01-17 Doug Evans <dje@google.com>
11703
11704 * linespec.c (decode_line_internal): Don't call symtabs_from_filename
11705 if we know we don't have a file name to look for.
11706
c0bf857d
PA
117072012-01-17 Pedro Alves <palves@redhat.com>
11708
11709 * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
11710 the frame's stop reason is UNWIND_UNAVAILABLE.
11711
b486de60
JK
117122012-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
11713
11714 Fix compilation error.
11715 * m2-exp.y (yyerror): Use ANSI C prototype.
11716
d04550a6
SDJ
117172012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
11718
11719 * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
11720 (growbuf_by_size): Likewise.
11721 (yyerror): Likewise.
11722 * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
11723 (modblock): Remove variable (was #if 0'ed).
11724 (parse_number): Convert prototype from K&R to ANSI C.
11725 (yyerror): Likewise.
11726 * objc-exp.y (parse_number): Likewise.
11727 (yyerror): Likewise.
11728 (yylex): Remove #if 0'ed code.
11729 * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
11730 (yyerror): Likewise.
11731
4aac40c8
TT
117322012-01-16 Tom Tromey <tromey@redhat.com>
11733
11734 * NEWS: Add item.
11735 * symtab.h (compare_filenames_for_search): Declare.
11736 * symtab.c (compare_filenames_for_search): New function.
11737 (iterate_over_some_symtabs): Use it.
11738 * symfile.h (struct quick_symbol_functions)
11739 <map_symtabs_matching_filename>: Change spec.
11740 * psymtab.c (partial_map_symtabs_matching_filename): Use
11741 compare_filenames_for_search. Update for new spec.
11742 * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
11743 compare_filenames_for_search. Update for new spec.
11744 * breakpoint.c (clear_command): Use compare_filenames_for_search.
11745
cafec441
TT
117462012-01-16 Tom Tromey <tromey@redhat.com>
11747
11748 PR python/13281:
11749 * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
11750 (struct main_type) <flag_flag_enum>: New field.
11751 * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
11752 * NEWS: Add entries.
11753 * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
11754 enums.
11755 * python/lib/gdb/printing.py (_EnumInstance): New class.
11756 (FlagEnumerationPrinter): Likewise.
11757
983af33b
SDJ
117582012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
11759
11760 * breakpoint.c (create_sals_from_address_default): New function.
11761 (create_breakpoints_sal_default): Likewise.
11762 (decode_linespec_default): Likewise.
11763 (is_marker_spec): Removed.
11764 (strace_marker_p): New function.
11765 (init_breakpoint_sal): Using `strace_marker_p' instead of
11766 `is_marker_spec'.
11767 (create_breakpoint): Call method `create_sals_from_address' from
11768 breakpoint_ops, replacing code that created SALs conditionally
11769 on the type of the breakpoint. Call method `create_breakpoints_sal',
11770 replacing code that created breakpoints conditionally on the type
11771 wanted.
11772 (base_breakpoint_create_sals_from_address): New function.
11773 (base_breakpoint_create_breakpoints_sal): Likewise.
11774 (base_breakpoint_decode_linespec): Likewise.
11775 (base_breakpoint_ops): Add methods
11776 `base_breakpoint_create_sals_from_address',
11777 `base_breakpoint_create_breakpoints_sal' and
11778 `base_breakpoint_decode_linespec'.
11779 (bkpt_create_sals_from_address): New function.
11780 (bkpt_create_breakpoints_sal): Likewise.
11781 (bkpt_decode_linespec): Likewise.
11782 (tracepoint_create_sals_from_address): Likewise.
11783 (tracepoint_create_breakpoints_sal): Likewise.
11784 (tracepoint_decode_linespec): Likewise.
11785 (strace_marker_create_sals_from_address): Likewise.
11786 (strace_marker_create_breakpoints_sal): Likewise.
11787 (strace_marker_decode_linespec): Likewise.
11788 (strace_marker_breakpoint_ops): New variable.
11789 (addr_string_to_sals): Remove `marker_spec'. Call method
11790 `decode_linespec' from breakpoint_ops, replacing code that decoded
11791 an address string into a SAL. Use `strace_marker_p' instead of
11792 `marker_spec'.
11793 (strace_command): Decide whether we are dealing with a static
11794 tracepoint with marker or not. Use the appropriate breakpoint_ops.
11795 (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
11796 * breakpoint.h (linespec_result, linespec_sals): New forward
11797 declarations.
11798 (breakpoint_ops) <create_sals_from_address>,
11799 <create_breakpoints_sal>, <decode_linespec>: New methods.
11800
4795f398
DE
118012012-01-14 Doug Evans <dje@google.com>
11802
11803 * NEWS: Update text for "maint set python print-stack".
11804 It is deprecated in gdb 7.4 and deleted in 7.5.
11805
ee5106fe
EZ
118062012-01-13 Eli Zaretskii <eliz@gnu.org>
11807
11808 * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
11809 including curses.h.
11810
b161e06f
JK
118112012-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
11812
11813 * configure: Regenerate.
11814 * config.in: Regenerate.
11815
85254831
KS
118162012-01-12 Keith Seitz <keiths@redhat.com>
11817
11818 PR mi/10586
11819 * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
11820 (ANONYMOUS_UNION_NAME): Define.
11821 (is_path_expr_parent): New function.
11822 (get_path_expr_parent): New function.
11823 (is_anonymous_child): New function.
11824 (create_child_with_value): If the child is anonymous and without
11825 a name, assign an object name to it.
11826 (c_describe_child): Use get_path_expr_parent to determine
11827 the parent expression.
11828 If there field represents an anonymous struct or union and
11829 has no name, set an appropriate display name and expression.
11830 (cplus_describe_child): Likewise.
11831
620fa63a
PA
118322012-01-12 Pedro Alves <palves@redhat.com>
11833
11834 * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
11835 available when %ebp is found to be zero (outermost).
11836
2efa2c79
AT
118372012-01-11 Andreas Tobler <andreast@fgznet.ch>
11838
11839 * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
11840 an internal gdb_static_assert.
11841 * mi/mi-common.c: Rename static_assert to gdb_static_assert.
11842
88e7d25d
TT
118432012-01-11 Tom Tromey <tromey@redhat.com>
11844
11845 PR gdb/9598:
11846 * breakpoint.c (_initialize_breakpoint): Fix help for "catch
11847 catch" and "catch throw".
11848
72384ba3
PH
118492012-01-11 Paul Hilfinger <hilfingr@adacore.com>
11850
11851 * blockframe.c (block_innermost_frame): Start search from selected
11852 frame, if present, or otherwise the current frame.
11853
11854 * c-exp.y (variable): Update innermost_block for
11855 'block COLONCOLON NAME' clause.
11856 * m2-exp.y (variable): Ditto.
11857 * objc-exp.y (variable): Ditto.
11858
065a711f
TT
118592012-01-10 Tom Tromey <tromey@redhat.com>
11860
11861 PR python/13199:
11862 * python/python.c (finish_python_initialization): Set sys.argv.
11863
f3f5162e
DE
118642012-01-10 Doug Evans <dje@google.com>
11865
11866 * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd". New arg
11867 "want_line_info". All callers updated.
11868 (dwarf_decode_lines_1): New function.
11869 (handle_DW_AT_stmt_list): Add function comment.
11870 New arg "want_line_info". All callers updated.
11871 (read_file_scope,read_type_unit_scope): Move comment from
11872 handle_DW_AT_stmt_list to here.
11873
9934703b
JK
118742012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
11875
11876 Fix regression after libiberty/ update for GCC PR 6057 and others.
11877 * c-exp.y (operator) <OPERATOR DELETE>
11878 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
11879 * cp-name-parser.y (fill_comp, make_operator, make_dtor)
11880 (make_builtin_type, make_name): New variable i, add gdb_assert.
11881 (operator) <OPERATOR NEW>: Update ARGS to 3.
11882 (operator) <OPERATOR DELETE>: Add trailing space.
11883 (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
11884 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
11885 * cp-support.c (cp_canonicalize_string): Check NULL from
11886 cp_comp_to_string, call warning and return.
11887
06b9f45f
JK
118882012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
11889
11890 Fix duplicate .o files after omitting libbfd.a.
11891 * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
11892 (SFILES): Add corelow.c.
11893 (COMMON_OBS): Add corelow.o.
11894 (ALLDEPFILES): Remove corelow.c.
11895 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
11896 * config/alpha/alpha-osf3.mh: Likewise.
11897 * config/alpha/fbsd.mh: Likewise.
11898 * config/arm/nbsdaout.mh: Likewise.
11899 * config/arm/nbsdelf.mh: Likewise.
11900 * config/i386/i386gnu.mh: Likewise.
11901 * config/ia64/hpux.mh: Likewise.
11902 * config/ia64/linux.mh: Likewise.
11903 * config/m32r/linux.mh: Likewise.
11904 * config/m68k/linux.mh: Likewise.
11905 * config/mips/irix5.mh: Likewise.
11906 * config/mips/irix6.mh: Likewise.
11907 * config/pa/hpux.mh: Likewise.
11908 * config/pa/linux.mh: Likewise.
11909 * config/powerpc/aix.mh: Likewise.
11910 * config/sparc/linux.mh: Likewise.
11911 * config/sparc/linux64.mh: Likewise.
11912 * config/sparc/sol2.mh: Likewise.
11913 * config/vax/vax.mh: Likewise.
11914 * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
11915 (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
11916 (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
11917 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
11918 (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
11919 (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
11920 (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
11921 (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
11922 (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
11923 (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
11924 (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
11925 (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
11926 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
11927 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
11928 (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
11929 (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
11930 (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
11931 (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
11932 (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
11933 (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
11934 (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
11935 (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
11936 corelow.o from gdb_target_obs.
11937 * corefile.c (core_target): Update the comment on NULL value.
11938 (core_file_command): Replace error by gdb_assert on CORE_TARGET.
11939 * corelow.c (sniff_core_bfd): Call error instead of warning on zero
11940 MATCHES. Drop YUMMY set on NULL.
11941 (core_close): Do not call exit_inferior_silent on zero PID. Do not
11942 reclaim CORE_DATA if it is already NULL.
11943
34365054
DE
119442012-01-09 Doug Evans <dje@google.com>
11945
11946 * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
11947 * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
11948
696166a3
KS
119492012-01-09 Keith Seitz <keiths@redhat.com>
11950
11951 * breakpoint.c (wrapper.h): Don't include.
11952
8e7b59a5
KS
119532012-01-09 Keith Seitz <keiths@redhat.com>
11954
11955 * Makefile.in (SFILES): Remove wrapper.c.
11956 (HFILES_NO_SRCDIR): Remove wrapper.h.
11957 (COMMON_OBS): Remove wrapper.o.
11958 * cli/cli-interp.c: Don't inlude wrapper.h.
11959 * corelow.c: Likewise.
11960 (core_open): Replace gdb_target_find_new_threads with
11961 TRY_CATCH around target_find_new_threads.
11962 * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
11963 * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
11964 * varobj.c (varobj_create): Likewise for parse_exp_1 and
11965 evaluate_expression.
11966 (varobj_set_value): Likewise for evaluate_expression and
11967 value_assign.
11968 (install_new_variable): Likewise for value_fetch_lazy.
11969 (adjust_value_for_child_access): Likewise for value_ind.
11970 (c_describe_child): Likewise for value_subscript and
11971 value_ind.
11972 (c_value_of_root): Likewise for evaluate_expression.
11973 * wrapper.c: Remove.
11974 * wrapper.h: Remove.
11975
1a4eeb98
DE
119762012-01-09 Doug Evans <dje@google.com>
11977
9ff913ba
DE
11978 * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
11979 partial_read_comp_unit_head. Replace "buffer", "buffer_size" and
11980 "abfd" args with "section". All callers updated.
11981 Error checking code moved ...
11982 (error_check_comp_unit_head): ... here. New function.
11983 (read_and_check_type_unit_head): Renamed from read_type_unit_head.
11984 Delete arg "abfd". New arg "type_offset". All callers updated.
11985 (create_debug_types_hash_table): Simplify by using
11986 read_and_check_type_unit_head.
11987
1a4eeb98
DE
11988 * parser-defs.h (namecopy): Delete.
11989 * parse.c (namecopy, namecopy_size): Move into copy_name.
11990
2e6af8c0
JK
119912012-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
11992
11993 Partially fix duplicate .o files after omitting libbfd.a.
11994 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
11995 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
11996 * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
11997 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
11998 * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
11999 * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
12000 * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
12001
9f2f828a
PA
120022012-01-09 Pedro Alves <palves@redhat.com>
12003
12004 * MAINTAINERS: Update my email address.
12005
4d72c0bc
DE
120062012-01-08 Doug Evans <dje@google.com>
12007
d467dd73
DE
12008 * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
12009 n_type_units. Rename type_comp_units to all_type_units.
12010 All uses updated.
12011 (add_signatured_type_cu_to_table): Renamed from
12012 add_signatured_type_cu_to_list. All callers updated.
12013
4d72c0bc
DE
12014 * gdbtypes.h (struct cplus_struct_type): Delete member
12015 nfn_fields_total. All uses removed.
12016
21b2bd31
DE
120172012-01-06 Doug Evans <dje@google.com>
12018
12019 * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
12020 to top of file.
12021 (dwarf2_find_comp_unit): Delete.
12022 (process_psymtab_comp_unit): Make result "void".
12023 Delete args buffer, info_ptr, buffer_size, and replace with
12024 "section". All callers updated.
12025 (dwarf2_build_psymtabs_hard): Simplify.
12026
bfd189b1
SDJ
120272012-01-06 Sergio Durigan Junior <sergiodj@redhat.com>
12028 Thiago Jung Bauermann <bauerman@br.ibm.com>
12029
12030 * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
12031 before `struct gdb_exception'.
12032 * breakpoint.c (update_global_location_list_nothrow)
12033 (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
12034 * cp-abi.c (value_rtti_type): Likewise.
12035 * cp-support.c (cp_validate_operator): Likewise.
12036 * infrun.c (insert_exception_resume_breakpoint)
12037 (check_exception_resume, keep_going): Likewise.
12038 * mi-interp.c (mi_breakpoint_created)
12039 (mi_breakpoint_modified): Likewise.
12040 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
12041 * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
12042 (ia64_hpux_handle_dld_breakpoint_1): Likewise.
12043
6b07635f
DE
120442012-01-05 Doug Evans <dje@google.com>
12045
0b30b85c
DE
12046 * dwarf2read.c (statement_prologue): Delete, unused.
12047
98714339
DE
12048 * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
12049 * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
12050
6b07635f
DE
12051 * dwarf2read.c (comp_unit_header): Delete, unused.
12052
761f4555
UW
120532012-01-05 Ulrich Weigand <uweigand@de.ibm.com>
12054
12055 * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
12056 * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
12057
2ca0b532
PA
120582012-01-05 Khoo Yit Phang <khooyp@cs.umd.edu>
12059
12060 * infrun.c (normal_stop): Don't skip calling the normal_stop
12061 observers if the thread was doing a multi-step, but stopped for
12062 some reason other than stepping.
12063
50aeff07
PA
120642012-01-05 Pedro Alves <alves.ped@gmail.com>
12065
12066 * cli/cli-decode.h: Add comments.
12067 (CMD_LIST_AMBIGUOUS): Moved to command.h
12068 (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
12069 (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
12070 (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
12071 (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
12072 (add_com, add_com_alias, add_info, add_info_alias)
12073 (complete_on_cmdlist, complete_on_enum, help_list): Remove
12074 declarations.
12075 * command.h: Add and adjust comments.
12076 (CMD_LIST_AMBIGUOUS): Moved here.
12077 (help_cmd, help_cmd_list): Delete declarations.
12078
5953832c
DE
120792012-01-04 Doug Evans <dje@google.com>
12080
e5fe5e75
DE
12081 * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
12082 All callers updated.
12083 (load_full_type_unit): Renamed from read_signatured_type_at_offset.
12084 Replace all arguments with "per_cu". All callers updated.
12085
28dee7f5
DE
12086 * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
12087
23745b47
DE
12088 * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
12089 New arg "per_cu". All callers updated.
12090
5953832c
DE
12091 Delete #if 0'd out code.
12092 * language.c (binop_result_type): Delete.
12093 (simple_type, ordered_type, same_type, integral_type): Delete.
12094 (numeric_type, character_type, string_type, boolean_type): Delete.
12095 (float_type, structured_type): Delete.
12096 * language.h: Update.
12097
0f5b7562
TT
120982012-01-04 Tom Tromey <tromey@redhat.com>
12099
12100 * python/py-value.c (valpy_binop): Initialize 'res_val'.
12101
78218f56
JB
121022012-01-04 Joel Brobecker <brobecker@adacore.com>
12103
12104 * corefile.c (close_exec_file): Delete.
12105 (reopen_exec_file): Remove commented out code that seems related
12106 to close_exec_file, which is being deleted here.
12107 * inferior.h (close_exec_file): Delete.
12108 * fork-child.c (fork_inferior): Remove call to fork_inferior.
12109
0fcd72ba
JB
121102012-01-04 Joel Brobecker <brobecker@adacore.com>
12111
12112 * ada-lang.c: #include "cli/cli-utils.h".
12113 (get_selections): Use skip_spaces.
12114 (ada_get_next_arg): Use skip_spaces and skip_to_space.
12115 (catch_ada_exception_command_split): Use skip_spaces.
12116 (ada_decode_assert_location): Likewise.
12117
1dabb4c4
JB
121182012-01-04 Joel Brobecker <brobecker@adacore.com>
12119
12120 * linespec.c (decode_line_internal): Check for C++ or Java
12121 compound constructs only if the current language is C, C++
12122 or Java.
12123
5931a2fa
JK
121242012-01-04 Jan Kratochvil <jan.kratochvil@redhat.com>
12125
12126 Revert:
12127 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12128 Joel Brobecker <brobecker@adacore.com>
12129 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
12130 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
12131 3 times.
12132 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
12133 fall through into AT_ENTRY_POINT.
12134 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
12135 DUMMY_ADDR with it.
12136 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
12137 PPC_INSN_SIZE skip to 3 times.
12138
1a2da5ee
JB
121392012-01-04 Joel Brobecker <brobecker@adacore.com>
12140
12141 * linespec.c (add_minsym): Preserve function descriptors.
12142
8645ff69
UW
121432012-01-04 Ulrich Weigand <uweigand@de.ibm.com>
12144
12145 * breakpoint.c (all_locations_are_pending): Consider locations
12146 in program spaces executing during startup pending as well.
12147
0b302171
JB
121482012-01-04 Joel Brobecker <brobecker@adacore.com>
12149
12150 Copyright year update in most files of the GDB Project.
12151
8ba098ad
JB
121522012-01-04 Joel Brobecker <brobecker@adacore.com>
12153
12154 * copyright.sh: Delete.
12155 * copyright.py: Rewrite.
12156
09c01c30
JB
121572012-01-04 Joel Brobecker <brobecker@adacore.com>
12158
12159 * gnulib/extra/update-copyright: New file, imported from gnulib.
12160
3c36c0af
JB
121612012-01-04 Joel Brobecker <brobecker@adacore.com>
12162
12163 * README (Copyright and License Notices): New section.
12164
888fe1e1
TT
121652012-01-03 Tom Tromey <tromey@redhat.com>
12166
12167 PR python/12533:
12168 * python/py-value.c (valpy_dereference, valpy_get_address
12169 valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
12170 (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
12171 (valpy_absolute, valpy_richcompare): Free intermediate values.
12172
6e681866
JB
121732011-01-03 Joel Brobecker <brobecker@adacore.com>
12174
12175 * ada-lang.c: Reformat the copyright notice.
12176
0cd09acb
JK
121772012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12178
12179 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
12180 * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
12181 (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
12182 (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
12183 Revert this part of:
12184 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12185 Build gdb directly from *.o files not using libgdb.a.
12186 * Makefile.in (COMMON_OBS): Remove solib-target.o.
12187
12c3e59c
JB
121882012-01-02 Joel Brobecker <brobecker@adacore.com>
12189
12190 * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
12191 gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
12192 Reformat the copyright header.
12193
11bf1490
JK
121942012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12195
12196 Revert this part of:
12197 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12198 Remove the gdbtui binary.
12199 * gdb.c (main): Remove args.interpreter_p initialization.
12200 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
12201 * main.h (struct captured_main_args): Remove interpreter_p.
12202
1fef196f
JB
122032012-01-02 Joel Brobecker <brobecker@adacore.com>
12204
12205 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
12206
67827812
JB
122072012-01-02 Joel Brobecker <brobecker@adacore.com>
12208
12209 * top.c (print_gdb_version): Update copyright year.
12210
a4d0b831
YQ
122112012-01-02 Yao Qi <yao@codesourcery.com>
12212
12213 * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
12214
b5914469
JK
122152012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12216 Joel Brobecker <brobecker@adacore.com>
12217
12218 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
12219 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
12220 3 times.
12221 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
12222 fall through into AT_ENTRY_POINT.
12223 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
12224 DUMMY_ADDR with it.
12225 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
12226 PPC_INSN_SIZE skip to 3 times.
12227
8da828f7
JK
122282012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12229
12230 * amd64-linux-nat.c (update_debug_registers_callback): New comment on
12231 the return value.
12232 * i386-linux-nat.c (update_debug_registers_callback): Likewise.
12233
8574e74b
JK
122342012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12235
12236 Build gdb directly from *.o files not using libgdb.a.
12237 * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
12238 (COMMON_OBS): Remove solib-target.o.
12239 (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
12240 (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
12241 (LIBGDB_OBS, libgdb.a): Move it above.
12242 * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
12243 (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
12244 (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
12245 (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
12246 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
12247 (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
12248 (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
12249 (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
12250 (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
12251 (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
12252 (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
12253 (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
12254 (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
12255 (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
12256 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
12257 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
12258 (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
12259 (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
12260 (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
12261 (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
12262 (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
12263 (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
12264 (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
12265 (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
12266 (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
12267 (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
12268 (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
12269
217bff3e
JK
122702012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12271
12272 Remove the gdbtui binary.
12273 * .gitignore (/gdbtui): Remove.
12274 * Makefile.in (TUI): Remove.
12275 (SUBDIR_TUI_OBS): Remove tui-main.o.
12276 (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
12277 (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
12278 (tui-main.o): Remove.
12279 (all_object_files): Remove tui-main.o.
12280 * NEWS: New note for the gdbtui removal.
12281 * configure: Rebuilt.
12282 * configure.ac: No longer add all-tui, clean-tui, install-tui and
12283 uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
12284 CONFIG_UNINSTALL respectively.
12285 * gdb.c (main): Remove args.interpreter_p initialization.
12286 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
12287 * main.h (struct captured_main_args): Remove interpreter_p.
12288 * tui/tui-main.c: Remove.
12289
9cdd5dbd
DE
122902012-01-01 Doug Evans <dje@google.com>
12291
bb5ed363
DE
12292 * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
12293 (dwarf2_physname, read_import_statement): Ditto.
12294 (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
12295 (process_structure_scope read_subroutine_type): Ditto.
12296 (read_typedef, load_partial_dies, read_partial_die): Ditto.
12297 (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
12298 (dwarf2_fetch_die_location_block): Ditto.
12299 (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
12300
a0f42c21
DE
12301 * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
12302 All callers updated.
12303 (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
12304 (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
12305 (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
12306
2dc860c0
DE
12307 * dwarf2read.c (load_cu): Move assert to more useful location.
12308
68dc6402
DE
12309 * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
12310 All callers updated.
12311
9cdd5dbd
DE
12312 * dwarf2read.c (dwarf2_per_objfile): Add comment.
12313 (dwarf2_elf_names): Minor reformat.
12314 (dwarf2_per_cu_data): Tweak comment.
12315 (dwarf2_read_section): Fix comment.
12316 (create_all_comp_units): Fix comment.
12317 (load_full_comp_unit): Fix comment.
12318 (process_full_comp_unit): Fix comment.
12319 (read_signatured_type): Fix comment.
12320
0c10e53e 12321For older changes see ChangeLog-2011.
c906108c
SS
12322\f
12323Local Variables:
12324mode: change-log
12325left-margin: 8
12326fill-column: 74
12327version-control: never
57da7796 12328coding: utf-8
c906108c 12329End:
This page took 2.111942 seconds and 4 git commands to generate.