Refactor DIE reading.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
dee91e82
DE
12012-04-28 Doug Evans <dje@google.com>
2
3 Refactor DIE reading.
4 * dwarf2read.c (dwarf2_per_objfile): Replace members
5 debug_info_type_hash and debug_types_type_hash with die_type_hash.
6 (die_reader_specs): New member "die_section". Temporarily make
7 member "buffer" non-const, pending constifying all info_ptr uses.
8 (die_reader_func_ftype): New typedef.
9 (dw2_get_file_names_reader): New function.
10 (dw2_get_file_names): Rewrite.
11 (read_and_check_type_unit_head): Rename arg type_offset to
12 type_offset_in_tu.
13 (create_all_type_units): Improve debugging message.
14 Improve dummy type unit check.
15 (init_cu_die_reader): New arg "section". All callers updated.
16 (init_and_read_dies_worker): New function.
17 (init_cu_and_read_dies, init_tu_and_read_dies): New functions.
18 (init_cutu_and_read_dies_no_follow): New function.
19 (init_cutu_and_read_dies_simple): New function.
20 (process_psymtab_comp_unit_reader): New function.
21 (process_psymtab_comp_unit): Delete args section,
22 is_debug_types_section. Rewrite. All callers updated.
23 (process_psymtab_type_unit): Renamed from process_type_comp_unit.
24 All callers updated. Rewrite.
25 (load_partial_comp_unit_reader): New function.
26 (load_partial_comp_unit): Rewrite.
27 (skip_children): New arg reader. Delete args buffer, cu.
28 All callers updated.
29 (skip_one_die): New arg reader. Delete args buffer, cu.
30 All callers updated.
31 (locate_pdi_sibling): New arg reader. Delete args buffer, abfd, cu.
32 All callers updated.
33 (load_full_comp_unit_reader): New function.
34 (load_full_comp_unit): Rewrite.
35 (read_comp_unit): Delete.
36 (read_die_and_children_1): Delete, contents moved ...
37 (read_die_and_children): ... here.
38 (dwarf2_read_abbrevs): New arg abbrev_section. All callers updated.
39 (load_partial_dies): New arg reader. Delete args abfd, buffer, cu.
40 All callers updated.
41 (read_partial_die): New arg reader. Delete args abfd, buffer, cu.
42 All callers updated.
43 (find_partial_die): Rewrite load_all_dies support.
44 (read_attribute_value): New arg reader. Delete args abfd, cu.
45 All callers updated.
46 (read_attribute): New arg reader. Delete args abfd, cu.
47 All callers updated.
48 (load_full_type_unit): Add assert.
49 (read_signatured_type_reader): New function.
50 (read_signatured_type): Rewrite.
51 (free_stack_comp_unit): Remove call to age_cached_comp_units.
52 (free_one_cached_comp_unit): Change target_cu arg to target_per_cu.
53 All callers updated. Set per_cu->cu = NULL after freeing it.
54 (dwarf2_per_cu_offset_and_type): Renamed from dwarf2_offset_and_type.
55 (per_cu_offset_and_type_hash): Renamed from offset_and_type_hash.
56 (per_cu_offset_and_type_eq): Renamed from offset_and_type_eq.
57 (set_die_type): Update.
58 (get_die_type_at_offset): Update.
59 (read_file_scope): Call prepare_one_comp_unit.
60 (read_type_unit_scope): Ditto.
61 (prepare_one_comp_unit): Set producer if present.
62
72d59e0d
SDJ
632012-04-28 Sergio Durigan Junior <sergiodj@redhat.com>
64
65 * probe.c (compile_rx_or_error): Silence ARI warning about missing
66 gettext function on `error'.
67
0fefef59
DE
682012-04-27 Doug Evans <dje@google.com>
69
70 * dwarf2read.c (dwarf2_read_index): Don't use index if symbol table
71 is empty.
72
28106bc2
SDJ
732012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
74 Tom Tromey <tromey@redhat.com>
75
76 * breakpoint.c (struct breakpoint_objfile_data)
77 <longjmp_searched>,<longjmp_probes>,<exception_searched>,
78 <exception_probes>: New fields.
79 (free_breakpoint_probes): New function.
80 (create_longjmp_master_breakpoint): Prefer SystemTap probe over
81 `_Unwind_DebugHook'.
82 (create_exception_master_breakpoint): Likewise.
83 (_initialize_breakpoint): Registering cleanup for SystemTap probes.
84 * infrun.c: Including necessary header files for handling SystemTap
85 probes.
86 (handle_inferior_event): Handling longjmp breakpoint and exceptions
87 via SystemTap probes.
88 (check_exception_resume): Remove `func' argument. Handle exception
89 unwinding breakpoint set via a SystemTap probe.
90 (insert_exception_resume_from_probe): New function.
91
55aa24fb
SDJ
922012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
93 Tom Tromey <tromey@redhat.com>
94 Jan Kratochvil <jan.kratochvil@redhat.com>
95
96 * Makefile.in (SFILES): Add `probe' and `stap-probe'.
97 (COMMON_OBS): Likewise.
98 (HFILES_NO_SRCDIR): Add `probe'.
99 * NEWS: Mention support for static and SystemTap probes.
100 * amd64-tdep.c (amd64_init_abi): Initializing proper fields used by
101 SystemTap probes' arguments parser.
102 * arm-linux-tdep.c: Including headers needed to perform the parsing
103 of SystemTap probes' arguments.
104 (arm_stap_is_single_operand): New function.
105 (arm_stap_parse_special_token): Likewise.
106 (arm_linux_init_abi): Initializing proper fields used by SystemTap
107 probes' arguments parser.
108 * ax-gdb.c (require_rvalue): Removing static declaration.
109 (gen_expr): Likewise.
110 * ax-gdb.h (gen_expr): Declaring function.
111 (require_rvalue): Likewise.
112 * breakpoint.c: Include `gdb_regex.h' and `probe.h'.
113 (bkpt_probe_breakpoint_ops): New variable.
114 (momentary_breakpoint_from_master): Set the `probe' value.
115 (add_location_to_breakpoint): Likewise.
116 (break_command_1): Using proper breakpoint_ops according to the
117 argument passed by the user in the command line.
118 (bkpt_probe_insert_location): New function.
119 (bkpt_probe_remove_location): Likewise.
120 (bkpt_probe_create_sals_from_address): Likewise.
121 (bkpt_probe_decode_linespec): Likewise.
122 (tracepoint_probe_create_sals_from_address): Likewise.
123 (tracepoint_probe_decode_linespec): Likewise.
124 (tracepoint_probe_breakpoint_ops): New variable.
125 (trace_command): Using proper breakpoint_ops according to the
126 argument passed by the user in the command line.
127 (initialize_breakpoint_ops): Initializing breakpoint_ops for
128 static probes on breakpoints and tracepoints.
129 * breakpoint.h (struct bp_location) <probe>: New field.
130 * cli-utils.c (skip_spaces_const): New function.
131 (extract_arg): Likewise.
132 * cli-utils.h (skip_spaces_const): Likewise.
133 (extract_arg): Likewise.
134 * coffread.c (coff_sym_fns): Add `sym_probe_fns' value.
135 * configure.ac: Append `stap-probe.o' to be generated when ELF
136 support is present.
137 * configure: Regenerate.
138 * dbxread.c (aout_sym_fns): Add `sym_probe_fns' value.
139 * elfread.c: Include `probe.h' and `arch-utils.h'.
140 (probe_key): New variable.
141 (elf_get_probes): New function.
142 (elf_get_probe_argument_count): Likewise.
143 (elf_evaluate_probe_argument): Likewise.
144 (elf_compile_to_ax): Likewise.
145 (elf_symfile_relocate_probe): Likewise.
146 (stap_probe_key_free): Likewise.
147 (elf_probe_fns): New variable.
148 (elf_sym_fns): Add `sym_probe_fns' value.
149 (elf_sym_fns_lazy_psyms): Likewise.
150 (elf_sym_fns_gdb_index): Likewise.
151 (_initialize_elfread): Initialize objfile cache for static
152 probes.
153 * gdb_vecs.h (struct probe): New forward declaration.
154 (probe_p): New VEC declaration.
155 * gdbarch.c: Regenerate.
156 * gdbarch.h: Regenerate.
157 * gdbarch.sh (stap_integer_prefix): New variable.
158 (stap_integer_suffix): Likewise.
159 (stap_register_prefix): Likewise.
160 (stap_register_suffix): Likewise.
161 (stap_register_indirection_prefix): Likewise.
162 (stap_register_indirection_suffix): Likewise.
163 (stap_gdb_register_prefix): Likewise.
164 (stap_gdb_register_suffix): Likewise.
165 (stap_is_single_operand): New function.
166 (stap_parse_special_token): Likewise.
167 (struct stap_parse_info): Forward declaration.
168 * i386-tdep.c: Including headers needed to perform the parsing
169 of SystemTap probes' arguments.
170 (i386_stap_is_single_operand): New function.
171 (i386_stap_parse_special_token): Likewise.
172 (i386_elf_init_abi): Initializing proper fields used by SystemTap
173 probes' arguments parser.
174 * i386-tdep.h (i386_stap_is_single_operand): New function.
175 (i386_stap_parse_special_token): Likewise.
176 * machoread.c (macho_sym_fns): Add `sym_probe_fns' value.
177 * mipsread.c (ecoff_sym_fns): Likewise.
178 * objfiles.c (objfile_relocate1): Support relocation for static
179 probes.
180 * parse.c (prefixify_expression): Remove static declaration.
181 (initialize_expout): Likewise.
182 (reallocate_expout): Likewise.
183 * parser-defs.h (initialize_expout): Declare function.
184 (reallocate_expout): Likewise.
185 (prefixify_expression): Likewise.
186 * ppc-linux-tdep.c: Including headers needed to perform the parsing
187 of SystemTap probes' arguments.
188 (ppc_stap_is_single_operand): New function.
189 (ppc_stap_parse_special_token): Likewise.
190 (ppc_linux_init_abi): Initializing proper fields used by SystemTap
191 probes' arguments parser.
192 * probe.c: New file, for generic statically defined probe support.
193 * probe.h: Likewise.
194 * s390-tdep.c: Including headers needed to perform the parsing of
195 SystemTap probes' arguments.
196 (s390_stap_is_single_operand): New function.
197 (s390_gdbarch_init): Initializing proper fields used by SystemTap
198 probes' arguments parser.
199 * somread.c (som_sym_fns): Add `sym_probe_fns' value.
200 * stap-probe.c: New file, for SystemTap probe support.
201 * stap-probe.h: Likewise.
202 * symfile.h: Include `gdb_vecs.h'.
203 (struct sym_probe_fns): New struct.
204 (struct sym_fns) <sym_probe_fns>: New field.
205 * symtab.c (init_sal): Initialize `probe' field.
206 * symtab.h (struct probe): Forward declaration.
207 (struct symtab_and_line) <probe>: New field.
208 * tracepoint.c (start_tracing): Adjust semaphore on breakpoints
209 locations.
210 (stop_tracing): Likewise.
211 * xcoffread.c (xcoff_sym_fns): Add `sym_probe_fns' value.
212
22d2b532
SDJ
2132012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
214 Tom Tromey <tromey@redhat.com>
215
216 * ax-gdb.c (gen_expr): Clean up code to handle internal variables
217 and to compile agent expressions.
218 * infrun.c (siginfo_make_value): New argument `ignore'.
219 (siginfo_funcs): New struct.
220 (_initialize_infrun): New argument when calling
221 `create_internalvar_type_lazy'.
222 * thread.c (thread_id_make_value): New argument `ignore'.
223 (thread_funcs): New struct.
224 (_initialize_thread): New argument when calling
225 `create_internalvar_type_lazy'.
226 * tracepoint.c (sdata_make_value): New argument `ignore'.
227 (sdata_funcs): New struct.
228 (_initialize_tracepoint): New argument when calling
229 `create_internalvar_type_lazy'.
230 * value.c (make_value): New struct.
231 (create_internalvar_type_lazy): New argument `data'.
232 (compile_internalvar_to_ax): New function.
233 (value_of_internalvar): Properly handling `make_value' case.
234 (clear_internalvar): Likewise.
235 (show_convenience): Adding `TRY_CATCH' block.
236 * value.h (internalvar_make_value): Delete, replace by...
237 (struct internalvar_funcs): ... this.
238 (create_internalvar_type_lazy) <fun>: Delete argument.
239 (create_internalvar_type_lazy) <funcs>, <data>: New arguments.
240 (compile_internalvar_to_ax): New function.
241 * windows-tdep.c (tlb_make_value): New argument `ignore'.
242 (tlb_funcs): New struct.
243 (_initialize_windows_tdep): New argument when calling
244 `create_internalvar_type_lazy'.
245
91da1414
MW
2462012-04-27 Mark Wielaard <mjw@redhat.com>
247
248 * dwarf2read.c (dwarf2_get_pc_bounds): Check DW_AT_high_pc form to
249 see whether it is an address or a constant offset from DW_AT_low_pc.
250 (dwarf2_record_block_ranges): Likewise.
251 (read_partial_die): Likewise.
252
4ab9d8ec
MW
2532012-04-26 Mark Wielaard <mjw@redhat.com>
254
255 * MAINTAINERS (Write After Approval): Add myself to the list.
256
a0911fd0
MR
2572012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
258
259 * proc-utils.h (proc_prettyprint_signalset): New prototype.
260 (proc_prettyprint_signal): Likewise.
261 (proc_prettyprint_faultset): Likewise.
262 (proc_prettyprint_fault): Likewise.
263 (proc_prettyprint_actionset): Likewise.
264 (proc_prettyprint_flags): Move to new proc-flags.c section.
265 (proc_prettyfprint_flags): New prototype.
266 * procfs.c (proc_nsysarg, proc_sysargs): Add prototypes.
267 (proc_syscall, proc_cursig): Likewise.
268 (proc_set_kill_on_last_close): Likewise.
269 (proc_unset_kill_on_last_close): Likewise.
270 (proc_set_watchpoint): Make static.
271 (proc_delete_dead_threads): Likewise.
272 (procfs_set_watchpoint): Likewise.
273 (_initialize_procfs): Add prototype.
274 * proc-events.c: Include proc-utils.h.
275 (init_syscall_table): Make static.
276 * proc-api.c (_initialize_proc_api): Add prototype.
277 * proc-flags.c: Include proc-utils.h.
278
9009e1ae
MR
2792012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
280
281 * configure.ac: Add AC_ARG_PROGRAM.
282 * configure: Regenerate.
283
4fae6e18
JK
2842012-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
285
286 Fix DW_AT_lower_bound defaults for DWARF-4+.
287 * dwarf2read.c (read_subrange_type): Remove initialization of low and
288 high. New variable low_default_is_valid. Implement DWARF-4+
289 DW_AT_lower_bound defaults. Print complaint for DW_AT_lower_bound with
290 no default by the DWARF standard.
291
14132e89
MR
2922012-04-26 Maciej W. Rozycki <macro@mips.com>
293 Maciej W. Rozycki <macro@codesourcery.com>
294
295 * infrun.c (handle_inferior_event): Move the check for return
296 trampolines ahead of the check for function trampolines.
297 * mips-tdep.h (MIPS_S2_REGNUM, MIPS_GP_REGNUM): New macros.
298 * mips-tdep.c (mips_str_mips16_call_stub): New variable.
299 (mips_str_mips16_ret_stub): Likewise.
300 (mips_str_call_fp_stub): Likewise.
301 (mips_str_call_stub): Likewise.
302 (mips_str_fn_stub): Likewise.
303 (mips_str_pic): Likewise.
304 (mips_in_frame_stub): New function.
305 (mips_unwind_pc): Return the return address rather than the PC
306 if the PC of an intermediate frame is inside a call thunk.
307 (mips_is_stub_suffix): New function.
308 (mips_is_stub_mode): Likewise.
309 (mips_get_mips16_fn_stub_pc): Likewise.
310 (mips_skip_mips16_trampoline_code): Update to handle all the
311 currently generated stub types. Don't recurse into __fn_stub
312 thunks. Remove heuristics to handle stubs beyond etext/_etext.
313 Use cooked register accesses.
314 (mips_in_return_stub): Reintroduce function.
315 (mips_skip_trampoline_code): Traverse trampolines recursively.
316 (mips_gdbarch_init): Handle MIPS16 return trampolines.
317
518f0db5 3182012-04-26 Joel Brobecker <brobecker@adacore.com>
319
320 GDB 7.4.1 released.
321
3184d3f9
JL
3222012-04-26 Jonathan Larmour <jifl@eCosCentric.com>
323
324 * arm-tdep.h (VFP_REGISTER_SIZE): Define.
325 * features/arm-with-m-vfp-d16.xml: New file. Describes
326 Cortex-M with VFPv4-sp-d16 FPU register layout.
327 * features/Makefile (WHICH): Add arm-with-m-vfp-d16.
328 * features/arm-with-m-vfp-d16.c: New. Generated from above.
329 * arm-tdep.c: Include arm-with-m-vfp-d16.c.
330 (arm-register_g_packet_guesses): Add vfp-d16 guess.
331 (_initialise_arm_tdep): Initialize arm-with-m-vfp-d16 tdesc.
332
b6201d44
DE
3332012-04-25 Doug Evans <dje@google.com>
334
335 * cli/cli-decode.c (print_doc_line): Use stream instead of
336 current_uiout.
337
4e2f8df6
SDJ
3382012-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
339
340 * features/arm-with-iwmmxt.c: Regenerate.
341 * features/arm-with-m-fpa-layout.c: Likewise.
342 * features/arm-with-m.c: Likewise.
343 * features/arm-with-neon.c: Likewise.
344 * features/arm-with-vfpv2.c: Likewise.
345 * features/arm-with-vfpv3.c: Likewise.
346 * features/mips-dsp-linux.c: Likewise.
347 * features/mips-linux.c: Likewise.
348 * features/mips64-dsp-linux.c: Likewise.
349 * features/mips64-linux.c: Likewise.
350 * features/s390-linux32.c: Likewise.
351 * features/s390-linux32v1.c: Likewise.
352 * features/s390-linux32v2.c: Likewise.
353 * features/s390-linux64.c: Likewise.
354 * features/s390-linux64v1.c: Likewise.
355 * features/s390-linux64v2.c: Likewise.
356 * features/s390x-linux64.c: Likewise.
357 * features/s390x-linux64v1.c: Likewise.
358 * features/s390x-linux64v2.c: Likewise.
359 * features/tic6x-c62x-linux.c: Likewise.
360 * features/tic6x-c62x.c: Likewise.
361 * features/tic6x-c64x-linux.c: Likewise.
362 * features/tic6x-c64x.c: Likewise.
363 * features/tic6x-c64xp-linux.c: Likewise.
364 * features/tic6x-c64xp.c: Likewise.
365 * target-descriptions.c: Only generate `field_type' and `type'
366 variables when needed.
367
2def3e66
JB
3682012-04-25 Fredrik Hederstierna <fredrikh.hederstierna@securitas-direct.com>
369
370 * cli/cli-cmds.c (cd_command): Use memmove instead of strcpy.
371
a766d390
DE
3722012-04-25 Doug Evans <dje@google.com>
373
374 Initial pass at Go language support.
375 * NEWS: Mention Go.
376 * Makefile.in (SFILES): Add go-exp.y, go-lang.c, go-typeprint.c,
377 go-valprint.c.
378 (COMMON_OBS): Add go-lang.o, go-val.print.o, go-typeprint.o.
379 (YYFILES): Add go-exp.c.
380 (YYOBJ): Add go-exp.o.
381 (local-maintainer-clean): Delete go-exp.c.
382 * defs.h (enum language): Add language_go.
383 * dwarf2read.c: #include "go-lang.h".
384 (fixup_go_packaging): New function.
385 (process_full_comp_unit): Call it when processing Go CUs.
386 (dwarf2_physname): Add Go support.
387 (read_file_scope): Handle missing language spec for GNU Go.
388 (set_cu_language): Handle DW_LANG_Go.
389 * go-exp.y: New file.
390 * go-lang.h: New file.
391 * go-lang.c: New file.
392 * go-typeprint.c: New file.
393 * go-valprint.c: New file.
394 * symtab.c: #include "go-lang.h".
395 (symbol_set_language): Handle language_go.
396 (symbol_find_demangled_name, symbol_set_names): Ditto.
397 (symbol_natural_name, demangle_for_lookup, find_main_name): Ditto.
398
4e2af517
JM
3992012-04-24 Jim Meyering <meyering@redhat.com>
400
401 avoid a few strncpy-induced buffer overruns
402 * procfs.c (procfs_make_note_section): Be sure to NUL-terminate
403 fname and psargs before trying to concatenate.
404 * tui/tui-stack.c (tui_get_function_from_frame): NUL-terminate
405 "name" before applying strchr.
406
b77b7f52
SCR
4072012-04-25 Siva Chandra Reddy <sivachandra@google.com>
408
409 * CONTRIBUTE: Use unified diff instead of context diff when
410 generating patches.
411
6321c22a
MR
4122012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
413
414 * mips-tdep.c (mips_about_to_return): Remove dead MIPS16 support
415 code. Handle JR.HB correctly.
416
742c84f6
MR
4172012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
418
419 * mips-tdep.c
420 (is_mips16_addr, unmake_mips16_addr, make_mips16_addr): Group
421 with the other MIPS16 helpers.
422
7fc7e0c3
SDJ
4232012-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
424
425 * observer.sh: Conditionally declare `args', thus cleaning up
426 unused instances of this variable.
427
20388dd6
YQ
4282012-04-24 Yao Qi <yao@codesourcery.com>
429
430 Revert this patch to allow breakpoint always-inserted
431 in record target.
432 2011-12-05 Pedro Alves <pedro@codesourcery.com>
433 * breakpoint.c: Include record.h.
434 (breakpoints_always_inserted_mode): Return false when the record
435 target is in use.
436
437 * breakpoint.c (iterate_over_bp_locations): New.
438 * breakpoint.h: Declare.
439 New typedef walk_bp_location_callback.
440 * record.c (record_open): Call record_init_record_breakpoints.
441 (record_sync_record_breakpoints): New.
442 (record_init_record_breakpoints): New.
443 * NEWS: Mention supporting breakpoint always-inserted mode in
444 record target.
445
4734f50e
MK
4462012-04-24 Marc Khouzam <marc.khouzam@ericsson.com>
447
448 * mi/mi-main.c (mi_cmd_execute): Choose a live thread not just
449 any thread.
450
c326b90e
YQ
4512012-04-24 Yao Qi <yao@codesourcery.com>
452
453 * breakpoint.c (ep_is_catchpoint): Renamed to ...
454 (is_catchpoint): ... it.
455 (print_one_breakpoint_location): Caller update.
456 * breakpoint.h: Update declaration.
457
d8fb5a1e
DM
4582012-04-23 David S. Miller <davem@davemloft.net>
459
460 * configure.tgt (sparc-*-linux*): Set build_gdbserver to yes.
461
34431a2a
TT
4622012-04-23 Tom Tromey <tromey@redhat.com>
463
464 * buildsym.c (add_free_pendings): Remove.
465 * buildsym.h (add_free_pendings): Remove.
466
4568ecf9
DE
4672012-04-23 Doug Evans <dje@google.com>
468
469 * dwarf2read.c (partial_die_full_name): Record DW_FORM_ref_addr in
470 attr.u.unsnd instead of attr.u.addr.
471 (read_attribute_value) Ditto for cases DW_FORM_ref_addr,
472 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4, DW_FORM_reg8,
473 DW_FORM_ref_udata.
474 (dump_die_shallow): Update cases DW_FORM_ref_addr,
475 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4. Add cases DW_FORM_ref8,
476 DW_FORM_ref_udata.
477 (dwarf2_get_ref_die_offset): Use DW_UNSND for reference attributes.
478
dca9aa3a
MR
4792012-04-23 Maciej W. Rozycki <macro@codesourcery.com>
480
481 * mips-tdep.c (mips_n32n64_return_value): Fix coding style.
482 (mips_o32_return_value): Likewise.
483 (mips_o64_return_value): Likewise.
484
c8ea1972
PH
4852012-04-21 Paul Hilfinger <hilfinger@adacore.com>
486
487 * ada-lang.c (ada_evaluate_subexp): Add cases for
488 TYPE_CODE_INTERNAL_FUNCTION and for TYPE_GNU_IFUNC, following
489 their treatment in eval.c.
490
8d1b3521
DM
4912012-04-21 David S. Miller <davem@davemloft.net>
492
493 * sparc-tdep.c (X_DISP10): Define.
494 (sparc_analyze_control_transfer): Handle compare-and-branch.
495
03145bf4
JL
4962012-04-21 Jonathan Larmour <jifl@eCosCentric.com>
497
498 * features/Makefile (WHICH): Add arm-with-m and arm-with-m-fpa-layout.
499 * arm-tdep.c (arm_register_g_packet_guesses): Fix comment.
500
004159a2
MR
5012012-04-20 Nigel Stephens <nigel@mips.com>
502 Maciej W. Rozycki <macro@codesourcery.com>
503
504 * mips-tdep.c (mips_float_register_p): New function.
505 (mips_convert_register_float_case_p): Use mips_float_register_p.
506 (mips_register_type): Likewise.
507 (mips_print_register): Likewise.
508 (print_gp_register_row): Likewise.
509 (mips_print_registers_info): Likewise.
510
7f0e6aae
MR
5112012-04-20 Shun-Yen Lu <dark.asparagus@gmail.com>
512
513 * mips-tdep.c (mips_elf_make_msymbol_special): Fix identification
514 of mips16 symbols.
515
bc17beea
AP
5162012-04-20 Andrew Pinski <apinski@cavium.com>
517
518 * MAINTAINERS (Write After Approval): Add myself to the list.
519
1730a5a5
SDJ
5202012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
521
522 * MAINTAINERS: Update my e-mail address.
523
38ea300a
PA
5242012-04-20 Pedro Alves <palves@redhat.com>
525
526 * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Handle absolute
527 $srcdir.
528 * configure: Regenerate.
529
111dfaae
SDJ
5302012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
531
532 * cp-support.h: Include `gdb_vecs.h'. Delete `const_char_ptr' VEC
533 declaration.
534 * gdb_vecs.h: Declare `const_char_ptr' VEC.
535
4fb2c64a
JK
5362012-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
537
538 Fix compilation compatibility with python-2.4
539 * python/py-type.c (convert_field): Cast ADDRSTRING for
540 PyObject_SetAttrString as non-const. New comment.
541
6328eb38
TT
5422012-04-19 Tom Tromey <tromey@redhat.com>
543
544 * top.c (quit_target): Use all_cleanups.
545 * main.c (captured_command_loop): Use all_cleanups.
546 * exceptions.c (throw_exception): Use all_cleanups.
547
c971b7fa
PA
5482012-04-19 Pedro Alves <palves@redhat.com>
549
550 * Makefile.in (GNULIB_BUILDDIR): New.
551 (LIBGNU, INCGNU, GNULIB_H): Adjust.
552 (SUBDIRS): Add $(GNULIB_BUILDDIR).
553 (CLEANDIRS). Remove gnulib/import.
554 (REQUIRED_SUBDIRS): Replace gnulib/import with $(GNULIB_BUILDDIR).
555 (all-lib): Ditto.
556 (distclean): Remove the $(GNULIB_BUILDDIR) directory.
557 (gnulib/import/Makefile): Replace gnulib/import with
558 $(GNULIB_BUILDDIR). Set CONFIG_FILES to just Makefile.
559 (ACLOCAL_AMFLAGS): Remove '-I gnulib/import/m4'.
560 (aclocal_m4_deps): Remove the gnulib dependencies. Add
561 acx_configure_dir.m4.
562 * acinclude.m4: Include acx_configure_dir.m4.
563 * acx_configure_dir.m4: New file.
564 * aclocal.m4: Regenerate.
a09130f9
PA
565 * configure.ac: Remove gl_EARLY, gl_INIT and AM_INIT_AUTOMAKE
566 calls. Configure gnulib using ACX_CONFIGURE_DIR.
567 (GNULIB): New variable.
568 (GNULIB_STDINT_H): Adjust.
569 (AC_OUTPUT): Don't output gnulib/Makefile.
570 * gdb/defs.h: Include build-gnulib/config.h.
571 * aclocal.m4: Regenerate.
572 * config.in: Regenerate.
573 * configure: Regenerate.
574
575 * gnulib/Makefile.in: New file.
576 * gnulib/configure.ac: New file.
577 * gnulib/aclocal.m4: New file.
578 * gnulib/config.in: New file.
579 * gnulib/configure: New file.
c971b7fa
PA
580 * gnulib/: Re-run gnulib-tool to adjust.
581
b10faa68
DE
5822012-04-19 Doug Evans <dje@google.com>
583
584 * cleanups.h (struct cleanup): Move to cleanups.c.
585 (make_cleanup_dtor_ftype): New typedef.
586 (make_cleanup_dtor): Use it.
587 (ALL_CLEANUPS): Replace with ...
588 (all_cleanups): ... this. Declare. All uses updated.
589 * cleanups.c: #include "gdb_assert.h".
590 (sentinel_cleanup): New static global.
591 (SENTINEL_CLEANUP): Define.
592 (cleanup_chain, final_cleanup_chain): Initialize to SENTINEL_CLEANUP.
593 (make_my_cleanup2): Assert result is non-NULL.
594 (all_cleanups): New function.
595 (save_my_cleanups): Initialize new chain to SENTINEL_CLEANUP instead
596 of NULL.
597
d8c267cc
PA
5982012-04-19 Pedro Alves <palves@redhat.com>
599
600 * Makefile.in (HFILES_NO_SRCDIR): Remove gnulib/wchar.in.h.
601 Adjust paths to gnulib imported files.
602
809277f8
PA
6032012-04-19 Pedro Alves <palves@redhat.com>
604
605 * gnulib/: Move whole directory ...
606 * gnulib/import/: ... here, and re-rerun gnulib-tool to adjust.
607 * Makefile.in (LIBGNU, INCGNU, GNULIB_H, CLEANDIRS)
608 (REQUIRED_SUBDIRS, all-lib, gnulib/Makefile, ACLOCAL_AMFLAGS)
609 (aclocal_m4_deps): Adjust.
610 * aclocal.m4: Regenerate.
611 * configure: Regenerate.
612 * configure.ac: Adjust AC_OUTPUT output.
613
aad9eab9
YQ
6142012-04-19 Yao Qi <yao@codesourcery.com>
615
616 * Makefile.in (SFILES): Add common/vec.c and remove vec.c.
617 (vec.o): New rule.
618 * vec.c: Move it ...
619 * common/vec.c: ... here.
620 * vec.h: Move it ...
621 * common/vec.h: ... here.
622
48fe4669
YQ
6232012-04-19 Yao Qi <yao@codesourcery.com>
624
625 * gdb-code-style.el: New.
626
770d76d7
PA
6272012-04-18 Pedro Alves <palves@redhat.com>
628
629 Update gnulib from latest git.
630 (639ea5ae15e39fe48d43e04864b2997301e4b969)
631
632 * gnulib/Makefile.am: Update.
633 * gnulib/dummy.c: Update.
634 * gnulib/extra/arg-nonnull.h: Update.
635 * gnulib/extra/c++defs.h: Update.
636 * gnulib/extra/update-copyright: Update.
637 * gnulib/extra/warn-on-use.h: Update.
638 * gnulib/inttypes.in.h: Update.
639 * gnulib/m4/00gnulib.m4: Update.
640 * gnulib/m4/extensions.m4: Update.
641 * gnulib/m4/gnulib-cache.m4: Update.
642 * gnulib/m4/gnulib-common.m4: Update.
643 * gnulib/m4/gnulib-comp.m4: Update.
644 * gnulib/m4/gnulib-tool.m4: Update.
645 * gnulib/m4/include_next.m4: Update.
646 * gnulib/m4/inttypes-pri.m4: Update.
647 * gnulib/m4/inttypes.m4: Update.
648 * gnulib/m4/longlong.m4: Update.
649 * gnulib/m4/memchr.m4: Update.
650 * gnulib/m4/memmem.m4: Update.
651 * gnulib/m4/mmap-anon.m4: Update.
652 * gnulib/m4/multiarch.m4: Update.
653 * gnulib/m4/onceonly.m4: Update.
654 * gnulib/m4/stddef_h.m4: Update.
655 * gnulib/m4/stdint.m4: Update.
656 * gnulib/m4/string_h.m4: Update.
657 * gnulib/m4/warn-on-use.m4: Update.
658 * gnulib/m4/wchar_h.m4: Update.
659 * gnulib/m4/wchar_t.m4: Update.
660 * gnulib/m4/wint_t.m4: Update.
661 * gnulib/memchr.c: Update.
662 * gnulib/memmem.c: Update.
663 * gnulib/stddef.in.h: Update.
664 * gnulib/stdint.in.h: Update.
665 * gnulib/str-two-way.h: Update.
666 * gnulib/string.in.h: Update.
667 * gnulib/wchar.in.h: Update.
668
669 * gnulib/extra/arg-nonnull.h: Delete.
670 * gnulib/extra/c++defs.h: Delete.
671 * gnulib/extra/warn-on-use.h: Delete.
672 * gnulib/m4/wchar_h.m4: Delete.
673 * gnulib/m4/wint_t.m4: Delete.
674 * gnulib/wchar.in.h: Delete.
675
676 * gnulib/extra/snippets/arg-nonnull.h: New.
677 * gnulib/extra/snippets/c++defs.h: New.
678 * gnulib/extra/snippets/warn-on-use.h: New.
679
680 * aclocal.m4: Regenerate.
681 * config.in: Regenerate.
682 * configure: Regenerate.
683 * gnulib/Makefile.in: Regenerate.
684
174e088e
PA
6852012-04-18 Pedro Alves <palves@redhat.com>
686
687 Reimport the update-copyright module from gnulib
688 (250b80067c1e1d8faa0c42fb572f721975b929c5).
689
690 * configure: Regenerate.
691 * gnulib/Makefile.am: Update.
692 * gnulib/Makefile.in: Regenerate.
693 * gnulib/extra/update-copyright: Update.
694 * gnulib/m4/gnulib-cache.m4: Update.
695 * gnulib/m4/gnulib-comp.m4: Update.
696
7f533142
JB
6972012-04-18 Tristan Gingold <gingold@adacore.com>
698
699 * configure.ac (aix): Put -lpthread into libs.
700 * configure: Regenerate.
701
001822aa
TT
7022012-04-18 Tom Tromey <tromey@redhat.com>
703
704 * linespec.c (convert_linespec_to_sals): Don't use
705 SYMBOL_OBJ_SECTION.
706 (compare_msymbols): Arguments are minsym_and_objfile, not
707 minimal_symbol*. Don't use SYMBOL_OBJ_SECTION.
708
db026a31
PA
7092012-04-18 Pedro Alves <palves@redhat.com>
710
711 Revert gnulib/ part of:
712 2011-01-01 Joel Brobecker <brobecker@adacore.com>
713 Copyright year update in most files (performed by copyright.sh).
714
12df843f
JK
7152012-04-18 Jan Kratochvil <jan.kratochvil@redhat.com>
716
717 Fix 64-bit constants on 32-bit hosts.
718 * dwarf2read.c (read_unsigned_leb128): Change declaration return type
719 from unsigned long to ULONGEST.
720 (read_signed_leb128): Change declaration return type from long to
721 LONGEST.
722 (dwarf2_const_value_attr): Change declaration parameter value from long
723 to LONGEST.
724 (dwarf2_compute_name): Change variable value from long to LONGEST.
725 (read_unsigned_leb128): Change return type, variable result and some
726 casts from unsigned long to ULONGEST.
727 (read_signed_leb128): Change return type, variable result and some
728 casts from long to LONGEST.
729 (dwarf2_const_value_data, dwarf2_const_value_attr): Change parameter
730 value from long to LONGEST.
731 (dwarf2_const_value): Change variable value from long to LONGEST.
732 * symmisc.c (print_symbol): Change SYMBOL_VALUE format strings to use
733 plongest and hex_string.
734 * symtab.h (struct general_symbol_info): Change ivalue from long to
735 LONGEST, remove the comment.
736 * tracepoint.c (validate_actionline, collect_symbol, scope_info):
737 Change SYMBOL_VALUE format strings to use plongest and hex_string.
738
14e75d8e
JK
7392012-04-18 Siddhesh Poyarekar <siddhesh@redhat.com>
740
741 PR symtab/7259:
742 * ada-exp.y (convert_char_literal): Use TYPE_FIELD_ENUMVAL.
743 * ada-lang.c (ada_discrete_type_high_bound)
ac4ea3c2
JK
744 (ada_discrete_type_low_bound): Fix function comment. Use
745 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
14e75d8e
JK
746 (ada_identical_enum_types_p): Use TYPE_FIELD_ENUMVAL.
747 (pos_atr, value_val_atr): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
748 * ada-typeprint.c (print_enum_type): Change variable lastval to LONGEST.
749 Use TYPE_FIELD_ENUMVAL.
750 * ada-valprint.c (print_optional_low_bound, ada_print_scalar)
751 (ada_val_print_1): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
752 * c-typeprint.c (c_type_print_base): Move variable lastval to inner
753 block, change it to LONGEST. Use TYPE_FIELD_ENUMVAL for
754 TYPE_CODE_ENUM.
755 * coffread.c (coff_read_enum_type): Use SET_FIELD_ENUMVAL.
756 * dwarf2read.c (process_enumeration_scope): Likewise.
757 * gdb-gdb.py (TypeFlagsPrinter): Use field.enumval instead of
758 field.bitpos.
759 (class StructMainTypePrettyPrinter): Support also
760 FIELD_LOC_KIND_ENUMVAL.
761 * gdbtypes.c (get_discrete_bounds): Use TYPE_FIELD_ENUMVAL for
762 TYPE_CODE_ENUM.
763 (recursive_dump_type): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
764 (copy_type_recursive): Support also FIELD_LOC_KIND_ENUMVAL.
765 * gdbtypes.h (enum field_loc_kind): New FIELD_LOC_KIND_ENUMVAL.
766 (struct main_type.flds_bnds.fields.loc): Adjust bitpos comment. New
767 field enumval.
768 (struct main_type.flds_bnds.bields): Adjust loc_kind and bitsize to
769 accommodate enumval.
770 (struct call_site): Adjust loc_kind to accommodate enumval.
771 (FIELD_ENUMVAL, FIELD_ENUMVAL_LVAL, SET_FIELD_ENUMVAL)
772 (TYPE_FIELD_ENUMVAL): New macros.
773 * m2-typeprint.c (m2_enum): Use TYPE_FIELD_ENUMVAL.
774 * mdebugread.c (parse_symbol): Use TYPE_FIELD_ENUMVAL for
775 TYPE_CODE_ENUM.
776 * p-typeprint.c (pascal_type_print_base): Likewise.
777 * python/lib/gdb/printing.py (class FlagEnumerationPrinter): Use
778 enumval.
779 * python/lib/gdb/types.py (make_enum_dict): Likewise.
780 * python/py-type.c (convert_field): New variable addrstring. Use
781 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
782 (check_types_equal): Support also FIELD_LOC_KIND_ENUMVAL.
783 * stabsread.c (read_enum_type): Use SET_FIELD_ENUMVAL.
784 * typepint.c (print_type_scalar): Use TYPE_FIELD_ENUMVAL for
785 TYPE_CODE_ENUM.
786 * valprint.c (generic_val_print): Likewise.
787
380bca97
DE
7882012-04-17 Doug Evans <dje@google.com>
789
dcc07052
DE
790 * dwarf2read.c (lookup_signatured_type): Return NULL instead of 0.
791
380bca97
DE
792 * dwarf2read.c: Whitespace fixes.
793 (lookup_signatured_type): Tweak comment.
794 (get_die_type_at_offset): Fix comment.
795
ec92004f
JB
7962012-04-17 Joel Brobecker <brobecker@adacore.com>
797
798 * xcoffread.c (xcoff_secnum_to_sections): New function.
799 (secnum_to_section, secnum_to_bfd_section): Reimplement
800 using xcoff_secnum_to_sections. Rename "secnum" parameter
801 into "n_scnum".
802 (RECORD_MINIMAL_SYMBOL): Delete.
803 (record_minimal_symbol): New function.
804 (scan_xcoff_symtab): Replace uses of RECORD_MINIMAL_SYMBOL
805 by call to record_minimal_symbol and set misc_func_recorded
806 to 1. Set last_csect_sec to the XCOFF section index instead
807 of GDB's section_offset index. Update calls to
808 prim_record_minimal_symbol_and_info to pass the BFD section
809 as well.
810
40301fb7
JB
8112012-04-17 Joel Brobecker <brobecker@adacore.com>
812
813 * xcoffread.c (read_xcoff_symtab): Delete variables
814 last_csect_val and last_csect_sec and associated code.
815
e0088cfd
DE
8162012-04-17 Doug Evans <dje@google.com>
817
58d5e2c3
DE
818 * cleanups.c (make_my_cleanup,make_my_cleanup2): Make static.
819 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
820 * cleanups.h (make_my_cleanup,make_my_cleanup2): Delete
821 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Delete.
822
c27f5738
DE
823 * cleanups.h: New file.
824 * cleanups.c: New file.
825 * Makefile.in (SFILES): Add cleanups.c.
826 (HFILES_NO_SRCDIR): Add cleanups.h.
827 (COMMON_OBS): Add cleanups.o.
828 * defs.h (struct cleanup): Moved to cleanups.h.
829 (do_cleanups,do_final_cleanups): Ditto.
830 (discard_cleanups,discard_final_cleanups): Ditto
831 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
832 (save_cleanups,save_final_cleanups): Ditto.
833 (restore_cleanups,restore_final_cleanups): Ditto.
834 (null_cleanup): Ditto.
835 (make_my_cleanup,make_my_cleanup2): Ditto.
836 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
837 * utils.c (cleanup_chain,final_cleanup_chain): Moved to cleanups.c.
838 (do_cleanups,do_final_cleanups): Ditto.
839 (discard_cleanups,discard_final_cleanups): Ditto
840 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
841 (save_cleanups,save_final_cleanups): Ditto.
842 (restore_cleanups,restore_final_cleanups): Ditto.
843 (null_cleanup): Ditto.
844 (make_my_cleanup,make_my_cleanup2): Ditto.
845 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
846
e0088cfd
DE
847 * utils.c (make_cleanup_freeargv): Use make_cleanup instead of
848 make_my_cleanup.
849 (make_cleanup_dyn_string_delete): Ditto.
850 (make_cleanup_ui_file_delete): Ditto.
851 (make_cleanup_ui_out_redirect_pop): Ditto.
852 (make_cleanup_free_section_addr_info): Ditto.
853 (make_cleanup_restore_integer): Ditto.
854 (make_cleanup_unpush_target): Ditto.
855 (make_cleanup_value_free_to_mark): Ditto.
856 (make_cleanup_value_free): Ditto.
857 (make_cleanup_free_so): Ditto.
858
4dc84fd1
JK
8592012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
860
861 New option "set debug auto-load".
862 * NEWS: New commands "set debug auto-load" and "show debug auto-load".
863 * auto-load.c (debug_auto_load, show_debug_auto_load: New.
864 (auto_load_safe_path_vec_update)
865 (filename_is_in_auto_load_safe_path_vec): Call fprintf_unfiltered
866 if DEBUG_AUTO_LOAD.
867 (file_is_auto_load_safe): New parameters debug_fmt and ....
868 Call fprintf_unfiltered if DEBUG_AUTO_LOAD.
869 (source_gdb_script_for_objfile): Extend the file_is_auto_load_safe
870 caller by explanatory string.
871 (_initialize_auto_load): Register "set debug auto-load".
872 * auto-load.h (file_is_auto_load_safe): New parameters debug_fmt
873 and ....
874 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
875 (try_thread_db_load_from_dir): Extend the file_is_auto_load_safe caller
876 by explanatory string.
877 * main.c (captured_main): Likewise.
878 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
879 (source_section_scripts): Likewise.
880
bccbefd2
JK
8812012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
882
883 New option "set auto-load safe-path".
884 * NEWS: New commands "set auto-load safe-path"
885 and "show auto-load safe-path".
886 * auto-load.c: Include gdb_vecs.h, readline/tilde.h and completer.h.
887 (auto_load_safe_path, auto_load_safe_path_vec)
888 (auto_load_safe_path_vec_update, set_auto_load_safe_path)
889 (show_auto_load_safe_path, add_auto_load_safe_path, filename_is_in_dir)
890 (filename_is_in_auto_load_safe_path_vec, file_is_auto_load_safe): New.
891 (source_gdb_script_for_objfile): New variable is_safe. Call
892 file_is_auto_load_safe. Return if it is not.
893 (struct loaded_script): New field loaded.
894 (maybe_add_script): Add parameter loaded. Initialize SLOT with it.
895 (print_script): Use LOADED indicator instead of FULL_PATH. Change
896 output "Missing" to "No".
897 (_initialize_auto_load): New variable cmd. Initialize
898 auto_load_safe_path. Register "set auto-load safe-path",
899 "show auto-load safe-path" and "add-auto-load-safe-path".
900 * auto-load.h (maybe_add_script): Add parameter loaded.
901 (file_is_auto_load_safe): New declaration.
902 * config.in: Regenerate.
903 * configure: Regenerate.
904 * configure.ac: New parameters --with-auto-load-safe-path
905 and --without-auto-load-safe-path.
906 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
907 (try_thread_db_load_from_dir): Check file_is_auto_load_safe first.
908 * main.c (captured_main): Check file_is_auto_load_safe for
909 LOCAL_GDBINIT.
910 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile): New
911 variable is_safe. Call file_is_auto_load_safe. Return if it is not.
912 (source_section_scripts): Call file_is_auto_load_safe. Return if it is
913 not.
914
bf88dd68
JK
9152012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
916
917 auto-load: Implementation.
918 * NEWS: New descriptions for "info auto-load",
919 "info auto-load gdb-scripts", "info auto-load python-scripts",
920 "info auto-load local-gdbinit" and "info auto-load libthread-db".
921 Deprecate "info auto-load-scripts", "set auto-load-scripts on|off"
922 and "show auto-load-scripts". New description for "set auto-load",
923 "show auto-load", "set auto-load gdb-scripts",
924 "show auto-load gdb-scripts", "set auto-load python-scripts",
925 "show auto-load python-scripts", "set auto-load local-gdbinit",
926 "show auto-load local-gdbinit", "set auto-load libthread-db" and
927 "show auto-load libthread-db".
928 * auto-load.c: Remove include python/python-internal.h. Add includes
929 exceptions.h, cli/cli-script.h, gdbcmd.h, cli/cli-decode.h and
930 cli/cli-setshow.h.
931 (GDB_AUTO_FILE_NAME, source_gdb_script_for_objfile)
932 (auto_load_gdb_scripts, show_auto_load_gdb_scripts): New.
933 (gdbpy_global_auto_load): Rename to ...
934 (global_auto_load): ... here.
935 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
936 (auto_load_local_gdbinit_loaded, show_auto_load_local_gdbinit)
937 (script_language_gdb, source_gdb_script_for_objfile): New.
938 (struct loaded_script): New field language.
939 (hash_loaded_script_entry, eq_loaded_script_entry): Calculate also
940 LANGUAGE.
941 (maybe_add_script): Add parameter language. Drop redundant
942 entry.full_path initialization. Initialize entry.language and
943 (*slot)->language.
944 (auto_load_objfile_script): Change parameter suffix to language.
945 Remove the call of maybe_add_script.
946 Call language->source_script_for_objfile.
947 (load_auto_scripts_for_objfile, struct collect_matching_scripts_data):
948 New.
949 (collect_matching_scripts): Adjust it for
950 struct collect_matching_scripts_data.
951 (auto_load_info_scripts_pattern_nl): New variable.
952 (info_auto_load_scripts): Rename to ...
953 (auto_load_info_scripts): ... here, add parameter language. Adjust it
954 for struct collect_matching_scripts_data.
955 (info_auto_load_gdb_scripts, info_auto_load_local_gdbinit)
956 (set_auto_load_cmd, auto_load_set_cmdlist_get, show_auto_load_cmd)
957 (auto_load_show_cmdlist_get, info_auto_load_cmd)
958 (auto_load_info_cmdlist_get): New.
959 (_initialize_auto_load): Move add_info of "auto-load-scripts" to
960 python/py-auto-load.c. New installment for "set auto-load gdb-scripts",
961 "info auto-load gdb-scripts", "set auto-load local-gdbinit" and
962 "info auto-load local-gdbinit".
963 * auto-load.h (struct script_language): New.
964 (gdbpy_global_auto_load): Rename to ...
965 (global_auto_load): ... here.
966 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
967 (auto_load_local_gdbinit_loaded): New declarations.
968 (maybe_add_script): New parameter language.
969 (auto_load_objfile_script): Change parameter suffix to language.
970 (load_auto_scripts_for_objfile, auto_load_info_scripts_pattern_nl)
971 (auto_load_info_scripts, auto_load_set_cmdlist_get)
972 (auto_load_show_cmdlist_get, auto_load_info_cmdlist_get): New
973 declarations.
974 * linux-thread-db.c: Include auto-load.h and ctype.h.
975 (auto_load_thread_db, show_auto_load_thread_db): New.
976 (struct thread_db_info): New field filename.
977 (delete_thread_db_info): Call xfree for FILENAME.
978 (try_thread_db_load): Initialize FILENAME.
979 (try_thread_db_load_from_pdir, try_thread_db_load_from_dir): Return
980 if !AUTO_LOAD_THREAD_DB.
981 (info_auto_load_libthread_db_compare, info_auto_load_libthread_db): New.
982 (_initialize_thread_db): Install auto_load_thread_db
983 as "set auto-load libthread-db" and install info_auto_load_libthread_db
984 as "info auto-load libthread-db".
985 * main.c (captured_main): Rename gdbpy_global_auto_load to
986 global_auto_load. Initialize AUTO_LOAD_LOCAL_GDBINIT_PATHNAME and
987 AUTO_LOAD_LOCAL_GDBINIT_LOADED.
988 (print_gdb_help): Extend the help for 'local init file'.
989 * python/py-auto-load.c: Remove a comment about gdb scripts extension.
990 (GDBPY_AUTO_SECTION_NAME): Extend the comment it is Python specific.
991 (auto_load_scripts): Rename to ...
992 (auto_load_python_scripts): ... here, update the comment.
993 (gdbpy_load_auto_script_for_objfile): New declaration.
994 (show_auto_load_python_scripts, script_language_python)
995 (gdbpy_load_auto_script_for_objfile): New.
996 (source_section_scripts): Refactor the code.
997 (load_auto_scripts_for_objfile): Rename to ...
998 (gdbpy_load_auto_scripts_for_objfile): ... here, update the
999 auto_load_objfile_script caller, drop GDBPY_GLOBAL_AUTO_LOAD checking.
1000 (info_auto_load_python_scripts): New.
1001 (gdbpy_initialize_auto_load): New variables cmd and cmd_name.
1002 Rename "set auto-load-scripts" to "set auto-load python-scripts".
1003 Register "set auto-load-scripts" as its deprecated alias. Register
1004 "info auto-load python-scripts". Register "info auto-load-scripts" as
1005 its deprecated alias.
1006 (load_auto_scripts_for_objfile): Rename to ...
1007 (gdbpy_load_auto_scripts_for_objfile): ... here.
1008 * python/python.h (load_auto_scripts_for_objfile): Rename to ...
1009 (gdbpy_load_auto_scripts_for_objfile): ... here.
1010
e2207b9a
JK
10112012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1012
1013 auto-load: Move files.
1014 * Makefile.in (SFILES): Add auto-load.c.
1015 (HFILES_NO_SRCDIR): Add auto-load.h.
1016 (COMMON_OBS): Add auto-load.o.
1017 (distclean): Change .gdbinit for gdb-gdb.gdb.
1018 * auto-load.c: New file, with parts from python/py-auto-load.c.
1019 * auto-load.h: New file, with parts from python/python.h.
1020 * configure: Regenerate.
1021 * configure.ac (AC_OUTPUT): Change .gdbinit for gdb-gdb.gdb.
1022 * gdb-gdb.gdb.in: New file, renamed from gdbinit.in.
1023 * gdbinit.in: Remove file, rename it to gdb-gdb.gdb.in.
1024 * main.c: Include auto-load.h.
1025 * python/py-auto-load.c: Move include filenames.h, gdb_regex.h,
1026 command.h, observer.h and progspace.h to auto-load.c. Add include
1027 auto-load.h.
1028 (gdbpy_global_auto_load, struct auto_load_pspace_info)
1029 (struct loaded_script, auto_load_pspace_data)
1030 (auto_load_pspace_data_cleanup, get_auto_load_pspace_data)
1031 (hash_loaded_script_entry, eq_loaded_script_entry)
1032 (init_loaded_scripts_info, get_auto_load_pspace_data_for_loading)
1033 (maybe_add_script): Move to auto-load.c.
1034 (source_section_scripts): Change maybe_add_script parameters passing,
1035 use script_not_found_warning_print.
1036 (clear_section_scripts, auto_load_objfile_script)
1037 (auto_load_new_objfile, loaded_script_ptr)
1038 (DEF_VEC_P (loaded_script_ptr), collect_matching_scripts, print_script)
1039 (sort_scripts_by_name, info_auto_load_scripts): Move to auto-load.c.
1040 (gdbpy_initialize_auto_load): Move auto_load_pspace_data,
1041 auto_load_new_objfile and info_auto_load_scripts initizations to
1042 auto-load.c.
1043 * python/python.h (gdbpy_global_auto_load): Move to auto-load.h.
1044
e4ab2fad
JK
10452012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1046
1047 Code cleanup.
1048 * charset.c (find_charset_names): Remove variables ix and elt.
1049 Use free_char_ptr_vec.
1050 * elfread.c (build_id_to_debug_filename): New variables debugdir_vec,
1051 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
1052 debugdir_end. New variable debugdir_len.
1053 * gdb_vecs.h (free_char_ptr_vec, make_cleanup_free_char_ptr_vec)
1054 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): New
1055 declarations.
1056 * progspace.c (clear_program_space_solib_cache): Remove variables ix
1057 and elt. Use free_char_ptr_vec.
1058 * source.c (add_path): Remove variables argv, arg and argv_index.
1059 New variables dir_vec, back_to, ix and name.
1060 Use dirnames_to_char_ptr_vec_append. Use freeargv instead of
1061 make_cleanup_freeargv. Remove variable separator. Simplify the code
1062 no longer expecting DIRNAME_SEPARATOR.
1063 (openp): Remove variable p, p1 and len. New variables dir_vec,
1064 back_to, ix and dir. Use dirnames_to_char_ptr_vec. Simplify the code
1065 no longer expecting DIRNAME_SEPARATOR.
1066 * symfile.c (find_separate_debug_file): New variables debugdir_vec,
1067 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
1068 debugdir_end.
1069 * utils.c (free_char_ptr_vec, do_free_char_ptr_vec)
1070 (make_cleanup_free_char_ptr_vec, dirnames_to_char_ptr_vec_append)
1071 (dirnames_to_char_ptr_vec): New functions.
1072
5ee4ed9f
JK
10732012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1074
1075 Code cleanup.
1076 * source.c (add_path): Remove always true conditional 'p == 0' and
1077 unindent its code block.
1078
f41f5e61
PA
10792012-04-17 Pedro Alves <palves@redhat.com>
1080
1081 * gdbtypes.h (FIELD_BITPOS): Rename to ...
1082 (FIELD_BITPOS_LVAL): ... this.
1083 (FIELD_BITPOS): New.
1084 (SET_FIELD_BITPOS): Adjust to use FIELD_BITPOS_LVAL.
1085 * dwarf2read.c (dwarf2_add_field): Use SET_FIELD_BITPOS.
1086 * gdbtypes.c (append_composite_type_field_aligned): Adjust to use
1087 SET_FIELD_BITPOS.
1088 * gnu-v3-abi.c (build_gdb_vtable_type): Adjust to use
1089 SET_FIELD_BITPOS.
1090 * stabsread.c (read_cpp_abbrev, read_one_struct_field)
1091 (read_baseclasses): Adjust to use SET_FIELD_BITPOS.
1092 * target-descriptions.c (tdesc_gdb_type): Adjust to use
1093 SET_FIELD_BITPOS.
1094
945b3a32
JK
10952012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1096
1097 Do not rely on FIELD_LOC_KIND_BITPOS being zero.
1098 * ada-lang.c (ada_template_to_fixed_record_type_1): Replace
1099 TYPE_FIELD_BITPOS used as lvalue by SET_FIELD_BITPOS.
1100 * gdbtypes.c (append_flags_type_flag): Likewise, twice.
1101 * jv-lang.c (java_link_class_type): Likewise, once.
1102 * stabsread.c (read_enum_type): Likewise.
1103
42476b70
YQ
11042012-04-16 Yao Qi <yao@codesourcery.com>
1105
1106 * common/agent.c (agent_run_command): Add one more parameter `len'.
1107 Update callers.
1108 * common/agent.h: Update declaration.
1109 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
1110 Update.
1111 (linux_child_static_tracepoint_markers_by_strid): Ditto.
1112
8264ba82
AG
11132012-04-14 Anton Gorenkov <xgsa@yandex.ru>
1114
1115 PR mi/13393
1116 * value.c (value_actual_type): New function.
1117 * value.h (value_actual_type): New declaration.
1118 * varobj.c (update_type_if_necessary): New function.
1119 (varobj_create): Call value_actual_type instead of
1120 value_type.
1121 (install_dynamic_child): distinct changed and type changed MI variable
1122 objects.
1123 (update_dynamic_varobj_children): Updated for install_dynamic_child
1124 change. All callers updated.
a09130f9 1125 (varobj_update): Support for MI variable object type change if
8264ba82
AG
1126 the value changed and RTTI is used to determine the type.
1127 (create_child_with_value): Call value_actual_type instead of
1128 value_type.
a09130f9 1129 (adjust_value_for_child_access): Extended with a new parameter which
8264ba82
AG
1130 specify whether the given value should be casted to enclosing type.
1131 All callers updated.
1132
55a8c076
YQ
11332012-04-14 Yao Qi <yao@codesourcery.com>
1134
1135 Import gnulib module inttypes from git
1136 (250b80067c1e1d8faa0c42fb572f721975b929c5)
1137 * Makefile.in (HFILES_NO_SRCDIR): Add gnulib/inttypes.in.h.
a09130f9
PA
1138 (aclocal_m4_deps): Add gnulib/m4/inttypes.m4 and
1139 gnulib/m4/inttypes-pri.m4
55a8c076
YQ
1140 * aclocal.m4, config.in, configure: Regenerated.
1141 * gnulib/Makefile.am: Update.
1142 * gnulib/Makefile.in: Update.
1143 * gnulib/m4/gnulib-cache.m4: Update.
1144 * gnulib/m4/gnulib-comp.m4: Update.
1145 * gnulib/inttypes.in.h: New.
1146 * gnulib/m4/inttypes-pri.m4: New.
a09130f9 1147 * gnulib/m4/inttypes.m4: New.
55a8c076 1148
ca7781d2
LM
11492012-04-13 Luis Machado <lgustavo@codesourcery.com>
1150
1151 * infrun.c (resume): Update PC address to the real PC after
1152 preparing to do displaced stepping.
1153
e319fa28
DE
11542012-04-12 Doug Evans <dje@google.com>
1155
1156 * dwarf2read.c (lookup_signatured_type): Remove arg "objfile", unused.
1157 All callers updated.
1158
15add3f5
MK
11592012-04-12 Mark Kettenis <kettenis@gnu.org>
1160
1161 * i386bsd-nat.c (_initialize_i386bsd_nat): Add missing prototype.
1162
52dc124a
DE
11632012-04-12 Doug Evans <dje@google.com>
1164
0e50663e
DE
1165 * dwarf2read.c (create_all_type_units): Renamed from
1166 create_debug_types_hash_table. All callers updated.
1167
52dc124a
DE
1168 * dwarf2read.c (create_signatured_type_table_from_index): Rename
1169 local type_sig to sig_type, type_offset to type_offset_in_tu.
1170 (hash_signatured_type): Renamed from hash_type_signature,
1171 all callers updated.
1172 (eq_signatured_type): Renamed from eq_type_signature,
1173 all callers updated.
1174 (create_debug_types_hash_table): Rename local type_sig to sig_type.
1175 (process_enumeration_scope): Ditto.
1176 (lookup_signatured_type_at_offset): Ditto.
1177 (load_full_type_unit, read_signatured_type): Ditto.
1178
248fd3bf
YQ
11792012-04-12 Yao Qi <yao@codesourcery.com>
1180
1181 * remote.c (async_remote_interrupt): Correct function name in
1182 debug message.
1183 (async_remote_interrupt_twice): Ditto.
1184
bc3aa6c3
DE
11852012-04-11 Yuanhui Zhang <asmwarrior@gmail.com>
1186
1187 * source.c (find_and_open_source): Consistently pass resulting
1188 full path through xfullpath.
1189
9e529e1d
JK
11902012-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1191
1192 Provide more specific displaced-stepping memory error message.
1193 * infrun.c (displaced_step_prepare): New variable status. Call
1194 target_read_memory instead of read_memory, provide more specific
1195 error message.
1196
82e0cec1
TG
11972012-04-11 Tristan Gingold <gingold@adacore.com>
1198
1199 PR gdb/13901
1200 * darwin-nat.c (darwin_execvp): Revert previous patch.
1201
d987a266
TG
12022012-04-11 Tristan Gingold <gingold@adacore.com>
1203
1204 PR gdb/13901
1205 * darwin-nat.c (darwin_resume_thread): Call darwin_set_sstep only
1206 in case of change.
1207
016b7430
TG
12082012-04-11 Tristan Gingold <gingold@adacore.com>
1209
1210 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
1211 warning.
1212
06fc020f
SCR
12132012-04-11 Siva Chandra Reddy <sivachandra@google.com>
1214
1215 New command 'explore' which helps explore values and types in
1216 scope.
1217 * NEWS: Add an entry about the new 'explore' command.
1218 * data-directory/Makefile.in: Add gdb/command/explore.py
1219 * python/lib/gdb/command/explore.py: Implemention of the 'explore'
a09130f9 1220 command using the GDB Python API.
06fc020f 1221
de0919f8 12222012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
34b192ce
MR
1223
1224 * mips-tdep.c (mips_skip_pic_trampoline_code): Correct sign
1225 extension in jump target calculation.
1226
de0919f8 12272012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
9e8da49c
MR
1228
1229 * mips-tdep.c (mips32_next_pc): Handle JALX.
1230
2f26ef89
YQ
12312012-04-10 Yao Qi <yao@codesourcery.com>
1232
1233 * Makefile.in (gnulib/Makefile): Remove duplicated dependency.
1234
2e505b66
YQ
12352012-04-10 Yao Qi <yao@codesourcery.com>
1236
1237 * Makefile.in (aclocal_m4_deps): Add gnulib/m4/gnulib-cache.m4
1238 and gnulib/m4/gnulib-tool.m4.
1239
0d99eb77
DE
12402012-04-10 Doug Evans <dje@google.com>
1241
1242 * dwarf2read.c (dwarf2_per_cu_data). Clarify comment.
1243 (load_partial_dies): Clarify comment.
1244 (find_partial_die): Support rereading type units.
1245 Clarify CU handling, if we know offset is in CU, don't search for the
1246 containing CU. Add comment regarding memory waste.
1247
9a82b8ff
L
12482012-04-10 H.J. Lu <hongjiu.lu@intel.com>
1249
1250 * features/Makefile (WHICH): Add i386/x32, i386/x32-linux,
1251 i386/x32-avx and i386/x32-avx-linux.
1252 (i386/x32-expedite): New.
1253 (i386/x32-linux-expedite): Likewise.
1254 (i386/x32-avx-expedite): Likewise.
1255 (i386/x32-avx-linux-expedite): Likewise.
1256 ($(outdir)/i386/x32.dat): Likewise.
1257 ($(outdir)/i386/x32-linux.dat): Likewise.
1258 ($(outdir)/i386/x32-avx.dat): Likewise.
1259 ($(outdir)/i386/x32-avx-linux.dat): Likewise.
1260
1261 * features/i386/x32-avx-linux.xml: New file.
1262 * features/i386/x32-avx.xml: Likewise.
1263 * features/i386/x32-core.xml: Likewise.
1264 * features/i386/x32-linux.xml: Likewise.
1265 * features/i386/x32.xml: Likewise.
1266
1267 * features/i386/x32-avx-linux.c: New. Generated.
1268 * features/i386/x32-avx.c: Likewise.
1269 * features/i386/x32-linux.c: Likewise.
1270 * features/i386/x32.c: Likewise.
1271 * regformats/i386/x32-avx-linux.dat: Likewise.
1272 * regformats/i386/x32-avx.dat: Likewise.
1273 * regformats/i386/x32-linux.dat: Likewise.
1274 * regformats/i386/x32.dat: Likewise.
1275
ee41036f
TG
12762012-04-10 Tristan Gingold <gingold@adacore.com>
1277
1278 * darwin-nat.c (darwin_kill_inferior): Always use the no ptrace
1279 code to kill the inferior.
1280
a7aa5b8a
MK
12812012-04-09 Mark Kettenis <kettenis@gnu.org>
1282
1283 * ada-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
1284 defines.
1285 * c-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
1286 defines.
a09130f9 1287 * cp-name-parser.y (yyss, yysslim, yyssp, yystacksize, yyvs)
a7aa5b8a
MK
1288 (yyvsp): New defines.
1289 * f-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
1290 defines.
1291 * jv-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
1292 defines.
1293 * m2-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
1294 defines.
1295 * objc-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
1296 defines.
1297 * p-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
1298 defines.
1299
fb57d452
MK
13002012-04-09 Mark Kettenis <kettenis@gnu.org>
1301
a09130f9 1302 * sparc64-tdep.c (sparc64_store_arguments)
fb57d452
MK
1303 (sparc64_store_arguments): Fix coding style.
1304
cdc7b32f
MK
13052012-04-07 Mark Kettenis <kettenis@gnu.org>
1306
1307 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
1308 complex floats, adjust some related comments and tighten a related
1309 assertion.
1310 (sparc64_extract_return_value): Handle complex floats.
1311
7adf1e79
DE
13122012-04-07 Doug Evans <dje@google.com>
1313
1314 * dwarf2read.c (load_partial_dies): Change condition to assert.
1315
50f1ae7b
DE
13162012-04-06 Doug Evans <dje@google.com>
1317
1318 * amd64-tdep.c (amd64_analyze_prologue): Recognize both variations of
1319 "mov %rsp,%rbp".
1320
55fa75c3
KB
13212012-04-05 Kevin Buettner <kevinb@redhat.com>
1322
1323 * v850-tdep.c (E_NUM_OF_V850_REGS, E_NUM_OF_V850E_REGS): Fix
1324 fencepost error.
1325 (v850_frame_cache): Use gdbarch_num_regs() instead of E_NUM_REGS.
1326 (v850_gdbarch_init): Set `num_regs' as appropriate for the
1327 architecture.
1328
40e084e1
KS
13292012-04-05 Keith Seitz <keiths@redhat.com>
1330
1331 * linespec.c (decode_compound): Remove.
1332 (enum offset_relative_sign): New enum.
1333 (struct line_offset): New struct.
1334 (struct linespec): New struct.
1335 (struct linespec_state): Move file_symtabs,
1336 user_filename, and user_function into struct linespec.
1337 Make result an anonymous struct holding vectors of
1338 symbolp and minsym_and_objfile_d.
1339 Add language member.
1340 (enum ls_token_type): New enum.
1341 (linespec_keywords): New array.
1342 (struct ls_token): New struct.
1343 (struct ls_parser): New struct.
1344 (linespec_lexer_lex_number): New function.
1345 (linespec_lexer_lex_keyword): New function.
1346 (is_ada_operator): New function.
1347 (skip_quote_char): New function.
1348 (copy_token_string): New function.
1349 (is_closing_quote_enclosed): New function.
1350 (find_parameter_list_end): New function.
1351 (linespec_lexer_lex_string): New function.
1352 (linespec_lexer_lex_one): New function.
1353 (linespec_lexer_consume_token): New function.
1354 (linespec_lexer_peek_token): New function.
1355 (cplusplus_error): Remove unused function.
1356 (find_methods): Update comment.
1357 (find_toplevel_char): Return const.
1358 (is_objc_method_format): Remove unused function.
1359 (find_toplevel_string): New function.
1360 (is_linespec_boundary): Remove.
1361 (symbol_not_found_error): New function.
1362 (find_method_overload_end): Remove function.
1363 (unexpected_linespec_error): New function.
1364 (keep_name_info): Remove.
1365 (linespec_parse_line_offset): New function.
1366 (linespec_parse_basic): New function.
1367 (canonicalize_linespec): New function.
1368 (decode_line_internal): Remove.
1369 (create_sals_line_offset): New function adapted from
1370 decode_all_digits.
1371 (convert_linespec_to_sals): New function.
1372 (parse_linespec): New function.
1373 (linespec_parser_new): New function.
1374 (linespec_state_destructor): Change parameter type to
1375 struct linespec_state *.
1376 Add language parameter.
1377 Remove freeing of moved members.
1378 (linespec_parser_delete): New function.
1379 (decode_line_full): Use parse_linespec and linespec_parser_new.
1380 (decode_line_1): Likewise.
1381 (decode_indirect): Rename to ...
1382 (linespec_expression_to_pc): ... this and rewrite
1383 to simply find CORE_ADDR, storing this result for later
1384 conversion to SALs.
1385 (locate_first_half): Remove.
1386 (deocde_objc): Add parameter LS.
1387 Initialize new struct collect_info members.
1388 Handle minimal symbols, too.
1389 (decode_compound): Delete.
1390 (lookup_prefix_sym): Rewrite.
1391 (compare_msymbols): New function.
1392 (find_method): Rewrite.
1393 Do not call cplusplus_error.
1394 (symtabs_from_filename): Rewrite.
1395 (collect_function_symbols): Delete.
1396 (find_function_symbols): Rewrite without ARGPTR-style
1397 processing.
1398 (decode_all_digits): Delete. (Rewritten as create_sals_line_offset.)
1399 (decode_dollar): Adapted and renamed to ...
1400 (linespec_parse_variable): ... this.
1401 (find_linespec_symbols): New function.
1402 (decode_label): Adapted and renamed to ...
1403 (find_label_symbols): ... this.
1404 (decode_digits_list_mode): Add and use LS argument.
1405 (decode_digits_ordinary): Likewise.
1406 (collect_symbols): Do not collect SALs, just symbols and msymbols.
1407 If in list mode, allow any symbol class. Otherwise, only
1408 permit LOC_BLOCK symbols.
1409 (minsym_found): Update comments.
1410 (search_minsyms_for_name): Do not convert the matching symbol
1411 into a SAL. Simply push the symbol and objfile into the
1412 result vector.
1413 (decode_variable): Delete. Contents adapted into
1414 find_linespec_symbols.
1415
1416 * cp-support.c (SKIP_SPACE): Remove.
1417 (operator_tokens): Remove unused global.
1418 (cp_validate_operator): Remove.
1419 * cp-support.h (cp_validate_operator): Remove declaration.
1420
a72c8f6a
JK
14212012-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
1422
1423 * cp-valprint.c (cp_print_value_fields): Check valprint_check_validity
1424 for TYPE_VPTR_FIELDNO.
1425 * valprint.c (valprint_check_validity): Make it global, move the
1426 function comment ...
1427 * value.h (valprint_check_validity): ... to this new declaration.
1428
cf9bb588
TG
14292012-04-02 Tristan Gingold <gingold@adacore.com>
1430
1431 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Use
1432 the STATE32 api for i386 state.
1433 (i386_darwin_store_inferior_registers): Likewise.
1434
17092398
TG
14352012-04-02 Tristan Gingold <gingold@adacore.com>
1436
1437 * i386-darwin-tdep.c (i386_darwin_thread_state_reg_offset): Fix
1438 SS offset.
1439 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
1440 format_string.
1441
ece0061f
TG
14422012-04-02 Tristan Gingold <gingold@adacore.com>
1443
1444 PR gdb/13901
d987a266 1445 * darwin-nat.c (darwin_execvp): Set binary preference.
ece0061f 1446
cf65ecd3
JK
14472012-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1448
1449 * NEWS (set breakpoint condition-evaluation): Use imperative mood.
1450
9bc3523d
TT
14512012-03-30 Tom Tromey <tromey@redhat.com>
1452
1453 * python/python.c (gdbpy_decode_line): Move cleanup creation out
1454 of TRY_CATCH. Fix error handling.
1455 * python/py-value.c (convert_value_from_python): Move 'old'
1456 declaration to innermost scope.
1457
b1ed564a
JB
14582012-03-29 Joel Brobecker <brobecker@adacore.com>
1459 Andrey Smirnov <andrew.smirnov@gmail.com>
1460
1461 -Wshadow warning fix.
1462 * ada-lang.c (ada_make_symbol_completion_list): Rename parameters
1463 "wild_match" and "encoded" into "wild_match_p" and "encoded_p".
1464 Adjust code accordingly.
1465
cb8e9b97
JB
14662012-03-29 Joel Brobecker <brobecker@adacore.com>
1467
1468 * ada-lang.c (symbol_completion_add): Rename parameter
1469 "encoded" into "encoded_p". Ajust code and documentation
1470 accordingly.
1471
c0af1706
JB
14722012-03-29 Joel Brobecker <brobecker@adacore.com>
1473 Andrey Smirnov <andrew.smirnov@gmail.com>
1474
1475 -Wshadow warning fix.
1476 * ada-lang.c (symbol_completion_add): Rename parameter
1477 "wild_match" into wild_match_p. Update code and documentation
1478 accordingly.
1479
6ea35997
JB
14802012-03-29 Joel Brobecker <brobecker@adacore.com>
1481
1482 * ada-lang.c (symbol_completion_match): Rename parameter
1483 "encoded" into "encoded_p". Ajust code and documentation
1484 accordingly.
1485
e701b3c0
JB
14862012-03-29 Joel Brobecker <brobecker@adacore.com>
1487 Andrey Smirnov <andrew.smirnov@gmail.com>
1488
1489 -Wshadow warning fix.
1490 * ada-lang.c (symbol_completion_match): Rename parameter
1491 "wild_match" into "wild_match_p". Adjust code and function
1492 documentation accordingly.
1493
5e2336be
JB
14942012-03-29 Joel Brobecker <brobecker@adacore.com>
1495 Andrey Smirnov <andrew.smirnov@gmail.com>
1496
1497 -Wshadow warning fix.
1498 * ada-lang.c (ada_lookup_encoded_symbol): Rename parameter
1499 "symbol_info" into "info". Adjust code accordingly.
1500 (ada_lookup_symbol): Likewise.
1501
9f88c959
JB
15022012-03-29 Joel Brobecker <brobecker@adacore.com>
1503
1504 * ada-lang.c (ada_lookup_symbol_list): Minor reformatting
1505 of this function's documentation.
1506
82ccd55e
JB
15072012-03-29 Joel Brobecker <brobecker@adacore.com>
1508 Andrey Smirnov <andrew.smirnov@gmail.com>
1509
1510 -Wshadow warning fix.
1511 * ada-lang.c (ada_lookup_symbol_list): Rename "wild_match"
1512 variable into "wild_match_p". Adjust code accordingly.
1513
d0a8ab18
JB
15142012-03-29 Joel Brobecker <brobecker@adacore.com>
1515 Andrey Smirnov <andrew.smirnov@gmail.com>
1516
1517 -Wshadow warning fix.
1518 * ada-lang.c (ada_add_local_symbols): Rename "wild_match"
1519 parameter into "wild_match_p". Adjust code accordingly.
1520 Document this parameter in the function description.
1521
48b78332
JB
15222012-03-29 Joel Brobecker <brobecker@adacore.com>
1523 Andrey Smirnov <andrew.smirnov@gmail.com>
1524
1525 -Wshadow warning fix.
1526 * ada-lang.c (add_symbols_from_enclosing_procs): Rename
1527 "wild_match" parameter to "wild_match_p" (-Wshadow).
1528
2e6e0353
JB
15292012-03-29 Joel Brobecker <brobecker@adacore.com>
1530
1531 * ada-lang.c (ada_lookup_simple_minsym): Remove trailing spaces
1532 in function documentation.
1533
dc4024cd
JB
15342012-03-29 Joel Brobecker <brobecker@adacore.com>
1535 Andrey Smirnov <andrew.smirnov@gmail.com>
1536
1537 -Wshadow warning fix.
1538 * ada-lang.c (ada_lookup_simple_minsym): Rename wild_match local
1539 variable into wild_match_p. Adjust code accordingly.
1540
6c88661c
JB
15412012-03-29 Joel Brobecker <brobecker@adacore.com>
1542 Andrey Smirnov <andrew.smirnov@gmail.com>
1543
1544 * ada-valprint.c (ada_val_print_1): Move the code handling
1545 TYPE_CODE_ENUM inside its own lexical block. Declare
1546 variables len and val there, instead of in the function's
1547 top level block. Avoid declaring deref_val again in a way
1548 that shadows another variable of the same name declared
1549 in one of the up-level blocks. Just re-use the up-level
1550 variable instead.
1551
4e5c77fe
JB
15522012-03-29 Joel Brobecker <brobecker@adacore.com>
1553
1554 * ada-lang.c (ada_lookup_encoded_symbol): Now returns void.
1555 Replace block_found argument by symbol_info. Adjust
1556 implementation accordingly. Add function documentation.
1557 (ada_lookup_symbol): Adjust to new ada_lookup_encoded_symbol.
1558 Fix documentation.
1559 * ada-lang.h (ada_lookup_encoded_symbol): Update declaration.
1560 * ada-exp.y (write_object_renaming): Adjust to new
1561 ada_lookup_encoded_symbol API.
1562
1c0ac8c7
JB
15632012-03-29 Joel Brobecker <brobecker@adacore.com>
1564
1565 * ada-lang.h (struct ada_symbol_info): Reformat. Improve
1566 documentation.
1567
2aaed979
KB
15682012-03-28 Rathish C <rathish.c@kpitcummins.com>
1569
1570 * v850-tdep.c: Add the enum values for mpu and fpu registers.
1571 (v850_register_name): Add the mpu and fpu register names.
1572 (v850e_register_name): Add the mpu and fpu register names.
1573 (v850e2_register_name): New function.
a09130f9 1574 (v850_gdbarch_init): Add case for bfd_mach_v850e2 and
2aaed979
KB
1575 bfd_mach_v850e2v3.
1576
927fbba6
JB
15772012-03-28 Joel Brobecker <brobecker@adacore.com>
1578
1579 * NEWS: Add entry for Ada varobj support.
1580
d32cafc7
JB
15812012-03-28 Joel Brobecker <brobecker@adacore.com>
1582
1583 * varobj.c (default_value_is_changeable_p): New function,
1584 extracted from varobj_value_is_changeable_p. Add declaration.
1585 (ada_value_is_changeable_p): New function, extracted from
1586 varobj_value_is_changeable_p. Add declaration.
1587 (struct language_specific): New field "value_is_changeable_p".
1588 (languages): Add entries for new field.
1589 (varobj_create): Set language before calling install_new_value.
1590 (varobj_value_is_changeable_p): Reimplement to call the varobj's
1591 "value_is_changeable_p" language callback.
1592
181875a4
JB
15932012-03-28 Joel Brobecker <brobecker@adacore.com>
1594
1595 * ada-varobj.h, ada-varobj.c: New files.
1596 * Makefile.in (SFILES): Add ada-varobj.c.
1597 (HFILES_NO_SRCDIR): Add ada-varobj.h.
1598 (COMMON_OBS): Add ada-varobj.o.
1599
7a290c40
JB
16002012-03-28 Joel Brobecker <brobecker@adacore.com>
1601
1602 * varobj.c (ada_value_has_mutated): Add declaration. New function.
1603 (struct language_specific): New field "value_has_mutated".
1604 (languages): Set field "value_has_mutated" in each entry of array.
1605 (varobj_value_has_mutated): New function.
1606 (varobj_udpdate): Add handling of type mutation.
1607 (value_of_root): Add handling of type mutation.
1608 (ada_value_has_mutated): New function.
1609
ca9b8b9c
PA
16102012-03-28 Pedro Alves <palves@redhat.com>
1611
1612 * ia64-linux-nat.c (supply_fpregset, ia64_linux_fetch_register):
1613 Always supply $fr0 as 0.0 and $fr1 as 1.0.
1614
cc0265cd
TT
16152012-03-28 Tom Tromey <tromey@redhat.com>
1616
1617 * python/py-inferior.c (infpy_read_memory): Remove cleanups and
1618 explicitly free 'buffer' on exit paths. Decref 'membuf_object'
1619 before returning.
1620
3ad2ec6f
TT
16212012-03-28 Tom Tromey <tromey@redhat.com>
1622
1623 * .dir-locals.el: New file.
1624
4a6510ba
PA
16252012-03-28 Pedro Alves <palves@redhat.com>
1626
1627 * ia64-linux-nat.c (u_offsets): Map IA64_EC_REGNUM to PT_AR_EC.
1628
5a75128f
JB
16292012-03-28 Joel Brobecker <brobecker@adacore.com>
1630
1631 * ia64-linux-nat.c (ia64_linux_fetch_register): Add special
1632 handling for r0.
1633
f99d8bf4
PA
16342012-03-27 Pedro Alves <palves@redhat.com>
1635
1636 Eliminate struct ui_stream.
1637
1638 * ui-out.h (struct ui_stream): Delete.
1639 (ui_out_field_stream): Adjust prototype.
1640 (ui_out_stream_new, ui_out_stream_delete)
1641 (make_cleanup_ui_out_stream_delete): Delete declarations.
1642 * ui-out.c (ui_out_field_stream): Change prototype to take a
1643 ui_file instead of a ui_stream. Adjust.
1644 (ui_out_stream_new, ui_out_stream_delete, do_stream_delete)
1645 (make_cleanup_ui_out_stream_delete): Delete.
1646 * breakpoint.c (print_breakpoint_location)
1647 (print_one_detail_ranged_breakpoint, print_it_watchpoint): Use
1648 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
1649 * disasm.c (dump_insns): Ditto.
1650 (do_mixed_source_and_assembly, do_assembly_only): Adjust
1651 prototype.
1652 (gdb_disassembly): Use ui_file/mem_fileopen instead of
1653 ui_stream/ui_out_stream_new.
1654 * infcmd.c (print_return_value): Ditto.
1655 * osdata.c (info_osdata_command): Don't allocate a local
1656 ui_stream.
1657 * stack.c (print_frame_arg, print_frame_args, print_frame): Use
1658 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
1659 * tracepoint.c (print_one_static_tracepoint_marker): Don't
1660 allocate a local ui_stream.
1661 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_file/mem_fileopen
1662 instead of ui_stream/ui_out_stream_new.
1663 (list_args_or_locals): Don't allocate a local ui_stream.
1664 * mi/mi-main.c (get_register, mi_cmd_data_evaluate_expression)
1665 (mi_cmd_data_read_memory): Use ui_file/mem_fileopen instead of
1666 ui_stream/ui_out_stream_new.
1667 * cli/cli-setshow.c (do_setshow_command): Ditto.
1668
6350a066 16692012-03-27 Oza Pawandeep <oza.pawandeep@gmail.com>
72508ac0 1670
6350a066
PA
1671 * arm-linux-tdep.c (arm_linux_init_abi): Call
1672 set_gdbarch_process_record. Initialize `arm_swi_record' field.
1673 * arm-tdep.c (arm_process_record): New function.
1674 (deallocate_reg_mem): New function.
1675 (decode_insn): New function.
1676 (thumb_record_branch): New function.
1677 (thumb_record_ldm_stm_swi(): New function.
1678 (thumb_record_misc): New function.
1679 (thumb_record_ld_st_stack): New function.
1680 (thumb_record_ld_st_imm_offset): New function.
1681 (thumb_record_ld_st_reg_offset(): New function.
1682 (thumb_record_add_sub_cmp_mov): New function.
1683 (thumb_record_shift_add_sub): New function.
1684 (arm_record_coproc_data_proc): New function.
1685 (arm_record_coproc): New function.
1686 (arm_record_b_bl): New function.
1687 (arm_record_ld_st_multiple): New function.
1688 (arm_record_ld_st_reg_offset): New function.
1689 (arm_record_ld_st_imm_offset): New function.
1690 (arm_record_data_proc_imm): New function.
1691 (arm_record_data_proc_misc_ld_str): New function.
1692 (arm_record_extension_space): New function.
1693 (arm_record_strx): New function.
1694 (sbo_sbz): New function.
1695 (struct insn_decode_record): New structure for arm insn record.
1696 (REG_ALLOC): New macro for reg allocations.
1697 (MEM_ALLOC): New macro for memory allocations.
1698 * arm-tdep.h (struct gdbarch_tdep): New field 'arm_swi_record'.
72508ac0 1699
89e028e2
AS
17002012-03-27 Andreas Schwab <schwab@linux-m68k.org>
1701
1702 * m68klinux-nat.c (fetch_register): Fix strict-aliasing violation.
1703 (store_register): Likewise.
1704
6350a066 17052012-03-26 Oza Pawandeep <oza.pawandeep@gmail.com>
3d9a9eb0 1706
6350a066 1707 * MAINTAINERS (Write After Approval): Add myself to the list.
3d9a9eb0 1708
5b43fab2
JK
17092012-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
1710
1711 * NEWS (set breakpoint condition-evaluation): Change "gdb" to "host".
1712 Describe also the option "auto".
1713
b5453b95
RH
17142012-03-22 Richard Henderson <rth@redhat.com>
1715
1716 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Fix prototype.
1717 * sparc-nat.c (sparc_xfer_wcookie): Make static.
1718
227ee7fc
RH
17192012-03-22 Richard Henderson <rth@redhat.com>
1720
1721 * jit.c (jit_read_code_entry): Compute alignment and offset of
1722 int64_t member before computing entry_size.
1723
7b282c5a
SCR
17242012-03-22 Siva Chandra Reddy <sivachandra@google.com>
1725
1726 Python scripting: Add new method Value.referenced_value to
1727 gdb.Value which can dereference pointer as well as reference
1728 values.
1729 * NEWS: Add entry under 'Python scripting' about the new method
1730 Value.referenced_value on gdb.Value objects.
1731 * python/py-value.c (valpy_referenced_value): New function
1732 defining a new method on gdb.Value objects which can dereference
1733 pointer and reference values.
1734
0c83539f
SCR
17352012-03-22 Siva Chandra Reddy <sivachandra@google.com>
1736
1737 * MAINTAINERS (Write After Approval): Add myself to the list.
1738
7ccffd7c
KB
17392012-03-21 Kevin Buettner <kevinb@redhat.com>
1740
1741 * symtab.c (skip_prologue_sal): Change test to check for "main()"
1742 in addition to "main".
1743
bd0b9f9e
JB
17442012-03-21 Joel Brobecker <brobecker@adacore.com>
1745
1746 * expression.h (op_name): Add declaration.
1747 * expprint.c (op_name): Remove declaration. Make non-static.
1748 * ax-gdb.c (gen_expr): Use op_name instead of op_string.
1749
a5362b9a
TS
17502012-03-21 Thomas Schwinge <thomas@codesourcery.com>
1751
1752 * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Use siginfo_t instead
1753 of struct siginfo.
1754 * arm-linux-nat.c (arm_linux_stopped_data_address): Likewise.
1755 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
1756 * linux-nat.c (linux_nat_siginfo_fixup, siginfo_fixup)
1757 (linux_xfer_siginfo, linux_nat_set_siginfo_fixup)
1758 (linux_nat_get_siginfo): Likewise.
1759 * linux-nat.h (struct lwp_info, linux_nat_set_siginfo_fixup)
1760 (linux_nat_get_siginfo): Likewise.
1761 * linux-tdep.c (linux_get_siginfo_type): Likewise.
1762 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Likewise.
1763 * procfs.c (gdb_siginfo_t): Likewise.
1764
adcadaab
MF
17652012-03-21 Mike Frysinger <vapier@gentoo.org>
1766
1767 * .gitignore: Ignore more files.
1768
e278ad5b
PA
17692012-03-20 Pedro Alves <palves@redhat.com>
1770
1771 * remote.c (remote_start_remote): Clear `rs->starting_up' on early
1772 returns.
1773
741e63d7
YQ
17742012-03-20 Yao Qi <yao@codesourcery.com>
1775
1776 * amd64-tdep.c (amd64_displaced_step_copy_insn): Complete missing "}" in
1777 comment.
1778
b64f50a1
JK
17792012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
1780
1781 Code cleanupp: Use cu_offset and sect_offset compile time type checking.
1782 * dwarf2expr.c (add_piece, dwarf_get_base_type, execute_stack_op)
1783 (ctx_no_dwarf_call, ctx_no_get_base_type): Use cu_offset and
1784 sect_offset.
1785 * dwarf2expr.h (cu_offset, sect_offset): New types.
1786 (struct dwarf_expr_context_funcs) <dwarf_call>
1787 (struct dwarf_expr_context_funcs) <get_base_type>: Use cu_offset and
1788 sect_offset.
1789 (struct dwarf_expr_context) <len>: Improve the comment.
1790 (struct dwarf_expr_piece, ctx_no_dwarf_call, ctx_no_get_base_type): Use
1791 cu_offset and sect_offset.
1792 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call)
1793 (dwarf_expr_get_base_type, needs_frame_dwarf_call)
1794 (dwarf2_compile_expr_to_ax, disassemble_dwarf_expression): Likewise.
1795 * dwarf2loc.h: Include dwarf2expr.h.
1796 (dwarf2_fetch_die_location_block, dwarf2_get_die_type): Use cu_offset
1797 and sect_offset.
1798 * dwarf2read.c (struct dwarf2_per_objfile) <debug_types_type_hash>:
1799 Improve the comment.
1800 (struct comp_unit_head, struct dwarf2_cu, struct dwarf2_per_cu_data)
1801 (struct signatured_type, struct line_header, struct partial_die_info)
1802 (struct die_info, find_partial_die, dwarf2_get_ref_die_offset)
1803 (lookup_signatured_type_at_offset, dwarf2_find_containing_comp_unit)
1804 (get_die_type_at_offset, create_cus_from_index)
1805 (create_signatured_type_table_from_index, dw2_get_file_names)
1806 (offset_in_cu_p, read_comp_unit_head, error_check_comp_unit_head)
1807 (read_and_check_comp_unit_head, read_and_check_type_unit_head)
1808 (create_debug_types_hash_table, process_psymtab_comp_unit)
1809 (load_partial_comp_unit, create_all_comp_units)
1810 (partial_die_parent_scope, partial_die_full_name, skip_one_die)
1811 (load_full_comp_unit, dwarf2_physname, read_import_statement)
1812 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
1813 (dwarf2_add_member_fn, process_enumeration_scope, read_module_type)
1814 (read_typedef, die_hash, die_eq, read_full_die, dwarf2_read_abbrevs)
1815 (load_partial_dies, read_partial_die, find_partial_die_in_comp_unit)
1816 (find_partial_die, read_attribute_value, lookup_die_type)
1817 (dump_die_shallow, store_in_ref_table): Use cu_offset and sect_offset.
1818 (is_ref_attr): New function comment.
1819 (dwarf2_get_ref_die_offset): New function comment, new variable retval.
1820 Use cu_offset and sect_offset.
1821 (follow_die_offset, follow_die_ref, dwarf2_fetch_die_location_block)
1822 (dwarf2_get_die_type, follow_die_sig, lookup_signatured_type_at_offset)
1823 (load_full_type_unit, read_signatured_type, per_cu_header_read_in)
1824 (dwarf2_find_containing_comp_unit, struct dwarf2_offset_and_type)
1825 (offset_and_type_hash, offset_and_type_eq, set_die_type)
1826 (get_die_type_at_offset, partial_die_hash, partial_die_eq)
1827 (write_one_signatured_type, write_psymtabs_to_index): Use cu_offset and
1828 sect_offset.
1829
e97a38f7
JK
18302012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
1831
1832 Code cleanup.
1833 * python/py-auto-load.c (source_section_scripts): New variable back_to.
1834 Turn fclose and xfree calls into make_cleanup_fclose and make_cleanup
1835 with xfree.
1836 (auto_load_objfile_script): Turn fclose into make_cleanup_fclose.
1837
8320cc4f
JK
18382012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
1839
1840 * NEWS: Describe new options --init-command=FILE, -ix and
1841 --init-eval-command=COMMAND, -iex.
1842 * main.c (struct cmdarg): New enum items CMDARG_INIT_FILE and
1843 CMDARG_INIT_COMMAND.
1844 (captured_main): New enum items OPT_IX and OPT_IEX. Add
1845 "init-command", "init-eval-command", "ix" and "iex" to the variable
1846 long_options. Handle OPT_IX and OPT_IEX. Process them from CMDARG_VEC.
1847 New comment for CMDARG_FILE and CMDARG_COMMAND processing.
1848 (print_gdb_help): Describe --init-command=FILE, -ix and
1849 --init-eval-command=COMMAND, -iex.
1850
26743505
JK
18512012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
1852
1853 Code cleanup.
1854 * main.c (struct cmdarg): Move it here from main. Add more comments.
1855 (cmdarg_s, VEC (cmdarg_s)): New.
1856 (main): Move struct cmdarg from here. New variables cmdarg_vec and
1857 cmdarg_p. Remove variables cmdsize and ncmd and their initialization.
1858 Install cleanup for cmdarg_vec. Update filling for options 'x' and
1859 'X'. Replace cmdarg processing by cmdarg_vec processing. Remove xfree
1860 of CMDARG.
1861
5ff5c7b4
TT
18622012-03-19 Tom Tromey <tromey@redhat.com>
1863
1864 * gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'.
1865
ab260dad
JK
18662012-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
1867
1868 PR symtab/13777
1869 * dwarf2read.c (process_full_comp_unit): Set LOCATIONS_VALID only for
1870 GCC >=4.5.
1871
c366c1f0
TT
18722012-03-16 Chris January <chris.january@allinea.com>
1873
1874 * tui-tui.win.c (tui_resize_all): Use erase and clearok instead
1875 of clear.
1876
e16edb45
TT
18772012-03-16 Chris January <chris.january@allinea.com>
1878
1879 * source.c (add_path): Use memmove instead of strcpy because the
1880 strings overlap.
1881
53ba8333
JB
18822012-03-16 Joel Brobecker <brobecker@adacore.com>
1883
1884 * value.h (set_value_parent): Add declaration.
1885 * value.c (set_value_parent): New function.
1886 (value_address): If VALUE->PARENT is not NULL, then use it as
1887 the base address instead of VALUE->LOCATION.address.
1888 * ada-lang.c (ada_value_primitive_packed_val): Keep V's address
1889 the same as OBJ's address. Adjust V's offset accordingly.
1890 Set V's parent.
1891
481860b3
GB
18922012-03-16 Gary Benson <gbenson@redhat.com>
1893
1894 PR breakpoints/10738
1895 * dwarf2read.c (use_deprecated_index_sections): New global.
1896 (struct partial_die_info): New member may_be_inlined.
1897 (read_partial_die): Set may_be_inlined where appropriate.
1898 (add_partial_subprogram): Add partial symbols for partial
1899 DIEs that may be inlined.
1900 (new_symbol_full): Add inlined subroutines to the current
1901 scope.
1902 (write_psymtabs_to_index): Bump version number.
1903 (dwarf2_read_index): Read only version 6 indices unless
1904 use_deprecated_index_sections is set.
1905 * linespec.c (symbol_and_data_callback): New structure.
1906 (iterate_inline_only): New function.
1907 (iterate_over_all_matching_symtabs): New argument
1908 "include_inline". If nonzero, also call the callback for
1909 symbols representing inlined subroutines.
1910 (lookup_prefix_sym): Pass extra argument to the above.
1911 (find_function_symbols): Likewise.
1912 (add_matching_symbols_to_info): Likewise.
1913 * NEWS: Mention that GDB can now set breakpoints on inlined
1914 functions.
1915
d0e7e15a
PM
19162012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
1917
1918 * p-typeprint.c (pascal_type_print_method_args):
1919 Fix display of parameter of methods.
1920
3d354654
PM
19212012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
1922
1923 * amd64-windows-nat.c (_initialize_amd64_windows_nat):
1924 Add missing prototype.
1925
cafe75b0
JK
19262012-03-16 Yao Qi <yao@codesourcery.com>
1927 Jan Kratochvil <jan.kratochvil@redhat.com>
1928
1929 Fix false compilation warning.
1930 * gnu-v3-abi.c (print_one_vtable): Initialize ADDR.
1931
25f8c692
JL
19322012-03-15 Jonathan Larmour <jifl@eCosCentric.com>
1933 Pedro Alves <pedro@codesourcery.com>
1934
1935 * arm-tdep.c: Include "remote.h" and "features/arm-with-m-fpa-layout.c".
1936 (arm_register_g_packet_guesses): New function.
1937 (arm_gdbarch_init): Don't force a target description with
1938 registers when the executable is detected as M-profile. Instead
1939 set gdbarch->tdep->is_m. Register `g' packet guesses.
1940 (_initialize_arm_tdep): Initialize the new target description.
1941 * features/arm-with-m-fpa-layout.xml: New description.
1942 * features/arm-with-m-fpa-layout.c: New, generated.
1943
35c63cd8
JB
19442012-03-15 Joel Brobecker <brobecker@adacore.com>
1945
1946 * breakpoint.c (breakpoint_xfer_memory): Add assertion.
1947 Update function description.
1948 (insert_bp_location): Do not wipe bl->target_info out.
1949 * mem-break.c: #include "gdb_string.h".
1950 (default_memory_insert_breakpoint): Do not call target_read_memory
1951 with a pointer to the breakpoint's shadow_contents buffer. Use
1952 a local buffer instead.
1953 * m32r-tdep.c (m32r_memory_insert_breakpoint): Ditto.
1954
57651221
TT
19552012-03-15 Tom Tromey <tromey@redhat.com>
1956
1957 * NEWS: Mention "info vtbl", not "info vtable".
1958 * cp-support.c (info_vtbl_command): Fix comment.
1959 (_initialize_cp_support): Fix text.
1960
410528f0
TT
19612012-03-15 Tom Tromey <tromey@redhat.com>
1962
1963 * cp-valprint.c (cp_print_value_fields): Use
1964 print_function_pointer_address for vtable slot.
1965
c4aeac85
TT
19662012-03-15 Tom Tromey <tromey@redhat.com>
1967
1968 * gnu-v3-abi.c (struct value_and_voffset): New.
1969 (hash_value_and_voffset, eq_value_and_voffset)
1970 (compare_value_and_voffset, compute_vtable_size)
1971 (print_one_vtable, gnuv3_print_vtable): New functions.
1972 (init_gnuv3_ops): Initialize 'print_vtable' field.
1973 * cp-support.c (info_vtbl_command): New function.
1974 (_initialize_cp_support): Add "info vtbl".
1975 * cp-abi.h (cplus_print_vtable): Declare.
1976 (struct cp_abi_ops) <print_vtable>: New field.
1977 * cp-abi.c (cplus_print_vtable): New function.
1978 * NEWS: Update.
1979
95cbceff
TT
19802012-03-15 Tom Tromey <tromey@redhat.com>
1981
1982 * d-lang.c (d_language_defn) <la_iterate_over_symbols>: Set to
1983 iterate_over_symbols.
1984
589b4a32
DE
19852012-03-14 Doug Evans <dje@google.com>
1986
1987 * dwarf2read.c (dwarf_stack_op_name): Add DW_OP_GNU_encoded_addr,
1988 DW_OP_GNU_parameter_ref.
1989
e837f12a
JK
19902012-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1991
1992 Fix double prompt of 'interpreter-exec mi'.
1993 * mi/mi-interp.c (mi_execute_command_input_handler): New prototype.
1994 (mi_interpreter_resume): use it.
1995 (mi_execute_command_input_handler): New function.
1996 * mi/mi-main.c (mi_execute_command): Move prompt printing to
1997 mi_execute_command_input_handler.
1998
ff1e4526 19992012-03-13 Josh Matthews <josh@joshmatthews.net> (tiny change)
c381a3f6
JB
2000
2001 * darwin-nat-info.c (_initialize_darwin_info_commands): Add
2002 prototype.
2003 (darwin_debug_port_info): Make static.
2004 * darwin-nat.c (_initialize_darwin_inferior): Add prototype.
2005 * machoread.c (_initialize_machoread): Add prototype.
2006 * i386-darwin-nat.c (i386_darwin_dr_set, i386_darwin_dr_get)
2007 (i386_darwin_set_control, i386_darwin_get_control)
2008 i386_darwin_dr_set_addr, i386_darwin_get_addr)
2009 i386_darwin_get_status, i386_darwin_get_control):
2010 Comment out with HW_WATCHPOINT_NOT_YET_ENABLED macro.
2011
d8a5d6ee
JB
20122012-03-13 Joel Brobecker <brobecker@adacore.com>
2013
2014 * ax-gdb.c (gen_usual_unary): Remove special handling of
2015 enum and bool types.
2016
af381b8c
JB
20172012-03-13 Joel Brobecker <brobecker@adacore.com>
2018
2019 * ax-gdb.c (gen_fetch): Add handling for TYPE_CODE_RANGE types.
2020
786c562f
JB
20212012-03-13 Joel Brobecker <brobecker@adacore.com>
2022
2023 * aix-thread.c (supply_fprs): Make more consistent with fill_fprs.
2024
e3ebf1bb
JB
20252012-03-13 Chris January <chris.january@allinea.com>
2026
2027 * aix-thread.c (fill_sprs): Store the floating point registers
2028 at the correct offsets into vals.
2029
c5b7e1cb
DE
20302012-03-13 Doug Evans <dje@google.com>
2031
16899756
DE
2032 * NEWS: Mention symbol-reloading has been deleted.
2033 * symfile.c (symbol_reloading): Delete.
2034 (show_symbol_reloading): Delete.
2035 (_initialize_symfile): Delete set/show symbol-reloading.
2036
c5b7e1cb
DE
2037 * dwarf2read.c (load_partial_comp_unit): Defer adding cu to
2038 read_in_chain until we have successfully read it in.
2039 (load_full_comp_unit): Ditto.
2040 (read_signatured_type): Add comment.
2041
46cb6474
JB
20422012-03-13 Chris January <chris.january@allinea.com>
2043
2044 * stabsread.c (fix_common_block): Change type of valu argument
2045 to CORE_ADDR.
2046
76219d77
JB
20472012-03-13 Chris January <chris.january@allinea.com>
2048
2049 * rs6000-tdep.c (skip_prologue): Support the oril r29, r1, 0x0
2050 instruction.
2051
87b0bb13
JK
20522012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2053
2054 * common/linux-procfs.c (linux_proc_get_int): New, from
2055 linux_proc_get_tgid, change its LWPID type to pid_t, add parameter
2056 field.
2057 (linux_proc_get_tgid): Only call linux_proc_get_int.
2058 (linux_proc_get_tracerpid): New.
2059 (linux_proc_pid_has_state): New, from linux_proc_pid_is_zombie.
2060 (linux_proc_pid_is_stopped, linux_proc_pid_is_zombie): Only call
2061 linux_proc_pid_has_state.
2062 * common/linux-procfs.h (linux_proc_get_tracerpid): New declaration.
2063 * common/linux-ptrace.c: Include linux-procfs.h and buffer.h.
2064 (linux_ptrace_attach_warnings): New.
2065 * common/linux-ptrace.h (struct buffer, linux_ptrace_attach_warnings):
2066 New declaration.
2067 * linux-nat.c: Include exceptions.h, linux-ptrace.h and buffer.h.
2068 (linux_nat_attach): New variables ex, buffer, message and message_s.
2069 Wrap to_attach by TRY_CATCH and call linux_ptrace_attach_warnings.
2070
5f572dec
JK
20712012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2072
2073 * Makefile.in (linux-ptrace.o): New.
2074 * common/linux-procfs.c (linux_proc_pid_is_zombie): New,
2075 from linux-nat.c.
2076 * common/linux-procfs.h (linux_proc_pid_is_zombie): New declaration.
2077 * common/linux-ptrace.c: New file.
2078 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-ptrace.o.
2079 * config/arm/linux.mh: Likewise.
2080 * config/i386/linux.mh: Likewise.
2081 * config/i386/linux64.mh: Likewise.
2082 * config/ia64/linux.mh: Likewise.
2083 * config/m32r/linux.mh: Likewise.
2084 * config/m68k/linux.mh: Likewise.
2085 * config/mips/linux.mh: Likewise.
2086 * config/pa/linux.mh: Likewise.
2087 * config/powerpc/linux.mh: Likewise.
2088 * config/powerpc/ppc64-linux.mh: Likewise.
2089 * config/powerpc/spu-linux.mh: Likewise.
2090 * config/s390/s390.mh: Likewise.
2091 * config/sparc/linux.mh: Likewise.
2092 * config/sparc/linux64.mh: Likewise.
2093 * config/xtensa/linux.mh: Likewise.
2094 * linux-nat.c (linux_lwp_is_zombie): Remove, move it to
2095 common/linux-procfs.c.
2096 (wait_lwp): Rename linux_lwp_is_zombie to linux_proc_pid_is_zombie.
2097
44f238bb
PA
20982012-03-13 Hui Zhu <teawater@gmail.com>
2099 Pedro Alves <palves@redhat.com>
2100
2101 * breakpoint.c (init_breakpoint_sal): New flags parameter. Handle
2102 CREATE_BREAKPOINT_FLAGS_INSERTED.
2103 (create_breakpoint_sal, create_breakpoints_sal)
2104 (base_breakpoint_create_breakpoints_sal)
2105 (tracepoint_create_breakpoints_sal)
2106 (strace_marker_create_breakpoints_sal): New flags parameter. Pass
2107 down.
2108 (break_command_1, handle_gnu_v3_exceptions, trace_command)
2109 (ftrace_command, strace_command): Adjust.
2110 (create_tracepoint_from_upload): Pass
2111 CREATE_BREAKPOINT_FLAGS_INSERTED.
2112 * breakpoint.h (enum breakpoint_create_flags): New.
2113 (create_breakpoint): New flags parameter.
2114 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
2115 * python/py-breakpoint.c (bppy_init): Adjust.
2116 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust.
2117 * spu-tdep.c (spu_catch_start): Adjust.
2118
1e51243a
PA
21192012-03-13 Pedro Alves <palves@redhat.com>
2120 Hui Zhu <teawater@gmail.com>
2121 Yao Qi <yao@codesourcery.com>
2122
2123 * remote.c (struct remote_state): New field `starting_up'.
2124 (remote_start_remote): Set and clear it.
2125 (remote_can_download_tracepoint): If starting up, return false.
2126
fa3064dd
YQ
21272012-03-13 Yao Qi <yao@codesourcery.com>
2128
2129 * inferior.h (struct inferior): Remove fields any_syscall_count,
2130 syscalls_counts and total_syscalls_count. Move them to new
2131 struct catch_syscall_inferior_data in breakpoint.c.
2132 * breakpoint.c: Call DEF_VEC_I(int).
2133 (struct catch_syscall_inferior_data): New.
2134 (get_catch_syscall_inferior_data): New.
2135 (catch_syscall_inferior_data_cleanup): New.
2136 (insert_catch_syscall): Update to access data in
2137 struct catch_syscall_inferior_data.
2138 (insert_catch_syscall): Likewise.
2139 (remove_catch_syscall): Likewise.
2140 (remove_catch_syscall): Likewise.
2141 (is_syscall_catchpoint_enabled): Likewise.
2142 (add_catch_command): Likewise.
2143 (_initialize_breakpoint): Register cleanup.
2144 * breakpoint.h: Removed DEF_VEC_I(int).
2145 * dwarf2loc.c: Call DEF_VEC_I(int).
2146 * mi/mi-main.c: Likewise.
2147
460fac3c
MK
21482012-03-12 Mark Kettenis <kettenis@gnu.org>
2149
2150 * inf-ptrace.c (inf_ptrace_post_attach): Make static.
2151
e1aca11e
JB
21522012-03-12 Chris January <chris.january@allinea.com>
2153
2154 * aix-thread.c (_initialize_aix_thread): Add prototype.
2155 * rs6000-nat.c (_initialize_rs6000_nat): Ditto.
2156 * xcoffsolib.c (_initialize_xcoffsolib): Ditto.
2157
649c7061
JB
21582012-03-12 Joel Brobecker <brobecker@adacore.com>
2159
2160 * amd64bsd-nat.c: Move #include of "amd64bsd-nat.h" after
2161 include of "amd64-nat.h".
2162
0b49e518
TT
21632012-03-12 Tom Tromey <tromey@redhat.com>
2164
2165 * buildsym.c (record_pending_block): Now static.
2166 * buildsym.h: (record_pending_block): Remove.
2167
fd24fa94
AT
21682012-03-12 Andreas Tobler <andreast@fgznet.ch>
2169
2170 * amd64bsd-nat.c: Include amd64bsd-nat.h.
2171
ba919b58
TT
21722012-03-09 Tom Tromey <tromey@redhat.com>
2173
2174 * dwarf2read.c (struct dwarf2_cu) <checked_producer,
2175 producer_is_gxx_lt_4_6>: New fields.
2176 (producer_is_gxx_lt_4_6): Use and update producer cache fields.
2177
a48e046c
TT
21782012-03-09 Tom Tromey <tromey@redhat.com>
2179
2180 * dwarf2read.c (dwarf2_attr): Avoid tail-recursive call.
2181
6f5e9362
JB
21822012-03-08 Joel Brobecker <brobecker@adacore.com>
2183
2184 * ravenscar-sparc-thread.c (_initialize_ravenscar_sparc): Add
2185 prototype.
2186
8d037db9
JB
21872012-03-08 Joel Brobecker <brobecker@adacore.com>
2188
2189 * ravenscar-thread.c (_initialize_ravenscar): Add prototype.
2190
4e841acf
JK
21912012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2192
2193 Fix -Wmissing-prototypes build.
2194 * arm-linux-nat.c (get_thread_id): Make it static.
2195 * xtensa-linux-nat.c (get_thread_id): Likewise.
2196
c6030312
JB
21972012-03-08 Joel Brobecker <brobecker@adacore.com>
2198
2199 * server.c (process_point_options): If a conditional expression
2200 is found, only print a message if remote_debug is nonzero.
2201
52323be9
LM
22022012-03-08 Luis Machado <lgustavo@codesourcery.com>
2203
2204 * ax-gdb.c (gen_fetch): Fail gracefully and use error instead
2205 of internal error for unknown/unsupported types.
2206
7fe25d9b
JK
22072012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2208
2209 Fix CU relative vs. absolute DIE offsets.
2210 * dwarf2loc.h (dwarf2_fetch_die_location_block): Rename parameter
2211 offset to offset_in_cu.
2212 * dwarf2read.c (process_enumeration_scope): Add CU offset to
2213 TYPE_OFFSET.
2214 (dwarf2_fetch_die_location_block): Rename parameter offset to
2215 offset_in_cu. New variable offset, add CU offset to OFFSET_IN_CU.
2216
05e7c244
JK
22172012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2218
2219 * libunwind-frame.c: Rename to ...
2220 * ia64-libunwind-tdep.c: ... here.
2221 * libunwind-frame.h: Rename to ...
2222 * ia64-libunwind-tdep.h: ... here.
2223 * Makefile.in (HFILES_NO_SRCDIR): Rename libunwind-frame.h to
2224 ia64-libunwind-tdep.h.
2225 (ALLDEPFILES): Rename libunwind-frame.c to ia64-libunwind-tdep.c.
2226 * README (--with-libunwind): Rename to ...
2227 (--with-libunwind-ia64): ... here, note it is ia64 specific now.
2228 * config.in: Regenerate.
2229 * configure: Regenerate.
2230 * configure.ac: New option --with-libunwind-ia64, make the
2231 AS_HELP_STRING ia64 specific. Deprecate option --with-libunwind.
2232 Remove AC_DEFINE for HAVE_LIBUNWIND.
2233 * ia64-libunwind-tdep.c: Make the file top comment ia64 specific.
2234 Rename libunwind-frame.h #include to ia64-libunwind-tdep.h.
2235 Rename libunwind-frame in the general comment.
2236 * ia64-libunwind-tdep.h: Make the file top comment ia64 specific.
2237 Rename symbol LIBUNWIND_FRAME_H to IA64_TDEP_LIBUNWIND_FRAME_H.
2238 Move forward declarations inside #ifndef. Rename libunwind-frame in
2239 the general comment.
2240 * ia64-tdep.c: Rename libunwind-frame.h #include to
2241 ia64-libunwind-tdep.h.
2242 (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum, ia64_is_fpreg)
2243 (ia64_libunwind_descr): Rename libunwind-frame to
2244 ia64-libunwind-tdep in these function comments.
2245 * ia64-tdep.h: Rename libunwind-frame.h #include to
2246 ia64-libunwind-tdep.h.
2247 * ia64-vms-tdep.c (ia64_vms_libunwind_descr): Rename libunwind-frame to
2248 ia64-libunwind-tdep in that data comment.
2249
3755cbfd
JK
22502012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2251
2252 * libunwind-frame.h (struct frame_unwind): New declaration.
2253
d1cda5d9
JB
22542012-03-08 Joel Brobecker <brobecker@adacore.com>
2255
2256 * breakpoint.c (_initialize_breakpoint): Fix error in help of
2257 "set breakpoint condition-evaluation" command.
2258
a0ba0aa2
TG
22592012-03-08 Tristan Gingold <gingold@adacore.com>
2260
2261 * sparc-stub.c: Move to stubs/
2262 * sh-stub.c: Likewise.
2263 * m68k-stub.c: Likewise.
2264 * m32r-stub.c: Likewise.
2265 * i386-stub.c: Likewise.
2266
7b8b6d6d
AS
22672012-03-08 Andreas Schwab <schwab@linux-m68k.org>
2268
007cafee
AS
2269 * m68klinux-tdep.c (m68k_linux_init_abi): Register
2270 linux_get_siginfo_type.
2271
7b8b6d6d
AS
2272 * m68klinux-nat.c: Include "gdb_proc_service.h".
2273 (PTRACE_GET_THREAD_AREA): Define.
2274 (ps_get_thread_area): New function.
2275
bba74b36
YQ
22762012-03-08 Yao Qi <yao@codesourcery.com>
2277
2278 * remote.c (remote_get_noisy_reply): Replace `sprintf' with
2279 `xsnprintf'.
2280 (remote_query_attached): Likewise.
2281 (remote_static_tracepoint_marker_at): Likewise.
2282 (remote_set_permissions): Likewise.
2283 (remote_detach_1, extended_remote_attach_1): Likewise.
2284 (send_g_packet, remote_vkill): Likewise.
2285 (extended_remote_disable_randomization): Likewise.
2286 (remote_add_target_side_condition): Likewise.
2287 (remote_insert_breakpoint): Likewise.
2288 (remote_remove_breakpoint): Likewise.
2289 (remote_insert_watchpoint): Likewise.
2290 (remote_remove_watchpoint): Likewise.
2291 (remote_insert_hw_breakpoint): Likewise.
2292 (remote_insert_hw_breakpoint): Likewise.
2293 (remote_remove_hw_breakpoint): Likewise.
2294 (remote_download_command_source): Likewise.
2295 (remote_download_tracepoint): Likewise.
2296 (remote_download_trace_state_variable): Likewise.
2297 (remote_disable_tracepoint): Likewise.
2298 (remote_trace_set_readonly_regions): Likewise.
2299 (remote_get_tracepoint_status): Likewise.
2300 (remote_trace_find): Likewise.
2301 (remote_get_trace_state_variable_value): Likewise.
2302 (remote_set_disconnected_tracing): Likewise.
2303 (remote_set_circular_trace_buffer): Likewise.
2304 (remote_get_min_fast_tracepoint_insn_len): Likewise.
2305 (remote_use_agent): Likewise.
2306 (remote_add_target_side_condition): Add one parameter BUF_SIZE.
2307 Update callers.
2308
9b224c5e
PA
23092012-03-07 Pedro Alves <palves@redhat.com>
2310
2311 * NEWS: Mention QProgramSignals.
2312 * inferior.h (update_signals_program_target): Declare.
2313 * infrun.c: (update_signals_program_target): New.
2314 (handle_command): Update the target of the new program signals
2315 array changes.
2316 * remote.c (PACKET_QProgramSignals): New enum.
2317 (last_program_signals_packet): New global.
2318 (remote_program_signals): New.
2319 (remote_start_remote): Update the target with the program signals
2320 list.
2321 (remote_protocol_features): Add entry for QPassSignals.
2322 (remote_open_1): Free anc clear last_program_signals_packet.
2323 (init_remote_ops): Install remote_program_signals.
2324 * target.c (update_current_target): Adjust.
2325 (target_program_signals): New.
2326 * target.h (struct target_ops) <to_program_signals>: New field.
2327 (target_program_signals): Declare.
2328
74c48cbb
PA
23292012-03-07 Pedro Alves <palves@redhat.com>
2330
2331 * NEWS: Add subtitle for new z0/z1 conditional breakpoint
2332 extensions.
2333
0c13fc49
AS
23342012-03-07 Andreas Schwab <schwab@linux-m68k.org>
2335
2336 * m68klinux-nat.c (getregs_supplies): Make static.
2337 (getfpregs_supplies): Likewise.
2338 (have_ptrace_getregs): Likewise.
2339
1281d2a3
JB
23402012-03-06 Joel Brobecker <brobecker@adacore.com>
2341
2342 * dwarf2read.c (dwarf2_get_die_type): Pass absolute offset
2343 in call to get_die_type_at_offset.
2344
2b03b41d
SS
23452012-03-06 Stan Shebs <stan@codesourcery.com>
2346
2347 * mi/mi-cmd-break.c: Enforce coding standards, fix comments.
2348 * mi/mi-cmd-disas.c: Ditto.
2349 * mi/mi-cmd-env.c: Ditto.
2350 * mi/mi-cmd-file.c: Ditto.
2351 * mi/mi-cmd-stack.c: Ditto.
2352 * mi/mi-cmd-target.c: Ditto.
2353 * mi/mi-cmd-var.c: Ditto.
2354 * mi/mi-cmds.c: Ditto.
2355 * mi/mi-cmds.h: Ditto.
2356 * mi/mi-console.c: Ditto.
2357 * mi/mi-getopt.c: Ditto.
2358 * mi/mi-getopt.h: Ditto.
2359 * mi/mi-interp.c: Ditto.
2360 * mi/mi-main.c: Ditto.
2361 * mi/mi-out.c: Ditto.
2362 * mi/mi-parse.c: Ditto.
2363 * mi/mi-parse.h: Ditto.
2364 * mi/mi-symbol-cmds.c: Ditto.
2365
2366 * mi/mi-getopt.h: Move mi_opt struct up.
2367 * mi/mi-main.c (captured_mi_execute_command): Remove redundant
2368 return.
2369 * mi/mi-out.c (_initialize_mi_out): Remove empty initialize.
2370
c988ad87
TT
23712012-03-06 Tom Tromey <tromey@redhat.com>
2372
2373 * proc-service.c (ps_pglobal_lookup): Set the current program
2374 space.
2375
1b7c1b10
PA
23762012-03-06 Pedro Alves <palves@redhat.com>
2377
2378 * gregset.h [HAVE_SYS_PROCFS_H]: Include <sys/procfs.h>.
2379
3c182069
JB
23802012-03-05 Joel Brobecker <brobecker@adacore.com>
2381
2382 * MAINTAINERS: List Maciej W. Rozycki as the mips maintainer.
2383
2e794194
JK
23842012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
2385
2386 Code cleanup.
2387 * common/linux-osdata.c (linux_common_core_of_thread): New function
2388 comment.
2389 * linux-nat.c (linux_nat_wait_1): Replace linux_nat_core_of_thread_1
2390 call by linux_common_core_of_thread.
2391 (linux_nat_core_of_thread_1): Remove.
2392 * linux-nat.h (linux_nat_core_of_thread_1): Remove declaration.
2393 * linux-thread-db.c: Include linux-osdata.h.
2394 (update_thread_core): Replace linux_nat_core_of_thread_1 call by
2395 linux_common_core_of_thread.
2396
9f9f1f31
TT
23972012-03-05 Tom Tromey <tromey@redhat.com>
2398
2399 * value.c (value_primitive_field): Don't fetch contents for
2400 non-virtual bases.
2401
b7b189f3
TT
24022012-03-05 Tom Tromey <tromey@redhat.com>
2403
2404 * jv-valprint.c (java_value_print): Correctly compute 'obj_addr'.
2405
05b8a789 24062012-03-05 Andreas Arnez <arnez@linux.vnet.ibm.com>
5538f557 2407
5538f557
JB
2408 * s390-nat.c: Include "gregset.h".
2409
75528772
JK
24102012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
2411
2412 * libunwind-frame.c (LIBUNWIND_SO): Change .7 to .8.
2413 [!LIBUNWIND_SO] (LIBUNWIND_SO_7): New #define.
2414 (libunwind_load): New variable so_error, use it for dlerror. Try to
2415 load also LIBUNWIND_SO_7.
2416
275418ae
PA
24172012-03-05 Pedro Alves <palves@redhat.com>
2418
2419 * i387-tdep.c (i387_supply_xsave): Assert the xsave section buffer
2420 is not NULL, and remove resulting dead code.
2421
5cbb9812
TS
24222012-03-05 Thomas Schwinge <thomas@codesourcery.com>
2423
2424 * sh-tdep.c (sh_skip_prologue): Provide an upper limit on the function
2425 prologue to sh_analyze_prologue.
2426 (sh_analyze_prologue): Make better use of such an upper limit, and
2427 generally be more cautious about accessing memory.
2428
541515ad
TT
24292012-03-05 Tom Tromey <tromey@redhat.com>
2430
2431 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from
2432 _initialize_ia64_hpux_tdep.
2433
b4d36fb8
PA
24342012-03-05 Pedro Alves <palves@redhat.com>
2435
24490249
PA
2436 PR gdb/13766
2437
b4d36fb8
PA
2438 * i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and
2439 the register state is clear, supply explicit zero, instead of
2440 marking the register unavailable.
2441
60c9a3c0
TG
24422012-03-05 Tristan Gingold <gingold@adacore.com>
2443
2444 * NEWS: Mention OpenVMS ia64 new target.
2445
696759ad
TG
24462012-03-05 Tristan Gingold <gingold@adacore.com>
2447
2448 * ia64-tdep.h: Include libunwind-frame.h and libunwind-ia64.h.
2449 (ia64_unw_accessors, ia64_unw_rse_accessors)
2450 (ia64_libunwind_descr): Declare.
2451 * ia64-vms-tdep.c: New file.
2452 * ia64-tdep.c (ia64_unw_accessors, ia64_unw_rse_accessors)
2453 (ia64_libunwind_descr): Make them public.
2454 * configure.tgt: Add ia64-*-*vms*.
2455 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-vms-tdep.o
2456 (ALLDEPFILES): Add ia64-vms-tdep.c
2457
34864976
TG
24582012-03-05 Tristan Gingold <gingold@adacore.com>
2459
169081d0
TG
2460 * target.h (target_object): Add TARGET_OBJECT_OPENVMS_UIB.
2461 * remote.c (PACKET_qXfer_uib): New enum value.
2462 (remote_protocol_features): Add entry for PACKET_qXfer_uib.
2463 (remote_xfer_partial): Handle TARGET_OBJECT_OPENVMS_UIB.
2464 (_initialize_remote): Call add_packet_config_cmd for
2465 xfer:uib packet.
2466
24672012-03-05 Tristan Gingold <gingold@adacore.com>
2468
2469 * osabi.c (gdb_osabi_names): Add OpenVMS.
2470 (generic_elf_osabi_sniffer): Likewise.
2471 * defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS.
34864976 2472
6597b100
JK
24732012-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
2474
2475 Removed unused code.
2476 * libunwind-frame.c (libunwind_frame_unwind)
2477 (libunwind_frame_base_address): Remove.
2478 * libunwind-frame.h (libunwind_frame_base_address): Remove declaration.
2479
87399aa1
YQ
24802012-03-04 Yao Qi <yao@codesourcery.com>
2481
2482 * common/agent.c (gdb_connect_sync_socket): Add _ markup and
2483 remove trailing new line.
2484 (agent_run_command, agent_run_command): Add _ markup.
2485 (agent_capability_check): Likewise.
2486
abf1152a
JK
24872012-03-03 Jan Kratochvil <jan.kratochvil@redhat.com>
2488
2489 * breakpoint.c (set_condition_evaluation_mode): Set
2490 CONDITION_EVALUATION_MODE unconditionally.
2491
5808517f
YQ
24922012-03-03 Yao Qi <yao@codesourcery.com>
2493
2494 * common/agent.c (agent_look_up_symbols): Add one parameter 'arg'.
2495 * common/agent.h: Update declaration.
2496 * inf-child.c (inf_child_use_agent): New.
2497 (inf_child_can_use_agent): New.
2498 (inf_child_target): Initialize fields `to_use_agent'
2499 and `to_can_use_agent'.
2500 * agent.c (agent_new_objfile): New.
89b7509a 2501 (_initialize_agent): Add agent_new_objfile to new_objfile
5808517f
YQ
2502 observer.
2503
2504 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
2505 New.
89b7509a 2506 (linux_target_install_ops): Initialize field
5808517f
YQ
2507 `to_static_tracepoint_markers_by_strid'.
2508 * remote.c (free_current_marker): Move it to ...
2509 * tracepoint.c (free_current_marker): ... here. New.
2510 (cleanup_target_stop): New.
2511 * tracepoint.h: Declare free_current_marker.
2512 * NEWS: Add one entry about `info static-tracepoint-marker'.
2513
58b4daa5
YQ
25142012-03-03 Yao Qi <yao@codesourcery.com>
2515
2516 * common/agent.c (agent_loaded_p): New.
89b7509a 2517 (agent_look_up_symbols): New global.
58b4daa5
YQ
2518 * common/agent.h: Declare agent_loaded_p.
2519
8ffcbaaf
YQ
25202012-03-03 Yao Qi <yao@codesourcery.com>
2521
2522 * common/agent.c (struct ipa_sym_addresses) <addr_capability>: New.
2523 (agent_capability_check, agent_capability_invalidate): New.
2524 (symbol_list): New array element.
2525 * common/agent.h (enum agent_capa): New.
2526 * target.c (target_pre_inferior): Call agent_capability_invalidate.
2527
d1feda86
YQ
25282012-03-03 Yao Qi <yao@codesourcery.com>
2529
2530 * target.h (struct target_ops) <to_use_agent>: New field.
2531 (struct target_ops) <to_can_use_agent>: New field.
2532 (target_use_agent, target_can_use_agent): New macro.
2533 * target.c (update_current_target): Update.
2534 * remote.c: New enum `PACKET_QAgent'.
2535 (remote_protocol_features): Add a new element.
2536 (remote_use_agent, remote_can_use_agent): New.
2537 (init_remote_ops): Initialize field `can_use_agent' with
2538 remote_can_use_agent. Intiailize field `use_agent' with
2539 remote_use_agent.
2540 * common/agent.c (use_agent): New global.
2541 * common/agent.h: Declare it.
2542 * tracepoint.c (info_static_tracepoint_markers_command): Add
2543 comment.
2544 * Makefile.in (SFILES): Add common/agent.c and agent.c.
2545 (COMMON_OBS): Add common/agent.o and agent.o
2546 (common-agent.o): New rule.
2547 * agent.c: New.
2548
2fa291ac
YQ
25492012-03-03 Yao Qi <yao@codesourcery.com>
2550
2551 * common/agent.c: New.
2552 * common/agent.h: New.
2553 * configure.ac: Add `sys/socket.h' and `sys/un.h' to
2554 AC_CHECK_HEADERS.
2555 * configure, configh.in: Regenerated.
2556
9fc05685
KB
25572012-03-02 Kevin Buettner <kevinb@redhat.com>
2558
2559 * sh-tdep.c (sh_frame_cache): Don't fetch the FPSCR register
2560 unless it exists for this architecture.
2561
a5ee536b
JB
25622012-03-02 Joel Brobecker <brobecker@adacore.com>
2563
2564 * language.h (struct language_defn): New "method" la_read_var_value.
2565 * findvar.c: #include "language.h".
2566 (default_read_var_value): Renames read_var_value. Rewrite
2567 function description.
2568 (read_var_value): New function.
2569 * value.h (default_read_var_value): Add prototype.
2570 * ada-lang.c (ada_read_renaming_var_value, ada_read_var_value):
2571 New functions.
2572 (ada_language_defn): Add entry for la_read_var_value.
2573 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, language.c,
2574 * m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Update
2575 language_defn structures to add entry for new la_read_var_value
2576 field.
2577
f59f708a
PA
25782012-03-02 Tom Tromey <tromey@redhat.com>
2579 Pedro Alves <palves@redhat.com>
2580
2581 PR breakpoints/13776:
2582 * breakpoint.c (breakpoint_init_inferior): Delete step-resume
2583 breakpoints.
2584 (delete_longjmp_breakpoint_at_next_stop): New.
2585 * breakpoint.h (delete_longjmp_breakpoint_at_next_stop): Declare.
2586 * target.c (generic_mourn_inferior): Call mark_breakpoints_out
2587 before deleting the inferior. Add comments.
2588 * thread.c (clear_thread_inferior_resources): Don't delete lonjmp
2589 breakpoints immediately, but only on next stop. Move that code
2590 next to where we mark other breakpoints for deletion.
2591
44099a67
JB
25922012-03-02 Joel Brobecker <brobecker@adacore.com>
2593
2594 * mips-linux-nat.c (mips_linux_read_description): Add missing i18n
2595 marker.
2596 * mips-tdep.c (mips_linux_reg_names): Improve comment to avoid ARI
2597 violation.
2598
2a2ef594
PA
25992012-03-02 Pedro Alves <palves@redhat.com>
2600
2601 * linux-thread-db.c (attach_thread): Avoid in_thread_list call.
2602
b261e0c5
UW
26032012-03-02 Ulrich Weigand <uweigand@de.ibm.com>
2604
2605 Fix -Wmissing-prototypes build.
2606 * ppc-linux-nat.c (ppc_linux_get_hwcap): Make static.
2607 * remote-sim.c (gdbsim_has_all_memory): Likewise.
2608 (gdbsim_has_memory): Likewise.
2609
a95babbf
YQ
26102012-03-02 Yao Qi <yao@codesourcery.com>
2611
2612 Fix -Wmissing-prototypes build.
2613 * charset.c (phony_iconv_open): Make static.
2614 (phony_iconv_close, phony_iconv): Likewise.
2615 * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype.
2616 * i386-windows-nat.c (_initialize_i386_windows_nat): New
2617 prototype.
2618 * mingw-hdep.c (_initialize_mingw_hdep): New prototype.
2619 * ser-mingw.c (create_select_thread): Make static.
2620 * windows-termcap.c (tgetent): New prototype.
2621 (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
2622
d603d4b3
JK
26232012-03-02 Zhang Yuanhui <asmwarrior@gmail.com>
2624
2625 Fix -Wmissing-prototypes build.
2626 * windows-nat.c (dll_symbol_command, ctrl_c_handler): Make them static.
2627 (_initialize_windows_nat, _initialize_check_for_gdb_ini)
2628 (_initialize_loadable): New prototypes.
2629
7fb3ad1f
DE
26302012-03-02 Doug Evans <dje@google.com>
2631
2632 * dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
2633 abbrev table, read_comp_unit will do it.
2634
693be288
JK
26352012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2636
2637 Fix -Wmissing-prototypes build.
2638 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Make it static.
2639 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): New prototype.
2640 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Likewise.
2641 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code): Make it static.
2642 (_initialize_arm_symbian_tdep): New prototype.
2643 * arm-wince-tdep.c (arm_wince_skip_main_prologue): Make it static.
2644 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): New prototype.
2645 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Make it
2646 static.
2647 * lm32-tdep.c (_initialize_lm32_tdep): New prototype.
2648 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): New
2649 prototype.
2650 * microblaze-tdep.c (microblaze_debug, microblaze_fetch_instruction)
2651 (microblaze_skip_prologue, microblaze_frame_cache): Make them static.
2652 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Make it
2653 static.
2654 * moxie-tdep.c (moxie_process_record): Likewise.
2655 * remote-mips.c (mips_can_use_watchpoint, mips_insert_watchpoint)
2656 (mips_remove_watchpoint, mips_stopped_by_watchpoint): Make them static.
2657 * rl78-tdep.c (rl78_breakpoint_from_pc): Make it static.
2658 (_initialize_rl78_tdep): New prototype.
2659 * rx-tdep.c (rx_breakpoint_from_pc): Make it static.
2660 (_initialize_rx_tdep): New prototype.
2661 * solib-darwin.c (darwin_in_dynsym_resolve_code): Make it static.
2662 (_initialize_darwin_solib): New prototype.
2663 * solib-spu.c: Include solib-spu.h.
2664 (_initialize_spu_solib): New prototype.
2665 * spu-multiarch.c (_initialize_spu_multiarch): New prototype.
2666 * tic6x-tdep.c (tic6x_analyze_prologue, tic6x_skip_prologue)
2667 (tic6x_breakpoint_from_pc, tic6x_frame_unwind_cache)
2668 (tic6x_software_single_step): Make it static.
2669 (_initialize_tic6x_tdep): New prototype.
2670
638234e5
JK
26712012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2672
2673 Fix -Wmissing-prototypes build.
2674 * cris-tdep.c (cris_can_use_hardware_watchpoint)
2675 (cris_region_ok_for_watchpoint, cris_stopped_data_address): Remove.
2676
f4a6f16d
JK
26772012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2678
2679 Fix -Wmissing-prototypes build.
2680 * frv-tdep.c (frv_check_watch_resources, frv_stopped_data_address)
2681 (frv_have_stopped_data_address): Remove.
2682
04dcf5fa
JK
26832012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2684
2685 Fix -Wmissing-prototypes build.
2686 * Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h.
2687 * sh-tdep.c: Include sh64-tdep.h.
2688 * sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations.
2689 * sh64-tdep.c: Include sh64-tdep.h.
2690 * sh64-tdep.h: New file.
2691
19080931
MR
26922012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
2693
2694 * mips-tdep.c (mips32_scan_prologue): Correct indentation.
2695
9aac7884
MR
26962012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
2697
2698 * mips-tdep.c (mips_gdbarch_init): Only set pc_regnum and
2699 sp_regnum once the gdbarch_init_osabi hook has been called.
2700
a385295e
MR
27012012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
2702
2703 * mips-tdep.c (mips32_bc1_pc): New function.
2704 (mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T,
2705 BPOSGE32 and BPOSGE64 instructions.
2706 (deal_with_atomic_sequence): Likewise.
2707 (mips32_instruction_has_delay_slot): Likewise.
2708
1faeff08 27092012-03-01 Maciej W. Rozycki <macro@mips.com>
a09130f9
PA
2710 Chris Dearman <chris@mips.com>
2711 Maciej W. Rozycki <macro@codesourcery.com>
2712 Joseph Myers <joseph@codesourcery.com>
1faeff08
MR
2713
2714 * features/mips-dsp.xml: New file.
2715 * features/mips64-dsp.xml: New file.
2716 * features/mips-dsp-linux.xml: New file.
2717 * features/mips64-dsp-linux.xml: New file.
2718 * features/Makefile (WHICH): Add mips-dsp-linux and
2719 mips64-dsp-linux.
2720 (mips-dsp-expedite, mips64-dsp-expedite): New variables.
2721 * features/mips-dsp-linux.c: New file.
2722 * features/mips64-dsp-linux.c: New file.
2723 * regformats/mips-dsp-linux.dat: New file.
2724 * regformats/mips64-dsp-linux.dat: New file.
2725 * mips-linux-nat.c (mips_linux_register_addr): Handle DSP
2726 registers.
2727 (mips64_linux_register_addr): Likewise.
2728 (mips64_linux_regsets_fetch_registers): Likewise.
2729 (mips64_linux_regsets_store_registers): Likewise.
2730 (mips64_linux_fetch_registers): Update call to
2731 mips64_linux_regsets_fetch_registers.
2732 (mips64_linux_store_registers): Update call to
2733 mips64_linux_regsets_store_registers.
2734 (mips_linux_read_description): Probe for DSP registers.
2735 (_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux
2736 and initialize_tdesc_mips64_dsp_linux.
2737 * mips-linux-tdep.c (supply_gregset, mips64_supply_gregset):
2738 Remove padding of no longer used embedded register slots.
2739 * mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros.
2740 (MIPS_RESTART_REGNUM): Redefine enum value.
2741 * mips-tdep.c (mips_generic_reg_names): Remove trailing null
2742 strings.
2743 (mips_tx39_reg_names): Likewise.
2744 (mips_linux_reg_names): New array of register names for Linux
2745 targets.
2746 (mips_register_name): Check for a null pointer in
2747 mips_processor_reg_names and return an empty string.
2748 (mips_register_type): Exclude embedded registers for the IRIX
2749 and Linux ABIs.
2750 (mips_pseudo_register_type): Likewise. Use dynamic numbers to
2751 refer to FP registers, LO, HI, BadVAddr, Cause and PC. Handle
2752 DSP registers.
2753 (mips_stab_reg_to_regnum): Handle DSP accumulators.
2754 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
2755 (mips_gdbarch_init): Likewise. Initialize internal register
2756 indices for the Linux ABI. Use dynamic numbers to refer to
2757 registers, as applicable, while parsing the target description.
2758 * mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets.
2759
263689d8
JB
27602012-03-01 Joel Brobecker <brobecker@adacore.com>
2761
2762 * frame.h (read_frame_register_unsigned): Fix typo in function
2763 description.
2764
f3b4f45c
PA
27652012-03-01 Pedro Alves <palves@redhat.com>
2766
2767 * jit-reader.in [!__cplusplus]
2768 (GDB_DECLARE_GPL_COMPATIBLE_READER): Add missing backslash.
2769
b03a2011
PA
27702012-03-01 Pedro Alves <palves@redhat.com>
2771
2772 * configure.ac (build_warnings): Add -Wmissing-prototypes.
2773 * configure: Regenerate.
2774
70221824
PA
27752012-03-01 Pedro Alves <palves@redhat.com>
2776
2777 * amd64-linux-tdep.c (amd64_linux_record_signal): Make static.
2778 * breakpoint.c (create_exception_master_breakpoint, trace_command)
2779 (ftrace_command, strace_command): Make static.
2780 * d-lang.c (_initialize_d_language): Declare.
2781 * dwarf2expr.c (_initialize_dwarf2expr): Declare.
2782 * dwarf2loc.c (_initialize_dwarf2loc):
2783 * dwarf2read.c (process_psymtab_comp_unit): Make static.
2784 * exec.c (exec_get_section_table): Make static.
2785 * i386-linux-tdep.c (i386_linux_record_signal): Make static.
2786 * infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static.
2787 * inferior.c (remove_inferior_command, add_inferior_command)
2788 (clone_inferior_command): Make static.
2789 * linux-nat.c (linux_nat_thread_address_space)
2790 (linux_nat_core_of_thread): Make static.
2791 * linux-tdep.c (_initialize_linux_tdep): Declare.
2792 * objc-lang.c (_initialize_objc_lang): Declare.
2793 * opencl-lang.c (builtin_opencl_type, opencl_language_arch_info):
2794 Make static.
2795 (_initialize_opencl_language): Declare.
2796 * record.c (_initialize_record): Declare.
2797 * remote.c (demand_private_info, remote_get_tib_address)
2798 (remote_supports_cond_tracepoints)
2799 (remote_supports_fast_tracepoints, remote_get_tracepoint_status):
2800 Make static.
2801 * skip.c (_initialize_step_skip): Declare.
2802 * symtab.c (skip_prologue_using_lineinfo): Make static.
2803 * tracepoint.c (delete_trace_state_variable)
2804 (trace_variable_command, delete_trace_variable_command)
2805 (get_uploaded_tsv, find_matching_tracepoint_location)
2806 (find_matching_tsv, create_tsv_from_upload, get_traceframe_info):
2807 Make static.
2808 * value.c (pack_unsigned_long): Make static.
2809 * varobj.c (varobj_ensure_python_env): Make static.
2810 * windows-tdep.c (_initialize_windows_tdep): Declare.
2811 * xml-syscall.c (make_cleanup_free_syscalls_info): Make static.
2812
33fbcbee
PA
28132012-03-01 Pedro Alves <palves@redhat.com>
2814
2815 * linux-tdep.c (linux_has_shared_address_space): Make static. Add
2816 gdbarch parameter.
2817 (linux_init_abi): Install it as has_shared_address_space gdbarch
2818 callback.
2819
44d0cd3b
PA
28202012-03-01 Pedro Alves <palves@redhat.com>
2821
2822 * observer.c (observer_test_first_notification_function)
2823 (observer_test_second_notification_function)
2824 (observer_test_third_notification_function): Add declarations.
2825
ed01b82c
PA
28262012-03-01 Pedro Alves <palves@redhat.com>
2827
2828 * common/signals.c (default_target_signal_to_host)
2829 (default_target_signal_from_host): Move ...
2830 * arch-utils.c: ... here.
2831 * arch-utils.h (default_target_signal_to_host)
2832 (default_target_signal_from_host): Declare.
2833
2834 * common/signals.c (target_signal_from_command): Move ...
2835 * infrun.c: ... here.
2836 * inferior.h (target_signal_from_command): Declare.
2837 * target.h (target_signal_from_command)
2838 (default_target_signal_from_host, default_target_signal_to_host):
2839 Delete declarations.
2840
2841 * common/signals.c (_initialize_signals): Delete.
2842
c9b87335
PA
28432012-03-01 Pedro Alves <palves@redhat.com>
2844
2845 * jit-reader.in (plugin_is_GPL_compatible): Add declarations for
2846 both __cplusplus and !__cplusplus.
2847
9340a6c0
PA
28482012-03-01 Pedro Alves <palves@redhat.com>
2849
2850 * psymtab.c (find_and_open_source): Delete declaration.
2851 * source.c (find_and_open_source): Move comment ...
2852 * source.h (find_and_open_source): ... to this new declaration.
2853
e451c4a1
PA
28542012-03-01 Pedro Alves <palves@redhat.com>
2855
2856 * inline-frame.c: Include inline-frame.h.
2857
983fb104
PA
28582012-03-01 Pedro Alves <palves@redhat.com>
2859
2860 * tui/tui-data.c (set_gen_win_origin): Delete.
2861 * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration.
2862 * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete.
2863
5fbce5df
PA
28642012-03-01 Pedro Alves <palves@redhat.com>
2865
2866 * remote.c (encode_actions): Delete declaration.
2867 * tracepoint.c (encode_actions): Make extern.
2868 * tracepoint.h (encode_actions): Declare.
2869
49a8461d
PA
28702012-03-01 Pedro Alves <palves@redhat.com>
2871
2872 * python/py-breakpoint.c: Include python.h.
2873 * python/py-continueevent.c (create_continue_event_object): Make
2874 static.
2875 * python/py-lazy-string.c (stpy_get_type): Make static.
2876 * python/py-newobjfileevent.c (create_new_objfile_event_object):
2877 Make static.
2878 * python/py-utils.c (unicode_to_target_python_string): Make
2879 static.
2880 * python/py-value.c: Include python.h.
2881
9079102f
PA
28822012-03-01 Pedro Alves <palves@redhat.com>
2883
2884 * inferior.c (delete_threads_of_inferior): Delete.
2885
a298c5e8
PA
28862012-03-01 Pedro Alves <palves@redhat.com>
2887
2888 Import fallback definitions from glibc.
2889
2890 * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
2891 ps_prochandle): Forward declare.
2892 (ps_err_e): Use glibc's comments.
2893 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
2894 (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
2895 (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup)
2896 (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize)
2897 (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare.
2898 (struct ps_prochandle): Adjust comment.
2899
e3084549
PA
29002012-03-01 Pedro Alves <palves@redhat.com>
2901
2902 * ada-lang.c (ada_modulus_from_name): Delete.
2903 * ada-lex.l (lexer_init): Make static.
2904
ad5f7d6e
PA
29052012-03-01 Pedro Alves <palves@redhat.com>
2906
2907 PR gdb/13767
2908
2909 * frame.c (read_frame_register_unsigned): New.
2910 * frame.h (read_frame_register_unsigned): Declare.
2911 * i387-tdep.c (print_i387_status_word): New parameter `status_p'.
2912 Handle it.
2913 (print_i387_control_word): New parameter `control_p'. Handle it.
2914 (i387_print_float_info): Handle unavailable float registers.
2915
e0a4d108
KS
29162012-03-01 Keith Seitz <keiths@redhat.com>
2917
2918 * linespec.c (decode_line_2): Sort the list of methods
2919 alphabetically before presenting the user with a selection
2920 menu.
2921
122d1940
DE
29222012-03-01 Doug Evans <dje@google.com>
2923
2924 * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
2925 has_namespace_info.
2926 (dwarf2_read_abbrevs): Remove corresponding initialization.
2927
7d74f244
DE
29282012-03-01 Scott J. Goldman <scottjg@vmware.com>
2929
2930 * NEWS: Mention new python command class gdb.COMMAND_USER.
2931 * cli/cli-cmds.c (show_user): Print error when used on a python
2932 command.
2933 (init_cli_cmds): Update documentation strings for "show user" and
2934 "set/show max-user-call-depth" to clarify that it does not apply to
2935 python commands.
2936 * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in
2937 error check.
2938 (gdbpy_initialize_commands): Add COMMAND_USER as a constant in
2939 gdb python api.
2940 * top.c (execute_command): Only execute a user-defined command as a
2941 legacy macro if c->user_commands is set.
2942
e88acd96
TT
29432012-03-01 Tom Tromey <tromey@redhat.com>
2944
2945 * valprint.h (struct generic_val_print_decorations): New.
2946 (generic_val_print): Declare.
2947 * valprint.c (generic_val_print): New function.
2948 * p-valprint.c (p_decorations): New global.
2949 (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM,
2950 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT,
2951 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF,
2952 TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print.
2953 * m2-valprint.c (m2_decorations): New global.
2954 (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC,
2955 TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR,
2956 TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF,
2957 TYPE_CODE_ERROR>: Call generic_val_print.
2958 * f-valprint.c (f_decorations): New global.
2959 (f_val_print): Use print_function_pointer_address.
2960 <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS,
2961 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE,
2962 TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call
2963 generic_val_print.
2964 * c-valprint.c (c_decorations): New global.
2965 (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM,
2966 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL,
2967 TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT,
2968 TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR,
2969 TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print.
2970 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove
2971 case.
2972
d3eab38a
TT
29732012-03-01 Tom Tromey <tromey@redhat.com>
2974
2975 * valprint.c (val_print): Update.
2976 * p-valprint (pascal_val_print): Return void.
2977 * p-lang.h (pascal_val_print): Return void.
2978 * m2-valprint.c (m2_val_print): Return void.
2979 * m2-lang.h (m2_val_print): Return void.
2980 * language.h (struct language_defn) <la_val_print>: Return void.
2981 * language.c (unk_lang_val_print): Return void.
2982 * jv-valprint.c (java_val_print): Return void.
2983 * jv-lang.h (java_val_print): Return void.
2984 * f-valprint.c (f_val_print): Return void.
2985 * f-lang.h (f_val_print): Return void.
2986 * d-valprint.c (d_val_print): Return void.
2987 (dynamic_array_type): Update.
2988 * d-lang.h (d_val_print): Return void.
2989 * c-valprint.c (c_val_print): Return void.
2990 * c-lang.h (c_val_print): Return void.
2991 * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
2992 void.
2993 * ada-lang.h (ada_val_print): Return void.
2994
35c0084b
TT
29952012-03-01 Tom Tromey <tromey@redhat.com>
2996
2997 * value.h (val_print): Return void.
2998 * valprint.c (val_print): Return void.
2999
a1f5dd1b
TT
30002012-03-01 Tom Tromey <tromey@redhat.com>
3001
3002 * value.h (common_val_print): Return void.
3003 * valprint.c (common_val_print): Return void.
3004
8e069a98
TT
30052012-03-01 Tom Tromey <tromey@redhat.com>
3006
3007 * value.h (value_print): Return void.
3008 * valprint.c (value_print): Return void.
3009 * p-valprint.c (pascal_value_print): Return void.
3010 * p-lang.h (pascal_value_print): Return void.
3011 * language.h (struct language_defn) <la_value_print>: Return
3012 void.
3013 * language.c (unk_lang_value_print): Return void.
3014 * jv-valprint.c (java_value_print): Return void.
3015 * jv-lang.h (java_value_print): Return void.
3016 * f-valprint.c (c_value_print): Don't declare.
3017 Include c-lang.h.
3018 * c-valprint.c (c_value_print): Return void.
3019 * c-lang.h (c_value_print): Return void.
3020 * ada-valprint.c (ada_value_print): Return void.
3021 * ada-lang.h (ada_value_print): Return void.
3022
be335936
TT
30232012-03-01 Tom Tromey <tromey@redhat.com>
3024
3025 * value.c (value_primitive_field): Handle virtual base classes.
3026
b0db66a7
TT
30272012-03-01 Tom Tromey <tromey@redhat.com>
3028
3029 * gdbtypes.h (struct vbase): Remove.
3030
132c57b4
TT
30312012-03-01 Tom Tromey <tromey@redhat.com>
3032
3033 * c-valprint.c (print_function_pointer_address): Move...
3034 * valprint.c: ... here. Make non-static.
3035 * m2-valprint.c (print_function_pointer_address): Remove.
3036 * valprint.h (print_function_pointer_address): Declare.
3037
e41eec66
JB
30382012-03-01 Joel Brobecker <brobecker@adacore.com>
3039
3040 * NEWS: Document the fact that one can provide a condition when
3041 creating an Ada exception catchpoint.
3042
19c37f24
TT
30432012-03-01 Tom Tromey <tromey@redhat.com>
3044
3045 * valprint.c (val_print_type_code_flags): Fix placement of
3046 trailing brace.
3047
f0fed3a3
JB
30482012-03-01 Joel Brobecker <brobecker@adacore.com>
3049
3050 * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
3051 (update_files): Do not set MULTILINE_COMMENT_PREFIXES
3052 environment variable before calling update-copyright.
3053
8ba85d85
JB
30542012-03-01 Joel Brobecker <brobecker@adacore.com>
3055
3056 * gnulib/extra/update-copyright: Update to the latest from
3057 gnulib's git repository.
3058 * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
3059 variable to 2 instead of 1.
3060
8219b1e8
JB
30612012-02-29 Joel Brobecker <brobecker@adacore.com>
3062
3063 * varobj.c (c_value_of_variable): Remove dead code.
3064
718cb7da
JB
30652012-02-29 Joel Brobecker <brobecker@adacore.com>
3066
3067 * ada-lex.p (processId): Do not modify already encoded IDs.
3068 Update function documentation.
3069
739593e0
JB
30702012-02-29 Joel Brobecker <brobecker@adacore.com>
3071
3072 * ada-lang.h (ada_find_renaming_symbol): Replace parameter
3073 "name" with "struct symbol *name_sym".
3074 * ada-exp.y (write_var_or_type): Update call to
3075 ada_find_renaming_symbol.
3076 "name" with "struct symbol *name_sym". Adjust Implementation
3077 accordingly. Adjust the function documentation.
3078
852dff6c
JB
30792012-02-29 Joel Brobecker <brobecker@adacore.com>
3080
3081 * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
3082 * ada-lang.c (ada_find_any_type): Add advance declaration.
3083 Make static. Replace ada_find_any_symbol by
3084 ada_find_any_type_symbol.
3085 (ada_find_any_type_symbol): Renames ada_find_any_symbol.
3086 Improve function description. Make static.
3087 (ada_find_renaming_symbol, find_old_style_renaming_symbol):
3088 Replace ada_find_any_symbol by ada_find_any_type_symbol.
3089
1b611343
JB
30902012-02-29 Joel Brobecker <brobecker@adacore.com>
3091
3092 * ada-lang.c (struct tag_args): Delete.
3093 (ada_get_tsd_type): Function body moved up in source file.
3094 (ada_tag_name_1, ada_tag_name_2): Delete.
3095 (ada_get_tsd_from_tag): New function.
3096 (ada_tag_name_from_tsd): New function.
3097 (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
3098 to determine the tag name.
3099
41246937
JB
31002012-02-29 Joel Brobecker <brobecker@adacore.com>
3101
3102 * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
3103 declaration.
3104 * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
3105 function.
3106
ffde82bf
JB
31072012-02-29 Joel Brobecker <brobecker@adacore.com>
3108
3109 * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
3110
2ad01556
JB
31112012-02-29 Joel Brobecker <brobecker@adacore.com>
3112
3113 * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
3114 full searches.
3115
99b1c762
JB
31162012-02-29 Joel Brobecker <brobecker@adacore.com>
3117
3118 * ada-lang.c (constrained_packed_array_type): If there is a
3119 parallel XA type, use it to determine the array index type.
3120
2d4a02ee
JB
31212012-02-29 Joel Brobecker <brobecker@adacore.com>
3122
3123 * ada-valprint.c (ada_val_print_1): If our value is a reference
3124 to an array descriptor, dereference it before converting it
3125 to a simple array.
3126
c48db5ca
JB
31272012-02-29 Joel Brobecker <brobecker@adacore.com>
3128
3129 * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
3130 creating fixed value.
3131 (ada_value_ind, ada_coerce_ref, assign_component)
3132 (ada_evaluate_subexp): Remove call to unwrap_value before
3133 call to ada_to_fixed_value.
3134
2e6fda7d
JB
31352012-02-29 Joel Brobecker <brobecker@adacore.com>
3136
3137 * ada-lang.c (to_fixed_array_type): Set result's type name.
3138
5845583d
JB
31392012-02-29 Joel Brobecker <brobecker@adacore.com>
3140
3141 * ada-lang.c (catch_ada_exception_command_split): Add new
3142 argument cond_string. Add support for condition at end of
3143 "catch exception" commands.
3144 (ada_decode_exception_location): Add new argument cond_string.
3145 Update call to catch_ada_exception_command_split.
3146 (create_ada_exception_catchpoint): Add new argument cond_string.
3147 Set the breakpoint condition if needed.
3148 (catch_ada_exception_command): Update call to
3149 ada_decode_exception_location.
3150 (ada_decode_assert_location): Add function documentation.
3151 Add support for condition at end of "catch assert" command.
3152 (catch_assert_command): Update calls to ada_decode_assert_location
3153 and create_ada_exception_catchpoint.
3154
9a7f938f
JK
31552012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
3156
3157 Fix disp-step-syscall.exp: fork: single step over fork.
3158 * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
3159 (i386_linux_get_syscall_number_from_regcache): ... here, new function
3160 comment, change parameters gdbarch and ptid to regcache. Remove
3161 parameter regcache, initialize gdbarch from regcache here.
3162 (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
3163 New functions.
3164 (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
3165 instead.
3166 * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
3167 'syscall'. Make the 'int' check more strict.
3168
ffdf6de5
JK
31692012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
3170
3171 Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
3172 * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
3173 (i386_linux_intx80_sysenter_syscall_record): ... here.
3174 (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
3175 Use the renamed function name.
3176
c70a6932
JK
31772012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
3178
3179 * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
3180 * breakpoint.c (until_break_command): Likewise.
3181 * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
3182 * infcall.c (call_function_by_hand): Likewise.
3183 * infcmd.c (finish_forward): Likewise.
3184 * infrun.c (insert_exception_resume_breakpoint): Likewise.
3185
05b8a789 31862012-02-28 Tristan Gingold <gingold@adacore.com>
d4cd3da9 3187
d4cd3da9
JB
3188 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
3189 avoid variable assignments inside condition.
3190
6425366c
JK
31912012-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3192
3193 Fix static analysis issue found by cppcheck.
3194 * microblaze-tdep.c (microblaze_extract_return_value): Fix
3195 uninitialized BUF for size 2.
3196
c8cef75f 31972012-02-27 Chris Dearman <chris@mips.com>
a09130f9
PA
3198 Nathan Froyd <froydnj@codesourcery.com>
3199 Maciej W. Rozycki <macro@codesourcery.com>
c8cef75f
MR
3200
3201 * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
3202 (mips16_instruction_has_delay_slot): Likewise.
3203 (mips_segment_boundary): Likewise.
3204 (mips_adjust_breakpoint_address): Likewise.
3205 (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
3206
473347ad 32072012-02-27 Maciej W. Rozycki <macro@mips.com>
a09130f9 3208 Maciej W. Rozycki <macro@codesourcery.com>
473347ad
MR
3209
3210 * infrun.c (handle_inferior_event): Don't proceed through
3211 shared library trampolines if stepping at the machine
3212 instruction level.
3213
cf233303
MR
32142012-02-27 Maciej W. Rozycki <macro@codesourcery.com>
3215
3216 * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
3217 too.
3218
cb2cf4ce
TS
32192012-02-27 Thomas Schwinge <thomas@codesourcery.com>
3220
3221 * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
3222 (sh_stub_unwind_sniffer): New functions.
3223 (sh_stub_unwind): New variable.
3224 (sh_gdbarch_init): Wire everything.
3225
644cebc9
PA
32262012-02-27 Pedro Alves <palves@redhat.com>
3227
3228 * linux-nat.c (pid_is_stopped): Delete, moved to common/.
3229 (linux_nat_post_attach_wait): Adjust to use
3230 linux_proc_pid_is_stopped.
3231 * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
3232 * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
3233 based on pid_is_stopped from both linux-nat.c and
3234 gdbserver/linux-low.c, and renamed.
3235
283002cf
MR
32362012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
3237
3238 * remote.c (remote_watchpoint_addr_within_range): New function.
3239 (init_remote_ops): Use it.
3240
9b3e86b1
MR
32412012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
3242
3243 * target.h (target_watchpoint_addr_within_range): Document macro.
3244
e36930bb
PA
32452012-02-24 Pedro Alves <palves@redhat.com>
3246
3247 * stack.c (set_last_displayed_sal): Issue internal_error instead
3248 of warning, and issue it after clearing the last displayed sal.
3249
883bc8d1
PA
32502012-02-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3251 Pedro Alves <palves@redhat.com>
3252
3253 * breakpoint.c (until_break_command): Install breakpoints after
3254 all frame manipulations.
3255
b775012e
LM
32562012-02-24 Luis Machado <lgustavo@codesourcery.com>
3257
3258 * remote.c (remote_supports_cond_breakpoints): New forward
3259 declaration.
3260 (remote_add_target_side_condition): New function.
3261 (remote_insert_breakpoint): Add target-side breakpoint
3262 conditional if supported.
3263 (remote_insert_hw_breakpoint): Likewise.
3264 (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
3265 hook.
3266
3267 * target.c (update_current_target): Inherit
3268 to_supports_evaluation_of_breakpoint_conditions.
3269 Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
3270
3271 * target.h (struct target_ops)
3272 <to_supports_evaluation_of_breakpoint_conditions>: New field.
3273 (target_supports_evaluation_of_breakpoint_conditions): New #define.
3274
3275 * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
3276 (condition_evaluation_both, condition_evaluation_auto,
3277 condition_evaluation_host, condition_evaluation_target,
3278 condition_evaluation_enums, condition_evaluation_mode_1,
3279 condition_evaluation_mode): New static globals.
3280 (translate_condition_evaluation_mode): New function.
3281 (breakpoint_condition_evaluation_mode): New function.
3282 (gdb_evaluates_breakpoint_condition_p): New function.
3283 (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
3284 (mark_breakpoint_modified): New function.
3285 (mark_breakpoint_location_modified): New function.
3286 (set_condition_evaluation_mode): New function.
3287 (show_condition_evaluation_mode): New function.
3288 (bp_location_compare_addrs): New function.
3289 (get_first_location_gte_addr): New helper function.
3290 (set_breakpoint_condition): Free condition bytecode if locations
3291 has become unconditional. Call mark_breakpoint_modified (...).
3292 (condition_command): Call update_global_location_list (1) for
3293 breakpoints.
3294 (breakpoint_xfer_memory): Use is_breakpoint (...).
3295 (is_breakpoint): New function.
3296 (parse_cond_to_aexpr): New function.
3297 (build_target_condition_list): New function.
3298 (insert_bp_location): Handle target-side conditional
3299 breakpoints and call build_target_condition_list (...).
3300 (update_inserted_breakpoint_locations): New function.
3301 (insert_breakpoint_locations): Handle target-side conditional
3302 breakpoints.
3303 (bpstat_check_breakpoint_conditions): Add comment.
3304 (bp_condition_evaluator): New function.
3305 (bp_location_condition_evaluator): New function.
3306 (print_breakpoint_location): Print information on where the condition
3307 will be evaluated.
3308 (print_one_breakpoint_location): Likewise.
3309 (init_bp_location): Call mark_breakpoint_location_modified (...) for
3310 breakpoint location.
3311 (force_breakpoint_reinsertion): New functions.
3312 (update_global_location_list): Handle target-side breakpoint
3313 conditions.
3314 Reinsert locations that are already inserted if conditions have
3315 changed.
3316 (bp_location_dtor): Free agent expression bytecode.
3317 (disable_breakpoint): Call mark_breakpoint_modified (...).
3318 Call update_global_location_list (...) with parameter 1 for breakpoints.
3319 (disable_command): Call mark_breakpoint_location_modified (...).
3320 Call update_global_location_list (...) with parameter 1 for breakpoints.
3321 (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
3322 (enable_command): mark_breakpoint_location_modified (...).
3323 (_initialize_breakpoint): Update documentation and add
3324 condition-evaluation breakpoint subcommand.
3325
3326 * breakpoint.h: Include ax.h.
3327 (condition_list): New data structure.
3328 (condition_status): New enum.
3329 (bp_target_info) <cond_list>: New field.
3330 (bp_location) <condition_changed, cond_bytecode>: New fields.
3331 (is_breakpoint): New prototype.
3332
3788aec7
LM
33332012-02-24 Luis Machado <lgustavo@codesourcery.com>
3334
3335 * remote.c (remote_state) <cond_breakpoints>: New field.
3336 (PACKET_ConditionalBreakpoints): New enum.
3337 (remote_cond_breakpoint_feature): New function.
3338 (remote_protocol_features): Add new ConditionalBreakpoints entry.
3339 (remote_supports_cond_breakpoints): New function.
3340 (_initialize_remote): Add new packet configuration for
3341 target-side conditional breakpoints.
3342
72895ff6
LM
33432012-02-24 Luis Machado <lgustavo@codesourcery.com>
3344
3345 * NEWS: Mention target-side conditional breakpoint support,
3346 new condition-evaluation breakpoint subcommand and remote
3347 packet extensions.
3348
dea2aa5f
LM
33492012-02-24 Luis Machado <lgustavo@codesourcery.com>
3350
3351 * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
3352 number.
3353
8a8bc27f
TS
33542012-02-24 Thomas Schwinge <thomas@codesourcery.com>
3355
3356 * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
3357 (after_prologue): Remove.
3358
6b446fdf
TT
33592012-02-23 Tom Tromey <tromey@redhat.com>
3360
3361 * jv-valprint.c (java_val_print): Remove dead code.
3362
ef59abfb
TG
33632012-02-23 Tristan Gingold <gingold@adacore.com>
3364
a09130f9
PA
3365 * ada-tasks.c (struct ada_tasks_inferior_data): Add
3366 known_tasks_element and known_tasks_length fields.
3367 (read_known_tasks_array): Change argument type. Use pointer type
3368 and number of elements from DATA. Adjust.
3369 (read_known_tasks_list): Likewise.
3370 (get_known_tasks_addr): Remove.
3371 (ada_set_current_inferior_known_tasks_addr): Renamed to ...
3372 (ada_tasks_inferior_data_sniffer): ... this. Use symtab for element
3373 type and array length. Merge former get_known_tasks_addr code.
ef59abfb 3374
def166f6
JK
33752012-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
3376
3377 PR backtrace/13716
3378 * infcmd.c (finish_forward): New variable frame_id, initialize it, use
3379 it after set_momentary_breakpoint.
3380
aeaa2474
SA
33812012-02-22 Sterling Augustine <saugustine@google.com>
3382
3383 PR 13689:
3384 * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
3385
feea76c2
GB
33862012-02-22 Gary Benson <gbenson@redhat.com>
3387
3388 * dwarf2read.c (dwarf2_read_index): Correct misspelling.
3389 (find_slot_in_mapped_hash): Likewise.
3390
f06e05e0
JK
33912012-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3392
3393 PR build/13638
3394 * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
3395 (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
3396 * configure: Regenerate.
3397
b54a8fd7
PA
33982012-02-21 Tristan Gingold <gingold@adacore.com>
3399 Pedro Alves <palves@redhat.com>
3400
3401 * ia64-tdep.c: Do not include libunwind-ia64.h.
3402 * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
3403 Include libunwind-ia64.h instead of libunwind.h.
3404 * configure.ac (--with-libunwind, $enable_libunwind): Don't check
3405 for libunwind.h existence.
3406 * configure, config.in: Regenerate.
3407
dfcee124
AG
34082012-02-21 Anton Gorenkov <xgsa@yandex.ru>
3409
3410 * c-valprint.c (c_value_print): Use value_rtti_indirect_type
3411 instead of value_rtti_target_type.
3412 * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
3413 instead of value_rtti_target_type.
3414 * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
3415 value_rtti_target_type.
3416 * valops.c (value_ind): Extract function readjust_indirect_value_type.
3417 (value_rtti_target_type): Rename to ...
3418 (value_rtti_indirect_type): ... here and make it indirect. Update
3419 function comment.
3420 * value.c (readjust_indirect_value_type): New function.
3421 (coerce_ref): Support for enclosing type setting for references
3422 with readjust_indirect_value_type.
3423 * value.h (readjust_value_type): New declaration.
3424 (value_rtti_target_type): Rename to ...
3425 (value_rtti_indirect_type): ... here.
3426
02568277
AG
34272012-02-21 Anton Gorenkov <xgsa@yandex.ru>
3428
3429 * MAINTAINERS (Write After Approval): Add myself to the list.
3430
10c07b7e 34312012-02-20 Doug Evans <dje@google.com>
28ee876a 3432
d82ea6a8
DE
3433 * objfiles.c (add_to_objfile_sections): Remove outdated comments.
3434 Rename objfile_p_char parameter to objfilep.
3435 (build_objfile_section_table): Result is now void. All callers
3436 updated.
3437 * objfiles.h (struct objfile): Tweak comments, whitespace.
3438 (build_objfile_section_table): Update.
3439
28ee876a
DE
3440 * elfread.c (elf_symfile_segments): Fix warning text.
3441
24c79950
TT
34422012-02-20 Tom Tromey <tromey@redhat.com>
3443
3444 PR gdb/13498:
3445 * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
3446 particular set of file names once.
3447 (dw2_map_symbol_filenames): Likewise.
3448
3a9b40b6
JK
34492012-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3450
3451 Code cleanup.
3452 * main.c (write_files): Remove the declaration.
3453 (external_editor_command): Move the declaration ...
3454 [GDBTK] (external_editor_command): ... here. Fix the comment.
3455
4d0795ca
TT
34562012-02-20 Tom Tromey <tromey@redhat.com>
3457
3458 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
3459 extraneous block.
3460
637fd620
TG
34612012-02-20 Tristan Gingold <gingold@adacore.com>
3462
3463 * darwin-nat.h (enum darwin_msg_state): Add comments.
3464
6f124894
TG
34652012-02-20 Tristan Gingold <gingold@adacore.com>
3466
3467 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
3468 value.
3469
2e6e3d9c
JB
34702012-20-18 Joel Brobecker <brobecker@adacore.com>
3471
3472 * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
3473 between function description and implementation.
3474
2e8265fd
TT
34752012-02-17 Tom Tromey <tromey@redhat.com>
3476
3477 PR python/12070:
3478 * python/py-event.c (event_object_getset): New global.
3479 (event_object_type): Reference it.
3480 * python/py-type.c (field_object_getset): New global.
3481 (field_object_type): Reference it.
3482 * python/python-internal.h (gdb_py_generic_dict): Declare.
3483 * python/py-utils.c (gdb_py_generic_dict): New function.
3484
8544a150 34852012-02-17 Tristan Gingold <gingold@adacore.com>
6f124894 3486
8544a150 3487 * solib-darwin.c (darwin_current_sos): Check magic and filetype
6f124894 3488
ca193e27
TS
34892012-02-17 Thomas Schwinge <thomas@codesourcery.com>
3490
3491 * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
3492 TYPE_CALLING_CONVENTION annotation.
3493
e5586183
KB
34942012-02-16 Kevin Buettner <kevinb@redhat.com>
3495
3496 * MAINTAINERS: Add rx to target ISA section.
3497 * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
3498 (ALLDEPFILES): Add rx-tdep.c.
3499
7dcd53a0
TT
35002012-02-16 Tom Tromey <tromey@redhat.com>
3501
3502 * symfile.c (symbol_file_add_main_1): Use inferior's
3503 symfile_flags.
3504 * solib.c (solib_read_symbols): Use inferior's symfile_flags.
3505 * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
3506 inferior.
3507 * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
3508 inferior.
3509 (follow_exec): Use inferior's symfile_flags.
3510 * inferior.h (struct inferior) <symfile_flags>: New field.
3511
ddd60447
MF
35122012-02-16 Mike Frysinger <vapier@gentoo.org>
3513
3514 PR gdb/9734:
3515 * remote-sim.c (gdbsim_create_inferior): Call error() when
3516 sim_create_inferior() fails.
3517
b0d32fb6
TG
35182012-02-16 Josh Matthews <josh@joshmatthews.net>
3519
3520 * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
3521
9addecb9
TT
35222012-02-16 Tom Tromey <tromey@redhat.com>
3523
3524 PR c++/13653:
3525 * thread.c (struct current_thread_cleanup) <was_removable>: New
3526 field.
3527 (restore_current_thread_cleanup_dtor): Restore 'removable' field.
3528 (make_cleanup_restore_current_thread): Initialize new field.
3529
a58b110a
KB
35302012-02-15 Kevin Buettner <kevinb@redhat.com>
3531
3532 * MAINTAINERS: Add rl78 to target ISA section.
3533 * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
3534 (ALLDEPFILES): Add rl78-tdep.c.
3535 * NEWS: Mention rl78 as a new target.
3536
4cb6da1c
AR
35372012-02-15 Aleksandar Ristovski <aristovski@qnx.com>
3538
3539 * frame.c (find_frame_sal): Initialize sal->pspace field from frame
3540 data.
3541 * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
3542
3af2590d
TT
35432012-02-15 Tom Tromey <tromey@redhat.com>
3544
3545 PR gdb/12659:
3546 * infcmd.c (registers_info): Print just the current register's
3547 name.
3548
c6910659
TT
35492012-02-15 Tom Tromey <tromey@redhat.com>
3550
3551 * python/py-symbol.c (sympy_value): Use _().
3552
7cee1e54
PA
35532012-02-15 Pedro Alves <palves@redhat.com>
3554
3555 * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
3556 output to be like native targets'.
3557 (remote_pid_to_str): Special case the null ptid.
3558
816338b5
SS
35592012-02-14 Stan Shebs <stan@codesourcery.com>
3560
3561 * NEWS: Mention enable count command.
3562 * breakpoint.h (struct breakpoint): New field enable_count.
3563 * breakpoint.c (enable_breakpoint_disp): Add count argument.
3564 (enable_breakpoint): Add arg to call.
3565 (struct disp_data): New struct.
3566 (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
3567 (do_map_enable_once_breakpoint): Create a struct and pass it.
3568 (do_map_enable_delete_breakpoint): Ditto.
3569 (do_map_enable_count_breakpoint): New function.
3570 (enable_count_command): New function.
3571 (bpstat_stop_status): Decrement enable_count.
3572 (print_one_breakpoint_location): Report enable count.
3573 (_initialize_breakpoint): Add enable count command.
3574
c47a44f4
KB
35752012-02-14 Kevin Buettner <kevinb@redhat.com>
3576
3577 * rl78-tdep.c (reggroups.h): Include.
3578 (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
3579 (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
3580 (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
3581 (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
3582 (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
3583 (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
3584 (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
3585 (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
3586 (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
3587 (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
3588 (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
3589 (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
3590 (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
3591 (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
3592 (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
3593 (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
3594 beginning of register list.
3595 (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
3596 (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
3597 (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
3598 (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
3599 (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
3600 (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
3601 (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
3602 (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
3603 (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
3604 (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
3605 (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
3606 the pseudo registers. Rearrange other pseudo registers too so
3607 that the bank registers appear at the end.
3608 (rl78_register_type): Account for the fact that the byte sized
3609 bank registers are now pseudo-registers.
3610 (rl78_register_name): Rearrange the register name array. Make
3611 initial set of raw banked registers inaccessible.
3612 (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
3613 (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
3614 case for copying bytes back and forth between raw and pseudo
3615 versions of the banked registers. Update other cases to reflect
3616 the changed names.
3617 (rl78_return_value): Update to account for changed names of
3618 raw registers.
3619 (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
3620 rl78_register_sim_regno().
3621
e4569f1e
KB
36222012-02-14 Kevin Buettner <kevinb@redhat.com>
3623
3624 * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
3625 the name parameter being passed to find_pc_partial_function().
3626
7a05aae7
JK
36272012-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
3628
3629 * MAINTAINERS: Step down from being ia64 target maintainer.
3630
11fde611
JK
36312012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
3632
3633 * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
3634 compilation warning.
3635
57008375
JK
36362012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
3637
3638 Fix crash on loaded shlibs without loaded exec_bfd.
3639 * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
3640 (set_section_command): Replace exec_bfd by p->bfd.
3641
ff3c9849
TT
36422012-02-10 Tom Tromey <tromey@redhat.com>
3643
3644 * linespec.c (decode_line_internal): Skip symtabs_from_filename
3645 when we have a C++ qualified name.
3646
db2b9fdd
PA
36472012-02-10 Pedro Alves <palves@redhat.com>
3648
3649 * inferior.c (inferior_pid_to_str): New.
3650 (print_inferior, inferior_command): Use it.
3651
12cd34f3
PA
36522012-02-10 Pedro Alves <palves@redhat.com>
3653
3654 * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
3655 the test CFLAGS.
3656 * configure: Regenerate.
3657
e871429d
JK
36582012-02-10 Jan Kratochvil <jan.kratochvil@redhat.com>
3659
3660 * linespec.c (decode_line_internal): Fix comment correctness.
3661
1916efaf
PA
36622012-02-09 Valery Khromov <valery.khromov@gmail.com>
3663
3664 PR gdb/12953
3665 * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
3666 * amd64bsd-nat.c: Add support for debug registers (adapted from
3667 i386bsd-nat.c).
3668 [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
3669 (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
3670 (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
3671 (amd64bsd_dr_get_control): New functions.
3672 * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
3673 * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
3674 [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
3675 watchpoints initialization.
3676 * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
3677
f4859d94
JK
36782012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
3679
3680 * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
3681 flds_bnds.fields.
3682 (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
3683
c56a97f9
JK
36842012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
3685
3686 * breakpoint.c (bp_location_compare): Fix comment. Reindent the code.
3687
1a119f36
JB
36882012-02-08 Joel Brobecker <brobecker@adacore.com>
3689
3690 * language.h (symbol_name_cmp_ftype): Renames
3691 symbol_name_match_p_ftype.
3692 (struct language_defn)[la_get_symbol_name_cmp]: Renames
3693 la_get_symbol_name_match_p.
3694 * ada-lang.c (ada_get_symbol_name_cmp): Renames
3695 ada_get_symbol_name_match_p. Update comment.
3696 (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
3697 * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
3698 Renames symbol_name_match_p. Update field type.
3699 (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
3700 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
3701 opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
3702 "la_get_symbol_name_cmp" in comments.
3703 * language.c: Likewise.
3704
c71bb1cf
RO
37052012-02-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3706
3707 * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
3708 %eflags offset.
3709 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
3710 (amd64_sol2_gregset32_reg_offs): Likewise.
3711
4b2d20a5
TG
37122012-02-08 Joel Brobecker <brobecker@adacore.com>
3713
3714 * solib-darwin.c (darwin_bfd_open): Make sure that the filename
3715 of the returned BFD is allocated by GDB.
3716
f0823d2c
TT
37172012-02-07 Tom Tromey <tromey@redhat.com>
3718
3719 PR python/12027:
3720 * python/python-internal.h (frame_object_type): Declare.
3721 * python/py-symbol.c (sympy_needs_frame): New function.
3722 (sympy_value): New function.
3723 (symbol_object_getset): Add "needs_frame".
3724 (symbol_object_methods): Add "value".
3725 * python/py-frame.c (frame_object_type): No longer static.
3726
64e7d9dd
TT
37272012-02-07 Tom Tromey <tromey@redhat.com>
3728
3729 PR python/13599:
3730 * python/py-symbol.c (sympy_line): New function.
3731 (symbol_object_getset): Add "line".
3732
1d6b2d2b
TT
37332012-02-07 Tom Tromey <tromey@redhat.com>
3734
3735 * charset.c (find_charset_names): Check 'in' against NULL.
3736
0d5cff50
DE
37372012-02-06 Doug Evans <dje@google.com>
3738
3739 * gdbtypes.h (struct main_type): Change type of name,tag_name,
3740 and fields.name members from char * to const char *. All uses updated.
3741 (struct cplus_struct_type): Change type of fn_fieldlists.name member
3742 from char * to const char *. All uses updated.
3743 (type_name_no_tag): Update.
3744 (lookup_unsigned_typename, lookup_signed_typename): Update.
3745 * gdbtypes.c (type_name_no_tag): Change result type
3746 from char * to const char *. All callers updated.
3747 (lookup_unsigned_typename, lookup_signed_typename): Change type of
3748 name parameter from char * to const char *.
3749 * symtab.h (struct cplus_specific): Change type of demangled_name
3750 member from char * to const char *. All uses updated.
3751 (struct general_symbol_info): Change type of name and
3752 mangled_lang.demangled_name members from char * to const char *.
3753 All uses updated.
3754 (symbol_get_demangled_name, symbol_natural_name): Update.
3755 (symbol_demangled_name, symbol_search_name): Update.
3756 * symtab.c (symbol_get_demangled_name): Change result type
3757 from char * to const char *. All callers updated.
3758 (symbol_natural_name, symbol_demangled_name): Ditto.
3759 (symbol_search_name): Ditto.
3760 (completion_list_add_name): Change type of symname,sym_text,
3761 text,word parameters from char * to const char *.
3762 (completion_list_objc_symbol): Change type of sym_text,
3763 text,word parameters from char * to const char *.
3764 * ada-lang.c (find_struct_field): Change type of name parameter
3765 from char * to const char *.
3766 (encoded_ordered_before): Similarly for N0,N1 parameters.
3767 (old_renaming_is_invisible): Similarly for function_name parameter.
3768 (ada_type_name): Change result type from char * to const char *.
3769 All callers updated.
3770 * ada-lang.h (ada_type_name): Update.
3771 * buildsym.c (hashname): Change type of name parameter
3772 from char * to const char *.
3773 * buildsym.h (hashname): Update.
3774 * dbxread.c (end_psymtab): Change type of include_list parameter
3775 from char ** to const char **.
3776 * dwarf2read.c (determine_prefix): Change result type
3777 from char * to const char *. All callers updated.
3778 * f-lang.c (find_common_for_function): Change type of name, funcname
3779 parameters from char * to const char *.
3780 * f-lang.c (find_common_for_function): Update.
3781 * f-valprint.c (list_all_visible_commons): Change type of funcname
3782 parameters from char * to const char *.
3783 * gdbarch.sh (static_transform_name): Change type of name parameter
3784 and result from char * to const char *.
3785 * gdbarch.c: Regenerate.
3786 * gdbarch.h: Regenerate.
3787 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
3788 of name parameter from char * to const char *.
3789 * jv-lang.c (java_primitive_type_from_name): Ditto.
3790 (java_demangled_signature_length): Similarly for signature parameter.
3791 (java_demangled_signature_copy): Ditto.
3792 (java_demangle_type_signature): Ditto.
3793 * jv-lang.h (java_primitive_type_from_name): Update.
3794 (java_demangle_type_signature): Update.
3795 * objc-lang.c (specialcmp): Change type of a,b parameters
3796 from char * to const char *.
3797 * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
3798 from char * to const char *. All callers updated.
3799 * p-lang.h (is_pascal_string_type): Update.
3800 * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
3801 of name parameter from char * to const char *.
3802 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
3803 * utils.c (fprintf_symbol_filtered): Ditto.
3804 * defs.h (fprintf_symbol_filtered): Update.
3805 * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
3806 * stabsread.h (end_psymtab): Update.
3807 * stack.c (find_frame_funname): Change type of funname parameter
3808 from char ** to const char **.
3809 * stack.h (find_frame_funname): Update.
3810 * typeprint.c (type_print): Change type of varstring parameter
3811 from char * to const char *.
3812 * value.h (type_print): Update.
3813 * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
3814 from char * to const char *. All callers updated.
3815 (xcoff_end_psymtab): Change type of include_list parameter
3816 from char ** to const char **. All callers updated.
3817 (swap_sym): Similarly for name parameter. All callers updated.
3818 * coffread.c (patch_type): Add (char*) cast to xfree parameter.
3819 Use xstrdup.
3820 (process_coff_symbol): Use xstrdup.
3821 * stabsread.c (stabs_method_name_from_physname): Renamed from
3822 update_method_name_from_physname. Change result type from void
3823 to char *. All callers updated.
3824 (read_member_functions): In has_destructor case, store name in objfile
3825 obstack instead of malloc space. In !has_stub case, fix mem leak.
3826
5579a92e
TT
38272012-02-06 Luca Pizzamiglio <luca.pizzamiglio@gmail.com>
3828
3829 * configure: Rebuild.
3830 * configure.ac: Put -L../bfd and -L../libiberty at the front of
3831 LDFLAGS.
3832
9058f767
KB
38332012-02-03 Kevin Buettner <kevinb@redhat.com>
3834
3835 * configure.tgt (rl78-*-elf): New target.
3836 * rl78-tdep.c: New file.
3837
5b37825d
PW
38382012-02-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3839
3840 * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
3841 and continue the loop. Add QUIT statement.
3842
e009ee71
TT
38432012-02-03 Tom Tromey <tromey@redhat.com>
3844
3845 PR gdb/13596:
3846 * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
3847 bfd_lookup_symbol_from_symtab.
3848 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
3849 gdb_bfd_lookup_symbol_from_symtab.
3850
f7e44f65
JB
38512012-02-03 Joel Brobecker <brobecker@adacore.com>
3852
3853 * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
3854 use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
3855 symbol. Add assertion that sym2 is never NULL.
3856
2c02bd72
DE
38572012-02-02 Doug Evans <dje@google.com>
3858
3859 * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
3860 "name" parameter to const char ** from char **. All callers updated.
3861 (find_pc_partial_function): Ditto.
3862 (cache_pc_function_name): Change type to const char * from char *.
3863 * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
3864 (find_pc_partial_function): Update.
3865 * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
3866 type of "name" parameter to const char * from char *.
3867 All uses updated.
3868 * arch-utils.c (generic_in_solib_return_trampoline): Change
3869 type of "name" parameter to const char * from char *.
3870 * arch-utils.h (generic_in_solib_return_trampoline): Update.
3871 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
3872 type of "name" parameter to const char * from char *.
3873 * gdbarch.sh (in_solib_return_trampoline): Ditto.
3874 * gdbarch.c: Regenerate.
3875 * gdbarch.h: Regenerate.
3876 * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
3877 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
3878 * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
3879 type of "name" parameter to const char * from char *.
3880 * skip.c (skip_function_pc): Ditto.
3881 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
3882 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
3883 * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
3884 * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
3885 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
3886 * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
3887 * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
3888 * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
3889 * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
3890
e886a173
PA
38912012-02-02 Pedro Alves <palves@redhat.com>
3892
3893 * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
3894 the current inferior has no execution. Make sure the current
3895 remote process matches gdb's current inferior.
3896
c709a7c2
TT
38972012-02-02 Tom Tromey <tromey@redhat.com>
3898
3899 PR gdb/13405:
3900 * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
3901 read-only memory.
3902
f149aabd
TT
39032012-02-02 Tom Tromey <tromey@redhat.com>
3904
3905 PR gdb/9307:
3906 * symtab.c (lookup_language_this): Set block_found.
3907
03bef283
TT
39082012-02-01 Tom Tromey <tromey@redhat.com>
3909
3910 PR gdb/13431:
3911 * jit.c (struct jit_inferior_data): Rewrite.
3912 (struct jit_objfile_data): New.
3913 (get_jit_objfile_data): New function.
3914 (add_objfile_entry): Update.
3915 (jit_read_descriptor): Return int. Replace descriptor_addr
3916 argument with inf_data. Update. Don't call error.
3917 (jit_breakpoint_re_set_internal): Reorder logic. Update. Look up
3918 descriptor here.
3919 (jit_inferior_init): Don't look up descriptor. Don't call error.
3920 (jit_reset_inferior_data_and_breakpoints)
3921 (jit_inferior_created_observer): Remove.
3922 (jit_inferior_exit_hook): Update.
3923 (jit_executable_changed_observer): Remove.
3924 (jit_event_handler): Update.
3925 (free_objfile_data): Reset inferior data if needed.
3926 (_initialize_jit): Update.
3927
f0bbc364
TT
39282012-02-01 Tom Tromey <tromey@redhat.com>
3929
3930 * jit.c (bfd_open_from_target_memory): Move higher in file.
3931
47c1316c
TG
39322012-02-01 Tristan Gingold <gingold@adacore.com>
3933
3934 * libunwind-frame.c (libunwind_load): Display message if dlopen
3935 failed.
3936
8e704927
GB
39372012-02-01 Gary Benson <gbenson@redhat.com>
3938
09c7a31f 3939 * symtab.h (symbol_found_callback_ftype): New typedef.
8e704927
GB
3940 (iterate_over_symbols): Use the above.
3941 * symtab.c (iterate_over_symbols): Likewise.
3942 * language.h (language_defn->la_iterate_over_symbols): Likewise.
3943 * ada-lang.c (ada_iterate_over_symbols): Likewise.
3944 * linespec.c (iterate_over_all_matching_symtabs): Likewise.
3945 (iterate_name_matcher): Document return values.
3946 (collect_one_symbol): Likewise.
3947 (collect_function_symbols): Likewise.
3948 (collect_symbols): Likewise.
3949
d9680e73
TT
39502012-02-01 Tom Tromey <tromey@redhat.com>
3951
3952 * ada-lang.c (resolve_subexp): Update.
3953 (ada_lookup_symbol_list): Add 'full_search' argument.
3954 (ada_iterate_over_symbols): Pass 0 as full_search argument to
3955 ada_lookup_symbol_list.
3956 (ada_lookup_encoded_symbol): Update.
3957 (get_var_value): Update.
3958 * ada-exp.y (block_lookup): Update.
3959 (write_var_or_type): Update.
3960 (write_name_assoc): Update.
3961 * ada-lang.h (ada_lookup_symbol_list): Update.
3962
72e1143f
TT
39632012-01-31 Tom Tromey <tromey@redhat.com>
3964
3965 * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
3966 comment.
3967
ab2d2ad3
DE
39682012-01-31 Doug Evans <dje@google.com>
3969
3970 * symtab.h: Remove outdated comment.
e9111bf7 3971 (SYMBOL_MATCHES_NATURAL_NAME): Delete.
ab2d2ad3 3972
bc884eba
JB
39732012-02-01 Josh Matthews <josh@joshmatthews.net> (tiny change)
3974
3975 Fix build error in Darwin port.
3976 * i386-darwin-nat.c: Include i386-nat.h.
3977
8fc3fc34
TT
39782012-01-30 Tom Tromey <tromey@redhat.com>
3979
3980 PR breakpoints/13568:
3981 * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
3982 argument. Check for recursive includes.
3983 (dwarf_decode_macros): Create an include hash.
3984
5d853008
ME
39852012-01-30 Michael Eager <eager@eagercon.com>
3986
3987 * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
3988 * ppc-linux-tdep.c: Include glibc-tdep.h.
ab2d2ad3 3989 (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
5d853008
ME
3990 (powerpc_linux_in_plt_stub): New function.
3991 (powerpc_linux_in_dynsym_resolve_code): New function.
3992 (ppc_skip_trampoline_code): New function.
3993 (ppc_linux_init_abi): Use PPC specific functions rather than generic.
3994 Use glibc_skip_solib_resolver.
3995
40478521
JK
39962012-01-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3997
3998 Code cleanup: Make 1440 bytes of data segment read-only.
3999 * arch-utils.c (endian_enum): Make it const char *const [].
4000 * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
4001 Likewise.
4002 * breakpoint.c (always_inserted_enums): Likewise.
4003 * cli/cli-cmds.c (script_ext_enums): Likewise.
4004 * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
4005 enumlist parameter const char *const *.
4006 * cli/cli-decode.h (struct cmd_list_element): Make the enums field
4007 const char *const *.
4008 * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
4009 parameter const char *const *.
4010 * cris-tdep.c (cris_modes): Make it const char *const [].
4011 * filesystem.c (target_file_system_kinds): Likewise.
4012 * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
4013 * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
4014 (can_use_displaced_stepping_enum, scheduler_enums)
4015 (exec_direction_names): Likewise.
4016 * language.c (_initialize_language): Make the type_or_range_names and
4017 case_sensitive_names variables const char *const [].
4018 * mips-tdep.c (mips_abi_strings): Make it const char *const [].
4019 * python/python.c (python_excp_enums): Likewise.
4020 * remote.c (interrupt_sequence_modes): Likewise.
4021 * rs6000-tdep.c (powerpc_vector_strings): Likewise.
4022 * serial.c (logbase_enums): Likewise.
4023 * sh-tdep.c (sh_cc_enum): Likewise.
4024 * stack.c (print_frame_arguments_choices, print_entry_values_choices):
4025 Likewise.
4026 * symtab.c (multiple_symbols_modes): Likewise.
4027 * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
4028 Likewise.
4029 * utils.c (internal_problem_modes): Likewise.
4030
b3b8b934
JK
40312012-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
4032
4033 Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
4034 * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
4035 result.
4036
8c85a4e2
DE
40372012-01-27 Doug Evans <dje@google.com>
4038
4039 * configure.ac (with_python): Fix absolute path handling for win32.
4040 * configure: Regenerate.
4041
78d8b4d7
DE
40422012-01-26 Doug Evans <dje@google.com>
4043
eca864fe
DE
4044 * symtab.c: Whitespace cleanup, no code changes.
4045
7e082072
DE
4046 * symtab.c (lookup_symbol_in_language): Improve comment.
4047 (lookup_symbol_aux): Fix comment.
4048
7dc25483
DE
4049 * psymtab.c (add_psymbol_to_list): Result is now "void".
4050 * psympriv.h (add_psymbol_to_list): Update.
4051
78d8b4d7
DE
4052 * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
4053
4c63965b
JK
40542012-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
4055
4056 Do not open script filenames twice.
4057 * cli/cli-cmds.c (source_script_from_stream): Pass to
4058 source_python_script also STREAM.
4059 * python/py-auto-load.c (source_section_scripts): Pass to
4060 source_python_script_for_objfile also STREAM.
4061 (auto_load_objfile_script): Pass to source_python_script_for_objfile
4062 also INPUT.
4063 * python/python-internal.h (source_python_script_for_objfile): New
4064 parameter file, rename parameter file to filename.
4065 * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
4066 instead if !_WIN32. Update the function comment.
4067 (source_python_script, source_python_script_for_objfile)
4068 (source_python_script): New parameter file, rename parameter file to
4069 filename. Pass FILENAME to python_run_simple_file.
4070 * python/python.h (source_python_script): New parameter file, rename
4071 parameter file to filename.
4072
88f38a04
PA
40732012-01-26 Pedro Alves <palves@redhat.com>
4074
4075 * corelow.c (core_has_fake_pid): Delete.
4076 (core_close): Delete references to `core_has_fake_pid'.
4077 (add_to_thread_list): Adjust to mark the inferior's pid as fake.
4078 (core_open): Delete references to `core_has_fake_pid'.
4079 (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
4080 the removed global.
4081
e078317b
JB
40822012-01-26 Joel Brobecker <brobecker@adacore.com>
4083
4084 * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
4085 Remove language parameter from name_matcher. Adjust the comment.
4086 * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
4087 Remove language parameter.
4088 * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
4089 * linespec.c (iterate_name_matcher): Likewise.
4090 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
4091 name_matcher. Adjust call accordingly.
4092 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
4093 (maintenance_check_symtabs): Adjust type of parameter "fun".
4094 * psymtab.h (maintenance_check_symtabs): Likewise.
4095
74ccd7f5
JB
40962012-01-26 Joel Brobecker <brobecker@adacore.com>
4097
4098 * language.h (symbol_name_match_p_ftype): New typedef.
4099 (struct language_defn): Replace field la_symbol_name_compare
4100 by la_get_symbol_name_match_p.
4101 * ada-lang.c (ada_get_symbol_name_match_p): New function.
4102 (ada_language_defn): Use it.
4103 * linespec.c (struct symbol_matcher_data): New type.
4104 (iterate_name_matcher): Rewrite.
4105 (iterate_over_all_matching_symtabs): Pass a pointer to
4106 a symbol_matcher_data struct to expand_symtabs_matching
4107 instead of just the lookup name.
4108 * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
4109 opencl-lang.c, p-lang.c, language.c: Delete field
4110 la_symbol_name_compare, and replace by NULL for new field
4111 la_get_symbol_name_match_p.
4112 * symfile.h (struct quick_symbol_functions): Update comment.
4113
5d268276
TT
41142012-01-25 Tom Tromey <tromey@redhat.com>
4115
4116 * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
4117 dereferencing.
4118
edcc5120
TT
41192012-01-24 Tom Tromey <tromey@redhat.com>
4120
4121 PR symtab/12406:
4122 * solib.c (update_solib_list): Update the program space's
4123 added_solibs and deleted_solibs fields.
4124 * progspace.h (struct program_space) <added_solibs,
4125 deleted_solibs>: New fields.
4126 (clear_program_space_solib_cache): Declare.
4127 * progspace.c (release_program_space): Call
4128 clear_program_space_solib_cache.
4129 (clear_program_space_solib_cache): New function.
4130 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
4131 bpstat_stop_status. Use handle_solib_event.
4132 * breakpoint.c: Include gdb_regex.h.
4133 (print_solib_event): New function.
4134 (bpstat_print): Use print_solib_event.
4135 (bpstat_stop_status): Add special case for bp_shlib_event.
4136 (handle_solib_event): New function.
4137 (bpstat_what): Use handle_solib_event.
4138 (struct solib_catchpoint): New.
4139 (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
4140 (breakpoint_hit_catch_solib, check_status_catch_solib)
4141 (print_it_catch_solib, print_one_catch_solib)
4142 (print_mention_catch_solib, print_recreate_catch_solib): New
4143 functions.
4144 (catch_solib_breakpoint_ops): New global.
4145 (catch_load_or_unload, catch_load_command_1)
4146 (catch_unload_command_1): New functions.
4147 (internal_bkpt_check_status): Add special case for
4148 bp_shlib_event.
4149 (internal_bkpt_print_it): Use print_solib_event.
4150 (initialize_breakpoint_ops): Initialize
4151 catch_solib_breakpoint_ops.
4152 (_initialize_breakpoint): Register "catch load" and "catch
4153 unload".
4154 * breakpoint.h (handle_solib_event): Declare.
4155 * NEWS: Add entry for "catch load" and "catch unload".
4156
fa864999
TT
41572012-01-24 Tom Tromey <tromey@redhat.com>
4158
4159 * ada-lang.c: Include gdb_vecs.h.
4160 * charset.c: Include gdb_vecs.h.
4161 * tracepoint.h: Include gdb_vecs.h.
4162 * gdb_vecs.h: New file.
4163
f90263c1
TT
41642012-01-24 Pedro Alves <pedro@codesourcery.com>
4165
4166 * breakpoint.c (breakpoint_hit_catch_fork)
4167 (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
4168 (breakpoint_hit_catch_exec): Make use of the `ws' argument.
4169 * infrun.c (inferior_has_forked, inferior_has_vforked)
4170 (inferior_has_execd, inferior_has_called_syscall): Delete.
4171 (handle_syscall_event): Get syscall_number from the execution
4172 control state's wait status.
4173 (wait_for_inferior): Don't clear syscall_number.
4174
09ac7c10
TT
41752012-01-24 Pedro Alves <palves@redhat.com>
4176
4177 * breakpoint.c (bpstat_check_location, bpstat_stop_status,
4178 pc_at_non_inline_function): Add `ws' parameter, and pass it down.
4179 (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
4180 (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
4181 `ws' parameter.
4182 (breakpoint_hit_ranged_breakpoint): Add `ws' parameter. Return
4183 false for events other than TARGET_SIGNAL_TRAP.
4184 (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
4185 Add `ws' parameter.
4186 (bkpt_breakpoint_hit): Add `ws' parameter. Return false for
4187 events other than TARGET_SIGNAL_TRAP.
4188 (tracepoint_breakpoint_hit): Add `ws' parameter.
4189 * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
4190 parameter.
4191 (bpstat_stop_status): Same.
4192 (pc_at_non_inline_function): Same.
4193 * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
4194 to pass the current event's waitstatus to bpstat_stop_status
4195 and pc_at_non_inline_function.
4196
86eb7e95
JK
41972012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
4198
4199 Code cleanup.
4200 * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
4201 Update the function comment for it.
4202 (source_script_with_search): Call make_cleanup_fclose for STREAM.
4203 * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
4204 for STREAM.
4205
a9b3a50f
PA
42062012-01-24 Pedro Alves <palves@redhat.com>
4207
4208 * breakpoint.c (bpstat_stop_status): Moving clearing print_it
4209 outside `bs->stop' block.
4210 (bpstat_what): Rework bp_shlib_event handling.
4211 (internal_bkpt_check_status): If the breakpoint is a
4212 bp_shlib_event, then set bs->stop and bs->print if
4213 stop_on_solib_events is set.
4214
53fe1783
GB
42152012-01-24 Gary Benson <gbenson@redhat.com>
4216
4217 Delete #if 0'd out code.
4218 * stack.c (print_frame_label_vars): Remove.
4219 (catch_info): Likewise.
4220 (_initialize_stack): Remove "info catch" command.
4221 * NEWS: Mention the above.
4222
49c62f2e
PA
42232012-01-24 Pedro Alves <palves@redhat.com>
4224
4225 * remote.c (remote_add_inferior): New `fake_pid_p' parameter. Use
4226 it.
4227 (remote_notice_new_inferior): If the remote end doesn't support
4228 the multiprocess extensions, then the PID is fake.
4229 (add_current_inferior_and_thread): New.
4230 (remote_start_remote): Use it.
4231 (extended_remote_attach_1): Adjust.
4232 (extended_remote_create_inferior_1): Use
4233 add_current_inferior_and_thread.
4234
d0d8b0c6
JK
42352012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
4236
4237 Fix watchpoints to be specific for each inferior.
4238 * breakpoint.c (watchpoint_in_thread_scope): Verify also
4239 current_program_space.
4240 * i386-nat.c (i386_inferior_data_cleanup): New.
4241 (i386_inferior_data_get): Replace variable inf_data_local by an
4242 inferior_data call.
4243 (i386_use_watchpoints): Initialize i386_inferior_data.
4244 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
4245 specific iterate_over_lwps.
4246
4403d8e9
JK
42472012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
4248
4249 Fix watchpoints across inferior fork.
4250 * amd64-linux-nat.c (update_debug_registers_callback): Update the
4251 comment for linux_nat_iterate_watchpoint_lwps.
4252 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
4253 linux_nat_iterate_watchpoint_lwps.
4254 (amd64_linux_prepare_to_resume): New comment on Linux kernel.
4255 * i386-linux-nat.c (update_debug_registers_callback): Update the
4256 comment for linux_nat_iterate_watchpoint_lwps.
4257 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
4258 linux_nat_iterate_watchpoint_lwps.
4259 (i386_linux_prepare_to_resume): New comment on Linux kernel.
4260 * i386-nat.c: Include inferior.h.
4261 (dr_mirror): Remove.
4262 (i386_inferior_data, struct i386_inferior_data)
4263 (i386_inferior_data_get): New.
4264 (i386_debug_reg_state): Use i386_inferior_data_get.
4265 (i386_cleanup_dregs, i386_update_inferior_debug_regs)
4266 (i386_insert_watchpoint, i386_remove_watchpoint)
4267 (i386_stopped_data_address, i386_insert_hw_breakpoint)
4268 (i386_remove_hw_breakpoint): New variable state, use
4269 i386_debug_reg_state instead of DR_MIRROR.
4270 * linux-nat.c (delete_lwp): New declaration.
4271 (num_lwps): Move here from downwards.
4272 (delete_lwp_cleanup): New.
4273 (linux_child_follow_fork): Create new child_lp, call
4274 linux_nat_new_thread and linux_nat_prepare_to_resume before calling
4275 PTRACE_DETACH.
4276 (num_lwps): Move upwards.
4277 (linux_nat_iterate_watchpoint_lwps): New.
4278 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
4279 (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
4280
2992c9a7 42812012-01-24 Joel Brobecker <brobecker@adacore.com>
4282
4283 GDB 7.4 released.
4284
e360902b
PA
42852012-01-23 Pedro Alves <palves@redhat.com>
4286
4287 * top.c (caution): Rename to ...
4288 (confirm): ... this.
4289 (show_caution): Rename to ...
4290 (show_confirm): ... this.
4291 (quit_cover): Adjust.
4292 (init_main): Adjust.
4293 * top.h (caution): Rename to ...
4294 (confirm): ... this.
4295 * utils.c (internal_vproblem, defaulted_query): Adjust.
4296
050a2e1d
PA
42972012-01-23 Pedro Alves <palves@redhat.com>
4298
4299 * top.c (caution): Update comment.
4300 (execute_command): Don't consider the current value of `caution'.
4301
77a35dd8
JK
43022012-01-23 Jan Kratochvil <jan.kratochvil@redhat.com>
4303
4304 * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
4305
a71b5a38
UW
43062012-01-23 Ulrich Weigand <ulrich.weigand@linaro.org>
4307
4308 * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
4309 * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
4310 * target.c (target_fileio_pwrite): Remove buffer address from
4311 debug output.
4312 (target_fileio_pread): Likewise.
4313
d99bd577
UW
43142012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
4315
4316 * NEWS: Document remote "info proc" and "generate-core-file".
4317
35c2fab7
UW
43182012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
4319
4320 * gdbarch.sh (find_memory_regions): New callback.
4321 * gdbarch.c, gdbarch.h: Regenerate.
4322
4323 * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
4324 callback before falling back to target method.
4325
4326 * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
4327 (linux_target_install_ops): No longer install it.
4328
4329 * linux-tdep.c (linux_find_memory_regions): New function.
4330 (linux_init_abi): Install it.
4331
6432734d
UW
43322012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
4333
4334 * gdbarch.sh (make_corefile_notes): New architecture callback.
4335 * gdbarch.c: Regenerate.
4336 * gdbarch.h: Likewise.
4337
4338 * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
4339 before target_make_corefile_notes. If NULL is returned, the
4340 target does not support core file generation.
4341
4342 * linux-nat.c: Include "linux-tdep.h".
4343 (find_signalled_thread, find_stop_signal): Remove.
4344 (linux_nat_do_thread_registers): Likewise.
4345 (struct linux_nat_corefile_thread_data): Likewise.
4346 (linux_nat_corefile_thread_callback): Likewise.
4347 (iterate_over_spus): Likewise.
4348 (struct linux_spu_corefile_data): Likewise.
4349 (linux_spu_corefile_callback): Likewise.
4350 (linux_spu_make_corefile_notes): Likewise.
4351 (linux_nat_collect_thread_registers): New function.
4352 (linux_nat_make_corefile_notes): Replace contents by call to
4353 linux_make_corefile_notes passing linux_nat_collect_thread_registers
4354 as native-only callback.
4355
4356 * linux-tdep.h: Include "bfd.h".
4357 (struct regcache): Add forward declaration.
4358 (linux_collect_thread_registers_ftype): New typedef.
4359 (linux_make_corefile_notes): Add prototype.
4360 * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
4361 "regset.h", and "elf-bfd.h".
4362 (find_signalled_thread, find_stop_signal): New functions.
4363 (linux_spu_make_corefile_notes): Likewise.
4364 (linux_collect_thread_registers): Likewise.
4365 (struct linux_corefile_thread_data): New data structure.
4366 (linux_corefile_thread_callback): New funcion.
4367 (linux_make_corefile_notes): Likewise.
4368 (linux_make_corefile_notes_1): Likewise.
4369 (linux_init_abi): Install it.
4370
3030c96e
UW
43712012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
4372
4373 * gdbarch.sh (info_proc): New callback.
4374 * gdbarch.c, gdbarch.h: Regenerate.
4375
4376 * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
4377 before falling back to the target info_proc callback.
4378
4379 * linux-nat.c: Do not include "cli/cli-utils.h".
4380 (linux_nat_info_proc): Remove.
4381 (linux_target_install_ops): No longer install it.
4382
4383 * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
4384 (read_mapping): New function.
4385 (linux_info_proc): Likewise.
4386 (linux_init_abi): Install it.
4387
145b16a9
UW
43882012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
4389
4390 * defs.h (enum info_proc_what): Moved here from linux-nat.c
4391 * infcmd.c: (info_proc_cmd_1): New function.
4392 (info_proc_cmd): New function, moved here from equivalent routine
4393 orignally in linux-nat.c.
4394 (info_proc_cmd_mappings): Likewise.
4395 (info_proc_cmd_stat): Likewise.
4396 (info_proc_cmd_status): Likewise.
4397 (info_proc_cmd_cwd): Likewise.
4398 (info_proc_cmd_cmdline): Likewise.
4399 (info_proc_cmd_exe): Likewise.
4400 (info_proc_cmd_all): Likewise.
4401 (_initialize_infcmd): Install "info proc" command and subcommands.
4402
4403 * target.h (struct target_ops): Add to_info_proc.
4404 (target_info_proc): Add prototype.
4405 * target.c (target_info_proc): New function.
4406
4407 * procfs.c (procfs_info_proc): Add prototype.
4408 (info_proc_cmd): Rename into ...
4409 (procfs_info_proc): ... this. Update argument types as appropriate
4410 for a to_info_proc implementation. Handle "what" argument.
4411 (procfs_target): Install procfs_info_proc.
4412 (_initialize_procfs): No longer install "info proc" command.
4413
4414 * linux-nat.c: (enum info_proc_what): Remove.
4415 (linux_nat_info_proc_cmd_1): Rename into ...
4416 (linux_nat_info_proc): ... this. Update argument types as appropriate
4417 for a to_info_proc implementation.
4418 (linux_nat_info_proc_cmd): Remove.
4419 (linux_nat_info_proc_cmd_mappings): Likewise.
4420 (linux_nat_info_proc_cmd_stat): Likewise.
4421 (linux_nat_info_proc_cmd_status): Likewise.
4422 (linux_nat_info_proc_cmd_cwd): Likewise.
4423 (linux_nat_info_proc_cmd_cmdline): Likewise.
4424 (linux_nat_info_proc_cmd_exe): Likewise.
4425 (linux_nat_info_proc_cmd_all): Likewise.
4426 (linux_target_install_ops): Install linux_nat_info_proc.
4427 (_initialize_linux_nat): No longer install "info proc" command
4428 and subcommands.
4429
b9e7b9c3
UW
44302012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
4431
4432 * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
4433 * config.in, configure: Regenerate.
4434
4435 * target.h (struct target_ops): Add to_fileio_readlink.
4436 (target_fileio_readlink): Add prototype.
4437 * target.c (target_fileio_readlink): New function.
4438
4439 * inf-child.c: Conditionally include <sys/param.h>.
4440 (inf_child_fileio_readlink): New function.
4441 (inf_child_target): Install it.
4442
4443 * remote.c (PACKET_vFile_readlink): New enum value.
4444 (remote_hostio_readlink): New function.
4445 (init_remote_ops): Install it.
4446 (_initialize_remote): Handle vFile:readlink packet type.
4447
7313baad
UW
44482012-01-20 Pedro Alves <palves@redhat.com>
4449 Ulrich Weigand <ulrich.weigand@linaro.org>
4450
4451 * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
4452 * config.in, configure: Regenerate.
4453
4454 * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
4455 to_fileio_pread, to_fileio_close, to_fileio_unlink.
4456 (target_fileio_open): Add prototype.
4457 (target_fileio_pwrite): Likewise.
4458 (target_fileio_pread): Likewise.
4459 (target_fileio_close): Likewise.
4460 (target_fileio_unlink): Likewise.
4461 (target_fileio_read_alloc): Likewise.
4462 (target_fileio_read_stralloc): Likewise.
4463
4464 * target.c: Include "gdb/fileio.h".
4465 (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
4466 (default_fileio_target): New function.
4467 (target_fileio_open): Likewise.
4468 (target_fileio_pwrite): Likewise.
4469 (target_fileio_pread): Likewise.
4470 (target_fileio_close): Likewise.
4471 (target_fileio_unlink): Likewise.
4472 (target_fileio_close_cleanup): Likewise.
4473 (target_fileio_read_alloc_1): Likewise.
4474 (target_fileio_read_alloc): Likewise.
4475 (target_fileio_read_stralloc): Likewise.
4476
4477 * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
4478 <fcntl.h>, and <unistd.h>.
4479 (inf_child_fileio_open_flags_to_host): New function.
4480 (inf_child_errno_to_fileio_error): Likewise.
4481 (inf_child_fileio_open): Likewise.
4482 (inf_child_fileio_pwrite): Likewise.
4483 (inf_child_fileio_pread): Likewise.
4484 (inf_child_fileio_close): Likewise.
4485 (inf_child_fileio_unlink): Likewise.
4486 (inf_child_target): Install to_fileio routines.
4487
4488 * remote.c (init_remote_ops): Install to_fileio routines.
4489
901f9912
UW
44902012-01-20 Pedro Alves <palves@redhat.com>
4491 Ulrich Weigand <ulrich.weigand@linaro.org>
4492
4493 * remote.c (remote_multi_process_p): Only check for multi-process
4494 protocol feature, do not check for extended protocol.
4495 (remote_supports_multi_process): Check for extended protocol here.
4496 (set_general_process): Likewise.
4497 (extended_remote_kill): Likewise.
4498 (remote_pid_to_str): Likewise.
4499 (remote_query_supported): Always query multiprocess mode.
4500
e714e1bf
UW
45012012-01-20 Pedro Alves <palves@redhat.com>
4502 Ulrich Weigand <ulrich.weigand@linaro.org>
4503
4504 * inferior.h (struct inferior): Add fake_pid_p.
4505 * inferior.c (exit_inferior_1): Clear fake_pid_p.
4506 * remote.c (remote_start_remote): Set fake_pid_p if we have to use
4507 magic_null_ptid since the remote side doesn't provide a real PID.
4508
50897289
TT
45092012-01-19 Tom Tromey <tromey@redhat.com>
4510
4511 * NEWS: Combine the two Python sections.
4512
1afc2033
JK
45132012-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
4514
4515 * target.h (target_close): Update comment on the target's unpush state.
4516
305436e0
PA
45172012-01-19 Pedro Alves <palves@redhat.com>
4518
4519 * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
4520 linux_nat_async directly instead of going through the target
4521 vector.
4522 * target.c (unpush_target): Close target after unpushing it, not
4523 before.
4524
49323895
GB
45252012-01-19 Gary Benson <gbenson@redhat.com>
4526
4527 * mdebugread.c (sort_blocks): Replace integer constants with ones
4528 derived from FIRST_LOCAL_BLOCK.
4529
1db33378
PP
45302012-01-18 Paul Pluzhnikov <ppluzhnikov@google.com>
4531 Jan Kratochvil <jan.kratochvil@redhat.com>
4532
4533 PR gdb/9538
4534 * symfile.c (find_separate_debug_file): New function.
4535 (terminate_after_last_dir_separator): Likewise.
4536 (find_separate_debug_file_by_debuglink): Also try realpath.
4537 * configure.ac (AC_CHECK_FUNCS): Add lstat.
4538 * configure: Regenerate.
4539 * config.in: Regenerate.
4540
f83d8a90
DE
45412012-01-18 Doug Evans <dje@google.com>
4542
4543 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
4544 (main.o): Remove rule.
4545 * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
4546 (--with-sysroot): Rewrite.
4547 * configure: Regenerate.
4548 * config.in: Regenerate.
4549
2dbca4d6
SDJ
45502012-01-18 Sergio Durigan Junior <sergiodj@redhat.com>
4551
4552 * parse.c (initialize_expout): New function.
4553 (reallocate_expout): Likewise.
4554 (parse_exp_in_context): Use `initialize_expout' and
4555 `reallocate_expout' when appropriate.
4556
0695b514
PA
45572012-01-18 Pedro Alves <palves@redhat.com>
4558
4559 * record.c (struct record_breakpoint, record_breakpoint_p)
4560 (record_breakpoints): New.
4561 (record_insert_breakpoint, record_remove_breakpoint): Manage
4562 record breakpoints list. Only remove breakpoints from the
4563 inferior if they had been inserted there in the first place.
4564
136e1c30
DE
45652012-01-17 Doug Evans <dje@google.com>
4566
4567 * linespec.c (decode_line_internal): Don't call symtabs_from_filename
4568 if we know we don't have a file name to look for.
4569
c0bf857d
PA
45702012-01-17 Pedro Alves <palves@redhat.com>
4571
4572 * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
4573 the frame's stop reason is UNWIND_UNAVAILABLE.
4574
b486de60
JK
45752012-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4576
4577 Fix compilation error.
4578 * m2-exp.y (yyerror): Use ANSI C prototype.
4579
d04550a6
SDJ
45802012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
4581
4582 * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
4583 (growbuf_by_size): Likewise.
4584 (yyerror): Likewise.
4585 * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
4586 (modblock): Remove variable (was #if 0'ed).
4587 (parse_number): Convert prototype from K&R to ANSI C.
4588 (yyerror): Likewise.
4589 * objc-exp.y (parse_number): Likewise.
4590 (yyerror): Likewise.
4591 (yylex): Remove #if 0'ed code.
4592 * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
4593 (yyerror): Likewise.
4594
4aac40c8
TT
45952012-01-16 Tom Tromey <tromey@redhat.com>
4596
4597 * NEWS: Add item.
4598 * symtab.h (compare_filenames_for_search): Declare.
4599 * symtab.c (compare_filenames_for_search): New function.
4600 (iterate_over_some_symtabs): Use it.
4601 * symfile.h (struct quick_symbol_functions)
4602 <map_symtabs_matching_filename>: Change spec.
4603 * psymtab.c (partial_map_symtabs_matching_filename): Use
4604 compare_filenames_for_search. Update for new spec.
4605 * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
4606 compare_filenames_for_search. Update for new spec.
4607 * breakpoint.c (clear_command): Use compare_filenames_for_search.
4608
cafec441
TT
46092012-01-16 Tom Tromey <tromey@redhat.com>
4610
4611 PR python/13281:
4612 * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
4613 (struct main_type) <flag_flag_enum>: New field.
4614 * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
4615 * NEWS: Add entries.
4616 * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
4617 enums.
4618 * python/lib/gdb/printing.py (_EnumInstance): New class.
4619 (FlagEnumerationPrinter): Likewise.
4620
983af33b
SDJ
46212012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
4622
4623 * breakpoint.c (create_sals_from_address_default): New function.
4624 (create_breakpoints_sal_default): Likewise.
4625 (decode_linespec_default): Likewise.
4626 (is_marker_spec): Removed.
4627 (strace_marker_p): New function.
4628 (init_breakpoint_sal): Using `strace_marker_p' instead of
4629 `is_marker_spec'.
4630 (create_breakpoint): Call method `create_sals_from_address' from
4631 breakpoint_ops, replacing code that created SALs conditionally
4632 on the type of the breakpoint. Call method `create_breakpoints_sal',
4633 replacing code that created breakpoints conditionally on the type
4634 wanted.
4635 (base_breakpoint_create_sals_from_address): New function.
4636 (base_breakpoint_create_breakpoints_sal): Likewise.
4637 (base_breakpoint_decode_linespec): Likewise.
4638 (base_breakpoint_ops): Add methods
4639 `base_breakpoint_create_sals_from_address',
4640 `base_breakpoint_create_breakpoints_sal' and
4641 `base_breakpoint_decode_linespec'.
4642 (bkpt_create_sals_from_address): New function.
4643 (bkpt_create_breakpoints_sal): Likewise.
4644 (bkpt_decode_linespec): Likewise.
4645 (tracepoint_create_sals_from_address): Likewise.
4646 (tracepoint_create_breakpoints_sal): Likewise.
4647 (tracepoint_decode_linespec): Likewise.
4648 (strace_marker_create_sals_from_address): Likewise.
4649 (strace_marker_create_breakpoints_sal): Likewise.
4650 (strace_marker_decode_linespec): Likewise.
4651 (strace_marker_breakpoint_ops): New variable.
4652 (addr_string_to_sals): Remove `marker_spec'. Call method
4653 `decode_linespec' from breakpoint_ops, replacing code that decoded
4654 an address string into a SAL. Use `strace_marker_p' instead of
4655 `marker_spec'.
4656 (strace_command): Decide whether we are dealing with a static
4657 tracepoint with marker or not. Use the appropriate breakpoint_ops.
4658 (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
4659 * breakpoint.h (linespec_result, linespec_sals): New forward
4660 declarations.
4661 (breakpoint_ops) <create_sals_from_address>,
4662 <create_breakpoints_sal>, <decode_linespec>: New methods.
4663
4795f398
DE
46642012-01-14 Doug Evans <dje@google.com>
4665
4666 * NEWS: Update text for "maint set python print-stack".
4667 It is deprecated in gdb 7.4 and deleted in 7.5.
4668
ee5106fe
EZ
46692012-01-13 Eli Zaretskii <eliz@gnu.org>
4670
4671 * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
4672 including curses.h.
4673
b161e06f
JK
46742012-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
4675
4676 * configure: Regenerate.
4677 * config.in: Regenerate.
4678
85254831
KS
46792012-01-12 Keith Seitz <keiths@redhat.com>
4680
4681 PR mi/10586
4682 * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
4683 (ANONYMOUS_UNION_NAME): Define.
4684 (is_path_expr_parent): New function.
4685 (get_path_expr_parent): New function.
4686 (is_anonymous_child): New function.
4687 (create_child_with_value): If the child is anonymous and without
4688 a name, assign an object name to it.
4689 (c_describe_child): Use get_path_expr_parent to determine
4690 the parent expression.
4691 If there field represents an anonymous struct or union and
4692 has no name, set an appropriate display name and expression.
4693 (cplus_describe_child): Likewise.
4694
620fa63a
PA
46952012-01-12 Pedro Alves <palves@redhat.com>
4696
4697 * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
4698 available when %ebp is found to be zero (outermost).
4699
2efa2c79
AT
47002012-01-11 Andreas Tobler <andreast@fgznet.ch>
4701
4702 * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
4703 an internal gdb_static_assert.
4704 * mi/mi-common.c: Rename static_assert to gdb_static_assert.
4705
88e7d25d
TT
47062012-01-11 Tom Tromey <tromey@redhat.com>
4707
4708 PR gdb/9598:
4709 * breakpoint.c (_initialize_breakpoint): Fix help for "catch
4710 catch" and "catch throw".
4711
72384ba3
PH
47122012-01-11 Paul Hilfinger <hilfingr@adacore.com>
4713
4714 * blockframe.c (block_innermost_frame): Start search from selected
4715 frame, if present, or otherwise the current frame.
4716
4717 * c-exp.y (variable): Update innermost_block for
4718 'block COLONCOLON NAME' clause.
4719 * m2-exp.y (variable): Ditto.
4720 * objc-exp.y (variable): Ditto.
4721
065a711f
TT
47222012-01-10 Tom Tromey <tromey@redhat.com>
4723
4724 PR python/13199:
4725 * python/python.c (finish_python_initialization): Set sys.argv.
4726
f3f5162e
DE
47272012-01-10 Doug Evans <dje@google.com>
4728
4729 * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd". New arg
4730 "want_line_info". All callers updated.
4731 (dwarf_decode_lines_1): New function.
4732 (handle_DW_AT_stmt_list): Add function comment.
4733 New arg "want_line_info". All callers updated.
4734 (read_file_scope,read_type_unit_scope): Move comment from
4735 handle_DW_AT_stmt_list to here.
4736
9934703b
JK
47372012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
4738
4739 Fix regression after libiberty/ update for GCC PR 6057 and others.
4740 * c-exp.y (operator) <OPERATOR DELETE>
4741 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
4742 * cp-name-parser.y (fill_comp, make_operator, make_dtor)
4743 (make_builtin_type, make_name): New variable i, add gdb_assert.
4744 (operator) <OPERATOR NEW>: Update ARGS to 3.
4745 (operator) <OPERATOR DELETE>: Add trailing space.
4746 (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
4747 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
4748 * cp-support.c (cp_canonicalize_string): Check NULL from
4749 cp_comp_to_string, call warning and return.
4750
06b9f45f
JK
47512012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
4752
4753 Fix duplicate .o files after omitting libbfd.a.
4754 * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
4755 (SFILES): Add corelow.c.
4756 (COMMON_OBS): Add corelow.o.
4757 (ALLDEPFILES): Remove corelow.c.
4758 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
4759 * config/alpha/alpha-osf3.mh: Likewise.
4760 * config/alpha/fbsd.mh: Likewise.
4761 * config/arm/nbsdaout.mh: Likewise.
4762 * config/arm/nbsdelf.mh: Likewise.
4763 * config/i386/i386gnu.mh: Likewise.
4764 * config/ia64/hpux.mh: Likewise.
4765 * config/ia64/linux.mh: Likewise.
4766 * config/m32r/linux.mh: Likewise.
4767 * config/m68k/linux.mh: Likewise.
4768 * config/mips/irix5.mh: Likewise.
4769 * config/mips/irix6.mh: Likewise.
4770 * config/pa/hpux.mh: Likewise.
4771 * config/pa/linux.mh: Likewise.
4772 * config/powerpc/aix.mh: Likewise.
4773 * config/sparc/linux.mh: Likewise.
4774 * config/sparc/linux64.mh: Likewise.
4775 * config/sparc/sol2.mh: Likewise.
4776 * config/vax/vax.mh: Likewise.
4777 * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
4778 (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
4779 (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
4780 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
4781 (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
4782 (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
4783 (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
4784 (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
4785 (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
4786 (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
4787 (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
4788 (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
4789 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
4790 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
4791 (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
4792 (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
4793 (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
4794 (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
4795 (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
4796 (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
4797 (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
4798 (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
4799 corelow.o from gdb_target_obs.
4800 * corefile.c (core_target): Update the comment on NULL value.
4801 (core_file_command): Replace error by gdb_assert on CORE_TARGET.
4802 * corelow.c (sniff_core_bfd): Call error instead of warning on zero
4803 MATCHES. Drop YUMMY set on NULL.
4804 (core_close): Do not call exit_inferior_silent on zero PID. Do not
4805 reclaim CORE_DATA if it is already NULL.
4806
34365054
DE
48072012-01-09 Doug Evans <dje@google.com>
4808
4809 * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
4810 * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
4811
696166a3
KS
48122012-01-09 Keith Seitz <keiths@redhat.com>
4813
4814 * breakpoint.c (wrapper.h): Don't include.
4815
8e7b59a5
KS
48162012-01-09 Keith Seitz <keiths@redhat.com>
4817
4818 * Makefile.in (SFILES): Remove wrapper.c.
4819 (HFILES_NO_SRCDIR): Remove wrapper.h.
4820 (COMMON_OBS): Remove wrapper.o.
4821 * cli/cli-interp.c: Don't inlude wrapper.h.
4822 * corelow.c: Likewise.
4823 (core_open): Replace gdb_target_find_new_threads with
4824 TRY_CATCH around target_find_new_threads.
4825 * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
4826 * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
4827 * varobj.c (varobj_create): Likewise for parse_exp_1 and
4828 evaluate_expression.
4829 (varobj_set_value): Likewise for evaluate_expression and
4830 value_assign.
4831 (install_new_variable): Likewise for value_fetch_lazy.
4832 (adjust_value_for_child_access): Likewise for value_ind.
4833 (c_describe_child): Likewise for value_subscript and
4834 value_ind.
4835 (c_value_of_root): Likewise for evaluate_expression.
4836 * wrapper.c: Remove.
4837 * wrapper.h: Remove.
4838
1a4eeb98
DE
48392012-01-09 Doug Evans <dje@google.com>
4840
9ff913ba
DE
4841 * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
4842 partial_read_comp_unit_head. Replace "buffer", "buffer_size" and
4843 "abfd" args with "section". All callers updated.
4844 Error checking code moved ...
4845 (error_check_comp_unit_head): ... here. New function.
4846 (read_and_check_type_unit_head): Renamed from read_type_unit_head.
4847 Delete arg "abfd". New arg "type_offset". All callers updated.
4848 (create_debug_types_hash_table): Simplify by using
4849 read_and_check_type_unit_head.
4850
1a4eeb98
DE
4851 * parser-defs.h (namecopy): Delete.
4852 * parse.c (namecopy, namecopy_size): Move into copy_name.
4853
2e6af8c0
JK
48542012-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
4855
4856 Partially fix duplicate .o files after omitting libbfd.a.
4857 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
4858 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
4859 * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
4860 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
4861 * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
4862 * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
4863 * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
4864
9f2f828a
PA
48652012-01-09 Pedro Alves <palves@redhat.com>
4866
4867 * MAINTAINERS: Update my email address.
4868
4d72c0bc
DE
48692012-01-08 Doug Evans <dje@google.com>
4870
d467dd73
DE
4871 * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
4872 n_type_units. Rename type_comp_units to all_type_units.
4873 All uses updated.
4874 (add_signatured_type_cu_to_table): Renamed from
4875 add_signatured_type_cu_to_list. All callers updated.
4876
4d72c0bc
DE
4877 * gdbtypes.h (struct cplus_struct_type): Delete member
4878 nfn_fields_total. All uses removed.
4879
21b2bd31
DE
48802012-01-06 Doug Evans <dje@google.com>
4881
4882 * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
4883 to top of file.
4884 (dwarf2_find_comp_unit): Delete.
4885 (process_psymtab_comp_unit): Make result "void".
4886 Delete args buffer, info_ptr, buffer_size, and replace with
4887 "section". All callers updated.
4888 (dwarf2_build_psymtabs_hard): Simplify.
4889
bfd189b1
SDJ
48902012-01-06 Sergio Durigan Junior <sergiodj@redhat.com>
4891 Thiago Jung Bauermann <bauerman@br.ibm.com>
4892
4893 * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
4894 before `struct gdb_exception'.
4895 * breakpoint.c (update_global_location_list_nothrow)
4896 (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
4897 * cp-abi.c (value_rtti_type): Likewise.
4898 * cp-support.c (cp_validate_operator): Likewise.
4899 * infrun.c (insert_exception_resume_breakpoint)
4900 (check_exception_resume, keep_going): Likewise.
4901 * mi-interp.c (mi_breakpoint_created)
4902 (mi_breakpoint_modified): Likewise.
4903 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
4904 * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
4905 (ia64_hpux_handle_dld_breakpoint_1): Likewise.
4906
6b07635f
DE
49072012-01-05 Doug Evans <dje@google.com>
4908
0b30b85c
DE
4909 * dwarf2read.c (statement_prologue): Delete, unused.
4910
98714339
DE
4911 * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
4912 * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
4913
6b07635f
DE
4914 * dwarf2read.c (comp_unit_header): Delete, unused.
4915
761f4555
UW
49162012-01-05 Ulrich Weigand <uweigand@de.ibm.com>
4917
4918 * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
4919 * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
4920
2ca0b532
PA
49212012-01-05 Khoo Yit Phang <khooyp@cs.umd.edu>
4922
4923 * infrun.c (normal_stop): Don't skip calling the normal_stop
4924 observers if the thread was doing a multi-step, but stopped for
4925 some reason other than stepping.
4926
50aeff07
PA
49272012-01-05 Pedro Alves <alves.ped@gmail.com>
4928
4929 * cli/cli-decode.h: Add comments.
4930 (CMD_LIST_AMBIGUOUS): Moved to command.h
4931 (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
4932 (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
4933 (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
4934 (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
4935 (add_com, add_com_alias, add_info, add_info_alias)
4936 (complete_on_cmdlist, complete_on_enum, help_list): Remove
4937 declarations.
4938 * command.h: Add and adjust comments.
4939 (CMD_LIST_AMBIGUOUS): Moved here.
4940 (help_cmd, help_cmd_list): Delete declarations.
4941
5953832c
DE
49422012-01-04 Doug Evans <dje@google.com>
4943
e5fe5e75
DE
4944 * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
4945 All callers updated.
4946 (load_full_type_unit): Renamed from read_signatured_type_at_offset.
4947 Replace all arguments with "per_cu". All callers updated.
4948
28dee7f5
DE
4949 * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
4950
23745b47
DE
4951 * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
4952 New arg "per_cu". All callers updated.
4953
5953832c
DE
4954 Delete #if 0'd out code.
4955 * language.c (binop_result_type): Delete.
4956 (simple_type, ordered_type, same_type, integral_type): Delete.
4957 (numeric_type, character_type, string_type, boolean_type): Delete.
4958 (float_type, structured_type): Delete.
4959 * language.h: Update.
4960
0f5b7562
TT
49612012-01-04 Tom Tromey <tromey@redhat.com>
4962
4963 * python/py-value.c (valpy_binop): Initialize 'res_val'.
4964
78218f56
JB
49652012-01-04 Joel Brobecker <brobecker@adacore.com>
4966
4967 * corefile.c (close_exec_file): Delete.
4968 (reopen_exec_file): Remove commented out code that seems related
4969 to close_exec_file, which is being deleted here.
4970 * inferior.h (close_exec_file): Delete.
4971 * fork-child.c (fork_inferior): Remove call to fork_inferior.
4972
0fcd72ba
JB
49732012-01-04 Joel Brobecker <brobecker@adacore.com>
4974
4975 * ada-lang.c: #include "cli/cli-utils.h".
4976 (get_selections): Use skip_spaces.
4977 (ada_get_next_arg): Use skip_spaces and skip_to_space.
4978 (catch_ada_exception_command_split): Use skip_spaces.
4979 (ada_decode_assert_location): Likewise.
4980
1dabb4c4
JB
49812012-01-04 Joel Brobecker <brobecker@adacore.com>
4982
4983 * linespec.c (decode_line_internal): Check for C++ or Java
4984 compound constructs only if the current language is C, C++
4985 or Java.
4986
5931a2fa
JK
49872012-01-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4988
4989 Revert:
4990 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4991 Joel Brobecker <brobecker@adacore.com>
4992 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
4993 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
4994 3 times.
4995 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
4996 fall through into AT_ENTRY_POINT.
4997 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
4998 DUMMY_ADDR with it.
4999 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
5000 PPC_INSN_SIZE skip to 3 times.
5001
1a2da5ee
JB
50022012-01-04 Joel Brobecker <brobecker@adacore.com>
5003
5004 * linespec.c (add_minsym): Preserve function descriptors.
5005
8645ff69
UW
50062012-01-04 Ulrich Weigand <uweigand@de.ibm.com>
5007
5008 * breakpoint.c (all_locations_are_pending): Consider locations
5009 in program spaces executing during startup pending as well.
5010
0b302171
JB
50112012-01-04 Joel Brobecker <brobecker@adacore.com>
5012
5013 Copyright year update in most files of the GDB Project.
5014
8ba098ad
JB
50152012-01-04 Joel Brobecker <brobecker@adacore.com>
5016
5017 * copyright.sh: Delete.
5018 * copyright.py: Rewrite.
5019
09c01c30
JB
50202012-01-04 Joel Brobecker <brobecker@adacore.com>
5021
5022 * gnulib/extra/update-copyright: New file, imported from gnulib.
5023
3c36c0af
JB
50242012-01-04 Joel Brobecker <brobecker@adacore.com>
5025
5026 * README (Copyright and License Notices): New section.
5027
888fe1e1
TT
50282012-01-03 Tom Tromey <tromey@redhat.com>
5029
5030 PR python/12533:
5031 * python/py-value.c (valpy_dereference, valpy_get_address
5032 valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
5033 (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
5034 (valpy_absolute, valpy_richcompare): Free intermediate values.
5035
6e681866
JB
50362011-01-03 Joel Brobecker <brobecker@adacore.com>
5037
5038 * ada-lang.c: Reformat the copyright notice.
5039
0cd09acb
JK
50402012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5041
5042 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
5043 * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
5044 (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
5045 (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
5046 Revert this part of:
5047 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5048 Build gdb directly from *.o files not using libgdb.a.
5049 * Makefile.in (COMMON_OBS): Remove solib-target.o.
5050
12c3e59c
JB
50512012-01-02 Joel Brobecker <brobecker@adacore.com>
5052
5053 * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
5054 gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
5055 Reformat the copyright header.
5056
11bf1490
JK
50572012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5058
5059 Revert this part of:
5060 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5061 Remove the gdbtui binary.
5062 * gdb.c (main): Remove args.interpreter_p initialization.
5063 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
5064 * main.h (struct captured_main_args): Remove interpreter_p.
5065
1fef196f
JB
50662012-01-02 Joel Brobecker <brobecker@adacore.com>
5067
5068 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
5069
67827812
JB
50702012-01-02 Joel Brobecker <brobecker@adacore.com>
5071
5072 * top.c (print_gdb_version): Update copyright year.
5073
a4d0b831
YQ
50742012-01-02 Yao Qi <yao@codesourcery.com>
5075
5076 * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
5077
b5914469
JK
50782012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5079 Joel Brobecker <brobecker@adacore.com>
5080
5081 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
5082 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
5083 3 times.
5084 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
5085 fall through into AT_ENTRY_POINT.
5086 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
5087 DUMMY_ADDR with it.
5088 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
5089 PPC_INSN_SIZE skip to 3 times.
5090
8da828f7
JK
50912012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5092
5093 * amd64-linux-nat.c (update_debug_registers_callback): New comment on
5094 the return value.
5095 * i386-linux-nat.c (update_debug_registers_callback): Likewise.
5096
8574e74b
JK
50972012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5098
5099 Build gdb directly from *.o files not using libgdb.a.
5100 * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
5101 (COMMON_OBS): Remove solib-target.o.
5102 (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
5103 (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
5104 (LIBGDB_OBS, libgdb.a): Move it above.
5105 * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
5106 (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
5107 (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
5108 (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
5109 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
5110 (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
5111 (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
5112 (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
5113 (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
5114 (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
5115 (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
5116 (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
5117 (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
5118 (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
5119 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
5120 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
5121 (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
5122 (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
5123 (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
5124 (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
5125 (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
5126 (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
5127 (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
5128 (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
5129 (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
5130 (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
5131 (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
5132
217bff3e
JK
51332012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5134
5135 Remove the gdbtui binary.
5136 * .gitignore (/gdbtui): Remove.
5137 * Makefile.in (TUI): Remove.
5138 (SUBDIR_TUI_OBS): Remove tui-main.o.
5139 (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
5140 (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
5141 (tui-main.o): Remove.
5142 (all_object_files): Remove tui-main.o.
5143 * NEWS: New note for the gdbtui removal.
5144 * configure: Rebuilt.
5145 * configure.ac: No longer add all-tui, clean-tui, install-tui and
5146 uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
5147 CONFIG_UNINSTALL respectively.
5148 * gdb.c (main): Remove args.interpreter_p initialization.
5149 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
5150 * main.h (struct captured_main_args): Remove interpreter_p.
5151 * tui/tui-main.c: Remove.
5152
9cdd5dbd
DE
51532012-01-01 Doug Evans <dje@google.com>
5154
bb5ed363
DE
5155 * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
5156 (dwarf2_physname, read_import_statement): Ditto.
5157 (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
5158 (process_structure_scope read_subroutine_type): Ditto.
5159 (read_typedef, load_partial_dies, read_partial_die): Ditto.
5160 (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
5161 (dwarf2_fetch_die_location_block): Ditto.
5162 (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
5163
a0f42c21
DE
5164 * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
5165 All callers updated.
5166 (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
5167 (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
5168 (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
5169
2dc860c0
DE
5170 * dwarf2read.c (load_cu): Move assert to more useful location.
5171
68dc6402
DE
5172 * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
5173 All callers updated.
5174
9cdd5dbd
DE
5175 * dwarf2read.c (dwarf2_per_objfile): Add comment.
5176 (dwarf2_elf_names): Minor reformat.
5177 (dwarf2_per_cu_data): Tweak comment.
5178 (dwarf2_read_section): Fix comment.
5179 (create_all_comp_units): Fix comment.
5180 (load_full_comp_unit): Fix comment.
5181 (process_full_comp_unit): Fix comment.
5182 (read_signatured_type): Fix comment.
5183
0c10e53e 5184For older changes see ChangeLog-2011.
c906108c
SS
5185\f
5186Local Variables:
5187mode: change-log
5188left-margin: 8
5189fill-column: 74
5190version-control: never
57da7796 5191coding: utf-8
c906108c 5192End:
This page took 3.321302 seconds and 4 git commands to generate.