PR binutils/13897
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
82e0cec1
TG
12012-04-11 Tristan Gingold <gingold@adacore.com>
2
3 PR gdb/13901
4 * darwin-nat.c (darwin_execvp): Revert previous patch.
5
d987a266
TG
62012-04-11 Tristan Gingold <gingold@adacore.com>
7
8 PR gdb/13901
9 * darwin-nat.c (darwin_resume_thread): Call darwin_set_sstep only
10 in case of change.
11
016b7430
TG
122012-04-11 Tristan Gingold <gingold@adacore.com>
13
14 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
15 warning.
16
06fc020f
SCR
172012-04-11 Siva Chandra Reddy <sivachandra@google.com>
18
19 New command 'explore' which helps explore values and types in
20 scope.
21 * NEWS: Add an entry about the new 'explore' command.
22 * data-directory/Makefile.in: Add gdb/command/explore.py
23 * python/lib/gdb/command/explore.py: Implemention of the 'explore'
24 command using the GDB Python API.
25
de0919f8 262012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
34b192ce
MR
27
28 * mips-tdep.c (mips_skip_pic_trampoline_code): Correct sign
29 extension in jump target calculation.
30
de0919f8 312012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
9e8da49c
MR
32
33 * mips-tdep.c (mips32_next_pc): Handle JALX.
34
2f26ef89
YQ
352012-04-10 Yao Qi <yao@codesourcery.com>
36
37 * Makefile.in (gnulib/Makefile): Remove duplicated dependency.
38
2e505b66
YQ
392012-04-10 Yao Qi <yao@codesourcery.com>
40
41 * Makefile.in (aclocal_m4_deps): Add gnulib/m4/gnulib-cache.m4
42 and gnulib/m4/gnulib-tool.m4.
43
0d99eb77
DE
442012-04-10 Doug Evans <dje@google.com>
45
46 * dwarf2read.c (dwarf2_per_cu_data). Clarify comment.
47 (load_partial_dies): Clarify comment.
48 (find_partial_die): Support rereading type units.
49 Clarify CU handling, if we know offset is in CU, don't search for the
50 containing CU. Add comment regarding memory waste.
51
9a82b8ff
L
522012-04-10 H.J. Lu <hongjiu.lu@intel.com>
53
54 * features/Makefile (WHICH): Add i386/x32, i386/x32-linux,
55 i386/x32-avx and i386/x32-avx-linux.
56 (i386/x32-expedite): New.
57 (i386/x32-linux-expedite): Likewise.
58 (i386/x32-avx-expedite): Likewise.
59 (i386/x32-avx-linux-expedite): Likewise.
60 ($(outdir)/i386/x32.dat): Likewise.
61 ($(outdir)/i386/x32-linux.dat): Likewise.
62 ($(outdir)/i386/x32-avx.dat): Likewise.
63 ($(outdir)/i386/x32-avx-linux.dat): Likewise.
64
65 * features/i386/x32-avx-linux.xml: New file.
66 * features/i386/x32-avx.xml: Likewise.
67 * features/i386/x32-core.xml: Likewise.
68 * features/i386/x32-linux.xml: Likewise.
69 * features/i386/x32.xml: Likewise.
70
71 * features/i386/x32-avx-linux.c: New. Generated.
72 * features/i386/x32-avx.c: Likewise.
73 * features/i386/x32-linux.c: Likewise.
74 * features/i386/x32.c: Likewise.
75 * regformats/i386/x32-avx-linux.dat: Likewise.
76 * regformats/i386/x32-avx.dat: Likewise.
77 * regformats/i386/x32-linux.dat: Likewise.
78 * regformats/i386/x32.dat: Likewise.
79
ee41036f
TG
802012-04-10 Tristan Gingold <gingold@adacore.com>
81
82 * darwin-nat.c (darwin_kill_inferior): Always use the no ptrace
83 code to kill the inferior.
84
a7aa5b8a
MK
852012-04-09 Mark Kettenis <kettenis@gnu.org>
86
87 * ada-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
88 defines.
89 * c-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
90 defines.
91 * cp-name-parser.y (yyss, yysslim, yyssp, yystacksize, yyvs)
92 (yyvsp): New defines.
93 * f-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
94 defines.
95 * jv-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
96 defines.
97 * m2-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
98 defines.
99 * objc-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
100 defines.
101 * p-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
102 defines.
103
fb57d452
MK
1042012-04-09 Mark Kettenis <kettenis@gnu.org>
105
106 * sparc64-tdep.c (sparc64_store_arguments)
107 (sparc64_store_arguments): Fix coding style.
108
cdc7b32f
MK
1092012-04-07 Mark Kettenis <kettenis@gnu.org>
110
111 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
112 complex floats, adjust some related comments and tighten a related
113 assertion.
114 (sparc64_extract_return_value): Handle complex floats.
115
7adf1e79
DE
1162012-04-07 Doug Evans <dje@google.com>
117
118 * dwarf2read.c (load_partial_dies): Change condition to assert.
119
50f1ae7b
DE
1202012-04-06 Doug Evans <dje@google.com>
121
122 * amd64-tdep.c (amd64_analyze_prologue): Recognize both variations of
123 "mov %rsp,%rbp".
124
55fa75c3
KB
1252012-04-05 Kevin Buettner <kevinb@redhat.com>
126
127 * v850-tdep.c (E_NUM_OF_V850_REGS, E_NUM_OF_V850E_REGS): Fix
128 fencepost error.
129 (v850_frame_cache): Use gdbarch_num_regs() instead of E_NUM_REGS.
130 (v850_gdbarch_init): Set `num_regs' as appropriate for the
131 architecture.
132
40e084e1
KS
1332012-04-05 Keith Seitz <keiths@redhat.com>
134
135 * linespec.c (decode_compound): Remove.
136 (enum offset_relative_sign): New enum.
137 (struct line_offset): New struct.
138 (struct linespec): New struct.
139 (struct linespec_state): Move file_symtabs,
140 user_filename, and user_function into struct linespec.
141 Make result an anonymous struct holding vectors of
142 symbolp and minsym_and_objfile_d.
143 Add language member.
144 (enum ls_token_type): New enum.
145 (linespec_keywords): New array.
146 (struct ls_token): New struct.
147 (struct ls_parser): New struct.
148 (linespec_lexer_lex_number): New function.
149 (linespec_lexer_lex_keyword): New function.
150 (is_ada_operator): New function.
151 (skip_quote_char): New function.
152 (copy_token_string): New function.
153 (is_closing_quote_enclosed): New function.
154 (find_parameter_list_end): New function.
155 (linespec_lexer_lex_string): New function.
156 (linespec_lexer_lex_one): New function.
157 (linespec_lexer_consume_token): New function.
158 (linespec_lexer_peek_token): New function.
159 (cplusplus_error): Remove unused function.
160 (find_methods): Update comment.
161 (find_toplevel_char): Return const.
162 (is_objc_method_format): Remove unused function.
163 (find_toplevel_string): New function.
164 (is_linespec_boundary): Remove.
165 (symbol_not_found_error): New function.
166 (find_method_overload_end): Remove function.
167 (unexpected_linespec_error): New function.
168 (keep_name_info): Remove.
169 (linespec_parse_line_offset): New function.
170 (linespec_parse_basic): New function.
171 (canonicalize_linespec): New function.
172 (decode_line_internal): Remove.
173 (create_sals_line_offset): New function adapted from
174 decode_all_digits.
175 (convert_linespec_to_sals): New function.
176 (parse_linespec): New function.
177 (linespec_parser_new): New function.
178 (linespec_state_destructor): Change parameter type to
179 struct linespec_state *.
180 Add language parameter.
181 Remove freeing of moved members.
182 (linespec_parser_delete): New function.
183 (decode_line_full): Use parse_linespec and linespec_parser_new.
184 (decode_line_1): Likewise.
185 (decode_indirect): Rename to ...
186 (linespec_expression_to_pc): ... this and rewrite
187 to simply find CORE_ADDR, storing this result for later
188 conversion to SALs.
189 (locate_first_half): Remove.
190 (deocde_objc): Add parameter LS.
191 Initialize new struct collect_info members.
192 Handle minimal symbols, too.
193 (decode_compound): Delete.
194 (lookup_prefix_sym): Rewrite.
195 (compare_msymbols): New function.
196 (find_method): Rewrite.
197 Do not call cplusplus_error.
198 (symtabs_from_filename): Rewrite.
199 (collect_function_symbols): Delete.
200 (find_function_symbols): Rewrite without ARGPTR-style
201 processing.
202 (decode_all_digits): Delete. (Rewritten as create_sals_line_offset.)
203 (decode_dollar): Adapted and renamed to ...
204 (linespec_parse_variable): ... this.
205 (find_linespec_symbols): New function.
206 (decode_label): Adapted and renamed to ...
207 (find_label_symbols): ... this.
208 (decode_digits_list_mode): Add and use LS argument.
209 (decode_digits_ordinary): Likewise.
210 (collect_symbols): Do not collect SALs, just symbols and msymbols.
211 If in list mode, allow any symbol class. Otherwise, only
212 permit LOC_BLOCK symbols.
213 (minsym_found): Update comments.
214 (search_minsyms_for_name): Do not convert the matching symbol
215 into a SAL. Simply push the symbol and objfile into the
216 result vector.
217 (decode_variable): Delete. Contents adapted into
218 find_linespec_symbols.
219
220 * cp-support.c (SKIP_SPACE): Remove.
221 (operator_tokens): Remove unused global.
222 (cp_validate_operator): Remove.
223 * cp-support.h (cp_validate_operator): Remove declaration.
224
a72c8f6a
JK
2252012-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
226
227 * cp-valprint.c (cp_print_value_fields): Check valprint_check_validity
228 for TYPE_VPTR_FIELDNO.
229 * valprint.c (valprint_check_validity): Make it global, move the
230 function comment ...
231 * value.h (valprint_check_validity): ... to this new declaration.
232
cf9bb588
TG
2332012-04-02 Tristan Gingold <gingold@adacore.com>
234
235 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Use
236 the STATE32 api for i386 state.
237 (i386_darwin_store_inferior_registers): Likewise.
238
17092398
TG
2392012-04-02 Tristan Gingold <gingold@adacore.com>
240
241 * i386-darwin-tdep.c (i386_darwin_thread_state_reg_offset): Fix
242 SS offset.
243 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
244 format_string.
245
ece0061f
TG
2462012-04-02 Tristan Gingold <gingold@adacore.com>
247
248 PR gdb/13901
d987a266 249 * darwin-nat.c (darwin_execvp): Set binary preference.
ece0061f 250
cf65ecd3
JK
2512012-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
252
253 * NEWS (set breakpoint condition-evaluation): Use imperative mood.
254
9bc3523d
TT
2552012-03-30 Tom Tromey <tromey@redhat.com>
256
257 * python/python.c (gdbpy_decode_line): Move cleanup creation out
258 of TRY_CATCH. Fix error handling.
259 * python/py-value.c (convert_value_from_python): Move 'old'
260 declaration to innermost scope.
261
b1ed564a
JB
2622012-03-29 Joel Brobecker <brobecker@adacore.com>
263 Andrey Smirnov <andrew.smirnov@gmail.com>
264
265 -Wshadow warning fix.
266 * ada-lang.c (ada_make_symbol_completion_list): Rename parameters
267 "wild_match" and "encoded" into "wild_match_p" and "encoded_p".
268 Adjust code accordingly.
269
cb8e9b97
JB
2702012-03-29 Joel Brobecker <brobecker@adacore.com>
271
272 * ada-lang.c (symbol_completion_add): Rename parameter
273 "encoded" into "encoded_p". Ajust code and documentation
274 accordingly.
275
c0af1706
JB
2762012-03-29 Joel Brobecker <brobecker@adacore.com>
277 Andrey Smirnov <andrew.smirnov@gmail.com>
278
279 -Wshadow warning fix.
280 * ada-lang.c (symbol_completion_add): Rename parameter
281 "wild_match" into wild_match_p. Update code and documentation
282 accordingly.
283
6ea35997
JB
2842012-03-29 Joel Brobecker <brobecker@adacore.com>
285
286 * ada-lang.c (symbol_completion_match): Rename parameter
287 "encoded" into "encoded_p". Ajust code and documentation
288 accordingly.
289
e701b3c0
JB
2902012-03-29 Joel Brobecker <brobecker@adacore.com>
291 Andrey Smirnov <andrew.smirnov@gmail.com>
292
293 -Wshadow warning fix.
294 * ada-lang.c (symbol_completion_match): Rename parameter
295 "wild_match" into "wild_match_p". Adjust code and function
296 documentation accordingly.
297
5e2336be
JB
2982012-03-29 Joel Brobecker <brobecker@adacore.com>
299 Andrey Smirnov <andrew.smirnov@gmail.com>
300
301 -Wshadow warning fix.
302 * ada-lang.c (ada_lookup_encoded_symbol): Rename parameter
303 "symbol_info" into "info". Adjust code accordingly.
304 (ada_lookup_symbol): Likewise.
305
9f88c959
JB
3062012-03-29 Joel Brobecker <brobecker@adacore.com>
307
308 * ada-lang.c (ada_lookup_symbol_list): Minor reformatting
309 of this function's documentation.
310
82ccd55e
JB
3112012-03-29 Joel Brobecker <brobecker@adacore.com>
312 Andrey Smirnov <andrew.smirnov@gmail.com>
313
314 -Wshadow warning fix.
315 * ada-lang.c (ada_lookup_symbol_list): Rename "wild_match"
316 variable into "wild_match_p". Adjust code accordingly.
317
d0a8ab18
JB
3182012-03-29 Joel Brobecker <brobecker@adacore.com>
319 Andrey Smirnov <andrew.smirnov@gmail.com>
320
321 -Wshadow warning fix.
322 * ada-lang.c (ada_add_local_symbols): Rename "wild_match"
323 parameter into "wild_match_p". Adjust code accordingly.
324 Document this parameter in the function description.
325
48b78332
JB
3262012-03-29 Joel Brobecker <brobecker@adacore.com>
327 Andrey Smirnov <andrew.smirnov@gmail.com>
328
329 -Wshadow warning fix.
330 * ada-lang.c (add_symbols_from_enclosing_procs): Rename
331 "wild_match" parameter to "wild_match_p" (-Wshadow).
332
2e6e0353
JB
3332012-03-29 Joel Brobecker <brobecker@adacore.com>
334
335 * ada-lang.c (ada_lookup_simple_minsym): Remove trailing spaces
336 in function documentation.
337
dc4024cd
JB
3382012-03-29 Joel Brobecker <brobecker@adacore.com>
339 Andrey Smirnov <andrew.smirnov@gmail.com>
340
341 -Wshadow warning fix.
342 * ada-lang.c (ada_lookup_simple_minsym): Rename wild_match local
343 variable into wild_match_p. Adjust code accordingly.
344
6c88661c
JB
3452012-03-29 Joel Brobecker <brobecker@adacore.com>
346 Andrey Smirnov <andrew.smirnov@gmail.com>
347
348 * ada-valprint.c (ada_val_print_1): Move the code handling
349 TYPE_CODE_ENUM inside its own lexical block. Declare
350 variables len and val there, instead of in the function's
351 top level block. Avoid declaring deref_val again in a way
352 that shadows another variable of the same name declared
353 in one of the up-level blocks. Just re-use the up-level
354 variable instead.
355
4e5c77fe
JB
3562012-03-29 Joel Brobecker <brobecker@adacore.com>
357
358 * ada-lang.c (ada_lookup_encoded_symbol): Now returns void.
359 Replace block_found argument by symbol_info. Adjust
360 implementation accordingly. Add function documentation.
361 (ada_lookup_symbol): Adjust to new ada_lookup_encoded_symbol.
362 Fix documentation.
363 * ada-lang.h (ada_lookup_encoded_symbol): Update declaration.
364 * ada-exp.y (write_object_renaming): Adjust to new
365 ada_lookup_encoded_symbol API.
366
1c0ac8c7
JB
3672012-03-29 Joel Brobecker <brobecker@adacore.com>
368
369 * ada-lang.h (struct ada_symbol_info): Reformat. Improve
370 documentation.
371
2aaed979
KB
3722012-03-28 Rathish C <rathish.c@kpitcummins.com>
373
374 * v850-tdep.c: Add the enum values for mpu and fpu registers.
375 (v850_register_name): Add the mpu and fpu register names.
376 (v850e_register_name): Add the mpu and fpu register names.
377 (v850e2_register_name): New function.
378 (v850_gdbarch_init): Add case for bfd_mach_v850e2 and
379 bfd_mach_v850e2v3.
380
927fbba6
JB
3812012-03-28 Joel Brobecker <brobecker@adacore.com>
382
383 * NEWS: Add entry for Ada varobj support.
384
d32cafc7
JB
3852012-03-28 Joel Brobecker <brobecker@adacore.com>
386
387 * varobj.c (default_value_is_changeable_p): New function,
388 extracted from varobj_value_is_changeable_p. Add declaration.
389 (ada_value_is_changeable_p): New function, extracted from
390 varobj_value_is_changeable_p. Add declaration.
391 (struct language_specific): New field "value_is_changeable_p".
392 (languages): Add entries for new field.
393 (varobj_create): Set language before calling install_new_value.
394 (varobj_value_is_changeable_p): Reimplement to call the varobj's
395 "value_is_changeable_p" language callback.
396
181875a4
JB
3972012-03-28 Joel Brobecker <brobecker@adacore.com>
398
399 * ada-varobj.h, ada-varobj.c: New files.
400 * Makefile.in (SFILES): Add ada-varobj.c.
401 (HFILES_NO_SRCDIR): Add ada-varobj.h.
402 (COMMON_OBS): Add ada-varobj.o.
403
7a290c40
JB
4042012-03-28 Joel Brobecker <brobecker@adacore.com>
405
406 * varobj.c (ada_value_has_mutated): Add declaration. New function.
407 (struct language_specific): New field "value_has_mutated".
408 (languages): Set field "value_has_mutated" in each entry of array.
409 (varobj_value_has_mutated): New function.
410 (varobj_udpdate): Add handling of type mutation.
411 (value_of_root): Add handling of type mutation.
412 (ada_value_has_mutated): New function.
413
ca9b8b9c
PA
4142012-03-28 Pedro Alves <palves@redhat.com>
415
416 * ia64-linux-nat.c (supply_fpregset, ia64_linux_fetch_register):
417 Always supply $fr0 as 0.0 and $fr1 as 1.0.
418
cc0265cd
TT
4192012-03-28 Tom Tromey <tromey@redhat.com>
420
421 * python/py-inferior.c (infpy_read_memory): Remove cleanups and
422 explicitly free 'buffer' on exit paths. Decref 'membuf_object'
423 before returning.
424
3ad2ec6f
TT
4252012-03-28 Tom Tromey <tromey@redhat.com>
426
427 * .dir-locals.el: New file.
428
4a6510ba
PA
4292012-03-28 Pedro Alves <palves@redhat.com>
430
431 * ia64-linux-nat.c (u_offsets): Map IA64_EC_REGNUM to PT_AR_EC.
432
5a75128f
JB
4332012-03-28 Joel Brobecker <brobecker@adacore.com>
434
435 * ia64-linux-nat.c (ia64_linux_fetch_register): Add special
436 handling for r0.
437
f99d8bf4
PA
4382012-03-27 Pedro Alves <palves@redhat.com>
439
440 Eliminate struct ui_stream.
441
442 * ui-out.h (struct ui_stream): Delete.
443 (ui_out_field_stream): Adjust prototype.
444 (ui_out_stream_new, ui_out_stream_delete)
445 (make_cleanup_ui_out_stream_delete): Delete declarations.
446 * ui-out.c (ui_out_field_stream): Change prototype to take a
447 ui_file instead of a ui_stream. Adjust.
448 (ui_out_stream_new, ui_out_stream_delete, do_stream_delete)
449 (make_cleanup_ui_out_stream_delete): Delete.
450 * breakpoint.c (print_breakpoint_location)
451 (print_one_detail_ranged_breakpoint, print_it_watchpoint): Use
452 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
453 * disasm.c (dump_insns): Ditto.
454 (do_mixed_source_and_assembly, do_assembly_only): Adjust
455 prototype.
456 (gdb_disassembly): Use ui_file/mem_fileopen instead of
457 ui_stream/ui_out_stream_new.
458 * infcmd.c (print_return_value): Ditto.
459 * osdata.c (info_osdata_command): Don't allocate a local
460 ui_stream.
461 * stack.c (print_frame_arg, print_frame_args, print_frame): Use
462 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
463 * tracepoint.c (print_one_static_tracepoint_marker): Don't
464 allocate a local ui_stream.
465 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_file/mem_fileopen
466 instead of ui_stream/ui_out_stream_new.
467 (list_args_or_locals): Don't allocate a local ui_stream.
468 * mi/mi-main.c (get_register, mi_cmd_data_evaluate_expression)
469 (mi_cmd_data_read_memory): Use ui_file/mem_fileopen instead of
470 ui_stream/ui_out_stream_new.
471 * cli/cli-setshow.c (do_setshow_command): Ditto.
472
6350a066 4732012-03-27 Oza Pawandeep <oza.pawandeep@gmail.com>
72508ac0 474
6350a066
PA
475 * arm-linux-tdep.c (arm_linux_init_abi): Call
476 set_gdbarch_process_record. Initialize `arm_swi_record' field.
477 * arm-tdep.c (arm_process_record): New function.
478 (deallocate_reg_mem): New function.
479 (decode_insn): New function.
480 (thumb_record_branch): New function.
481 (thumb_record_ldm_stm_swi(): New function.
482 (thumb_record_misc): New function.
483 (thumb_record_ld_st_stack): New function.
484 (thumb_record_ld_st_imm_offset): New function.
485 (thumb_record_ld_st_reg_offset(): New function.
486 (thumb_record_add_sub_cmp_mov): New function.
487 (thumb_record_shift_add_sub): New function.
488 (arm_record_coproc_data_proc): New function.
489 (arm_record_coproc): New function.
490 (arm_record_b_bl): New function.
491 (arm_record_ld_st_multiple): New function.
492 (arm_record_ld_st_reg_offset): New function.
493 (arm_record_ld_st_imm_offset): New function.
494 (arm_record_data_proc_imm): New function.
495 (arm_record_data_proc_misc_ld_str): New function.
496 (arm_record_extension_space): New function.
497 (arm_record_strx): New function.
498 (sbo_sbz): New function.
499 (struct insn_decode_record): New structure for arm insn record.
500 (REG_ALLOC): New macro for reg allocations.
501 (MEM_ALLOC): New macro for memory allocations.
502 * arm-tdep.h (struct gdbarch_tdep): New field 'arm_swi_record'.
72508ac0 503
89e028e2
AS
5042012-03-27 Andreas Schwab <schwab@linux-m68k.org>
505
506 * m68klinux-nat.c (fetch_register): Fix strict-aliasing violation.
507 (store_register): Likewise.
508
6350a066 5092012-03-26 Oza Pawandeep <oza.pawandeep@gmail.com>
3d9a9eb0 510
6350a066 511 * MAINTAINERS (Write After Approval): Add myself to the list.
3d9a9eb0 512
5b43fab2
JK
5132012-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
514
515 * NEWS (set breakpoint condition-evaluation): Change "gdb" to "host".
516 Describe also the option "auto".
517
b5453b95
RH
5182012-03-22 Richard Henderson <rth@redhat.com>
519
520 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Fix prototype.
521 * sparc-nat.c (sparc_xfer_wcookie): Make static.
522
227ee7fc
RH
5232012-03-22 Richard Henderson <rth@redhat.com>
524
525 * jit.c (jit_read_code_entry): Compute alignment and offset of
526 int64_t member before computing entry_size.
527
7b282c5a
SCR
5282012-03-22 Siva Chandra Reddy <sivachandra@google.com>
529
530 Python scripting: Add new method Value.referenced_value to
531 gdb.Value which can dereference pointer as well as reference
532 values.
533 * NEWS: Add entry under 'Python scripting' about the new method
534 Value.referenced_value on gdb.Value objects.
535 * python/py-value.c (valpy_referenced_value): New function
536 defining a new method on gdb.Value objects which can dereference
537 pointer and reference values.
538
0c83539f
SCR
5392012-03-22 Siva Chandra Reddy <sivachandra@google.com>
540
541 * MAINTAINERS (Write After Approval): Add myself to the list.
542
7ccffd7c
KB
5432012-03-21 Kevin Buettner <kevinb@redhat.com>
544
545 * symtab.c (skip_prologue_sal): Change test to check for "main()"
546 in addition to "main".
547
bd0b9f9e
JB
5482012-03-21 Joel Brobecker <brobecker@adacore.com>
549
550 * expression.h (op_name): Add declaration.
551 * expprint.c (op_name): Remove declaration. Make non-static.
552 * ax-gdb.c (gen_expr): Use op_name instead of op_string.
553
a5362b9a
TS
5542012-03-21 Thomas Schwinge <thomas@codesourcery.com>
555
556 * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Use siginfo_t instead
557 of struct siginfo.
558 * arm-linux-nat.c (arm_linux_stopped_data_address): Likewise.
559 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
560 * linux-nat.c (linux_nat_siginfo_fixup, siginfo_fixup)
561 (linux_xfer_siginfo, linux_nat_set_siginfo_fixup)
562 (linux_nat_get_siginfo): Likewise.
563 * linux-nat.h (struct lwp_info, linux_nat_set_siginfo_fixup)
564 (linux_nat_get_siginfo): Likewise.
565 * linux-tdep.c (linux_get_siginfo_type): Likewise.
566 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Likewise.
567 * procfs.c (gdb_siginfo_t): Likewise.
568
adcadaab
MF
5692012-03-21 Mike Frysinger <vapier@gentoo.org>
570
571 * .gitignore: Ignore more files.
572
e278ad5b
PA
5732012-03-20 Pedro Alves <palves@redhat.com>
574
575 * remote.c (remote_start_remote): Clear `rs->starting_up' on early
576 returns.
577
741e63d7
YQ
5782012-03-20 Yao Qi <yao@codesourcery.com>
579
580 * amd64-tdep.c (amd64_displaced_step_copy_insn): Complete missing "}" in
581 comment.
582
b64f50a1
JK
5832012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
584
585 Code cleanupp: Use cu_offset and sect_offset compile time type checking.
586 * dwarf2expr.c (add_piece, dwarf_get_base_type, execute_stack_op)
587 (ctx_no_dwarf_call, ctx_no_get_base_type): Use cu_offset and
588 sect_offset.
589 * dwarf2expr.h (cu_offset, sect_offset): New types.
590 (struct dwarf_expr_context_funcs) <dwarf_call>
591 (struct dwarf_expr_context_funcs) <get_base_type>: Use cu_offset and
592 sect_offset.
593 (struct dwarf_expr_context) <len>: Improve the comment.
594 (struct dwarf_expr_piece, ctx_no_dwarf_call, ctx_no_get_base_type): Use
595 cu_offset and sect_offset.
596 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call)
597 (dwarf_expr_get_base_type, needs_frame_dwarf_call)
598 (dwarf2_compile_expr_to_ax, disassemble_dwarf_expression): Likewise.
599 * dwarf2loc.h: Include dwarf2expr.h.
600 (dwarf2_fetch_die_location_block, dwarf2_get_die_type): Use cu_offset
601 and sect_offset.
602 * dwarf2read.c (struct dwarf2_per_objfile) <debug_types_type_hash>:
603 Improve the comment.
604 (struct comp_unit_head, struct dwarf2_cu, struct dwarf2_per_cu_data)
605 (struct signatured_type, struct line_header, struct partial_die_info)
606 (struct die_info, find_partial_die, dwarf2_get_ref_die_offset)
607 (lookup_signatured_type_at_offset, dwarf2_find_containing_comp_unit)
608 (get_die_type_at_offset, create_cus_from_index)
609 (create_signatured_type_table_from_index, dw2_get_file_names)
610 (offset_in_cu_p, read_comp_unit_head, error_check_comp_unit_head)
611 (read_and_check_comp_unit_head, read_and_check_type_unit_head)
612 (create_debug_types_hash_table, process_psymtab_comp_unit)
613 (load_partial_comp_unit, create_all_comp_units)
614 (partial_die_parent_scope, partial_die_full_name, skip_one_die)
615 (load_full_comp_unit, dwarf2_physname, read_import_statement)
616 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
617 (dwarf2_add_member_fn, process_enumeration_scope, read_module_type)
618 (read_typedef, die_hash, die_eq, read_full_die, dwarf2_read_abbrevs)
619 (load_partial_dies, read_partial_die, find_partial_die_in_comp_unit)
620 (find_partial_die, read_attribute_value, lookup_die_type)
621 (dump_die_shallow, store_in_ref_table): Use cu_offset and sect_offset.
622 (is_ref_attr): New function comment.
623 (dwarf2_get_ref_die_offset): New function comment, new variable retval.
624 Use cu_offset and sect_offset.
625 (follow_die_offset, follow_die_ref, dwarf2_fetch_die_location_block)
626 (dwarf2_get_die_type, follow_die_sig, lookup_signatured_type_at_offset)
627 (load_full_type_unit, read_signatured_type, per_cu_header_read_in)
628 (dwarf2_find_containing_comp_unit, struct dwarf2_offset_and_type)
629 (offset_and_type_hash, offset_and_type_eq, set_die_type)
630 (get_die_type_at_offset, partial_die_hash, partial_die_eq)
631 (write_one_signatured_type, write_psymtabs_to_index): Use cu_offset and
632 sect_offset.
633
e97a38f7
JK
6342012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
635
636 Code cleanup.
637 * python/py-auto-load.c (source_section_scripts): New variable back_to.
638 Turn fclose and xfree calls into make_cleanup_fclose and make_cleanup
639 with xfree.
640 (auto_load_objfile_script): Turn fclose into make_cleanup_fclose.
641
8320cc4f
JK
6422012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
643
644 * NEWS: Describe new options --init-command=FILE, -ix and
645 --init-eval-command=COMMAND, -iex.
646 * main.c (struct cmdarg): New enum items CMDARG_INIT_FILE and
647 CMDARG_INIT_COMMAND.
648 (captured_main): New enum items OPT_IX and OPT_IEX. Add
649 "init-command", "init-eval-command", "ix" and "iex" to the variable
650 long_options. Handle OPT_IX and OPT_IEX. Process them from CMDARG_VEC.
651 New comment for CMDARG_FILE and CMDARG_COMMAND processing.
652 (print_gdb_help): Describe --init-command=FILE, -ix and
653 --init-eval-command=COMMAND, -iex.
654
26743505
JK
6552012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
656
657 Code cleanup.
658 * main.c (struct cmdarg): Move it here from main. Add more comments.
659 (cmdarg_s, VEC (cmdarg_s)): New.
660 (main): Move struct cmdarg from here. New variables cmdarg_vec and
661 cmdarg_p. Remove variables cmdsize and ncmd and their initialization.
662 Install cleanup for cmdarg_vec. Update filling for options 'x' and
663 'X'. Replace cmdarg processing by cmdarg_vec processing. Remove xfree
664 of CMDARG.
665
5ff5c7b4
TT
6662012-03-19 Tom Tromey <tromey@redhat.com>
667
668 * gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'.
669
ab260dad
JK
6702012-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
671
672 PR symtab/13777
673 * dwarf2read.c (process_full_comp_unit): Set LOCATIONS_VALID only for
674 GCC >=4.5.
675
c366c1f0
TT
6762012-03-16 Chris January <chris.january@allinea.com>
677
678 * tui-tui.win.c (tui_resize_all): Use erase and clearok instead
679 of clear.
680
e16edb45
TT
6812012-03-16 Chris January <chris.january@allinea.com>
682
683 * source.c (add_path): Use memmove instead of strcpy because the
684 strings overlap.
685
53ba8333
JB
6862012-03-16 Joel Brobecker <brobecker@adacore.com>
687
688 * value.h (set_value_parent): Add declaration.
689 * value.c (set_value_parent): New function.
690 (value_address): If VALUE->PARENT is not NULL, then use it as
691 the base address instead of VALUE->LOCATION.address.
692 * ada-lang.c (ada_value_primitive_packed_val): Keep V's address
693 the same as OBJ's address. Adjust V's offset accordingly.
694 Set V's parent.
695
481860b3
GB
6962012-03-16 Gary Benson <gbenson@redhat.com>
697
698 PR breakpoints/10738
699 * dwarf2read.c (use_deprecated_index_sections): New global.
700 (struct partial_die_info): New member may_be_inlined.
701 (read_partial_die): Set may_be_inlined where appropriate.
702 (add_partial_subprogram): Add partial symbols for partial
703 DIEs that may be inlined.
704 (new_symbol_full): Add inlined subroutines to the current
705 scope.
706 (write_psymtabs_to_index): Bump version number.
707 (dwarf2_read_index): Read only version 6 indices unless
708 use_deprecated_index_sections is set.
709 * linespec.c (symbol_and_data_callback): New structure.
710 (iterate_inline_only): New function.
711 (iterate_over_all_matching_symtabs): New argument
712 "include_inline". If nonzero, also call the callback for
713 symbols representing inlined subroutines.
714 (lookup_prefix_sym): Pass extra argument to the above.
715 (find_function_symbols): Likewise.
716 (add_matching_symbols_to_info): Likewise.
717 * NEWS: Mention that GDB can now set breakpoints on inlined
718 functions.
719
d0e7e15a
PM
7202012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
721
722 * p-typeprint.c (pascal_type_print_method_args):
723 Fix display of parameter of methods.
724
3d354654
PM
7252012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
726
727 * amd64-windows-nat.c (_initialize_amd64_windows_nat):
728 Add missing prototype.
729
cafe75b0
JK
7302012-03-16 Yao Qi <yao@codesourcery.com>
731 Jan Kratochvil <jan.kratochvil@redhat.com>
732
733 Fix false compilation warning.
734 * gnu-v3-abi.c (print_one_vtable): Initialize ADDR.
735
25f8c692
JL
7362012-03-15 Jonathan Larmour <jifl@eCosCentric.com>
737 Pedro Alves <pedro@codesourcery.com>
738
739 * arm-tdep.c: Include "remote.h" and "features/arm-with-m-fpa-layout.c".
740 (arm_register_g_packet_guesses): New function.
741 (arm_gdbarch_init): Don't force a target description with
742 registers when the executable is detected as M-profile. Instead
743 set gdbarch->tdep->is_m. Register `g' packet guesses.
744 (_initialize_arm_tdep): Initialize the new target description.
745 * features/arm-with-m-fpa-layout.xml: New description.
746 * features/arm-with-m-fpa-layout.c: New, generated.
747
35c63cd8
JB
7482012-03-15 Joel Brobecker <brobecker@adacore.com>
749
750 * breakpoint.c (breakpoint_xfer_memory): Add assertion.
751 Update function description.
752 (insert_bp_location): Do not wipe bl->target_info out.
753 * mem-break.c: #include "gdb_string.h".
754 (default_memory_insert_breakpoint): Do not call target_read_memory
755 with a pointer to the breakpoint's shadow_contents buffer. Use
756 a local buffer instead.
757 * m32r-tdep.c (m32r_memory_insert_breakpoint): Ditto.
758
57651221
TT
7592012-03-15 Tom Tromey <tromey@redhat.com>
760
761 * NEWS: Mention "info vtbl", not "info vtable".
762 * cp-support.c (info_vtbl_command): Fix comment.
763 (_initialize_cp_support): Fix text.
764
410528f0
TT
7652012-03-15 Tom Tromey <tromey@redhat.com>
766
767 * cp-valprint.c (cp_print_value_fields): Use
768 print_function_pointer_address for vtable slot.
769
c4aeac85
TT
7702012-03-15 Tom Tromey <tromey@redhat.com>
771
772 * gnu-v3-abi.c (struct value_and_voffset): New.
773 (hash_value_and_voffset, eq_value_and_voffset)
774 (compare_value_and_voffset, compute_vtable_size)
775 (print_one_vtable, gnuv3_print_vtable): New functions.
776 (init_gnuv3_ops): Initialize 'print_vtable' field.
777 * cp-support.c (info_vtbl_command): New function.
778 (_initialize_cp_support): Add "info vtbl".
779 * cp-abi.h (cplus_print_vtable): Declare.
780 (struct cp_abi_ops) <print_vtable>: New field.
781 * cp-abi.c (cplus_print_vtable): New function.
782 * NEWS: Update.
783
95cbceff
TT
7842012-03-15 Tom Tromey <tromey@redhat.com>
785
786 * d-lang.c (d_language_defn) <la_iterate_over_symbols>: Set to
787 iterate_over_symbols.
788
589b4a32
DE
7892012-03-14 Doug Evans <dje@google.com>
790
791 * dwarf2read.c (dwarf_stack_op_name): Add DW_OP_GNU_encoded_addr,
792 DW_OP_GNU_parameter_ref.
793
e837f12a
JK
7942012-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
795
796 Fix double prompt of 'interpreter-exec mi'.
797 * mi/mi-interp.c (mi_execute_command_input_handler): New prototype.
798 (mi_interpreter_resume): use it.
799 (mi_execute_command_input_handler): New function.
800 * mi/mi-main.c (mi_execute_command): Move prompt printing to
801 mi_execute_command_input_handler.
802
ff1e4526 8032012-03-13 Josh Matthews <josh@joshmatthews.net> (tiny change)
c381a3f6
JB
804
805 * darwin-nat-info.c (_initialize_darwin_info_commands): Add
806 prototype.
807 (darwin_debug_port_info): Make static.
808 * darwin-nat.c (_initialize_darwin_inferior): Add prototype.
809 * machoread.c (_initialize_machoread): Add prototype.
810 * i386-darwin-nat.c (i386_darwin_dr_set, i386_darwin_dr_get)
811 (i386_darwin_set_control, i386_darwin_get_control)
812 i386_darwin_dr_set_addr, i386_darwin_get_addr)
813 i386_darwin_get_status, i386_darwin_get_control):
814 Comment out with HW_WATCHPOINT_NOT_YET_ENABLED macro.
815
d8a5d6ee
JB
8162012-03-13 Joel Brobecker <brobecker@adacore.com>
817
818 * ax-gdb.c (gen_usual_unary): Remove special handling of
819 enum and bool types.
820
af381b8c
JB
8212012-03-13 Joel Brobecker <brobecker@adacore.com>
822
823 * ax-gdb.c (gen_fetch): Add handling for TYPE_CODE_RANGE types.
824
786c562f
JB
8252012-03-13 Joel Brobecker <brobecker@adacore.com>
826
827 * aix-thread.c (supply_fprs): Make more consistent with fill_fprs.
828
e3ebf1bb
JB
8292012-03-13 Chris January <chris.january@allinea.com>
830
831 * aix-thread.c (fill_sprs): Store the floating point registers
832 at the correct offsets into vals.
833
c5b7e1cb
DE
8342012-03-13 Doug Evans <dje@google.com>
835
16899756
DE
836 * NEWS: Mention symbol-reloading has been deleted.
837 * symfile.c (symbol_reloading): Delete.
838 (show_symbol_reloading): Delete.
839 (_initialize_symfile): Delete set/show symbol-reloading.
840
c5b7e1cb
DE
841 * dwarf2read.c (load_partial_comp_unit): Defer adding cu to
842 read_in_chain until we have successfully read it in.
843 (load_full_comp_unit): Ditto.
844 (read_signatured_type): Add comment.
845
46cb6474
JB
8462012-03-13 Chris January <chris.january@allinea.com>
847
848 * stabsread.c (fix_common_block): Change type of valu argument
849 to CORE_ADDR.
850
76219d77
JB
8512012-03-13 Chris January <chris.january@allinea.com>
852
853 * rs6000-tdep.c (skip_prologue): Support the oril r29, r1, 0x0
854 instruction.
855
87b0bb13
JK
8562012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
857
858 * common/linux-procfs.c (linux_proc_get_int): New, from
859 linux_proc_get_tgid, change its LWPID type to pid_t, add parameter
860 field.
861 (linux_proc_get_tgid): Only call linux_proc_get_int.
862 (linux_proc_get_tracerpid): New.
863 (linux_proc_pid_has_state): New, from linux_proc_pid_is_zombie.
864 (linux_proc_pid_is_stopped, linux_proc_pid_is_zombie): Only call
865 linux_proc_pid_has_state.
866 * common/linux-procfs.h (linux_proc_get_tracerpid): New declaration.
867 * common/linux-ptrace.c: Include linux-procfs.h and buffer.h.
868 (linux_ptrace_attach_warnings): New.
869 * common/linux-ptrace.h (struct buffer, linux_ptrace_attach_warnings):
870 New declaration.
871 * linux-nat.c: Include exceptions.h, linux-ptrace.h and buffer.h.
872 (linux_nat_attach): New variables ex, buffer, message and message_s.
873 Wrap to_attach by TRY_CATCH and call linux_ptrace_attach_warnings.
874
5f572dec
JK
8752012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
876
877 * Makefile.in (linux-ptrace.o): New.
878 * common/linux-procfs.c (linux_proc_pid_is_zombie): New,
879 from linux-nat.c.
880 * common/linux-procfs.h (linux_proc_pid_is_zombie): New declaration.
881 * common/linux-ptrace.c: New file.
882 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-ptrace.o.
883 * config/arm/linux.mh: Likewise.
884 * config/i386/linux.mh: Likewise.
885 * config/i386/linux64.mh: Likewise.
886 * config/ia64/linux.mh: Likewise.
887 * config/m32r/linux.mh: Likewise.
888 * config/m68k/linux.mh: Likewise.
889 * config/mips/linux.mh: Likewise.
890 * config/pa/linux.mh: Likewise.
891 * config/powerpc/linux.mh: Likewise.
892 * config/powerpc/ppc64-linux.mh: Likewise.
893 * config/powerpc/spu-linux.mh: Likewise.
894 * config/s390/s390.mh: Likewise.
895 * config/sparc/linux.mh: Likewise.
896 * config/sparc/linux64.mh: Likewise.
897 * config/xtensa/linux.mh: Likewise.
898 * linux-nat.c (linux_lwp_is_zombie): Remove, move it to
899 common/linux-procfs.c.
900 (wait_lwp): Rename linux_lwp_is_zombie to linux_proc_pid_is_zombie.
901
44f238bb
PA
9022012-03-13 Hui Zhu <teawater@gmail.com>
903 Pedro Alves <palves@redhat.com>
904
905 * breakpoint.c (init_breakpoint_sal): New flags parameter. Handle
906 CREATE_BREAKPOINT_FLAGS_INSERTED.
907 (create_breakpoint_sal, create_breakpoints_sal)
908 (base_breakpoint_create_breakpoints_sal)
909 (tracepoint_create_breakpoints_sal)
910 (strace_marker_create_breakpoints_sal): New flags parameter. Pass
911 down.
912 (break_command_1, handle_gnu_v3_exceptions, trace_command)
913 (ftrace_command, strace_command): Adjust.
914 (create_tracepoint_from_upload): Pass
915 CREATE_BREAKPOINT_FLAGS_INSERTED.
916 * breakpoint.h (enum breakpoint_create_flags): New.
917 (create_breakpoint): New flags parameter.
918 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
919 * python/py-breakpoint.c (bppy_init): Adjust.
920 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust.
921 * spu-tdep.c (spu_catch_start): Adjust.
922
1e51243a
PA
9232012-03-13 Pedro Alves <palves@redhat.com>
924 Hui Zhu <teawater@gmail.com>
925 Yao Qi <yao@codesourcery.com>
926
927 * remote.c (struct remote_state): New field `starting_up'.
928 (remote_start_remote): Set and clear it.
929 (remote_can_download_tracepoint): If starting up, return false.
930
fa3064dd
YQ
9312012-03-13 Yao Qi <yao@codesourcery.com>
932
933 * inferior.h (struct inferior): Remove fields any_syscall_count,
934 syscalls_counts and total_syscalls_count. Move them to new
935 struct catch_syscall_inferior_data in breakpoint.c.
936 * breakpoint.c: Call DEF_VEC_I(int).
937 (struct catch_syscall_inferior_data): New.
938 (get_catch_syscall_inferior_data): New.
939 (catch_syscall_inferior_data_cleanup): New.
940 (insert_catch_syscall): Update to access data in
941 struct catch_syscall_inferior_data.
942 (insert_catch_syscall): Likewise.
943 (remove_catch_syscall): Likewise.
944 (remove_catch_syscall): Likewise.
945 (is_syscall_catchpoint_enabled): Likewise.
946 (add_catch_command): Likewise.
947 (_initialize_breakpoint): Register cleanup.
948 * breakpoint.h: Removed DEF_VEC_I(int).
949 * dwarf2loc.c: Call DEF_VEC_I(int).
950 * mi/mi-main.c: Likewise.
951
460fac3c
MK
9522012-03-12 Mark Kettenis <kettenis@gnu.org>
953
954 * inf-ptrace.c (inf_ptrace_post_attach): Make static.
955
e1aca11e
JB
9562012-03-12 Chris January <chris.january@allinea.com>
957
958 * aix-thread.c (_initialize_aix_thread): Add prototype.
959 * rs6000-nat.c (_initialize_rs6000_nat): Ditto.
960 * xcoffsolib.c (_initialize_xcoffsolib): Ditto.
961
649c7061
JB
9622012-03-12 Joel Brobecker <brobecker@adacore.com>
963
964 * amd64bsd-nat.c: Move #include of "amd64bsd-nat.h" after
965 include of "amd64-nat.h".
966
0b49e518
TT
9672012-03-12 Tom Tromey <tromey@redhat.com>
968
969 * buildsym.c (record_pending_block): Now static.
970 * buildsym.h: (record_pending_block): Remove.
971
fd24fa94
AT
9722012-03-12 Andreas Tobler <andreast@fgznet.ch>
973
974 * amd64bsd-nat.c: Include amd64bsd-nat.h.
975
ba919b58
TT
9762012-03-09 Tom Tromey <tromey@redhat.com>
977
978 * dwarf2read.c (struct dwarf2_cu) <checked_producer,
979 producer_is_gxx_lt_4_6>: New fields.
980 (producer_is_gxx_lt_4_6): Use and update producer cache fields.
981
a48e046c
TT
9822012-03-09 Tom Tromey <tromey@redhat.com>
983
984 * dwarf2read.c (dwarf2_attr): Avoid tail-recursive call.
985
6f5e9362
JB
9862012-03-08 Joel Brobecker <brobecker@adacore.com>
987
988 * ravenscar-sparc-thread.c (_initialize_ravenscar_sparc): Add
989 prototype.
990
8d037db9
JB
9912012-03-08 Joel Brobecker <brobecker@adacore.com>
992
993 * ravenscar-thread.c (_initialize_ravenscar): Add prototype.
994
4e841acf
JK
9952012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
996
997 Fix -Wmissing-prototypes build.
998 * arm-linux-nat.c (get_thread_id): Make it static.
999 * xtensa-linux-nat.c (get_thread_id): Likewise.
1000
c6030312
JB
10012012-03-08 Joel Brobecker <brobecker@adacore.com>
1002
1003 * server.c (process_point_options): If a conditional expression
1004 is found, only print a message if remote_debug is nonzero.
1005
52323be9
LM
10062012-03-08 Luis Machado <lgustavo@codesourcery.com>
1007
1008 * ax-gdb.c (gen_fetch): Fail gracefully and use error instead
1009 of internal error for unknown/unsupported types.
1010
7fe25d9b
JK
10112012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
1012
1013 Fix CU relative vs. absolute DIE offsets.
1014 * dwarf2loc.h (dwarf2_fetch_die_location_block): Rename parameter
1015 offset to offset_in_cu.
1016 * dwarf2read.c (process_enumeration_scope): Add CU offset to
1017 TYPE_OFFSET.
1018 (dwarf2_fetch_die_location_block): Rename parameter offset to
1019 offset_in_cu. New variable offset, add CU offset to OFFSET_IN_CU.
1020
05e7c244
JK
10212012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
1022
1023 * libunwind-frame.c: Rename to ...
1024 * ia64-libunwind-tdep.c: ... here.
1025 * libunwind-frame.h: Rename to ...
1026 * ia64-libunwind-tdep.h: ... here.
1027 * Makefile.in (HFILES_NO_SRCDIR): Rename libunwind-frame.h to
1028 ia64-libunwind-tdep.h.
1029 (ALLDEPFILES): Rename libunwind-frame.c to ia64-libunwind-tdep.c.
1030 * README (--with-libunwind): Rename to ...
1031 (--with-libunwind-ia64): ... here, note it is ia64 specific now.
1032 * config.in: Regenerate.
1033 * configure: Regenerate.
1034 * configure.ac: New option --with-libunwind-ia64, make the
1035 AS_HELP_STRING ia64 specific. Deprecate option --with-libunwind.
1036 Remove AC_DEFINE for HAVE_LIBUNWIND.
1037 * ia64-libunwind-tdep.c: Make the file top comment ia64 specific.
1038 Rename libunwind-frame.h #include to ia64-libunwind-tdep.h.
1039 Rename libunwind-frame in the general comment.
1040 * ia64-libunwind-tdep.h: Make the file top comment ia64 specific.
1041 Rename symbol LIBUNWIND_FRAME_H to IA64_TDEP_LIBUNWIND_FRAME_H.
1042 Move forward declarations inside #ifndef. Rename libunwind-frame in
1043 the general comment.
1044 * ia64-tdep.c: Rename libunwind-frame.h #include to
1045 ia64-libunwind-tdep.h.
1046 (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum, ia64_is_fpreg)
1047 (ia64_libunwind_descr): Rename libunwind-frame to
1048 ia64-libunwind-tdep in these function comments.
1049 * ia64-tdep.h: Rename libunwind-frame.h #include to
1050 ia64-libunwind-tdep.h.
1051 * ia64-vms-tdep.c (ia64_vms_libunwind_descr): Rename libunwind-frame to
1052 ia64-libunwind-tdep in that data comment.
1053
3755cbfd
JK
10542012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
1055
1056 * libunwind-frame.h (struct frame_unwind): New declaration.
1057
d1cda5d9
JB
10582012-03-08 Joel Brobecker <brobecker@adacore.com>
1059
1060 * breakpoint.c (_initialize_breakpoint): Fix error in help of
1061 "set breakpoint condition-evaluation" command.
1062
a0ba0aa2
TG
10632012-03-08 Tristan Gingold <gingold@adacore.com>
1064
1065 * sparc-stub.c: Move to stubs/
1066 * sh-stub.c: Likewise.
1067 * m68k-stub.c: Likewise.
1068 * m32r-stub.c: Likewise.
1069 * i386-stub.c: Likewise.
1070
7b8b6d6d
AS
10712012-03-08 Andreas Schwab <schwab@linux-m68k.org>
1072
007cafee
AS
1073 * m68klinux-tdep.c (m68k_linux_init_abi): Register
1074 linux_get_siginfo_type.
1075
7b8b6d6d
AS
1076 * m68klinux-nat.c: Include "gdb_proc_service.h".
1077 (PTRACE_GET_THREAD_AREA): Define.
1078 (ps_get_thread_area): New function.
1079
bba74b36
YQ
10802012-03-08 Yao Qi <yao@codesourcery.com>
1081
1082 * remote.c (remote_get_noisy_reply): Replace `sprintf' with
1083 `xsnprintf'.
1084 (remote_query_attached): Likewise.
1085 (remote_static_tracepoint_marker_at): Likewise.
1086 (remote_set_permissions): Likewise.
1087 (remote_detach_1, extended_remote_attach_1): Likewise.
1088 (send_g_packet, remote_vkill): Likewise.
1089 (extended_remote_disable_randomization): Likewise.
1090 (remote_add_target_side_condition): Likewise.
1091 (remote_insert_breakpoint): Likewise.
1092 (remote_remove_breakpoint): Likewise.
1093 (remote_insert_watchpoint): Likewise.
1094 (remote_remove_watchpoint): Likewise.
1095 (remote_insert_hw_breakpoint): Likewise.
1096 (remote_insert_hw_breakpoint): Likewise.
1097 (remote_remove_hw_breakpoint): Likewise.
1098 (remote_download_command_source): Likewise.
1099 (remote_download_tracepoint): Likewise.
1100 (remote_download_trace_state_variable): Likewise.
1101 (remote_disable_tracepoint): Likewise.
1102 (remote_trace_set_readonly_regions): Likewise.
1103 (remote_get_tracepoint_status): Likewise.
1104 (remote_trace_find): Likewise.
1105 (remote_get_trace_state_variable_value): Likewise.
1106 (remote_set_disconnected_tracing): Likewise.
1107 (remote_set_circular_trace_buffer): Likewise.
1108 (remote_get_min_fast_tracepoint_insn_len): Likewise.
1109 (remote_use_agent): Likewise.
1110 (remote_add_target_side_condition): Add one parameter BUF_SIZE.
1111 Update callers.
1112
9b224c5e
PA
11132012-03-07 Pedro Alves <palves@redhat.com>
1114
1115 * NEWS: Mention QProgramSignals.
1116 * inferior.h (update_signals_program_target): Declare.
1117 * infrun.c: (update_signals_program_target): New.
1118 (handle_command): Update the target of the new program signals
1119 array changes.
1120 * remote.c (PACKET_QProgramSignals): New enum.
1121 (last_program_signals_packet): New global.
1122 (remote_program_signals): New.
1123 (remote_start_remote): Update the target with the program signals
1124 list.
1125 (remote_protocol_features): Add entry for QPassSignals.
1126 (remote_open_1): Free anc clear last_program_signals_packet.
1127 (init_remote_ops): Install remote_program_signals.
1128 * target.c (update_current_target): Adjust.
1129 (target_program_signals): New.
1130 * target.h (struct target_ops) <to_program_signals>: New field.
1131 (target_program_signals): Declare.
1132
74c48cbb
PA
11332012-03-07 Pedro Alves <palves@redhat.com>
1134
1135 * NEWS: Add subtitle for new z0/z1 conditional breakpoint
1136 extensions.
1137
0c13fc49
AS
11382012-03-07 Andreas Schwab <schwab@linux-m68k.org>
1139
1140 * m68klinux-nat.c (getregs_supplies): Make static.
1141 (getfpregs_supplies): Likewise.
1142 (have_ptrace_getregs): Likewise.
1143
1281d2a3
JB
11442012-03-06 Joel Brobecker <brobecker@adacore.com>
1145
1146 * dwarf2read.c (dwarf2_get_die_type): Pass absolute offset
1147 in call to get_die_type_at_offset.
1148
2b03b41d
SS
11492012-03-06 Stan Shebs <stan@codesourcery.com>
1150
1151 * mi/mi-cmd-break.c: Enforce coding standards, fix comments.
1152 * mi/mi-cmd-disas.c: Ditto.
1153 * mi/mi-cmd-env.c: Ditto.
1154 * mi/mi-cmd-file.c: Ditto.
1155 * mi/mi-cmd-stack.c: Ditto.
1156 * mi/mi-cmd-target.c: Ditto.
1157 * mi/mi-cmd-var.c: Ditto.
1158 * mi/mi-cmds.c: Ditto.
1159 * mi/mi-cmds.h: Ditto.
1160 * mi/mi-console.c: Ditto.
1161 * mi/mi-getopt.c: Ditto.
1162 * mi/mi-getopt.h: Ditto.
1163 * mi/mi-interp.c: Ditto.
1164 * mi/mi-main.c: Ditto.
1165 * mi/mi-out.c: Ditto.
1166 * mi/mi-parse.c: Ditto.
1167 * mi/mi-parse.h: Ditto.
1168 * mi/mi-symbol-cmds.c: Ditto.
1169
1170 * mi/mi-getopt.h: Move mi_opt struct up.
1171 * mi/mi-main.c (captured_mi_execute_command): Remove redundant
1172 return.
1173 * mi/mi-out.c (_initialize_mi_out): Remove empty initialize.
1174
c988ad87
TT
11752012-03-06 Tom Tromey <tromey@redhat.com>
1176
1177 * proc-service.c (ps_pglobal_lookup): Set the current program
1178 space.
1179
1b7c1b10
PA
11802012-03-06 Pedro Alves <palves@redhat.com>
1181
1182 * gregset.h [HAVE_SYS_PROCFS_H]: Include <sys/procfs.h>.
1183
3c182069
JB
11842012-03-05 Joel Brobecker <brobecker@adacore.com>
1185
1186 * MAINTAINERS: List Maciej W. Rozycki as the mips maintainer.
1187
2e794194
JK
11882012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
1189
1190 Code cleanup.
1191 * common/linux-osdata.c (linux_common_core_of_thread): New function
1192 comment.
1193 * linux-nat.c (linux_nat_wait_1): Replace linux_nat_core_of_thread_1
1194 call by linux_common_core_of_thread.
1195 (linux_nat_core_of_thread_1): Remove.
1196 * linux-nat.h (linux_nat_core_of_thread_1): Remove declaration.
1197 * linux-thread-db.c: Include linux-osdata.h.
1198 (update_thread_core): Replace linux_nat_core_of_thread_1 call by
1199 linux_common_core_of_thread.
1200
9f9f1f31
TT
12012012-03-05 Tom Tromey <tromey@redhat.com>
1202
1203 * value.c (value_primitive_field): Don't fetch contents for
1204 non-virtual bases.
1205
b7b189f3
TT
12062012-03-05 Tom Tromey <tromey@redhat.com>
1207
1208 * jv-valprint.c (java_value_print): Correctly compute 'obj_addr'.
1209
05b8a789 12102012-03-05 Andreas Arnez <arnez@linux.vnet.ibm.com>
5538f557 1211
5538f557
JB
1212 * s390-nat.c: Include "gregset.h".
1213
75528772
JK
12142012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
1215
1216 * libunwind-frame.c (LIBUNWIND_SO): Change .7 to .8.
1217 [!LIBUNWIND_SO] (LIBUNWIND_SO_7): New #define.
1218 (libunwind_load): New variable so_error, use it for dlerror. Try to
1219 load also LIBUNWIND_SO_7.
1220
275418ae
PA
12212012-03-05 Pedro Alves <palves@redhat.com>
1222
1223 * i387-tdep.c (i387_supply_xsave): Assert the xsave section buffer
1224 is not NULL, and remove resulting dead code.
1225
5cbb9812
TS
12262012-03-05 Thomas Schwinge <thomas@codesourcery.com>
1227
1228 * sh-tdep.c (sh_skip_prologue): Provide an upper limit on the function
1229 prologue to sh_analyze_prologue.
1230 (sh_analyze_prologue): Make better use of such an upper limit, and
1231 generally be more cautious about accessing memory.
1232
541515ad
TT
12332012-03-05 Tom Tromey <tromey@redhat.com>
1234
1235 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from
1236 _initialize_ia64_hpux_tdep.
1237
b4d36fb8
PA
12382012-03-05 Pedro Alves <palves@redhat.com>
1239
24490249
PA
1240 PR gdb/13766
1241
b4d36fb8
PA
1242 * i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and
1243 the register state is clear, supply explicit zero, instead of
1244 marking the register unavailable.
1245
60c9a3c0
TG
12462012-03-05 Tristan Gingold <gingold@adacore.com>
1247
1248 * NEWS: Mention OpenVMS ia64 new target.
1249
696759ad
TG
12502012-03-05 Tristan Gingold <gingold@adacore.com>
1251
1252 * ia64-tdep.h: Include libunwind-frame.h and libunwind-ia64.h.
1253 (ia64_unw_accessors, ia64_unw_rse_accessors)
1254 (ia64_libunwind_descr): Declare.
1255 * ia64-vms-tdep.c: New file.
1256 * ia64-tdep.c (ia64_unw_accessors, ia64_unw_rse_accessors)
1257 (ia64_libunwind_descr): Make them public.
1258 * configure.tgt: Add ia64-*-*vms*.
1259 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-vms-tdep.o
1260 (ALLDEPFILES): Add ia64-vms-tdep.c
1261
34864976
TG
12622012-03-05 Tristan Gingold <gingold@adacore.com>
1263
169081d0
TG
1264 * target.h (target_object): Add TARGET_OBJECT_OPENVMS_UIB.
1265 * remote.c (PACKET_qXfer_uib): New enum value.
1266 (remote_protocol_features): Add entry for PACKET_qXfer_uib.
1267 (remote_xfer_partial): Handle TARGET_OBJECT_OPENVMS_UIB.
1268 (_initialize_remote): Call add_packet_config_cmd for
1269 xfer:uib packet.
1270
12712012-03-05 Tristan Gingold <gingold@adacore.com>
1272
1273 * osabi.c (gdb_osabi_names): Add OpenVMS.
1274 (generic_elf_osabi_sniffer): Likewise.
1275 * defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS.
34864976 1276
6597b100
JK
12772012-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
1278
1279 Removed unused code.
1280 * libunwind-frame.c (libunwind_frame_unwind)
1281 (libunwind_frame_base_address): Remove.
1282 * libunwind-frame.h (libunwind_frame_base_address): Remove declaration.
1283
87399aa1
YQ
12842012-03-04 Yao Qi <yao@codesourcery.com>
1285
1286 * common/agent.c (gdb_connect_sync_socket): Add _ markup and
1287 remove trailing new line.
1288 (agent_run_command, agent_run_command): Add _ markup.
1289 (agent_capability_check): Likewise.
1290
abf1152a
JK
12912012-03-03 Jan Kratochvil <jan.kratochvil@redhat.com>
1292
1293 * breakpoint.c (set_condition_evaluation_mode): Set
1294 CONDITION_EVALUATION_MODE unconditionally.
1295
5808517f
YQ
12962012-03-03 Yao Qi <yao@codesourcery.com>
1297
1298 * common/agent.c (agent_look_up_symbols): Add one parameter 'arg'.
1299 * common/agent.h: Update declaration.
1300 * inf-child.c (inf_child_use_agent): New.
1301 (inf_child_can_use_agent): New.
1302 (inf_child_target): Initialize fields `to_use_agent'
1303 and `to_can_use_agent'.
1304 * agent.c (agent_new_objfile): New.
89b7509a 1305 (_initialize_agent): Add agent_new_objfile to new_objfile
5808517f
YQ
1306 observer.
1307
1308 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
1309 New.
89b7509a 1310 (linux_target_install_ops): Initialize field
5808517f
YQ
1311 `to_static_tracepoint_markers_by_strid'.
1312 * remote.c (free_current_marker): Move it to ...
1313 * tracepoint.c (free_current_marker): ... here. New.
1314 (cleanup_target_stop): New.
1315 * tracepoint.h: Declare free_current_marker.
1316 * NEWS: Add one entry about `info static-tracepoint-marker'.
1317
58b4daa5
YQ
13182012-03-03 Yao Qi <yao@codesourcery.com>
1319
1320 * common/agent.c (agent_loaded_p): New.
89b7509a 1321 (agent_look_up_symbols): New global.
58b4daa5
YQ
1322 * common/agent.h: Declare agent_loaded_p.
1323
8ffcbaaf
YQ
13242012-03-03 Yao Qi <yao@codesourcery.com>
1325
1326 * common/agent.c (struct ipa_sym_addresses) <addr_capability>: New.
1327 (agent_capability_check, agent_capability_invalidate): New.
1328 (symbol_list): New array element.
1329 * common/agent.h (enum agent_capa): New.
1330 * target.c (target_pre_inferior): Call agent_capability_invalidate.
1331
d1feda86
YQ
13322012-03-03 Yao Qi <yao@codesourcery.com>
1333
1334 * target.h (struct target_ops) <to_use_agent>: New field.
1335 (struct target_ops) <to_can_use_agent>: New field.
1336 (target_use_agent, target_can_use_agent): New macro.
1337 * target.c (update_current_target): Update.
1338 * remote.c: New enum `PACKET_QAgent'.
1339 (remote_protocol_features): Add a new element.
1340 (remote_use_agent, remote_can_use_agent): New.
1341 (init_remote_ops): Initialize field `can_use_agent' with
1342 remote_can_use_agent. Intiailize field `use_agent' with
1343 remote_use_agent.
1344 * common/agent.c (use_agent): New global.
1345 * common/agent.h: Declare it.
1346 * tracepoint.c (info_static_tracepoint_markers_command): Add
1347 comment.
1348 * Makefile.in (SFILES): Add common/agent.c and agent.c.
1349 (COMMON_OBS): Add common/agent.o and agent.o
1350 (common-agent.o): New rule.
1351 * agent.c: New.
1352
2fa291ac
YQ
13532012-03-03 Yao Qi <yao@codesourcery.com>
1354
1355 * common/agent.c: New.
1356 * common/agent.h: New.
1357 * configure.ac: Add `sys/socket.h' and `sys/un.h' to
1358 AC_CHECK_HEADERS.
1359 * configure, configh.in: Regenerated.
1360
9fc05685
KB
13612012-03-02 Kevin Buettner <kevinb@redhat.com>
1362
1363 * sh-tdep.c (sh_frame_cache): Don't fetch the FPSCR register
1364 unless it exists for this architecture.
1365
a5ee536b
JB
13662012-03-02 Joel Brobecker <brobecker@adacore.com>
1367
1368 * language.h (struct language_defn): New "method" la_read_var_value.
1369 * findvar.c: #include "language.h".
1370 (default_read_var_value): Renames read_var_value. Rewrite
1371 function description.
1372 (read_var_value): New function.
1373 * value.h (default_read_var_value): Add prototype.
1374 * ada-lang.c (ada_read_renaming_var_value, ada_read_var_value):
1375 New functions.
1376 (ada_language_defn): Add entry for la_read_var_value.
1377 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, language.c,
1378 * m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Update
1379 language_defn structures to add entry for new la_read_var_value
1380 field.
1381
f59f708a
PA
13822012-03-02 Tom Tromey <tromey@redhat.com>
1383 Pedro Alves <palves@redhat.com>
1384
1385 PR breakpoints/13776:
1386 * breakpoint.c (breakpoint_init_inferior): Delete step-resume
1387 breakpoints.
1388 (delete_longjmp_breakpoint_at_next_stop): New.
1389 * breakpoint.h (delete_longjmp_breakpoint_at_next_stop): Declare.
1390 * target.c (generic_mourn_inferior): Call mark_breakpoints_out
1391 before deleting the inferior. Add comments.
1392 * thread.c (clear_thread_inferior_resources): Don't delete lonjmp
1393 breakpoints immediately, but only on next stop. Move that code
1394 next to where we mark other breakpoints for deletion.
1395
44099a67
JB
13962012-03-02 Joel Brobecker <brobecker@adacore.com>
1397
1398 * mips-linux-nat.c (mips_linux_read_description): Add missing i18n
1399 marker.
1400 * mips-tdep.c (mips_linux_reg_names): Improve comment to avoid ARI
1401 violation.
1402
2a2ef594
PA
14032012-03-02 Pedro Alves <palves@redhat.com>
1404
1405 * linux-thread-db.c (attach_thread): Avoid in_thread_list call.
1406
b261e0c5
UW
14072012-03-02 Ulrich Weigand <uweigand@de.ibm.com>
1408
1409 Fix -Wmissing-prototypes build.
1410 * ppc-linux-nat.c (ppc_linux_get_hwcap): Make static.
1411 * remote-sim.c (gdbsim_has_all_memory): Likewise.
1412 (gdbsim_has_memory): Likewise.
1413
a95babbf
YQ
14142012-03-02 Yao Qi <yao@codesourcery.com>
1415
1416 Fix -Wmissing-prototypes build.
1417 * charset.c (phony_iconv_open): Make static.
1418 (phony_iconv_close, phony_iconv): Likewise.
1419 * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype.
1420 * i386-windows-nat.c (_initialize_i386_windows_nat): New
1421 prototype.
1422 * mingw-hdep.c (_initialize_mingw_hdep): New prototype.
1423 * ser-mingw.c (create_select_thread): Make static.
1424 * windows-termcap.c (tgetent): New prototype.
1425 (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
1426
d603d4b3
JK
14272012-03-02 Zhang Yuanhui <asmwarrior@gmail.com>
1428
1429 Fix -Wmissing-prototypes build.
1430 * windows-nat.c (dll_symbol_command, ctrl_c_handler): Make them static.
1431 (_initialize_windows_nat, _initialize_check_for_gdb_ini)
1432 (_initialize_loadable): New prototypes.
1433
7fb3ad1f
DE
14342012-03-02 Doug Evans <dje@google.com>
1435
1436 * dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
1437 abbrev table, read_comp_unit will do it.
1438
693be288
JK
14392012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1440
1441 Fix -Wmissing-prototypes build.
1442 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Make it static.
1443 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): New prototype.
1444 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Likewise.
1445 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code): Make it static.
1446 (_initialize_arm_symbian_tdep): New prototype.
1447 * arm-wince-tdep.c (arm_wince_skip_main_prologue): Make it static.
1448 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): New prototype.
1449 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Make it
1450 static.
1451 * lm32-tdep.c (_initialize_lm32_tdep): New prototype.
1452 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): New
1453 prototype.
1454 * microblaze-tdep.c (microblaze_debug, microblaze_fetch_instruction)
1455 (microblaze_skip_prologue, microblaze_frame_cache): Make them static.
1456 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Make it
1457 static.
1458 * moxie-tdep.c (moxie_process_record): Likewise.
1459 * remote-mips.c (mips_can_use_watchpoint, mips_insert_watchpoint)
1460 (mips_remove_watchpoint, mips_stopped_by_watchpoint): Make them static.
1461 * rl78-tdep.c (rl78_breakpoint_from_pc): Make it static.
1462 (_initialize_rl78_tdep): New prototype.
1463 * rx-tdep.c (rx_breakpoint_from_pc): Make it static.
1464 (_initialize_rx_tdep): New prototype.
1465 * solib-darwin.c (darwin_in_dynsym_resolve_code): Make it static.
1466 (_initialize_darwin_solib): New prototype.
1467 * solib-spu.c: Include solib-spu.h.
1468 (_initialize_spu_solib): New prototype.
1469 * spu-multiarch.c (_initialize_spu_multiarch): New prototype.
1470 * tic6x-tdep.c (tic6x_analyze_prologue, tic6x_skip_prologue)
1471 (tic6x_breakpoint_from_pc, tic6x_frame_unwind_cache)
1472 (tic6x_software_single_step): Make it static.
1473 (_initialize_tic6x_tdep): New prototype.
1474
638234e5
JK
14752012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1476
1477 Fix -Wmissing-prototypes build.
1478 * cris-tdep.c (cris_can_use_hardware_watchpoint)
1479 (cris_region_ok_for_watchpoint, cris_stopped_data_address): Remove.
1480
f4a6f16d
JK
14812012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1482
1483 Fix -Wmissing-prototypes build.
1484 * frv-tdep.c (frv_check_watch_resources, frv_stopped_data_address)
1485 (frv_have_stopped_data_address): Remove.
1486
04dcf5fa
JK
14872012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1488
1489 Fix -Wmissing-prototypes build.
1490 * Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h.
1491 * sh-tdep.c: Include sh64-tdep.h.
1492 * sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations.
1493 * sh64-tdep.c: Include sh64-tdep.h.
1494 * sh64-tdep.h: New file.
1495
19080931
MR
14962012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
1497
1498 * mips-tdep.c (mips32_scan_prologue): Correct indentation.
1499
9aac7884
MR
15002012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
1501
1502 * mips-tdep.c (mips_gdbarch_init): Only set pc_regnum and
1503 sp_regnum once the gdbarch_init_osabi hook has been called.
1504
a385295e
MR
15052012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
1506
1507 * mips-tdep.c (mips32_bc1_pc): New function.
1508 (mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T,
1509 BPOSGE32 and BPOSGE64 instructions.
1510 (deal_with_atomic_sequence): Likewise.
1511 (mips32_instruction_has_delay_slot): Likewise.
1512
1faeff08
MR
15132012-03-01 Maciej W. Rozycki <macro@mips.com>
1514 Chris Dearman <chris@mips.com>
1515 Maciej W. Rozycki <macro@codesourcery.com>
1516 Joseph Myers <joseph@codesourcery.com>
1517
1518 * features/mips-dsp.xml: New file.
1519 * features/mips64-dsp.xml: New file.
1520 * features/mips-dsp-linux.xml: New file.
1521 * features/mips64-dsp-linux.xml: New file.
1522 * features/Makefile (WHICH): Add mips-dsp-linux and
1523 mips64-dsp-linux.
1524 (mips-dsp-expedite, mips64-dsp-expedite): New variables.
1525 * features/mips-dsp-linux.c: New file.
1526 * features/mips64-dsp-linux.c: New file.
1527 * regformats/mips-dsp-linux.dat: New file.
1528 * regformats/mips64-dsp-linux.dat: New file.
1529 * mips-linux-nat.c (mips_linux_register_addr): Handle DSP
1530 registers.
1531 (mips64_linux_register_addr): Likewise.
1532 (mips64_linux_regsets_fetch_registers): Likewise.
1533 (mips64_linux_regsets_store_registers): Likewise.
1534 (mips64_linux_fetch_registers): Update call to
1535 mips64_linux_regsets_fetch_registers.
1536 (mips64_linux_store_registers): Update call to
1537 mips64_linux_regsets_store_registers.
1538 (mips_linux_read_description): Probe for DSP registers.
1539 (_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux
1540 and initialize_tdesc_mips64_dsp_linux.
1541 * mips-linux-tdep.c (supply_gregset, mips64_supply_gregset):
1542 Remove padding of no longer used embedded register slots.
1543 * mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros.
1544 (MIPS_RESTART_REGNUM): Redefine enum value.
1545 * mips-tdep.c (mips_generic_reg_names): Remove trailing null
1546 strings.
1547 (mips_tx39_reg_names): Likewise.
1548 (mips_linux_reg_names): New array of register names for Linux
1549 targets.
1550 (mips_register_name): Check for a null pointer in
1551 mips_processor_reg_names and return an empty string.
1552 (mips_register_type): Exclude embedded registers for the IRIX
1553 and Linux ABIs.
1554 (mips_pseudo_register_type): Likewise. Use dynamic numbers to
1555 refer to FP registers, LO, HI, BadVAddr, Cause and PC. Handle
1556 DSP registers.
1557 (mips_stab_reg_to_regnum): Handle DSP accumulators.
1558 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
1559 (mips_gdbarch_init): Likewise. Initialize internal register
1560 indices for the Linux ABI. Use dynamic numbers to refer to
1561 registers, as applicable, while parsing the target description.
1562 * mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets.
1563
263689d8
JB
15642012-03-01 Joel Brobecker <brobecker@adacore.com>
1565
1566 * frame.h (read_frame_register_unsigned): Fix typo in function
1567 description.
1568
f3b4f45c
PA
15692012-03-01 Pedro Alves <palves@redhat.com>
1570
1571 * jit-reader.in [!__cplusplus]
1572 (GDB_DECLARE_GPL_COMPATIBLE_READER): Add missing backslash.
1573
b03a2011
PA
15742012-03-01 Pedro Alves <palves@redhat.com>
1575
1576 * configure.ac (build_warnings): Add -Wmissing-prototypes.
1577 * configure: Regenerate.
1578
70221824
PA
15792012-03-01 Pedro Alves <palves@redhat.com>
1580
1581 * amd64-linux-tdep.c (amd64_linux_record_signal): Make static.
1582 * breakpoint.c (create_exception_master_breakpoint, trace_command)
1583 (ftrace_command, strace_command): Make static.
1584 * d-lang.c (_initialize_d_language): Declare.
1585 * dwarf2expr.c (_initialize_dwarf2expr): Declare.
1586 * dwarf2loc.c (_initialize_dwarf2loc):
1587 * dwarf2read.c (process_psymtab_comp_unit): Make static.
1588 * exec.c (exec_get_section_table): Make static.
1589 * i386-linux-tdep.c (i386_linux_record_signal): Make static.
1590 * infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static.
1591 * inferior.c (remove_inferior_command, add_inferior_command)
1592 (clone_inferior_command): Make static.
1593 * linux-nat.c (linux_nat_thread_address_space)
1594 (linux_nat_core_of_thread): Make static.
1595 * linux-tdep.c (_initialize_linux_tdep): Declare.
1596 * objc-lang.c (_initialize_objc_lang): Declare.
1597 * opencl-lang.c (builtin_opencl_type, opencl_language_arch_info):
1598 Make static.
1599 (_initialize_opencl_language): Declare.
1600 * record.c (_initialize_record): Declare.
1601 * remote.c (demand_private_info, remote_get_tib_address)
1602 (remote_supports_cond_tracepoints)
1603 (remote_supports_fast_tracepoints, remote_get_tracepoint_status):
1604 Make static.
1605 * skip.c (_initialize_step_skip): Declare.
1606 * symtab.c (skip_prologue_using_lineinfo): Make static.
1607 * tracepoint.c (delete_trace_state_variable)
1608 (trace_variable_command, delete_trace_variable_command)
1609 (get_uploaded_tsv, find_matching_tracepoint_location)
1610 (find_matching_tsv, create_tsv_from_upload, get_traceframe_info):
1611 Make static.
1612 * value.c (pack_unsigned_long): Make static.
1613 * varobj.c (varobj_ensure_python_env): Make static.
1614 * windows-tdep.c (_initialize_windows_tdep): Declare.
1615 * xml-syscall.c (make_cleanup_free_syscalls_info): Make static.
1616
33fbcbee
PA
16172012-03-01 Pedro Alves <palves@redhat.com>
1618
1619 * linux-tdep.c (linux_has_shared_address_space): Make static. Add
1620 gdbarch parameter.
1621 (linux_init_abi): Install it as has_shared_address_space gdbarch
1622 callback.
1623
44d0cd3b
PA
16242012-03-01 Pedro Alves <palves@redhat.com>
1625
1626 * observer.c (observer_test_first_notification_function)
1627 (observer_test_second_notification_function)
1628 (observer_test_third_notification_function): Add declarations.
1629
ed01b82c
PA
16302012-03-01 Pedro Alves <palves@redhat.com>
1631
1632 * common/signals.c (default_target_signal_to_host)
1633 (default_target_signal_from_host): Move ...
1634 * arch-utils.c: ... here.
1635 * arch-utils.h (default_target_signal_to_host)
1636 (default_target_signal_from_host): Declare.
1637
1638 * common/signals.c (target_signal_from_command): Move ...
1639 * infrun.c: ... here.
1640 * inferior.h (target_signal_from_command): Declare.
1641 * target.h (target_signal_from_command)
1642 (default_target_signal_from_host, default_target_signal_to_host):
1643 Delete declarations.
1644
1645 * common/signals.c (_initialize_signals): Delete.
1646
c9b87335
PA
16472012-03-01 Pedro Alves <palves@redhat.com>
1648
1649 * jit-reader.in (plugin_is_GPL_compatible): Add declarations for
1650 both __cplusplus and !__cplusplus.
1651
9340a6c0
PA
16522012-03-01 Pedro Alves <palves@redhat.com>
1653
1654 * psymtab.c (find_and_open_source): Delete declaration.
1655 * source.c (find_and_open_source): Move comment ...
1656 * source.h (find_and_open_source): ... to this new declaration.
1657
e451c4a1
PA
16582012-03-01 Pedro Alves <palves@redhat.com>
1659
1660 * inline-frame.c: Include inline-frame.h.
1661
983fb104
PA
16622012-03-01 Pedro Alves <palves@redhat.com>
1663
1664 * tui/tui-data.c (set_gen_win_origin): Delete.
1665 * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration.
1666 * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete.
1667
5fbce5df
PA
16682012-03-01 Pedro Alves <palves@redhat.com>
1669
1670 * remote.c (encode_actions): Delete declaration.
1671 * tracepoint.c (encode_actions): Make extern.
1672 * tracepoint.h (encode_actions): Declare.
1673
49a8461d
PA
16742012-03-01 Pedro Alves <palves@redhat.com>
1675
1676 * python/py-breakpoint.c: Include python.h.
1677 * python/py-continueevent.c (create_continue_event_object): Make
1678 static.
1679 * python/py-lazy-string.c (stpy_get_type): Make static.
1680 * python/py-newobjfileevent.c (create_new_objfile_event_object):
1681 Make static.
1682 * python/py-utils.c (unicode_to_target_python_string): Make
1683 static.
1684 * python/py-value.c: Include python.h.
1685
9079102f
PA
16862012-03-01 Pedro Alves <palves@redhat.com>
1687
1688 * inferior.c (delete_threads_of_inferior): Delete.
1689
a298c5e8
PA
16902012-03-01 Pedro Alves <palves@redhat.com>
1691
1692 Import fallback definitions from glibc.
1693
1694 * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
1695 ps_prochandle): Forward declare.
1696 (ps_err_e): Use glibc's comments.
1697 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
1698 (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
1699 (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup)
1700 (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize)
1701 (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare.
1702 (struct ps_prochandle): Adjust comment.
1703
e3084549
PA
17042012-03-01 Pedro Alves <palves@redhat.com>
1705
1706 * ada-lang.c (ada_modulus_from_name): Delete.
1707 * ada-lex.l (lexer_init): Make static.
1708
ad5f7d6e
PA
17092012-03-01 Pedro Alves <palves@redhat.com>
1710
1711 PR gdb/13767
1712
1713 * frame.c (read_frame_register_unsigned): New.
1714 * frame.h (read_frame_register_unsigned): Declare.
1715 * i387-tdep.c (print_i387_status_word): New parameter `status_p'.
1716 Handle it.
1717 (print_i387_control_word): New parameter `control_p'. Handle it.
1718 (i387_print_float_info): Handle unavailable float registers.
1719
e0a4d108
KS
17202012-03-01 Keith Seitz <keiths@redhat.com>
1721
1722 * linespec.c (decode_line_2): Sort the list of methods
1723 alphabetically before presenting the user with a selection
1724 menu.
1725
122d1940
DE
17262012-03-01 Doug Evans <dje@google.com>
1727
1728 * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
1729 has_namespace_info.
1730 (dwarf2_read_abbrevs): Remove corresponding initialization.
1731
7d74f244
DE
17322012-03-01 Scott J. Goldman <scottjg@vmware.com>
1733
1734 * NEWS: Mention new python command class gdb.COMMAND_USER.
1735 * cli/cli-cmds.c (show_user): Print error when used on a python
1736 command.
1737 (init_cli_cmds): Update documentation strings for "show user" and
1738 "set/show max-user-call-depth" to clarify that it does not apply to
1739 python commands.
1740 * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in
1741 error check.
1742 (gdbpy_initialize_commands): Add COMMAND_USER as a constant in
1743 gdb python api.
1744 * top.c (execute_command): Only execute a user-defined command as a
1745 legacy macro if c->user_commands is set.
1746
e88acd96
TT
17472012-03-01 Tom Tromey <tromey@redhat.com>
1748
1749 * valprint.h (struct generic_val_print_decorations): New.
1750 (generic_val_print): Declare.
1751 * valprint.c (generic_val_print): New function.
1752 * p-valprint.c (p_decorations): New global.
1753 (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM,
1754 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT,
1755 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF,
1756 TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print.
1757 * m2-valprint.c (m2_decorations): New global.
1758 (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC,
1759 TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR,
1760 TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF,
1761 TYPE_CODE_ERROR>: Call generic_val_print.
1762 * f-valprint.c (f_decorations): New global.
1763 (f_val_print): Use print_function_pointer_address.
1764 <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS,
1765 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE,
1766 TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call
1767 generic_val_print.
1768 * c-valprint.c (c_decorations): New global.
1769 (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM,
1770 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL,
1771 TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT,
1772 TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR,
1773 TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print.
1774 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove
1775 case.
1776
d3eab38a
TT
17772012-03-01 Tom Tromey <tromey@redhat.com>
1778
1779 * valprint.c (val_print): Update.
1780 * p-valprint (pascal_val_print): Return void.
1781 * p-lang.h (pascal_val_print): Return void.
1782 * m2-valprint.c (m2_val_print): Return void.
1783 * m2-lang.h (m2_val_print): Return void.
1784 * language.h (struct language_defn) <la_val_print>: Return void.
1785 * language.c (unk_lang_val_print): Return void.
1786 * jv-valprint.c (java_val_print): Return void.
1787 * jv-lang.h (java_val_print): Return void.
1788 * f-valprint.c (f_val_print): Return void.
1789 * f-lang.h (f_val_print): Return void.
1790 * d-valprint.c (d_val_print): Return void.
1791 (dynamic_array_type): Update.
1792 * d-lang.h (d_val_print): Return void.
1793 * c-valprint.c (c_val_print): Return void.
1794 * c-lang.h (c_val_print): Return void.
1795 * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
1796 void.
1797 * ada-lang.h (ada_val_print): Return void.
1798
35c0084b
TT
17992012-03-01 Tom Tromey <tromey@redhat.com>
1800
1801 * value.h (val_print): Return void.
1802 * valprint.c (val_print): Return void.
1803
a1f5dd1b
TT
18042012-03-01 Tom Tromey <tromey@redhat.com>
1805
1806 * value.h (common_val_print): Return void.
1807 * valprint.c (common_val_print): Return void.
1808
8e069a98
TT
18092012-03-01 Tom Tromey <tromey@redhat.com>
1810
1811 * value.h (value_print): Return void.
1812 * valprint.c (value_print): Return void.
1813 * p-valprint.c (pascal_value_print): Return void.
1814 * p-lang.h (pascal_value_print): Return void.
1815 * language.h (struct language_defn) <la_value_print>: Return
1816 void.
1817 * language.c (unk_lang_value_print): Return void.
1818 * jv-valprint.c (java_value_print): Return void.
1819 * jv-lang.h (java_value_print): Return void.
1820 * f-valprint.c (c_value_print): Don't declare.
1821 Include c-lang.h.
1822 * c-valprint.c (c_value_print): Return void.
1823 * c-lang.h (c_value_print): Return void.
1824 * ada-valprint.c (ada_value_print): Return void.
1825 * ada-lang.h (ada_value_print): Return void.
1826
be335936
TT
18272012-03-01 Tom Tromey <tromey@redhat.com>
1828
1829 * value.c (value_primitive_field): Handle virtual base classes.
1830
b0db66a7
TT
18312012-03-01 Tom Tromey <tromey@redhat.com>
1832
1833 * gdbtypes.h (struct vbase): Remove.
1834
132c57b4
TT
18352012-03-01 Tom Tromey <tromey@redhat.com>
1836
1837 * c-valprint.c (print_function_pointer_address): Move...
1838 * valprint.c: ... here. Make non-static.
1839 * m2-valprint.c (print_function_pointer_address): Remove.
1840 * valprint.h (print_function_pointer_address): Declare.
1841
e41eec66
JB
18422012-03-01 Joel Brobecker <brobecker@adacore.com>
1843
1844 * NEWS: Document the fact that one can provide a condition when
1845 creating an Ada exception catchpoint.
1846
19c37f24
TT
18472012-03-01 Tom Tromey <tromey@redhat.com>
1848
1849 * valprint.c (val_print_type_code_flags): Fix placement of
1850 trailing brace.
1851
f0fed3a3
JB
18522012-03-01 Joel Brobecker <brobecker@adacore.com>
1853
1854 * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
1855 (update_files): Do not set MULTILINE_COMMENT_PREFIXES
1856 environment variable before calling update-copyright.
1857
8ba85d85
JB
18582012-03-01 Joel Brobecker <brobecker@adacore.com>
1859
1860 * gnulib/extra/update-copyright: Update to the latest from
1861 gnulib's git repository.
1862 * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
1863 variable to 2 instead of 1.
1864
8219b1e8
JB
18652012-02-29 Joel Brobecker <brobecker@adacore.com>
1866
1867 * varobj.c (c_value_of_variable): Remove dead code.
1868
718cb7da
JB
18692012-02-29 Joel Brobecker <brobecker@adacore.com>
1870
1871 * ada-lex.p (processId): Do not modify already encoded IDs.
1872 Update function documentation.
1873
739593e0
JB
18742012-02-29 Joel Brobecker <brobecker@adacore.com>
1875
1876 * ada-lang.h (ada_find_renaming_symbol): Replace parameter
1877 "name" with "struct symbol *name_sym".
1878 * ada-exp.y (write_var_or_type): Update call to
1879 ada_find_renaming_symbol.
1880 "name" with "struct symbol *name_sym". Adjust Implementation
1881 accordingly. Adjust the function documentation.
1882
852dff6c
JB
18832012-02-29 Joel Brobecker <brobecker@adacore.com>
1884
1885 * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
1886 * ada-lang.c (ada_find_any_type): Add advance declaration.
1887 Make static. Replace ada_find_any_symbol by
1888 ada_find_any_type_symbol.
1889 (ada_find_any_type_symbol): Renames ada_find_any_symbol.
1890 Improve function description. Make static.
1891 (ada_find_renaming_symbol, find_old_style_renaming_symbol):
1892 Replace ada_find_any_symbol by ada_find_any_type_symbol.
1893
1b611343
JB
18942012-02-29 Joel Brobecker <brobecker@adacore.com>
1895
1896 * ada-lang.c (struct tag_args): Delete.
1897 (ada_get_tsd_type): Function body moved up in source file.
1898 (ada_tag_name_1, ada_tag_name_2): Delete.
1899 (ada_get_tsd_from_tag): New function.
1900 (ada_tag_name_from_tsd): New function.
1901 (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
1902 to determine the tag name.
1903
41246937
JB
19042012-02-29 Joel Brobecker <brobecker@adacore.com>
1905
1906 * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
1907 declaration.
1908 * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
1909 function.
1910
ffde82bf
JB
19112012-02-29 Joel Brobecker <brobecker@adacore.com>
1912
1913 * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
1914
2ad01556
JB
19152012-02-29 Joel Brobecker <brobecker@adacore.com>
1916
1917 * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
1918 full searches.
1919
99b1c762
JB
19202012-02-29 Joel Brobecker <brobecker@adacore.com>
1921
1922 * ada-lang.c (constrained_packed_array_type): If there is a
1923 parallel XA type, use it to determine the array index type.
1924
2d4a02ee
JB
19252012-02-29 Joel Brobecker <brobecker@adacore.com>
1926
1927 * ada-valprint.c (ada_val_print_1): If our value is a reference
1928 to an array descriptor, dereference it before converting it
1929 to a simple array.
1930
c48db5ca
JB
19312012-02-29 Joel Brobecker <brobecker@adacore.com>
1932
1933 * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
1934 creating fixed value.
1935 (ada_value_ind, ada_coerce_ref, assign_component)
1936 (ada_evaluate_subexp): Remove call to unwrap_value before
1937 call to ada_to_fixed_value.
1938
2e6fda7d
JB
19392012-02-29 Joel Brobecker <brobecker@adacore.com>
1940
1941 * ada-lang.c (to_fixed_array_type): Set result's type name.
1942
5845583d
JB
19432012-02-29 Joel Brobecker <brobecker@adacore.com>
1944
1945 * ada-lang.c (catch_ada_exception_command_split): Add new
1946 argument cond_string. Add support for condition at end of
1947 "catch exception" commands.
1948 (ada_decode_exception_location): Add new argument cond_string.
1949 Update call to catch_ada_exception_command_split.
1950 (create_ada_exception_catchpoint): Add new argument cond_string.
1951 Set the breakpoint condition if needed.
1952 (catch_ada_exception_command): Update call to
1953 ada_decode_exception_location.
1954 (ada_decode_assert_location): Add function documentation.
1955 Add support for condition at end of "catch assert" command.
1956 (catch_assert_command): Update calls to ada_decode_assert_location
1957 and create_ada_exception_catchpoint.
1958
9a7f938f
JK
19592012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1960
1961 Fix disp-step-syscall.exp: fork: single step over fork.
1962 * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
1963 (i386_linux_get_syscall_number_from_regcache): ... here, new function
1964 comment, change parameters gdbarch and ptid to regcache. Remove
1965 parameter regcache, initialize gdbarch from regcache here.
1966 (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
1967 New functions.
1968 (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
1969 instead.
1970 * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
1971 'syscall'. Make the 'int' check more strict.
1972
ffdf6de5
JK
19732012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1974
1975 Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
1976 * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
1977 (i386_linux_intx80_sysenter_syscall_record): ... here.
1978 (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
1979 Use the renamed function name.
1980
c70a6932
JK
19812012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1982
1983 * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
1984 * breakpoint.c (until_break_command): Likewise.
1985 * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
1986 * infcall.c (call_function_by_hand): Likewise.
1987 * infcmd.c (finish_forward): Likewise.
1988 * infrun.c (insert_exception_resume_breakpoint): Likewise.
1989
05b8a789 19902012-02-28 Tristan Gingold <gingold@adacore.com>
d4cd3da9 1991
d4cd3da9
JB
1992 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
1993 avoid variable assignments inside condition.
1994
6425366c
JK
19952012-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1996
1997 Fix static analysis issue found by cppcheck.
1998 * microblaze-tdep.c (microblaze_extract_return_value): Fix
1999 uninitialized BUF for size 2.
2000
c8cef75f
MR
20012012-02-27 Chris Dearman <chris@mips.com>
2002 Nathan Froyd <froydnj@codesourcery.com>
2003 Maciej W. Rozycki <macro@codesourcery.com>
2004
2005 * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
2006 (mips16_instruction_has_delay_slot): Likewise.
2007 (mips_segment_boundary): Likewise.
2008 (mips_adjust_breakpoint_address): Likewise.
2009 (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
2010
473347ad
MR
20112012-02-27 Maciej W. Rozycki <macro@mips.com>
2012 Maciej W. Rozycki <macro@codesourcery.com>
2013
2014 * infrun.c (handle_inferior_event): Don't proceed through
2015 shared library trampolines if stepping at the machine
2016 instruction level.
2017
cf233303
MR
20182012-02-27 Maciej W. Rozycki <macro@codesourcery.com>
2019
2020 * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
2021 too.
2022
cb2cf4ce
TS
20232012-02-27 Thomas Schwinge <thomas@codesourcery.com>
2024
2025 * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
2026 (sh_stub_unwind_sniffer): New functions.
2027 (sh_stub_unwind): New variable.
2028 (sh_gdbarch_init): Wire everything.
2029
644cebc9
PA
20302012-02-27 Pedro Alves <palves@redhat.com>
2031
2032 * linux-nat.c (pid_is_stopped): Delete, moved to common/.
2033 (linux_nat_post_attach_wait): Adjust to use
2034 linux_proc_pid_is_stopped.
2035 * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
2036 * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
2037 based on pid_is_stopped from both linux-nat.c and
2038 gdbserver/linux-low.c, and renamed.
2039
283002cf
MR
20402012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
2041
2042 * remote.c (remote_watchpoint_addr_within_range): New function.
2043 (init_remote_ops): Use it.
2044
9b3e86b1
MR
20452012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
2046
2047 * target.h (target_watchpoint_addr_within_range): Document macro.
2048
e36930bb
PA
20492012-02-24 Pedro Alves <palves@redhat.com>
2050
2051 * stack.c (set_last_displayed_sal): Issue internal_error instead
2052 of warning, and issue it after clearing the last displayed sal.
2053
883bc8d1
PA
20542012-02-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2055 Pedro Alves <palves@redhat.com>
2056
2057 * breakpoint.c (until_break_command): Install breakpoints after
2058 all frame manipulations.
2059
b775012e
LM
20602012-02-24 Luis Machado <lgustavo@codesourcery.com>
2061
2062 * remote.c (remote_supports_cond_breakpoints): New forward
2063 declaration.
2064 (remote_add_target_side_condition): New function.
2065 (remote_insert_breakpoint): Add target-side breakpoint
2066 conditional if supported.
2067 (remote_insert_hw_breakpoint): Likewise.
2068 (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
2069 hook.
2070
2071 * target.c (update_current_target): Inherit
2072 to_supports_evaluation_of_breakpoint_conditions.
2073 Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
2074
2075 * target.h (struct target_ops)
2076 <to_supports_evaluation_of_breakpoint_conditions>: New field.
2077 (target_supports_evaluation_of_breakpoint_conditions): New #define.
2078
2079 * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
2080 (condition_evaluation_both, condition_evaluation_auto,
2081 condition_evaluation_host, condition_evaluation_target,
2082 condition_evaluation_enums, condition_evaluation_mode_1,
2083 condition_evaluation_mode): New static globals.
2084 (translate_condition_evaluation_mode): New function.
2085 (breakpoint_condition_evaluation_mode): New function.
2086 (gdb_evaluates_breakpoint_condition_p): New function.
2087 (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
2088 (mark_breakpoint_modified): New function.
2089 (mark_breakpoint_location_modified): New function.
2090 (set_condition_evaluation_mode): New function.
2091 (show_condition_evaluation_mode): New function.
2092 (bp_location_compare_addrs): New function.
2093 (get_first_location_gte_addr): New helper function.
2094 (set_breakpoint_condition): Free condition bytecode if locations
2095 has become unconditional. Call mark_breakpoint_modified (...).
2096 (condition_command): Call update_global_location_list (1) for
2097 breakpoints.
2098 (breakpoint_xfer_memory): Use is_breakpoint (...).
2099 (is_breakpoint): New function.
2100 (parse_cond_to_aexpr): New function.
2101 (build_target_condition_list): New function.
2102 (insert_bp_location): Handle target-side conditional
2103 breakpoints and call build_target_condition_list (...).
2104 (update_inserted_breakpoint_locations): New function.
2105 (insert_breakpoint_locations): Handle target-side conditional
2106 breakpoints.
2107 (bpstat_check_breakpoint_conditions): Add comment.
2108 (bp_condition_evaluator): New function.
2109 (bp_location_condition_evaluator): New function.
2110 (print_breakpoint_location): Print information on where the condition
2111 will be evaluated.
2112 (print_one_breakpoint_location): Likewise.
2113 (init_bp_location): Call mark_breakpoint_location_modified (...) for
2114 breakpoint location.
2115 (force_breakpoint_reinsertion): New functions.
2116 (update_global_location_list): Handle target-side breakpoint
2117 conditions.
2118 Reinsert locations that are already inserted if conditions have
2119 changed.
2120 (bp_location_dtor): Free agent expression bytecode.
2121 (disable_breakpoint): Call mark_breakpoint_modified (...).
2122 Call update_global_location_list (...) with parameter 1 for breakpoints.
2123 (disable_command): Call mark_breakpoint_location_modified (...).
2124 Call update_global_location_list (...) with parameter 1 for breakpoints.
2125 (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
2126 (enable_command): mark_breakpoint_location_modified (...).
2127 (_initialize_breakpoint): Update documentation and add
2128 condition-evaluation breakpoint subcommand.
2129
2130 * breakpoint.h: Include ax.h.
2131 (condition_list): New data structure.
2132 (condition_status): New enum.
2133 (bp_target_info) <cond_list>: New field.
2134 (bp_location) <condition_changed, cond_bytecode>: New fields.
2135 (is_breakpoint): New prototype.
2136
3788aec7
LM
21372012-02-24 Luis Machado <lgustavo@codesourcery.com>
2138
2139 * remote.c (remote_state) <cond_breakpoints>: New field.
2140 (PACKET_ConditionalBreakpoints): New enum.
2141 (remote_cond_breakpoint_feature): New function.
2142 (remote_protocol_features): Add new ConditionalBreakpoints entry.
2143 (remote_supports_cond_breakpoints): New function.
2144 (_initialize_remote): Add new packet configuration for
2145 target-side conditional breakpoints.
2146
72895ff6
LM
21472012-02-24 Luis Machado <lgustavo@codesourcery.com>
2148
2149 * NEWS: Mention target-side conditional breakpoint support,
2150 new condition-evaluation breakpoint subcommand and remote
2151 packet extensions.
2152
dea2aa5f
LM
21532012-02-24 Luis Machado <lgustavo@codesourcery.com>
2154
2155 * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
2156 number.
2157
8a8bc27f
TS
21582012-02-24 Thomas Schwinge <thomas@codesourcery.com>
2159
2160 * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
2161 (after_prologue): Remove.
2162
6b446fdf
TT
21632012-02-23 Tom Tromey <tromey@redhat.com>
2164
2165 * jv-valprint.c (java_val_print): Remove dead code.
2166
ef59abfb
TG
21672012-02-23 Tristan Gingold <gingold@adacore.com>
2168
2169 * ada-tasks.c (struct ada_tasks_inferior_data): Add
2170 known_tasks_element and known_tasks_length fields.
2171 (read_known_tasks_array): Change argument type. Use pointer type
2172 and number of elements from DATA. Adjust.
2173 (read_known_tasks_list): Likewise.
2174 (get_known_tasks_addr): Remove.
2175 (ada_set_current_inferior_known_tasks_addr): Renamed to ...
2176 (ada_tasks_inferior_data_sniffer): ... this. Use symtab for element
2177 type and array length. Merge former get_known_tasks_addr code.
2178
def166f6
JK
21792012-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
2180
2181 PR backtrace/13716
2182 * infcmd.c (finish_forward): New variable frame_id, initialize it, use
2183 it after set_momentary_breakpoint.
2184
aeaa2474
SA
21852012-02-22 Sterling Augustine <saugustine@google.com>
2186
2187 PR 13689:
2188 * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
2189
feea76c2
GB
21902012-02-22 Gary Benson <gbenson@redhat.com>
2191
2192 * dwarf2read.c (dwarf2_read_index): Correct misspelling.
2193 (find_slot_in_mapped_hash): Likewise.
2194
f06e05e0
JK
21952012-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2196
2197 PR build/13638
2198 * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
2199 (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
2200 * configure: Regenerate.
2201
b54a8fd7
PA
22022012-02-21 Tristan Gingold <gingold@adacore.com>
2203 Pedro Alves <palves@redhat.com>
2204
2205 * ia64-tdep.c: Do not include libunwind-ia64.h.
2206 * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
2207 Include libunwind-ia64.h instead of libunwind.h.
2208 * configure.ac (--with-libunwind, $enable_libunwind): Don't check
2209 for libunwind.h existence.
2210 * configure, config.in: Regenerate.
2211
dfcee124
AG
22122012-02-21 Anton Gorenkov <xgsa@yandex.ru>
2213
2214 * c-valprint.c (c_value_print): Use value_rtti_indirect_type
2215 instead of value_rtti_target_type.
2216 * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
2217 instead of value_rtti_target_type.
2218 * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
2219 value_rtti_target_type.
2220 * valops.c (value_ind): Extract function readjust_indirect_value_type.
2221 (value_rtti_target_type): Rename to ...
2222 (value_rtti_indirect_type): ... here and make it indirect. Update
2223 function comment.
2224 * value.c (readjust_indirect_value_type): New function.
2225 (coerce_ref): Support for enclosing type setting for references
2226 with readjust_indirect_value_type.
2227 * value.h (readjust_value_type): New declaration.
2228 (value_rtti_target_type): Rename to ...
2229 (value_rtti_indirect_type): ... here.
2230
02568277
AG
22312012-02-21 Anton Gorenkov <xgsa@yandex.ru>
2232
2233 * MAINTAINERS (Write After Approval): Add myself to the list.
2234
10c07b7e 22352012-02-20 Doug Evans <dje@google.com>
28ee876a 2236
d82ea6a8
DE
2237 * objfiles.c (add_to_objfile_sections): Remove outdated comments.
2238 Rename objfile_p_char parameter to objfilep.
2239 (build_objfile_section_table): Result is now void. All callers
2240 updated.
2241 * objfiles.h (struct objfile): Tweak comments, whitespace.
2242 (build_objfile_section_table): Update.
2243
28ee876a
DE
2244 * elfread.c (elf_symfile_segments): Fix warning text.
2245
24c79950
TT
22462012-02-20 Tom Tromey <tromey@redhat.com>
2247
2248 PR gdb/13498:
2249 * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
2250 particular set of file names once.
2251 (dw2_map_symbol_filenames): Likewise.
2252
3a9b40b6
JK
22532012-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2254
2255 Code cleanup.
2256 * main.c (write_files): Remove the declaration.
2257 (external_editor_command): Move the declaration ...
2258 [GDBTK] (external_editor_command): ... here. Fix the comment.
2259
4d0795ca
TT
22602012-02-20 Tom Tromey <tromey@redhat.com>
2261
2262 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
2263 extraneous block.
2264
637fd620
TG
22652012-02-20 Tristan Gingold <gingold@adacore.com>
2266
2267 * darwin-nat.h (enum darwin_msg_state): Add comments.
2268
6f124894
TG
22692012-02-20 Tristan Gingold <gingold@adacore.com>
2270
2271 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
2272 value.
2273
2e6e3d9c
JB
22742012-20-18 Joel Brobecker <brobecker@adacore.com>
2275
2276 * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
2277 between function description and implementation.
2278
2e8265fd
TT
22792012-02-17 Tom Tromey <tromey@redhat.com>
2280
2281 PR python/12070:
2282 * python/py-event.c (event_object_getset): New global.
2283 (event_object_type): Reference it.
2284 * python/py-type.c (field_object_getset): New global.
2285 (field_object_type): Reference it.
2286 * python/python-internal.h (gdb_py_generic_dict): Declare.
2287 * python/py-utils.c (gdb_py_generic_dict): New function.
2288
8544a150 22892012-02-17 Tristan Gingold <gingold@adacore.com>
6f124894 2290
8544a150 2291 * solib-darwin.c (darwin_current_sos): Check magic and filetype
6f124894 2292
ca193e27
TS
22932012-02-17 Thomas Schwinge <thomas@codesourcery.com>
2294
2295 * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
2296 TYPE_CALLING_CONVENTION annotation.
2297
e5586183
KB
22982012-02-16 Kevin Buettner <kevinb@redhat.com>
2299
2300 * MAINTAINERS: Add rx to target ISA section.
2301 * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
2302 (ALLDEPFILES): Add rx-tdep.c.
2303
7dcd53a0
TT
23042012-02-16 Tom Tromey <tromey@redhat.com>
2305
2306 * symfile.c (symbol_file_add_main_1): Use inferior's
2307 symfile_flags.
2308 * solib.c (solib_read_symbols): Use inferior's symfile_flags.
2309 * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
2310 inferior.
2311 * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
2312 inferior.
2313 (follow_exec): Use inferior's symfile_flags.
2314 * inferior.h (struct inferior) <symfile_flags>: New field.
2315
ddd60447
MF
23162012-02-16 Mike Frysinger <vapier@gentoo.org>
2317
2318 PR gdb/9734:
2319 * remote-sim.c (gdbsim_create_inferior): Call error() when
2320 sim_create_inferior() fails.
2321
b0d32fb6
TG
23222012-02-16 Josh Matthews <josh@joshmatthews.net>
2323
2324 * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
2325
9addecb9
TT
23262012-02-16 Tom Tromey <tromey@redhat.com>
2327
2328 PR c++/13653:
2329 * thread.c (struct current_thread_cleanup) <was_removable>: New
2330 field.
2331 (restore_current_thread_cleanup_dtor): Restore 'removable' field.
2332 (make_cleanup_restore_current_thread): Initialize new field.
2333
a58b110a
KB
23342012-02-15 Kevin Buettner <kevinb@redhat.com>
2335
2336 * MAINTAINERS: Add rl78 to target ISA section.
2337 * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
2338 (ALLDEPFILES): Add rl78-tdep.c.
2339 * NEWS: Mention rl78 as a new target.
2340
4cb6da1c
AR
23412012-02-15 Aleksandar Ristovski <aristovski@qnx.com>
2342
2343 * frame.c (find_frame_sal): Initialize sal->pspace field from frame
2344 data.
2345 * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
2346
3af2590d
TT
23472012-02-15 Tom Tromey <tromey@redhat.com>
2348
2349 PR gdb/12659:
2350 * infcmd.c (registers_info): Print just the current register's
2351 name.
2352
c6910659
TT
23532012-02-15 Tom Tromey <tromey@redhat.com>
2354
2355 * python/py-symbol.c (sympy_value): Use _().
2356
7cee1e54
PA
23572012-02-15 Pedro Alves <palves@redhat.com>
2358
2359 * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
2360 output to be like native targets'.
2361 (remote_pid_to_str): Special case the null ptid.
2362
816338b5
SS
23632012-02-14 Stan Shebs <stan@codesourcery.com>
2364
2365 * NEWS: Mention enable count command.
2366 * breakpoint.h (struct breakpoint): New field enable_count.
2367 * breakpoint.c (enable_breakpoint_disp): Add count argument.
2368 (enable_breakpoint): Add arg to call.
2369 (struct disp_data): New struct.
2370 (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
2371 (do_map_enable_once_breakpoint): Create a struct and pass it.
2372 (do_map_enable_delete_breakpoint): Ditto.
2373 (do_map_enable_count_breakpoint): New function.
2374 (enable_count_command): New function.
2375 (bpstat_stop_status): Decrement enable_count.
2376 (print_one_breakpoint_location): Report enable count.
2377 (_initialize_breakpoint): Add enable count command.
2378
c47a44f4
KB
23792012-02-14 Kevin Buettner <kevinb@redhat.com>
2380
2381 * rl78-tdep.c (reggroups.h): Include.
2382 (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
2383 (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
2384 (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
2385 (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
2386 (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
2387 (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
2388 (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
2389 (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
2390 (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
2391 (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
2392 (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
2393 (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
2394 (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
2395 (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
2396 (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
2397 (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
2398 beginning of register list.
2399 (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
2400 (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
2401 (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
2402 (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
2403 (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
2404 (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
2405 (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
2406 (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
2407 (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
2408 (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
2409 (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
2410 the pseudo registers. Rearrange other pseudo registers too so
2411 that the bank registers appear at the end.
2412 (rl78_register_type): Account for the fact that the byte sized
2413 bank registers are now pseudo-registers.
2414 (rl78_register_name): Rearrange the register name array. Make
2415 initial set of raw banked registers inaccessible.
2416 (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
2417 (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
2418 case for copying bytes back and forth between raw and pseudo
2419 versions of the banked registers. Update other cases to reflect
2420 the changed names.
2421 (rl78_return_value): Update to account for changed names of
2422 raw registers.
2423 (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
2424 rl78_register_sim_regno().
2425
e4569f1e
KB
24262012-02-14 Kevin Buettner <kevinb@redhat.com>
2427
2428 * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
2429 the name parameter being passed to find_pc_partial_function().
2430
7a05aae7
JK
24312012-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
2432
2433 * MAINTAINERS: Step down from being ia64 target maintainer.
2434
11fde611
JK
24352012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
2436
2437 * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
2438 compilation warning.
2439
57008375
JK
24402012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
2441
2442 Fix crash on loaded shlibs without loaded exec_bfd.
2443 * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
2444 (set_section_command): Replace exec_bfd by p->bfd.
2445
ff3c9849
TT
24462012-02-10 Tom Tromey <tromey@redhat.com>
2447
2448 * linespec.c (decode_line_internal): Skip symtabs_from_filename
2449 when we have a C++ qualified name.
2450
db2b9fdd
PA
24512012-02-10 Pedro Alves <palves@redhat.com>
2452
2453 * inferior.c (inferior_pid_to_str): New.
2454 (print_inferior, inferior_command): Use it.
2455
12cd34f3
PA
24562012-02-10 Pedro Alves <palves@redhat.com>
2457
2458 * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
2459 the test CFLAGS.
2460 * configure: Regenerate.
2461
e871429d
JK
24622012-02-10 Jan Kratochvil <jan.kratochvil@redhat.com>
2463
2464 * linespec.c (decode_line_internal): Fix comment correctness.
2465
1916efaf
PA
24662012-02-09 Valery Khromov <valery.khromov@gmail.com>
2467
2468 PR gdb/12953
2469 * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
2470 * amd64bsd-nat.c: Add support for debug registers (adapted from
2471 i386bsd-nat.c).
2472 [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
2473 (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
2474 (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
2475 (amd64bsd_dr_get_control): New functions.
2476 * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
2477 * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
2478 [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
2479 watchpoints initialization.
2480 * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
2481
f4859d94
JK
24822012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2483
2484 * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
2485 flds_bnds.fields.
2486 (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
2487
c56a97f9
JK
24882012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2489
2490 * breakpoint.c (bp_location_compare): Fix comment. Reindent the code.
2491
1a119f36
JB
24922012-02-08 Joel Brobecker <brobecker@adacore.com>
2493
2494 * language.h (symbol_name_cmp_ftype): Renames
2495 symbol_name_match_p_ftype.
2496 (struct language_defn)[la_get_symbol_name_cmp]: Renames
2497 la_get_symbol_name_match_p.
2498 * ada-lang.c (ada_get_symbol_name_cmp): Renames
2499 ada_get_symbol_name_match_p. Update comment.
2500 (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
2501 * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
2502 Renames symbol_name_match_p. Update field type.
2503 (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
2504 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
2505 opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
2506 "la_get_symbol_name_cmp" in comments.
2507 * language.c: Likewise.
2508
c71bb1cf
RO
25092012-02-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2510
2511 * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
2512 %eflags offset.
2513 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
2514 (amd64_sol2_gregset32_reg_offs): Likewise.
2515
4b2d20a5
TG
25162012-02-08 Joel Brobecker <brobecker@adacore.com>
2517
2518 * solib-darwin.c (darwin_bfd_open): Make sure that the filename
2519 of the returned BFD is allocated by GDB.
2520
f0823d2c
TT
25212012-02-07 Tom Tromey <tromey@redhat.com>
2522
2523 PR python/12027:
2524 * python/python-internal.h (frame_object_type): Declare.
2525 * python/py-symbol.c (sympy_needs_frame): New function.
2526 (sympy_value): New function.
2527 (symbol_object_getset): Add "needs_frame".
2528 (symbol_object_methods): Add "value".
2529 * python/py-frame.c (frame_object_type): No longer static.
2530
64e7d9dd
TT
25312012-02-07 Tom Tromey <tromey@redhat.com>
2532
2533 PR python/13599:
2534 * python/py-symbol.c (sympy_line): New function.
2535 (symbol_object_getset): Add "line".
2536
1d6b2d2b
TT
25372012-02-07 Tom Tromey <tromey@redhat.com>
2538
2539 * charset.c (find_charset_names): Check 'in' against NULL.
2540
0d5cff50
DE
25412012-02-06 Doug Evans <dje@google.com>
2542
2543 * gdbtypes.h (struct main_type): Change type of name,tag_name,
2544 and fields.name members from char * to const char *. All uses updated.
2545 (struct cplus_struct_type): Change type of fn_fieldlists.name member
2546 from char * to const char *. All uses updated.
2547 (type_name_no_tag): Update.
2548 (lookup_unsigned_typename, lookup_signed_typename): Update.
2549 * gdbtypes.c (type_name_no_tag): Change result type
2550 from char * to const char *. All callers updated.
2551 (lookup_unsigned_typename, lookup_signed_typename): Change type of
2552 name parameter from char * to const char *.
2553 * symtab.h (struct cplus_specific): Change type of demangled_name
2554 member from char * to const char *. All uses updated.
2555 (struct general_symbol_info): Change type of name and
2556 mangled_lang.demangled_name members from char * to const char *.
2557 All uses updated.
2558 (symbol_get_demangled_name, symbol_natural_name): Update.
2559 (symbol_demangled_name, symbol_search_name): Update.
2560 * symtab.c (symbol_get_demangled_name): Change result type
2561 from char * to const char *. All callers updated.
2562 (symbol_natural_name, symbol_demangled_name): Ditto.
2563 (symbol_search_name): Ditto.
2564 (completion_list_add_name): Change type of symname,sym_text,
2565 text,word parameters from char * to const char *.
2566 (completion_list_objc_symbol): Change type of sym_text,
2567 text,word parameters from char * to const char *.
2568 * ada-lang.c (find_struct_field): Change type of name parameter
2569 from char * to const char *.
2570 (encoded_ordered_before): Similarly for N0,N1 parameters.
2571 (old_renaming_is_invisible): Similarly for function_name parameter.
2572 (ada_type_name): Change result type from char * to const char *.
2573 All callers updated.
2574 * ada-lang.h (ada_type_name): Update.
2575 * buildsym.c (hashname): Change type of name parameter
2576 from char * to const char *.
2577 * buildsym.h (hashname): Update.
2578 * dbxread.c (end_psymtab): Change type of include_list parameter
2579 from char ** to const char **.
2580 * dwarf2read.c (determine_prefix): Change result type
2581 from char * to const char *. All callers updated.
2582 * f-lang.c (find_common_for_function): Change type of name, funcname
2583 parameters from char * to const char *.
2584 * f-lang.c (find_common_for_function): Update.
2585 * f-valprint.c (list_all_visible_commons): Change type of funcname
2586 parameters from char * to const char *.
2587 * gdbarch.sh (static_transform_name): Change type of name parameter
2588 and result from char * to const char *.
2589 * gdbarch.c: Regenerate.
2590 * gdbarch.h: Regenerate.
2591 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
2592 of name parameter from char * to const char *.
2593 * jv-lang.c (java_primitive_type_from_name): Ditto.
2594 (java_demangled_signature_length): Similarly for signature parameter.
2595 (java_demangled_signature_copy): Ditto.
2596 (java_demangle_type_signature): Ditto.
2597 * jv-lang.h (java_primitive_type_from_name): Update.
2598 (java_demangle_type_signature): Update.
2599 * objc-lang.c (specialcmp): Change type of a,b parameters
2600 from char * to const char *.
2601 * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
2602 from char * to const char *. All callers updated.
2603 * p-lang.h (is_pascal_string_type): Update.
2604 * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
2605 of name parameter from char * to const char *.
2606 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
2607 * utils.c (fprintf_symbol_filtered): Ditto.
2608 * defs.h (fprintf_symbol_filtered): Update.
2609 * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
2610 * stabsread.h (end_psymtab): Update.
2611 * stack.c (find_frame_funname): Change type of funname parameter
2612 from char ** to const char **.
2613 * stack.h (find_frame_funname): Update.
2614 * typeprint.c (type_print): Change type of varstring parameter
2615 from char * to const char *.
2616 * value.h (type_print): Update.
2617 * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
2618 from char * to const char *. All callers updated.
2619 (xcoff_end_psymtab): Change type of include_list parameter
2620 from char ** to const char **. All callers updated.
2621 (swap_sym): Similarly for name parameter. All callers updated.
2622 * coffread.c (patch_type): Add (char*) cast to xfree parameter.
2623 Use xstrdup.
2624 (process_coff_symbol): Use xstrdup.
2625 * stabsread.c (stabs_method_name_from_physname): Renamed from
2626 update_method_name_from_physname. Change result type from void
2627 to char *. All callers updated.
2628 (read_member_functions): In has_destructor case, store name in objfile
2629 obstack instead of malloc space. In !has_stub case, fix mem leak.
2630
5579a92e
TT
26312012-02-06 Luca Pizzamiglio <luca.pizzamiglio@gmail.com>
2632
2633 * configure: Rebuild.
2634 * configure.ac: Put -L../bfd and -L../libiberty at the front of
2635 LDFLAGS.
2636
9058f767
KB
26372012-02-03 Kevin Buettner <kevinb@redhat.com>
2638
2639 * configure.tgt (rl78-*-elf): New target.
2640 * rl78-tdep.c: New file.
2641
5b37825d
PW
26422012-02-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2643
2644 * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
2645 and continue the loop. Add QUIT statement.
2646
e009ee71
TT
26472012-02-03 Tom Tromey <tromey@redhat.com>
2648
2649 PR gdb/13596:
2650 * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
2651 bfd_lookup_symbol_from_symtab.
2652 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
2653 gdb_bfd_lookup_symbol_from_symtab.
2654
f7e44f65
JB
26552012-02-03 Joel Brobecker <brobecker@adacore.com>
2656
2657 * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
2658 use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
2659 symbol. Add assertion that sym2 is never NULL.
2660
2c02bd72
DE
26612012-02-02 Doug Evans <dje@google.com>
2662
2663 * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
2664 "name" parameter to const char ** from char **. All callers updated.
2665 (find_pc_partial_function): Ditto.
2666 (cache_pc_function_name): Change type to const char * from char *.
2667 * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
2668 (find_pc_partial_function): Update.
2669 * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
2670 type of "name" parameter to const char * from char *.
2671 All uses updated.
2672 * arch-utils.c (generic_in_solib_return_trampoline): Change
2673 type of "name" parameter to const char * from char *.
2674 * arch-utils.h (generic_in_solib_return_trampoline): Update.
2675 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
2676 type of "name" parameter to const char * from char *.
2677 * gdbarch.sh (in_solib_return_trampoline): Ditto.
2678 * gdbarch.c: Regenerate.
2679 * gdbarch.h: Regenerate.
2680 * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
2681 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
2682 * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
2683 type of "name" parameter to const char * from char *.
2684 * skip.c (skip_function_pc): Ditto.
2685 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
2686 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
2687 * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
2688 * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
2689 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
2690 * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
2691 * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
2692 * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
2693 * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
2694
e886a173
PA
26952012-02-02 Pedro Alves <palves@redhat.com>
2696
2697 * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
2698 the current inferior has no execution. Make sure the current
2699 remote process matches gdb's current inferior.
2700
c709a7c2
TT
27012012-02-02 Tom Tromey <tromey@redhat.com>
2702
2703 PR gdb/13405:
2704 * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
2705 read-only memory.
2706
f149aabd
TT
27072012-02-02 Tom Tromey <tromey@redhat.com>
2708
2709 PR gdb/9307:
2710 * symtab.c (lookup_language_this): Set block_found.
2711
03bef283
TT
27122012-02-01 Tom Tromey <tromey@redhat.com>
2713
2714 PR gdb/13431:
2715 * jit.c (struct jit_inferior_data): Rewrite.
2716 (struct jit_objfile_data): New.
2717 (get_jit_objfile_data): New function.
2718 (add_objfile_entry): Update.
2719 (jit_read_descriptor): Return int. Replace descriptor_addr
2720 argument with inf_data. Update. Don't call error.
2721 (jit_breakpoint_re_set_internal): Reorder logic. Update. Look up
2722 descriptor here.
2723 (jit_inferior_init): Don't look up descriptor. Don't call error.
2724 (jit_reset_inferior_data_and_breakpoints)
2725 (jit_inferior_created_observer): Remove.
2726 (jit_inferior_exit_hook): Update.
2727 (jit_executable_changed_observer): Remove.
2728 (jit_event_handler): Update.
2729 (free_objfile_data): Reset inferior data if needed.
2730 (_initialize_jit): Update.
2731
f0bbc364
TT
27322012-02-01 Tom Tromey <tromey@redhat.com>
2733
2734 * jit.c (bfd_open_from_target_memory): Move higher in file.
2735
47c1316c
TG
27362012-02-01 Tristan Gingold <gingold@adacore.com>
2737
2738 * libunwind-frame.c (libunwind_load): Display message if dlopen
2739 failed.
2740
8e704927
GB
27412012-02-01 Gary Benson <gbenson@redhat.com>
2742
09c7a31f 2743 * symtab.h (symbol_found_callback_ftype): New typedef.
8e704927
GB
2744 (iterate_over_symbols): Use the above.
2745 * symtab.c (iterate_over_symbols): Likewise.
2746 * language.h (language_defn->la_iterate_over_symbols): Likewise.
2747 * ada-lang.c (ada_iterate_over_symbols): Likewise.
2748 * linespec.c (iterate_over_all_matching_symtabs): Likewise.
2749 (iterate_name_matcher): Document return values.
2750 (collect_one_symbol): Likewise.
2751 (collect_function_symbols): Likewise.
2752 (collect_symbols): Likewise.
2753
d9680e73
TT
27542012-02-01 Tom Tromey <tromey@redhat.com>
2755
2756 * ada-lang.c (resolve_subexp): Update.
2757 (ada_lookup_symbol_list): Add 'full_search' argument.
2758 (ada_iterate_over_symbols): Pass 0 as full_search argument to
2759 ada_lookup_symbol_list.
2760 (ada_lookup_encoded_symbol): Update.
2761 (get_var_value): Update.
2762 * ada-exp.y (block_lookup): Update.
2763 (write_var_or_type): Update.
2764 (write_name_assoc): Update.
2765 * ada-lang.h (ada_lookup_symbol_list): Update.
2766
72e1143f
TT
27672012-01-31 Tom Tromey <tromey@redhat.com>
2768
2769 * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
2770 comment.
2771
ab2d2ad3
DE
27722012-01-31 Doug Evans <dje@google.com>
2773
2774 * symtab.h: Remove outdated comment.
e9111bf7 2775 (SYMBOL_MATCHES_NATURAL_NAME): Delete.
ab2d2ad3 2776
bc884eba
JB
27772012-02-01 Josh Matthews <josh@joshmatthews.net> (tiny change)
2778
2779 Fix build error in Darwin port.
2780 * i386-darwin-nat.c: Include i386-nat.h.
2781
8fc3fc34
TT
27822012-01-30 Tom Tromey <tromey@redhat.com>
2783
2784 PR breakpoints/13568:
2785 * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
2786 argument. Check for recursive includes.
2787 (dwarf_decode_macros): Create an include hash.
2788
5d853008
ME
27892012-01-30 Michael Eager <eager@eagercon.com>
2790
2791 * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
2792 * ppc-linux-tdep.c: Include glibc-tdep.h.
ab2d2ad3 2793 (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
5d853008
ME
2794 (powerpc_linux_in_plt_stub): New function.
2795 (powerpc_linux_in_dynsym_resolve_code): New function.
2796 (ppc_skip_trampoline_code): New function.
2797 (ppc_linux_init_abi): Use PPC specific functions rather than generic.
2798 Use glibc_skip_solib_resolver.
2799
40478521
JK
28002012-01-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2801
2802 Code cleanup: Make 1440 bytes of data segment read-only.
2803 * arch-utils.c (endian_enum): Make it const char *const [].
2804 * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
2805 Likewise.
2806 * breakpoint.c (always_inserted_enums): Likewise.
2807 * cli/cli-cmds.c (script_ext_enums): Likewise.
2808 * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
2809 enumlist parameter const char *const *.
2810 * cli/cli-decode.h (struct cmd_list_element): Make the enums field
2811 const char *const *.
2812 * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
2813 parameter const char *const *.
2814 * cris-tdep.c (cris_modes): Make it const char *const [].
2815 * filesystem.c (target_file_system_kinds): Likewise.
2816 * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
2817 * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
2818 (can_use_displaced_stepping_enum, scheduler_enums)
2819 (exec_direction_names): Likewise.
2820 * language.c (_initialize_language): Make the type_or_range_names and
2821 case_sensitive_names variables const char *const [].
2822 * mips-tdep.c (mips_abi_strings): Make it const char *const [].
2823 * python/python.c (python_excp_enums): Likewise.
2824 * remote.c (interrupt_sequence_modes): Likewise.
2825 * rs6000-tdep.c (powerpc_vector_strings): Likewise.
2826 * serial.c (logbase_enums): Likewise.
2827 * sh-tdep.c (sh_cc_enum): Likewise.
2828 * stack.c (print_frame_arguments_choices, print_entry_values_choices):
2829 Likewise.
2830 * symtab.c (multiple_symbols_modes): Likewise.
2831 * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
2832 Likewise.
2833 * utils.c (internal_problem_modes): Likewise.
2834
b3b8b934
JK
28352012-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2836
2837 Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
2838 * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
2839 result.
2840
8c85a4e2
DE
28412012-01-27 Doug Evans <dje@google.com>
2842
2843 * configure.ac (with_python): Fix absolute path handling for win32.
2844 * configure: Regenerate.
2845
78d8b4d7
DE
28462012-01-26 Doug Evans <dje@google.com>
2847
eca864fe
DE
2848 * symtab.c: Whitespace cleanup, no code changes.
2849
7e082072
DE
2850 * symtab.c (lookup_symbol_in_language): Improve comment.
2851 (lookup_symbol_aux): Fix comment.
2852
7dc25483
DE
2853 * psymtab.c (add_psymbol_to_list): Result is now "void".
2854 * psympriv.h (add_psymbol_to_list): Update.
2855
78d8b4d7
DE
2856 * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
2857
4c63965b
JK
28582012-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2859
2860 Do not open script filenames twice.
2861 * cli/cli-cmds.c (source_script_from_stream): Pass to
2862 source_python_script also STREAM.
2863 * python/py-auto-load.c (source_section_scripts): Pass to
2864 source_python_script_for_objfile also STREAM.
2865 (auto_load_objfile_script): Pass to source_python_script_for_objfile
2866 also INPUT.
2867 * python/python-internal.h (source_python_script_for_objfile): New
2868 parameter file, rename parameter file to filename.
2869 * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
2870 instead if !_WIN32. Update the function comment.
2871 (source_python_script, source_python_script_for_objfile)
2872 (source_python_script): New parameter file, rename parameter file to
2873 filename. Pass FILENAME to python_run_simple_file.
2874 * python/python.h (source_python_script): New parameter file, rename
2875 parameter file to filename.
2876
88f38a04
PA
28772012-01-26 Pedro Alves <palves@redhat.com>
2878
2879 * corelow.c (core_has_fake_pid): Delete.
2880 (core_close): Delete references to `core_has_fake_pid'.
2881 (add_to_thread_list): Adjust to mark the inferior's pid as fake.
2882 (core_open): Delete references to `core_has_fake_pid'.
2883 (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
2884 the removed global.
2885
e078317b
JB
28862012-01-26 Joel Brobecker <brobecker@adacore.com>
2887
2888 * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
2889 Remove language parameter from name_matcher. Adjust the comment.
2890 * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
2891 Remove language parameter.
2892 * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
2893 * linespec.c (iterate_name_matcher): Likewise.
2894 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
2895 name_matcher. Adjust call accordingly.
2896 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
2897 (maintenance_check_symtabs): Adjust type of parameter "fun".
2898 * psymtab.h (maintenance_check_symtabs): Likewise.
2899
74ccd7f5
JB
29002012-01-26 Joel Brobecker <brobecker@adacore.com>
2901
2902 * language.h (symbol_name_match_p_ftype): New typedef.
2903 (struct language_defn): Replace field la_symbol_name_compare
2904 by la_get_symbol_name_match_p.
2905 * ada-lang.c (ada_get_symbol_name_match_p): New function.
2906 (ada_language_defn): Use it.
2907 * linespec.c (struct symbol_matcher_data): New type.
2908 (iterate_name_matcher): Rewrite.
2909 (iterate_over_all_matching_symtabs): Pass a pointer to
2910 a symbol_matcher_data struct to expand_symtabs_matching
2911 instead of just the lookup name.
2912 * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
2913 opencl-lang.c, p-lang.c, language.c: Delete field
2914 la_symbol_name_compare, and replace by NULL for new field
2915 la_get_symbol_name_match_p.
2916 * symfile.h (struct quick_symbol_functions): Update comment.
2917
5d268276
TT
29182012-01-25 Tom Tromey <tromey@redhat.com>
2919
2920 * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
2921 dereferencing.
2922
edcc5120
TT
29232012-01-24 Tom Tromey <tromey@redhat.com>
2924
2925 PR symtab/12406:
2926 * solib.c (update_solib_list): Update the program space's
2927 added_solibs and deleted_solibs fields.
2928 * progspace.h (struct program_space) <added_solibs,
2929 deleted_solibs>: New fields.
2930 (clear_program_space_solib_cache): Declare.
2931 * progspace.c (release_program_space): Call
2932 clear_program_space_solib_cache.
2933 (clear_program_space_solib_cache): New function.
2934 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
2935 bpstat_stop_status. Use handle_solib_event.
2936 * breakpoint.c: Include gdb_regex.h.
2937 (print_solib_event): New function.
2938 (bpstat_print): Use print_solib_event.
2939 (bpstat_stop_status): Add special case for bp_shlib_event.
2940 (handle_solib_event): New function.
2941 (bpstat_what): Use handle_solib_event.
2942 (struct solib_catchpoint): New.
2943 (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
2944 (breakpoint_hit_catch_solib, check_status_catch_solib)
2945 (print_it_catch_solib, print_one_catch_solib)
2946 (print_mention_catch_solib, print_recreate_catch_solib): New
2947 functions.
2948 (catch_solib_breakpoint_ops): New global.
2949 (catch_load_or_unload, catch_load_command_1)
2950 (catch_unload_command_1): New functions.
2951 (internal_bkpt_check_status): Add special case for
2952 bp_shlib_event.
2953 (internal_bkpt_print_it): Use print_solib_event.
2954 (initialize_breakpoint_ops): Initialize
2955 catch_solib_breakpoint_ops.
2956 (_initialize_breakpoint): Register "catch load" and "catch
2957 unload".
2958 * breakpoint.h (handle_solib_event): Declare.
2959 * NEWS: Add entry for "catch load" and "catch unload".
2960
fa864999
TT
29612012-01-24 Tom Tromey <tromey@redhat.com>
2962
2963 * ada-lang.c: Include gdb_vecs.h.
2964 * charset.c: Include gdb_vecs.h.
2965 * tracepoint.h: Include gdb_vecs.h.
2966 * gdb_vecs.h: New file.
2967
f90263c1
TT
29682012-01-24 Pedro Alves <pedro@codesourcery.com>
2969
2970 * breakpoint.c (breakpoint_hit_catch_fork)
2971 (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
2972 (breakpoint_hit_catch_exec): Make use of the `ws' argument.
2973 * infrun.c (inferior_has_forked, inferior_has_vforked)
2974 (inferior_has_execd, inferior_has_called_syscall): Delete.
2975 (handle_syscall_event): Get syscall_number from the execution
2976 control state's wait status.
2977 (wait_for_inferior): Don't clear syscall_number.
2978
09ac7c10
TT
29792012-01-24 Pedro Alves <palves@redhat.com>
2980
2981 * breakpoint.c (bpstat_check_location, bpstat_stop_status,
2982 pc_at_non_inline_function): Add `ws' parameter, and pass it down.
2983 (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
2984 (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
2985 `ws' parameter.
2986 (breakpoint_hit_ranged_breakpoint): Add `ws' parameter. Return
2987 false for events other than TARGET_SIGNAL_TRAP.
2988 (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
2989 Add `ws' parameter.
2990 (bkpt_breakpoint_hit): Add `ws' parameter. Return false for
2991 events other than TARGET_SIGNAL_TRAP.
2992 (tracepoint_breakpoint_hit): Add `ws' parameter.
2993 * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
2994 parameter.
2995 (bpstat_stop_status): Same.
2996 (pc_at_non_inline_function): Same.
2997 * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
2998 to pass the current event's waitstatus to bpstat_stop_status
2999 and pc_at_non_inline_function.
3000
86eb7e95
JK
30012012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3002
3003 Code cleanup.
3004 * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
3005 Update the function comment for it.
3006 (source_script_with_search): Call make_cleanup_fclose for STREAM.
3007 * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
3008 for STREAM.
3009
a9b3a50f
PA
30102012-01-24 Pedro Alves <palves@redhat.com>
3011
3012 * breakpoint.c (bpstat_stop_status): Moving clearing print_it
3013 outside `bs->stop' block.
3014 (bpstat_what): Rework bp_shlib_event handling.
3015 (internal_bkpt_check_status): If the breakpoint is a
3016 bp_shlib_event, then set bs->stop and bs->print if
3017 stop_on_solib_events is set.
3018
53fe1783
GB
30192012-01-24 Gary Benson <gbenson@redhat.com>
3020
3021 Delete #if 0'd out code.
3022 * stack.c (print_frame_label_vars): Remove.
3023 (catch_info): Likewise.
3024 (_initialize_stack): Remove "info catch" command.
3025 * NEWS: Mention the above.
3026
49c62f2e
PA
30272012-01-24 Pedro Alves <palves@redhat.com>
3028
3029 * remote.c (remote_add_inferior): New `fake_pid_p' parameter. Use
3030 it.
3031 (remote_notice_new_inferior): If the remote end doesn't support
3032 the multiprocess extensions, then the PID is fake.
3033 (add_current_inferior_and_thread): New.
3034 (remote_start_remote): Use it.
3035 (extended_remote_attach_1): Adjust.
3036 (extended_remote_create_inferior_1): Use
3037 add_current_inferior_and_thread.
3038
d0d8b0c6
JK
30392012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3040
3041 Fix watchpoints to be specific for each inferior.
3042 * breakpoint.c (watchpoint_in_thread_scope): Verify also
3043 current_program_space.
3044 * i386-nat.c (i386_inferior_data_cleanup): New.
3045 (i386_inferior_data_get): Replace variable inf_data_local by an
3046 inferior_data call.
3047 (i386_use_watchpoints): Initialize i386_inferior_data.
3048 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
3049 specific iterate_over_lwps.
3050
4403d8e9
JK
30512012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3052
3053 Fix watchpoints across inferior fork.
3054 * amd64-linux-nat.c (update_debug_registers_callback): Update the
3055 comment for linux_nat_iterate_watchpoint_lwps.
3056 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
3057 linux_nat_iterate_watchpoint_lwps.
3058 (amd64_linux_prepare_to_resume): New comment on Linux kernel.
3059 * i386-linux-nat.c (update_debug_registers_callback): Update the
3060 comment for linux_nat_iterate_watchpoint_lwps.
3061 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
3062 linux_nat_iterate_watchpoint_lwps.
3063 (i386_linux_prepare_to_resume): New comment on Linux kernel.
3064 * i386-nat.c: Include inferior.h.
3065 (dr_mirror): Remove.
3066 (i386_inferior_data, struct i386_inferior_data)
3067 (i386_inferior_data_get): New.
3068 (i386_debug_reg_state): Use i386_inferior_data_get.
3069 (i386_cleanup_dregs, i386_update_inferior_debug_regs)
3070 (i386_insert_watchpoint, i386_remove_watchpoint)
3071 (i386_stopped_data_address, i386_insert_hw_breakpoint)
3072 (i386_remove_hw_breakpoint): New variable state, use
3073 i386_debug_reg_state instead of DR_MIRROR.
3074 * linux-nat.c (delete_lwp): New declaration.
3075 (num_lwps): Move here from downwards.
3076 (delete_lwp_cleanup): New.
3077 (linux_child_follow_fork): Create new child_lp, call
3078 linux_nat_new_thread and linux_nat_prepare_to_resume before calling
3079 PTRACE_DETACH.
3080 (num_lwps): Move upwards.
3081 (linux_nat_iterate_watchpoint_lwps): New.
3082 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
3083 (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
3084
2992c9a7 30852012-01-24 Joel Brobecker <brobecker@adacore.com>
3086
3087 GDB 7.4 released.
3088
e360902b
PA
30892012-01-23 Pedro Alves <palves@redhat.com>
3090
3091 * top.c (caution): Rename to ...
3092 (confirm): ... this.
3093 (show_caution): Rename to ...
3094 (show_confirm): ... this.
3095 (quit_cover): Adjust.
3096 (init_main): Adjust.
3097 * top.h (caution): Rename to ...
3098 (confirm): ... this.
3099 * utils.c (internal_vproblem, defaulted_query): Adjust.
3100
050a2e1d
PA
31012012-01-23 Pedro Alves <palves@redhat.com>
3102
3103 * top.c (caution): Update comment.
3104 (execute_command): Don't consider the current value of `caution'.
3105
77a35dd8
JK
31062012-01-23 Jan Kratochvil <jan.kratochvil@redhat.com>
3107
3108 * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
3109
a71b5a38
UW
31102012-01-23 Ulrich Weigand <ulrich.weigand@linaro.org>
3111
3112 * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
3113 * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
3114 * target.c (target_fileio_pwrite): Remove buffer address from
3115 debug output.
3116 (target_fileio_pread): Likewise.
3117
d99bd577
UW
31182012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
3119
3120 * NEWS: Document remote "info proc" and "generate-core-file".
3121
35c2fab7
UW
31222012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
3123
3124 * gdbarch.sh (find_memory_regions): New callback.
3125 * gdbarch.c, gdbarch.h: Regenerate.
3126
3127 * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
3128 callback before falling back to target method.
3129
3130 * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
3131 (linux_target_install_ops): No longer install it.
3132
3133 * linux-tdep.c (linux_find_memory_regions): New function.
3134 (linux_init_abi): Install it.
3135
6432734d
UW
31362012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
3137
3138 * gdbarch.sh (make_corefile_notes): New architecture callback.
3139 * gdbarch.c: Regenerate.
3140 * gdbarch.h: Likewise.
3141
3142 * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
3143 before target_make_corefile_notes. If NULL is returned, the
3144 target does not support core file generation.
3145
3146 * linux-nat.c: Include "linux-tdep.h".
3147 (find_signalled_thread, find_stop_signal): Remove.
3148 (linux_nat_do_thread_registers): Likewise.
3149 (struct linux_nat_corefile_thread_data): Likewise.
3150 (linux_nat_corefile_thread_callback): Likewise.
3151 (iterate_over_spus): Likewise.
3152 (struct linux_spu_corefile_data): Likewise.
3153 (linux_spu_corefile_callback): Likewise.
3154 (linux_spu_make_corefile_notes): Likewise.
3155 (linux_nat_collect_thread_registers): New function.
3156 (linux_nat_make_corefile_notes): Replace contents by call to
3157 linux_make_corefile_notes passing linux_nat_collect_thread_registers
3158 as native-only callback.
3159
3160 * linux-tdep.h: Include "bfd.h".
3161 (struct regcache): Add forward declaration.
3162 (linux_collect_thread_registers_ftype): New typedef.
3163 (linux_make_corefile_notes): Add prototype.
3164 * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
3165 "regset.h", and "elf-bfd.h".
3166 (find_signalled_thread, find_stop_signal): New functions.
3167 (linux_spu_make_corefile_notes): Likewise.
3168 (linux_collect_thread_registers): Likewise.
3169 (struct linux_corefile_thread_data): New data structure.
3170 (linux_corefile_thread_callback): New funcion.
3171 (linux_make_corefile_notes): Likewise.
3172 (linux_make_corefile_notes_1): Likewise.
3173 (linux_init_abi): Install it.
3174
3030c96e
UW
31752012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
3176
3177 * gdbarch.sh (info_proc): New callback.
3178 * gdbarch.c, gdbarch.h: Regenerate.
3179
3180 * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
3181 before falling back to the target info_proc callback.
3182
3183 * linux-nat.c: Do not include "cli/cli-utils.h".
3184 (linux_nat_info_proc): Remove.
3185 (linux_target_install_ops): No longer install it.
3186
3187 * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
3188 (read_mapping): New function.
3189 (linux_info_proc): Likewise.
3190 (linux_init_abi): Install it.
3191
145b16a9
UW
31922012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
3193
3194 * defs.h (enum info_proc_what): Moved here from linux-nat.c
3195 * infcmd.c: (info_proc_cmd_1): New function.
3196 (info_proc_cmd): New function, moved here from equivalent routine
3197 orignally in linux-nat.c.
3198 (info_proc_cmd_mappings): Likewise.
3199 (info_proc_cmd_stat): Likewise.
3200 (info_proc_cmd_status): Likewise.
3201 (info_proc_cmd_cwd): Likewise.
3202 (info_proc_cmd_cmdline): Likewise.
3203 (info_proc_cmd_exe): Likewise.
3204 (info_proc_cmd_all): Likewise.
3205 (_initialize_infcmd): Install "info proc" command and subcommands.
3206
3207 * target.h (struct target_ops): Add to_info_proc.
3208 (target_info_proc): Add prototype.
3209 * target.c (target_info_proc): New function.
3210
3211 * procfs.c (procfs_info_proc): Add prototype.
3212 (info_proc_cmd): Rename into ...
3213 (procfs_info_proc): ... this. Update argument types as appropriate
3214 for a to_info_proc implementation. Handle "what" argument.
3215 (procfs_target): Install procfs_info_proc.
3216 (_initialize_procfs): No longer install "info proc" command.
3217
3218 * linux-nat.c: (enum info_proc_what): Remove.
3219 (linux_nat_info_proc_cmd_1): Rename into ...
3220 (linux_nat_info_proc): ... this. Update argument types as appropriate
3221 for a to_info_proc implementation.
3222 (linux_nat_info_proc_cmd): Remove.
3223 (linux_nat_info_proc_cmd_mappings): Likewise.
3224 (linux_nat_info_proc_cmd_stat): Likewise.
3225 (linux_nat_info_proc_cmd_status): Likewise.
3226 (linux_nat_info_proc_cmd_cwd): Likewise.
3227 (linux_nat_info_proc_cmd_cmdline): Likewise.
3228 (linux_nat_info_proc_cmd_exe): Likewise.
3229 (linux_nat_info_proc_cmd_all): Likewise.
3230 (linux_target_install_ops): Install linux_nat_info_proc.
3231 (_initialize_linux_nat): No longer install "info proc" command
3232 and subcommands.
3233
b9e7b9c3
UW
32342012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
3235
3236 * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
3237 * config.in, configure: Regenerate.
3238
3239 * target.h (struct target_ops): Add to_fileio_readlink.
3240 (target_fileio_readlink): Add prototype.
3241 * target.c (target_fileio_readlink): New function.
3242
3243 * inf-child.c: Conditionally include <sys/param.h>.
3244 (inf_child_fileio_readlink): New function.
3245 (inf_child_target): Install it.
3246
3247 * remote.c (PACKET_vFile_readlink): New enum value.
3248 (remote_hostio_readlink): New function.
3249 (init_remote_ops): Install it.
3250 (_initialize_remote): Handle vFile:readlink packet type.
3251
7313baad
UW
32522012-01-20 Pedro Alves <palves@redhat.com>
3253 Ulrich Weigand <ulrich.weigand@linaro.org>
3254
3255 * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
3256 * config.in, configure: Regenerate.
3257
3258 * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
3259 to_fileio_pread, to_fileio_close, to_fileio_unlink.
3260 (target_fileio_open): Add prototype.
3261 (target_fileio_pwrite): Likewise.
3262 (target_fileio_pread): Likewise.
3263 (target_fileio_close): Likewise.
3264 (target_fileio_unlink): Likewise.
3265 (target_fileio_read_alloc): Likewise.
3266 (target_fileio_read_stralloc): Likewise.
3267
3268 * target.c: Include "gdb/fileio.h".
3269 (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
3270 (default_fileio_target): New function.
3271 (target_fileio_open): Likewise.
3272 (target_fileio_pwrite): Likewise.
3273 (target_fileio_pread): Likewise.
3274 (target_fileio_close): Likewise.
3275 (target_fileio_unlink): Likewise.
3276 (target_fileio_close_cleanup): Likewise.
3277 (target_fileio_read_alloc_1): Likewise.
3278 (target_fileio_read_alloc): Likewise.
3279 (target_fileio_read_stralloc): Likewise.
3280
3281 * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
3282 <fcntl.h>, and <unistd.h>.
3283 (inf_child_fileio_open_flags_to_host): New function.
3284 (inf_child_errno_to_fileio_error): Likewise.
3285 (inf_child_fileio_open): Likewise.
3286 (inf_child_fileio_pwrite): Likewise.
3287 (inf_child_fileio_pread): Likewise.
3288 (inf_child_fileio_close): Likewise.
3289 (inf_child_fileio_unlink): Likewise.
3290 (inf_child_target): Install to_fileio routines.
3291
3292 * remote.c (init_remote_ops): Install to_fileio routines.
3293
901f9912
UW
32942012-01-20 Pedro Alves <palves@redhat.com>
3295 Ulrich Weigand <ulrich.weigand@linaro.org>
3296
3297 * remote.c (remote_multi_process_p): Only check for multi-process
3298 protocol feature, do not check for extended protocol.
3299 (remote_supports_multi_process): Check for extended protocol here.
3300 (set_general_process): Likewise.
3301 (extended_remote_kill): Likewise.
3302 (remote_pid_to_str): Likewise.
3303 (remote_query_supported): Always query multiprocess mode.
3304
e714e1bf
UW
33052012-01-20 Pedro Alves <palves@redhat.com>
3306 Ulrich Weigand <ulrich.weigand@linaro.org>
3307
3308 * inferior.h (struct inferior): Add fake_pid_p.
3309 * inferior.c (exit_inferior_1): Clear fake_pid_p.
3310 * remote.c (remote_start_remote): Set fake_pid_p if we have to use
3311 magic_null_ptid since the remote side doesn't provide a real PID.
3312
50897289
TT
33132012-01-19 Tom Tromey <tromey@redhat.com>
3314
3315 * NEWS: Combine the two Python sections.
3316
1afc2033
JK
33172012-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3318
3319 * target.h (target_close): Update comment on the target's unpush state.
3320
305436e0
PA
33212012-01-19 Pedro Alves <palves@redhat.com>
3322
3323 * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
3324 linux_nat_async directly instead of going through the target
3325 vector.
3326 * target.c (unpush_target): Close target after unpushing it, not
3327 before.
3328
49323895
GB
33292012-01-19 Gary Benson <gbenson@redhat.com>
3330
3331 * mdebugread.c (sort_blocks): Replace integer constants with ones
3332 derived from FIRST_LOCAL_BLOCK.
3333
1db33378
PP
33342012-01-18 Paul Pluzhnikov <ppluzhnikov@google.com>
3335 Jan Kratochvil <jan.kratochvil@redhat.com>
3336
3337 PR gdb/9538
3338 * symfile.c (find_separate_debug_file): New function.
3339 (terminate_after_last_dir_separator): Likewise.
3340 (find_separate_debug_file_by_debuglink): Also try realpath.
3341 * configure.ac (AC_CHECK_FUNCS): Add lstat.
3342 * configure: Regenerate.
3343 * config.in: Regenerate.
3344
f83d8a90
DE
33452012-01-18 Doug Evans <dje@google.com>
3346
3347 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
3348 (main.o): Remove rule.
3349 * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
3350 (--with-sysroot): Rewrite.
3351 * configure: Regenerate.
3352 * config.in: Regenerate.
3353
2dbca4d6
SDJ
33542012-01-18 Sergio Durigan Junior <sergiodj@redhat.com>
3355
3356 * parse.c (initialize_expout): New function.
3357 (reallocate_expout): Likewise.
3358 (parse_exp_in_context): Use `initialize_expout' and
3359 `reallocate_expout' when appropriate.
3360
0695b514
PA
33612012-01-18 Pedro Alves <palves@redhat.com>
3362
3363 * record.c (struct record_breakpoint, record_breakpoint_p)
3364 (record_breakpoints): New.
3365 (record_insert_breakpoint, record_remove_breakpoint): Manage
3366 record breakpoints list. Only remove breakpoints from the
3367 inferior if they had been inserted there in the first place.
3368
136e1c30
DE
33692012-01-17 Doug Evans <dje@google.com>
3370
3371 * linespec.c (decode_line_internal): Don't call symtabs_from_filename
3372 if we know we don't have a file name to look for.
3373
c0bf857d
PA
33742012-01-17 Pedro Alves <palves@redhat.com>
3375
3376 * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
3377 the frame's stop reason is UNWIND_UNAVAILABLE.
3378
b486de60
JK
33792012-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3380
3381 Fix compilation error.
3382 * m2-exp.y (yyerror): Use ANSI C prototype.
3383
d04550a6
SDJ
33842012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
3385
3386 * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
3387 (growbuf_by_size): Likewise.
3388 (yyerror): Likewise.
3389 * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
3390 (modblock): Remove variable (was #if 0'ed).
3391 (parse_number): Convert prototype from K&R to ANSI C.
3392 (yyerror): Likewise.
3393 * objc-exp.y (parse_number): Likewise.
3394 (yyerror): Likewise.
3395 (yylex): Remove #if 0'ed code.
3396 * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
3397 (yyerror): Likewise.
3398
4aac40c8
TT
33992012-01-16 Tom Tromey <tromey@redhat.com>
3400
3401 * NEWS: Add item.
3402 * symtab.h (compare_filenames_for_search): Declare.
3403 * symtab.c (compare_filenames_for_search): New function.
3404 (iterate_over_some_symtabs): Use it.
3405 * symfile.h (struct quick_symbol_functions)
3406 <map_symtabs_matching_filename>: Change spec.
3407 * psymtab.c (partial_map_symtabs_matching_filename): Use
3408 compare_filenames_for_search. Update for new spec.
3409 * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
3410 compare_filenames_for_search. Update for new spec.
3411 * breakpoint.c (clear_command): Use compare_filenames_for_search.
3412
cafec441
TT
34132012-01-16 Tom Tromey <tromey@redhat.com>
3414
3415 PR python/13281:
3416 * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
3417 (struct main_type) <flag_flag_enum>: New field.
3418 * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
3419 * NEWS: Add entries.
3420 * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
3421 enums.
3422 * python/lib/gdb/printing.py (_EnumInstance): New class.
3423 (FlagEnumerationPrinter): Likewise.
3424
983af33b
SDJ
34252012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
3426
3427 * breakpoint.c (create_sals_from_address_default): New function.
3428 (create_breakpoints_sal_default): Likewise.
3429 (decode_linespec_default): Likewise.
3430 (is_marker_spec): Removed.
3431 (strace_marker_p): New function.
3432 (init_breakpoint_sal): Using `strace_marker_p' instead of
3433 `is_marker_spec'.
3434 (create_breakpoint): Call method `create_sals_from_address' from
3435 breakpoint_ops, replacing code that created SALs conditionally
3436 on the type of the breakpoint. Call method `create_breakpoints_sal',
3437 replacing code that created breakpoints conditionally on the type
3438 wanted.
3439 (base_breakpoint_create_sals_from_address): New function.
3440 (base_breakpoint_create_breakpoints_sal): Likewise.
3441 (base_breakpoint_decode_linespec): Likewise.
3442 (base_breakpoint_ops): Add methods
3443 `base_breakpoint_create_sals_from_address',
3444 `base_breakpoint_create_breakpoints_sal' and
3445 `base_breakpoint_decode_linespec'.
3446 (bkpt_create_sals_from_address): New function.
3447 (bkpt_create_breakpoints_sal): Likewise.
3448 (bkpt_decode_linespec): Likewise.
3449 (tracepoint_create_sals_from_address): Likewise.
3450 (tracepoint_create_breakpoints_sal): Likewise.
3451 (tracepoint_decode_linespec): Likewise.
3452 (strace_marker_create_sals_from_address): Likewise.
3453 (strace_marker_create_breakpoints_sal): Likewise.
3454 (strace_marker_decode_linespec): Likewise.
3455 (strace_marker_breakpoint_ops): New variable.
3456 (addr_string_to_sals): Remove `marker_spec'. Call method
3457 `decode_linespec' from breakpoint_ops, replacing code that decoded
3458 an address string into a SAL. Use `strace_marker_p' instead of
3459 `marker_spec'.
3460 (strace_command): Decide whether we are dealing with a static
3461 tracepoint with marker or not. Use the appropriate breakpoint_ops.
3462 (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
3463 * breakpoint.h (linespec_result, linespec_sals): New forward
3464 declarations.
3465 (breakpoint_ops) <create_sals_from_address>,
3466 <create_breakpoints_sal>, <decode_linespec>: New methods.
3467
4795f398
DE
34682012-01-14 Doug Evans <dje@google.com>
3469
3470 * NEWS: Update text for "maint set python print-stack".
3471 It is deprecated in gdb 7.4 and deleted in 7.5.
3472
ee5106fe
EZ
34732012-01-13 Eli Zaretskii <eliz@gnu.org>
3474
3475 * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
3476 including curses.h.
3477
b161e06f
JK
34782012-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
3479
3480 * configure: Regenerate.
3481 * config.in: Regenerate.
3482
85254831
KS
34832012-01-12 Keith Seitz <keiths@redhat.com>
3484
3485 PR mi/10586
3486 * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
3487 (ANONYMOUS_UNION_NAME): Define.
3488 (is_path_expr_parent): New function.
3489 (get_path_expr_parent): New function.
3490 (is_anonymous_child): New function.
3491 (create_child_with_value): If the child is anonymous and without
3492 a name, assign an object name to it.
3493 (c_describe_child): Use get_path_expr_parent to determine
3494 the parent expression.
3495 If there field represents an anonymous struct or union and
3496 has no name, set an appropriate display name and expression.
3497 (cplus_describe_child): Likewise.
3498
620fa63a
PA
34992012-01-12 Pedro Alves <palves@redhat.com>
3500
3501 * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
3502 available when %ebp is found to be zero (outermost).
3503
2efa2c79
AT
35042012-01-11 Andreas Tobler <andreast@fgznet.ch>
3505
3506 * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
3507 an internal gdb_static_assert.
3508 * mi/mi-common.c: Rename static_assert to gdb_static_assert.
3509
88e7d25d
TT
35102012-01-11 Tom Tromey <tromey@redhat.com>
3511
3512 PR gdb/9598:
3513 * breakpoint.c (_initialize_breakpoint): Fix help for "catch
3514 catch" and "catch throw".
3515
72384ba3
PH
35162012-01-11 Paul Hilfinger <hilfingr@adacore.com>
3517
3518 * blockframe.c (block_innermost_frame): Start search from selected
3519 frame, if present, or otherwise the current frame.
3520
3521 * c-exp.y (variable): Update innermost_block for
3522 'block COLONCOLON NAME' clause.
3523 * m2-exp.y (variable): Ditto.
3524 * objc-exp.y (variable): Ditto.
3525
065a711f
TT
35262012-01-10 Tom Tromey <tromey@redhat.com>
3527
3528 PR python/13199:
3529 * python/python.c (finish_python_initialization): Set sys.argv.
3530
f3f5162e
DE
35312012-01-10 Doug Evans <dje@google.com>
3532
3533 * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd". New arg
3534 "want_line_info". All callers updated.
3535 (dwarf_decode_lines_1): New function.
3536 (handle_DW_AT_stmt_list): Add function comment.
3537 New arg "want_line_info". All callers updated.
3538 (read_file_scope,read_type_unit_scope): Move comment from
3539 handle_DW_AT_stmt_list to here.
3540
9934703b
JK
35412012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
3542
3543 Fix regression after libiberty/ update for GCC PR 6057 and others.
3544 * c-exp.y (operator) <OPERATOR DELETE>
3545 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
3546 * cp-name-parser.y (fill_comp, make_operator, make_dtor)
3547 (make_builtin_type, make_name): New variable i, add gdb_assert.
3548 (operator) <OPERATOR NEW>: Update ARGS to 3.
3549 (operator) <OPERATOR DELETE>: Add trailing space.
3550 (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
3551 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
3552 * cp-support.c (cp_canonicalize_string): Check NULL from
3553 cp_comp_to_string, call warning and return.
3554
06b9f45f
JK
35552012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
3556
3557 Fix duplicate .o files after omitting libbfd.a.
3558 * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
3559 (SFILES): Add corelow.c.
3560 (COMMON_OBS): Add corelow.o.
3561 (ALLDEPFILES): Remove corelow.c.
3562 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
3563 * config/alpha/alpha-osf3.mh: Likewise.
3564 * config/alpha/fbsd.mh: Likewise.
3565 * config/arm/nbsdaout.mh: Likewise.
3566 * config/arm/nbsdelf.mh: Likewise.
3567 * config/i386/i386gnu.mh: Likewise.
3568 * config/ia64/hpux.mh: Likewise.
3569 * config/ia64/linux.mh: Likewise.
3570 * config/m32r/linux.mh: Likewise.
3571 * config/m68k/linux.mh: Likewise.
3572 * config/mips/irix5.mh: Likewise.
3573 * config/mips/irix6.mh: Likewise.
3574 * config/pa/hpux.mh: Likewise.
3575 * config/pa/linux.mh: Likewise.
3576 * config/powerpc/aix.mh: Likewise.
3577 * config/sparc/linux.mh: Likewise.
3578 * config/sparc/linux64.mh: Likewise.
3579 * config/sparc/sol2.mh: Likewise.
3580 * config/vax/vax.mh: Likewise.
3581 * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
3582 (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
3583 (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
3584 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
3585 (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
3586 (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
3587 (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
3588 (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
3589 (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
3590 (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
3591 (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
3592 (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
3593 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
3594 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
3595 (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
3596 (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
3597 (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
3598 (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
3599 (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
3600 (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
3601 (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
3602 (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
3603 corelow.o from gdb_target_obs.
3604 * corefile.c (core_target): Update the comment on NULL value.
3605 (core_file_command): Replace error by gdb_assert on CORE_TARGET.
3606 * corelow.c (sniff_core_bfd): Call error instead of warning on zero
3607 MATCHES. Drop YUMMY set on NULL.
3608 (core_close): Do not call exit_inferior_silent on zero PID. Do not
3609 reclaim CORE_DATA if it is already NULL.
3610
34365054
DE
36112012-01-09 Doug Evans <dje@google.com>
3612
3613 * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
3614 * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
3615
696166a3
KS
36162012-01-09 Keith Seitz <keiths@redhat.com>
3617
3618 * breakpoint.c (wrapper.h): Don't include.
3619
8e7b59a5
KS
36202012-01-09 Keith Seitz <keiths@redhat.com>
3621
3622 * Makefile.in (SFILES): Remove wrapper.c.
3623 (HFILES_NO_SRCDIR): Remove wrapper.h.
3624 (COMMON_OBS): Remove wrapper.o.
3625 * cli/cli-interp.c: Don't inlude wrapper.h.
3626 * corelow.c: Likewise.
3627 (core_open): Replace gdb_target_find_new_threads with
3628 TRY_CATCH around target_find_new_threads.
3629 * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
3630 * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
3631 * varobj.c (varobj_create): Likewise for parse_exp_1 and
3632 evaluate_expression.
3633 (varobj_set_value): Likewise for evaluate_expression and
3634 value_assign.
3635 (install_new_variable): Likewise for value_fetch_lazy.
3636 (adjust_value_for_child_access): Likewise for value_ind.
3637 (c_describe_child): Likewise for value_subscript and
3638 value_ind.
3639 (c_value_of_root): Likewise for evaluate_expression.
3640 * wrapper.c: Remove.
3641 * wrapper.h: Remove.
3642
1a4eeb98
DE
36432012-01-09 Doug Evans <dje@google.com>
3644
9ff913ba
DE
3645 * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
3646 partial_read_comp_unit_head. Replace "buffer", "buffer_size" and
3647 "abfd" args with "section". All callers updated.
3648 Error checking code moved ...
3649 (error_check_comp_unit_head): ... here. New function.
3650 (read_and_check_type_unit_head): Renamed from read_type_unit_head.
3651 Delete arg "abfd". New arg "type_offset". All callers updated.
3652 (create_debug_types_hash_table): Simplify by using
3653 read_and_check_type_unit_head.
3654
1a4eeb98
DE
3655 * parser-defs.h (namecopy): Delete.
3656 * parse.c (namecopy, namecopy_size): Move into copy_name.
3657
2e6af8c0
JK
36582012-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
3659
3660 Partially fix duplicate .o files after omitting libbfd.a.
3661 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
3662 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
3663 * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
3664 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
3665 * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
3666 * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
3667 * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
3668
9f2f828a
PA
36692012-01-09 Pedro Alves <palves@redhat.com>
3670
3671 * MAINTAINERS: Update my email address.
3672
4d72c0bc
DE
36732012-01-08 Doug Evans <dje@google.com>
3674
d467dd73
DE
3675 * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
3676 n_type_units. Rename type_comp_units to all_type_units.
3677 All uses updated.
3678 (add_signatured_type_cu_to_table): Renamed from
3679 add_signatured_type_cu_to_list. All callers updated.
3680
4d72c0bc
DE
3681 * gdbtypes.h (struct cplus_struct_type): Delete member
3682 nfn_fields_total. All uses removed.
3683
21b2bd31
DE
36842012-01-06 Doug Evans <dje@google.com>
3685
3686 * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
3687 to top of file.
3688 (dwarf2_find_comp_unit): Delete.
3689 (process_psymtab_comp_unit): Make result "void".
3690 Delete args buffer, info_ptr, buffer_size, and replace with
3691 "section". All callers updated.
3692 (dwarf2_build_psymtabs_hard): Simplify.
3693
bfd189b1
SDJ
36942012-01-06 Sergio Durigan Junior <sergiodj@redhat.com>
3695 Thiago Jung Bauermann <bauerman@br.ibm.com>
3696
3697 * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
3698 before `struct gdb_exception'.
3699 * breakpoint.c (update_global_location_list_nothrow)
3700 (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
3701 * cp-abi.c (value_rtti_type): Likewise.
3702 * cp-support.c (cp_validate_operator): Likewise.
3703 * infrun.c (insert_exception_resume_breakpoint)
3704 (check_exception_resume, keep_going): Likewise.
3705 * mi-interp.c (mi_breakpoint_created)
3706 (mi_breakpoint_modified): Likewise.
3707 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
3708 * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
3709 (ia64_hpux_handle_dld_breakpoint_1): Likewise.
3710
6b07635f
DE
37112012-01-05 Doug Evans <dje@google.com>
3712
0b30b85c
DE
3713 * dwarf2read.c (statement_prologue): Delete, unused.
3714
98714339
DE
3715 * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
3716 * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
3717
6b07635f
DE
3718 * dwarf2read.c (comp_unit_header): Delete, unused.
3719
761f4555
UW
37202012-01-05 Ulrich Weigand <uweigand@de.ibm.com>
3721
3722 * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
3723 * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
3724
2ca0b532
PA
37252012-01-05 Khoo Yit Phang <khooyp@cs.umd.edu>
3726
3727 * infrun.c (normal_stop): Don't skip calling the normal_stop
3728 observers if the thread was doing a multi-step, but stopped for
3729 some reason other than stepping.
3730
50aeff07
PA
37312012-01-05 Pedro Alves <alves.ped@gmail.com>
3732
3733 * cli/cli-decode.h: Add comments.
3734 (CMD_LIST_AMBIGUOUS): Moved to command.h
3735 (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
3736 (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
3737 (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
3738 (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
3739 (add_com, add_com_alias, add_info, add_info_alias)
3740 (complete_on_cmdlist, complete_on_enum, help_list): Remove
3741 declarations.
3742 * command.h: Add and adjust comments.
3743 (CMD_LIST_AMBIGUOUS): Moved here.
3744 (help_cmd, help_cmd_list): Delete declarations.
3745
5953832c
DE
37462012-01-04 Doug Evans <dje@google.com>
3747
e5fe5e75
DE
3748 * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
3749 All callers updated.
3750 (load_full_type_unit): Renamed from read_signatured_type_at_offset.
3751 Replace all arguments with "per_cu". All callers updated.
3752
28dee7f5
DE
3753 * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
3754
23745b47
DE
3755 * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
3756 New arg "per_cu". All callers updated.
3757
5953832c
DE
3758 Delete #if 0'd out code.
3759 * language.c (binop_result_type): Delete.
3760 (simple_type, ordered_type, same_type, integral_type): Delete.
3761 (numeric_type, character_type, string_type, boolean_type): Delete.
3762 (float_type, structured_type): Delete.
3763 * language.h: Update.
3764
0f5b7562
TT
37652012-01-04 Tom Tromey <tromey@redhat.com>
3766
3767 * python/py-value.c (valpy_binop): Initialize 'res_val'.
3768
78218f56
JB
37692012-01-04 Joel Brobecker <brobecker@adacore.com>
3770
3771 * corefile.c (close_exec_file): Delete.
3772 (reopen_exec_file): Remove commented out code that seems related
3773 to close_exec_file, which is being deleted here.
3774 * inferior.h (close_exec_file): Delete.
3775 * fork-child.c (fork_inferior): Remove call to fork_inferior.
3776
0fcd72ba
JB
37772012-01-04 Joel Brobecker <brobecker@adacore.com>
3778
3779 * ada-lang.c: #include "cli/cli-utils.h".
3780 (get_selections): Use skip_spaces.
3781 (ada_get_next_arg): Use skip_spaces and skip_to_space.
3782 (catch_ada_exception_command_split): Use skip_spaces.
3783 (ada_decode_assert_location): Likewise.
3784
1dabb4c4
JB
37852012-01-04 Joel Brobecker <brobecker@adacore.com>
3786
3787 * linespec.c (decode_line_internal): Check for C++ or Java
3788 compound constructs only if the current language is C, C++
3789 or Java.
3790
5931a2fa
JK
37912012-01-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3792
3793 Revert:
3794 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3795 Joel Brobecker <brobecker@adacore.com>
3796 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
3797 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
3798 3 times.
3799 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
3800 fall through into AT_ENTRY_POINT.
3801 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
3802 DUMMY_ADDR with it.
3803 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
3804 PPC_INSN_SIZE skip to 3 times.
3805
1a2da5ee
JB
38062012-01-04 Joel Brobecker <brobecker@adacore.com>
3807
3808 * linespec.c (add_minsym): Preserve function descriptors.
3809
8645ff69
UW
38102012-01-04 Ulrich Weigand <uweigand@de.ibm.com>
3811
3812 * breakpoint.c (all_locations_are_pending): Consider locations
3813 in program spaces executing during startup pending as well.
3814
0b302171
JB
38152012-01-04 Joel Brobecker <brobecker@adacore.com>
3816
3817 Copyright year update in most files of the GDB Project.
3818
8ba098ad
JB
38192012-01-04 Joel Brobecker <brobecker@adacore.com>
3820
3821 * copyright.sh: Delete.
3822 * copyright.py: Rewrite.
3823
09c01c30
JB
38242012-01-04 Joel Brobecker <brobecker@adacore.com>
3825
3826 * gnulib/extra/update-copyright: New file, imported from gnulib.
3827
3c36c0af
JB
38282012-01-04 Joel Brobecker <brobecker@adacore.com>
3829
3830 * README (Copyright and License Notices): New section.
3831
888fe1e1
TT
38322012-01-03 Tom Tromey <tromey@redhat.com>
3833
3834 PR python/12533:
3835 * python/py-value.c (valpy_dereference, valpy_get_address
3836 valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
3837 (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
3838 (valpy_absolute, valpy_richcompare): Free intermediate values.
3839
6e681866
JB
38402011-01-03 Joel Brobecker <brobecker@adacore.com>
3841
3842 * ada-lang.c: Reformat the copyright notice.
3843
0cd09acb
JK
38442012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3845
3846 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
3847 * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
3848 (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
3849 (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
3850 Revert this part of:
3851 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3852 Build gdb directly from *.o files not using libgdb.a.
3853 * Makefile.in (COMMON_OBS): Remove solib-target.o.
3854
12c3e59c
JB
38552012-01-02 Joel Brobecker <brobecker@adacore.com>
3856
3857 * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
3858 gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
3859 Reformat the copyright header.
3860
11bf1490
JK
38612012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3862
3863 Revert this part of:
3864 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3865 Remove the gdbtui binary.
3866 * gdb.c (main): Remove args.interpreter_p initialization.
3867 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
3868 * main.h (struct captured_main_args): Remove interpreter_p.
3869
1fef196f
JB
38702012-01-02 Joel Brobecker <brobecker@adacore.com>
3871
3872 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
3873
67827812
JB
38742012-01-02 Joel Brobecker <brobecker@adacore.com>
3875
3876 * top.c (print_gdb_version): Update copyright year.
3877
a4d0b831
YQ
38782012-01-02 Yao Qi <yao@codesourcery.com>
3879
3880 * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
3881
b5914469
JK
38822012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3883 Joel Brobecker <brobecker@adacore.com>
3884
3885 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
3886 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
3887 3 times.
3888 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
3889 fall through into AT_ENTRY_POINT.
3890 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
3891 DUMMY_ADDR with it.
3892 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
3893 PPC_INSN_SIZE skip to 3 times.
3894
8da828f7
JK
38952012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3896
3897 * amd64-linux-nat.c (update_debug_registers_callback): New comment on
3898 the return value.
3899 * i386-linux-nat.c (update_debug_registers_callback): Likewise.
3900
8574e74b
JK
39012012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3902
3903 Build gdb directly from *.o files not using libgdb.a.
3904 * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
3905 (COMMON_OBS): Remove solib-target.o.
3906 (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
3907 (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
3908 (LIBGDB_OBS, libgdb.a): Move it above.
3909 * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
3910 (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
3911 (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
3912 (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
3913 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
3914 (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
3915 (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
3916 (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
3917 (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
3918 (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
3919 (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
3920 (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
3921 (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
3922 (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
3923 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
3924 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
3925 (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
3926 (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
3927 (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
3928 (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
3929 (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
3930 (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
3931 (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
3932 (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
3933 (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
3934 (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
3935 (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
3936
217bff3e
JK
39372012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3938
3939 Remove the gdbtui binary.
3940 * .gitignore (/gdbtui): Remove.
3941 * Makefile.in (TUI): Remove.
3942 (SUBDIR_TUI_OBS): Remove tui-main.o.
3943 (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
3944 (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
3945 (tui-main.o): Remove.
3946 (all_object_files): Remove tui-main.o.
3947 * NEWS: New note for the gdbtui removal.
3948 * configure: Rebuilt.
3949 * configure.ac: No longer add all-tui, clean-tui, install-tui and
3950 uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
3951 CONFIG_UNINSTALL respectively.
3952 * gdb.c (main): Remove args.interpreter_p initialization.
3953 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
3954 * main.h (struct captured_main_args): Remove interpreter_p.
3955 * tui/tui-main.c: Remove.
3956
9cdd5dbd
DE
39572012-01-01 Doug Evans <dje@google.com>
3958
bb5ed363
DE
3959 * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
3960 (dwarf2_physname, read_import_statement): Ditto.
3961 (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
3962 (process_structure_scope read_subroutine_type): Ditto.
3963 (read_typedef, load_partial_dies, read_partial_die): Ditto.
3964 (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
3965 (dwarf2_fetch_die_location_block): Ditto.
3966 (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
3967
a0f42c21
DE
3968 * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
3969 All callers updated.
3970 (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
3971 (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
3972 (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
3973
2dc860c0
DE
3974 * dwarf2read.c (load_cu): Move assert to more useful location.
3975
68dc6402
DE
3976 * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
3977 All callers updated.
3978
9cdd5dbd
DE
3979 * dwarf2read.c (dwarf2_per_objfile): Add comment.
3980 (dwarf2_elf_names): Minor reformat.
3981 (dwarf2_per_cu_data): Tweak comment.
3982 (dwarf2_read_section): Fix comment.
3983 (create_all_comp_units): Fix comment.
3984 (load_full_comp_unit): Fix comment.
3985 (process_full_comp_unit): Fix comment.
3986 (read_signatured_type): Fix comment.
3987
0c10e53e 3988For older changes see ChangeLog-2011.
c906108c
SS
3989\f
3990Local Variables:
3991mode: change-log
3992left-margin: 8
3993fill-column: 74
3994version-control: never
57da7796 3995coding: utf-8
c906108c 3996End:
This page took 1.493711 seconds and 4 git commands to generate.