mips: Switch inferior function calls to ON_STACK method.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
2c76a0c7
JB
12012-05-09 Joel Brobecker <brobecker@adacore.com>
2
3 * mips-tdep.c (mips_push_dummy_code): New function.
4 (mips_gdbarch_init): Set the gdbarch call_dummy_location to
5 ON_STACK and install mips_push_dummy_code as our gdbarch
6 push_dummy_code routine.
7
9401a810
PA
82012-05-09 Pedro Alves <palves@redhat.com>
9
10 * target.c (set_maintenance_target_async_permitted): Rename to ...
11 (set_target_async_command): ... this.
12 (show_maintenance_target_async_permitted): Rename to ...
13 (show_target_async_command): ... this.
14 (initialize_targets): Adjust.
15
3929b321
DE
162012-05-08 Doug Evans <dje@google.com>
17
18 * go-exp.y (classify_name): Add missing assignment of fields of
19 yylval.ssym.
20
c41535fd
EZ
212012-05-08 Eli Zaretskii <eliz@gnu.org>
22
23 Display the ">" prompt in interactive mode while reading canned
24 commands, even when the current interpreter is MI.
25
26 * interps.c (interp_set_temp): New function.
27
28 * interps.h (interp_set_temp): Add prototype.
29
30 * cli/cli-script.c (restore_interp): New cleanup function.
31 (read_command_lines): Temporarily override the current interpreter
32 with CLI and arrange for restoring the original one.
33
c0749c4d
JS
342012-05-12 Joel Sherrill <joel.sherrill@oarcorp.com>
35
36 * microblaze-rom.c (_initialize_picobug_rom): Add prototype.
37
d7333987
SDJ
382012-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
39
40 * probe.c (parse_probes): Move conditional to check for
41 debuginfo files from here...
42 * stap-probe.c (stap_get_probes): ... to here.
43
649e6d92
MK
442012-05-07 Mark Kettenis <kettenis@gnu.org>
45 H.J. Lu <hongjiu.lu@intel.com>
46
47 * amd64-tdep.c (amd64_analyze_prologue): Additionally check for
48 `movl %esp, %ebp' for the X32 ABI.
49
f39c6ffd
TT
502012-05-07 Tom Tromey <tromey@redhat.com>
51
52 * dwarf2read.c (dwarf_tag_name): Return const char *. Use
53 get_DW_TAG_name.
54 (dwarf_attr_name): Return const char *. Use get_DW_AT_name.
55 (dwarf_form_name): Return const char *. Use get_DW_FORM_name.
56 (dwarf_stack_op_name): Remove.
57 (dwarf_cfi_name): Return const char *. Use get_DW_ATE_name.
58 (decode_locdesc): Use get_DW_OP_name.
59 * dwarf2loc.c (unimplemented): Use get_DW_OP_name.
60 (dwarf2_compile_expr_to_ax): Likewise.
61 (disassemble_dwarf_expression): Likewise.
62 * dwarf2expr.h: (dwarf_stack_op_name): Remove.
63
1e1f6591
CLT
642012-05-07 Chung-Lin Tang <cltang@codesourcery.com>
65
66 * sh-linux-tdep.c: Include trad-frame.h and tramp-frame.h.
67 (sh_linux_sigtramp_cache): New function.
68 (sh_linux_sigreturn_init): New function.
69 (sh_linux_rt_sigreturn_init): New function.
70 (SH_MOVW,SH_TRAP,SH_OR_R0_R0): New symbols for instruction
71 patterns.
72 (SH_NR_SIGRETURN,SH_NR_RT_SIGRETURN): New symbols for sigreturn
73 syscall codes.
74 (sh_linux_sigreturn_tramp_frame): New tramp_frame definition.
75 (sh_linux_rt_sigreturn_tramp_frame): Likewise.
76 (sh_linux_init_abi): Add init calls to register new tramp_frame
77 definitions under 32-bit SH, update comments.
78
545c08b4
PA
792012-05-07 Pedro Alves <palves@redhat.com>
80
daac165e
PA
81 PR gdb/10952
82
545c08b4
PA
83 * amd64-linux-tdep.c: Include glibc-tdep.h.
84 (amd64_linux_init_abi): Install glibc_skip_solib_resolver as
85 gdbarch_skip_solib_resolver callback.
86
af2c1515
JK
872012-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
88
89 * auto-load.c (set_auto_load_safe_path): Reset AUTO_LOAD_SAFE_PATH
90 back to DEFAULT_AUTO_LOAD_SAFE_PATH if it is being set to "".
91 (show_auto_load_safe_path): Check any-directory by comparison with "/".
92 (add_auto_load_safe_path): Change the error message.
93 (_initialize_auto_load): Change the "safe-path" help text.
94 * configure: Regenerate
95 * configure.ac (--without-auto-load-safe-path): Set
96 WITH_AUTO_LOAD_SAFE_PATH to /.
97
1067f998
SDJ
982012-05-05 Sergio Durigan Junior <sergiodj@redhat.com>
99
100 * stap-probe.h: Do not include unecessary `probe.h'.
101
45dfa85a
AM
1022012-05-05 Alan Modra <amodra@gmail.com>
103
104 * elfread.c (elf_symtab_read): Use bfd_abs_section_ptr and
105 bfd_und_section_ptr.
106 * machoread.c (macho_symtab_add_minsym): Use bfd_abs_section_ptr
107 and bfd_com_section_ptr.
108
cf093994
JB
1092012-05-04 Joel Brobecker <brobecker@adacore.com>
110
762ebb75 111 * MAINTAINERS (Past Maintainers): Add Chris Faylor.
cf093994 112
d40dc7a8
JB
1132012-05-04 Joel Brobecker <brobecker@adacore.com>
114
115 * windows-nat.h (segment_register_p_ftype): New typedef.
116 (windows_set_segment_register_p): Add declaration.
117 * windows-nat.c (segment_register_p): New static global.
118 (windows_set_segment_register_p): New function.
119 (do_windows_fetch_inferior_registers): Add special handling
120 for segment registers.
121 * amd64-windows-nat.c: #include "amd64-tdep.h".
122 (amd64_windows_segment_register_p): New function.
123 (_initialize_amd64_windows_nat): Call windows_set_segment_register_p.
124 * i386-windows-nat.c: #include "i386-tdep.h".
125 (i386_windows_segment_register_p): New function.
126 (_initialize_i386_windows_nat): Call windows_set_segment_register_p.
127
52b3699b
TG
1282012-05-04 Tristan Gingold <gingold@adacore.com>
129
130 * printcmd.c (set_command): Emit a warning if the expression is not
131 an assignment.
132
94c74239
JB
1332012-05-03 Joel Brobecker <brobecker@adacore.com>
134
135 * nto-procfs.c (procfs_find_new_threads, procfs_pid_to_str):
136 Make static.
137
fcf57f19
SDJ
1382012-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
139
140 * stap-probe.c (stap_is_operator): Change declaration.
141 (stap_get_opcode): Change return value.
142 (stap_parse_argument_1): Update calls to `stap_get_opcode' and
143 `stap_parse_argument_1'.
144
27d2932e
PA
1452012-05-03 Pedro Alves <pedro@codesourcery.com>
146
147 * infrun.c (displaced_step_fixup): Add "displaced:" prefix to
148 debug log.
149
a20ee7a4
SCR
1502012-05-03 Siva Chandra Reddy <sivachandra@google.com>
151
152 Add two new methods global_block and static_block to gdb.Symtab
153 objects.
154 * NEWS (Python scripting): Add entry about the new methods.
155 * python/py-symtab.c (stpy_global_block): New function which
156 implements the gdb.Symtab.global_block() method.
157 (stpy_static_block): New function which implements the
158 gdb.Symtab.static_block() method.
159 (symtab_object_methods): Add entries for the two new methods.
160
943cb756
DE
1612012-05-03 Doug Evans <dje@google.com>
162
163 * dwarf2read.c (dw2_find_symbol_file): Don't crash if there are no
164 files.
165
f4644a3f
YQ
1662012-05-03 Yao Qi <yao@codesourcery.com>
167
168 * i386-tdep.c (i386_fetch_pointer_argument): Remove extra
169 space.
170 (i386_process_record): Ditto.
171
ef61f180
JB
1722012-05-02 Joel Brobecker <brobecker@adacore.com>
173
174 * infcall.c (unwind_on_signal_p): Make static.
175
02f1df11
JB
1762012-05-02 Joel Brobecker <brobecker@adacore.com>
177
178 * sol-thread.c (solaris_pid_to_str): Make static.
179 (_initialize_sol_thread): Add prototype.
180
39023530
JB
1812012-05-02 Joel Brobecker <brobecker@adacore.com>
182
183 * sol-thread.c (procfs_pid_to_str): Delete extern declaration.
184
c6b0c501
CF
1852012-05-02 Christopher Faylor <me.cygwin2012@cgf.cx>
186
187 * MAINTAINERS: Remove myself.
188
1ef71717
JK
1892012-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
190
191 Fix --without-auto-load-safe-path for MS-Windows host platform.
192 * auto-load.c (filename_is_in_dir): Return 1 for DIR_LEN 0.
193
b31b86a7
EZ
1942012-05-02 Eli Zaretskii <eliz@gnu.org>
195
196 * gdb_curses.h: Undefine KEY_EVENT before including curses
197 headers. Move "#undef MOUSE_MOVED" before any curses header
198 inclusion.
199
777532fc
SDJ
2002012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
201
202 * features/i386/i386-mmx-linux.c: Regenerate.
203 * features/rs6000/powerpc-32.c: Likewise.
204 * features/rs6000/powerpc-32l.c: Likewise.
205 * features/rs6000/powerpc-403.c: Likewise.
206 * features/rs6000/powerpc-403gc.c: Likewise.
207 * features/rs6000/powerpc-405.c: Likewise.
208 * features/rs6000/powerpc-505.c: Likewise.
209 * features/rs6000/powerpc-601.c: Likewise.
210 * features/rs6000/powerpc-602.c: Likewise.
211 * features/rs6000/powerpc-603.c: Likewise.
212 * features/rs6000/powerpc-604.c: Likewise.
213 * features/rs6000/powerpc-64.c: Likewise.
214 * features/rs6000/powerpc-64l.c: Likewise.
215 * features/rs6000/powerpc-750.c: Likewise.
216 * features/rs6000/powerpc-860.c: Likewise.
217 * features/rs6000/powerpc-e500.c: Likewise.
218 * features/rs6000/powerpc-e500l.c: Likewise.
219 * features/rs6000/powerpc-isa205-32l.c: Likewise.
220 * features/rs6000/powerpc-isa205-64l.c: Likewise.
221 * features/rs6000/rs6000.c: Likewise.
222
d71871bc
SDJ
2232012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
224
225 * i386-tdep.c (i386_stap_parse_special_token) <s>: Remove unused
226 variable.
227 * stap-probe.c (stap_parse_single_operand) <reg_suffix,
228 reg_ind_suffix, reg_suffix_len, reg_ind_suffix_len>: Likewise.
229 (stap_parse_argument) <e>: Likewise.
230 (handle_stap_probe) <byte_order>: Likewise.
231
fd820528
DE
2322012-04-30 Doug Evans <dje@google.com>
233
234 * dwarf2read.c (init_cutu_and_read_dies): Renamed from
235 init_and_read_dies_worker. All callers updated.
236 (init_cu_and_read_dies, init_tu_and_read_dies): Delete. All calls
237 replaced with init_cutu_and_read_dies.
238 (load_partial_comp_unit): Pass 1 for use_existing_cu.
239 (find_partial_die): Remove FIXME. Don't free current CU.
240
ec3f619d 2412012-04-30 Sterling Augustine <saugustine@google.com>
be36f02d
SA
242
243 * contrib: New directory.
244 * contrib/test_pubnames_and_indexes.py: New file.
245
fceca515
DE
2462012-04-30 Doug Evans <dje@google.com>
247
248 * dwarf2read.c (dwarf_decode_macros): New arg section_name.
249 All callers updated.
250 (init_cu_die_reader): Verify the section is non-empty.
251 (dwarf_decode_line_header): Don't dereference section->asection
252 until we know the section is present.
253
311fe7e1
SDJ
2542012-04-29 Sergio Durigan Junior <sergiodj@redhat.com>
255
256 * tracepoint.c (start_tracing, stop_tracing): Checking for NULL
257 probes.
258
5977971a
YQ
2592012-04-29 Yao Qi <yao@codesourcery.com>
260
261 * gdb-code-style.el: New hook gdb-markup-hook
262 and gdb-comment-hook.
263
dee91e82
DE
2642012-04-28 Doug Evans <dje@google.com>
265
3019eac3
DE
266 Initial support for Fission. http://gcc.gnu.org/wiki/DebugFission
267 * symfile.c (default_symfile_relocate): Use sectp->owner instead of
268 objfile->obfd.
269 * symfile.h (dwarf2_debug_sections): New member addr.
270 * dwarf2expr.c (execute_stack_op): New case DW_OP_GNU_addr_index.
271 (ctx_no_get_addr_index): New function.
272 * dwarf2expr.h (dwarf_expr_context_funcs): New member get_addr_index.
273 (ctx_no_get_addr_index): Declare.
274 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Update.
275 * dwarf2loc.c (dwarf_expr_get_addr_index): New function.
276 (dwarf_expr_ctx_funcs): Update.
277 (needs_get_addr_index): New function.
278 (needs_frame_ctx_funcs): Update.
279 * dwarf2loc.h (dwarf2_read_addr_index): Declare.
280 * dwarf2read.c: #include "gdbcore.h".
281 (dwarf2_per_objfile): New members addr, dwo_files.
282 (dwarf2_elf_names): Add entry for addr.
283 (struct dwo_section_names): New type.
284 (dwo_section_names): New static global.
285 (dwarf2_cu): New members dwo_unit, addr_base, have_addr_base.
286 (dwarf2_per_cu_data): New member is_debug_types, all boolean uses of
287 old debug_types_section member updated to use this.
288 Rename member debug_types_section to info_or_types_section,
289 all uses updated.
290 (signatured_type): Rename member type_offset to type_offset_in_tu,
291 all uses updated. New member type_offset_in_section.
292 (struct dwo_sections): New type.
293 (struct dwo_unit): New type.
294 (struct dwo_file): New type.
295 (die_reader_specs): New member dwo_file.
296 (dwarf2_locate_sections): Watch for .debug_addr.
297 (zlib_decompress_section): Use sectp->owner instead of objfile->obfd.
298 (dwarf2_read_section): Get bfd of section from bfd's asection,
299 instead of objfile.
300 (create_cus_from_index): Initialize the_cu->info_or_types_section.
301 (create_signatured_type_table_from_index): Initialize
302 sig_type->info_or_types_section.
303 (dw2_get_file_names): Statement lists for type units with DWO files
304 live in the DWO file.
305 (create_debug_types_hash_table): New function.
306 (create_all_type_units): Rewrite.
307 (init_cu_die_reader): New arg dwo_file, all callers updated.
308 (init_and_read_dies_worker): Get section from
309 this_cu->info_or_types_section. Set sig_type->type_offset_in_section.
310 Watch for DW_AT_GNU_dwo_name and if present lookup the file and
311 continue reading the CU/TU from there.
312 (init_cutu_and_read_dies_no_follow): New arg dwo_file, all callers
313 updated. Get section from this_cu->info_or_types_section.
314 (create_all_comp_units): Initialize this_cu->info_or_types_section.
315 (skip_one_die): New cases DW_FORM_GNU_addr_index,
316 DW_FORM_GNU_str_index.
317 (hash_dwo_file, eq_dwo_file): New functions.
318 (allocate_dwo_file_hash_table): New function.
319 (hash_dwo_unit, eq_dwo_unit): New functions.
320 (allocate_dwo_unit_table): New function.
321 (dwarf2_locate_dwo_sections): New function.
322 (struct create_dwo_info_table_data): New type.
323 (create_debug_info_hash_table_reader): New function.
324 (create_debug_info_hash_table): New function.
325 (try_open_dwo_file, open_dwo_file, init_dwo_file): New function.
326 (lookup_dwo_file): New function.
327 (lookup_dwo_comp_unit, lookup_dwo_type_unit): New functions.
328 (free_dwo_file, free_dwo_file_cleanup): New functions.
329 (free_dwo_file_from_slot, free_dwo_files): New functions.
330 (dwarf2_get_pc_bounds): Handle DW_FORM_GNU_addr_index.
331 (dwarf2_record_block_ranges): Ditto.
332 (read_partial_die): Ditto.
333 (process_enumeration_scope): Update to use type_offset_in_section.
334 (read_full_die_1): New function.
335 (read_full_die): Rewrite.
336 (read_attribute_value): New cases DW_FORM_GNU_addr_index,
337 DW_FORM_GNU_str_index.
338 (read_addr_index_1, read_addr_index): New functions.
339 (read_addr_index_from_leb128): New function.
340 (struct dwarf2_read_addr_index_data): New type.
341 (dwarf2_read_addr_index_reader): New function.
342 (dwarf2_read_addr_index): New function.
343 (read_str_index): New function.
344 (leb128_size): New function.
345 (dwarf_decode_line_header): Delete arg abfd, all callers updated.
346 If processing a type unit from a DWO file, get the line section
347 from the DWO file.
348 (var_decode_location): Watch for DW_OP_GNU_addr_index.
349 (dwarf2_const_value_attr): New cases DW_FORM_GNU_addr_index,
350 DW_FORM_GNU_str_index.
351 (lookup_die_type): Check whether section offset of type's die is
352 known before looking it up. Remove assert. Condition can
353 legimately happen for inter-cu type references.
354 (dwarf_attr_name): Handle Fission attributes.
355 (dwarf_form_name): Handle Fission forms.
356 (dump_die_shallow): New cases DW_FORM_GNU_addr_index,
357 DW_FORM_GNU_str_index.
358 (follow_die_sig): Update to use type_offset_in_section.
359 (decode_locdesc): New case DW_OP_GNU_addr_index.
360 (skip_form_bytes): New cases DW_FORM_GNU_addr_index,
361 DW_FORM_GNU_str_index.
362 (cu_debug_loc_section): New function.
363 (fill_in_loclist_baton, dwarf2_symbol_mark_computed): Call it.
364 (dwarf2_per_objfile_free): Unmap .debug_addr section.
365 Free DWO files if present.
366 * xcoffread.c (dwarf2_xcoff_names): Add .debug_addr.
367
dee91e82
DE
368 Refactor DIE reading.
369 * dwarf2read.c (dwarf2_per_objfile): Replace members
370 debug_info_type_hash and debug_types_type_hash with die_type_hash.
371 (die_reader_specs): New member "die_section". Temporarily make
372 member "buffer" non-const, pending constifying all info_ptr uses.
373 (die_reader_func_ftype): New typedef.
374 (dw2_get_file_names_reader): New function.
375 (dw2_get_file_names): Rewrite.
376 (read_and_check_type_unit_head): Rename arg type_offset to
377 type_offset_in_tu.
378 (create_all_type_units): Improve debugging message.
379 Improve dummy type unit check.
380 (init_cu_die_reader): New arg "section". All callers updated.
381 (init_and_read_dies_worker): New function.
382 (init_cu_and_read_dies, init_tu_and_read_dies): New functions.
383 (init_cutu_and_read_dies_no_follow): New function.
384 (init_cutu_and_read_dies_simple): New function.
385 (process_psymtab_comp_unit_reader): New function.
386 (process_psymtab_comp_unit): Delete args section,
387 is_debug_types_section. Rewrite. All callers updated.
388 (process_psymtab_type_unit): Renamed from process_type_comp_unit.
389 All callers updated. Rewrite.
390 (load_partial_comp_unit_reader): New function.
391 (load_partial_comp_unit): Rewrite.
392 (skip_children): New arg reader. Delete args buffer, cu.
393 All callers updated.
394 (skip_one_die): New arg reader. Delete args buffer, cu.
395 All callers updated.
396 (locate_pdi_sibling): New arg reader. Delete args buffer, abfd, cu.
397 All callers updated.
398 (load_full_comp_unit_reader): New function.
399 (load_full_comp_unit): Rewrite.
400 (read_comp_unit): Delete.
401 (read_die_and_children_1): Delete, contents moved ...
402 (read_die_and_children): ... here.
403 (dwarf2_read_abbrevs): New arg abbrev_section. All callers updated.
404 (load_partial_dies): New arg reader. Delete args abfd, buffer, cu.
405 All callers updated.
406 (read_partial_die): New arg reader. Delete args abfd, buffer, cu.
407 All callers updated.
408 (find_partial_die): Rewrite load_all_dies support.
409 (read_attribute_value): New arg reader. Delete args abfd, cu.
410 All callers updated.
411 (read_attribute): New arg reader. Delete args abfd, cu.
412 All callers updated.
413 (load_full_type_unit): Add assert.
414 (read_signatured_type_reader): New function.
415 (read_signatured_type): Rewrite.
416 (free_stack_comp_unit): Remove call to age_cached_comp_units.
417 (free_one_cached_comp_unit): Change target_cu arg to target_per_cu.
418 All callers updated. Set per_cu->cu = NULL after freeing it.
419 (dwarf2_per_cu_offset_and_type): Renamed from dwarf2_offset_and_type.
420 (per_cu_offset_and_type_hash): Renamed from offset_and_type_hash.
421 (per_cu_offset_and_type_eq): Renamed from offset_and_type_eq.
422 (set_die_type): Update.
423 (get_die_type_at_offset): Update.
424 (read_file_scope): Call prepare_one_comp_unit.
425 (read_type_unit_scope): Ditto.
426 (prepare_one_comp_unit): Set producer if present.
427
72d59e0d
SDJ
4282012-04-28 Sergio Durigan Junior <sergiodj@redhat.com>
429
430 * probe.c (compile_rx_or_error): Silence ARI warning about missing
431 gettext function on `error'.
432
0fefef59
DE
4332012-04-27 Doug Evans <dje@google.com>
434
435 * dwarf2read.c (dwarf2_read_index): Don't use index if symbol table
436 is empty.
437
28106bc2
SDJ
4382012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
439 Tom Tromey <tromey@redhat.com>
440
441 * breakpoint.c (struct breakpoint_objfile_data)
442 <longjmp_searched>,<longjmp_probes>,<exception_searched>,
443 <exception_probes>: New fields.
444 (free_breakpoint_probes): New function.
445 (create_longjmp_master_breakpoint): Prefer SystemTap probe over
446 `_Unwind_DebugHook'.
447 (create_exception_master_breakpoint): Likewise.
448 (_initialize_breakpoint): Registering cleanup for SystemTap probes.
449 * infrun.c: Including necessary header files for handling SystemTap
450 probes.
451 (handle_inferior_event): Handling longjmp breakpoint and exceptions
452 via SystemTap probes.
453 (check_exception_resume): Remove `func' argument. Handle exception
454 unwinding breakpoint set via a SystemTap probe.
455 (insert_exception_resume_from_probe): New function.
456
55aa24fb
SDJ
4572012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
458 Tom Tromey <tromey@redhat.com>
459 Jan Kratochvil <jan.kratochvil@redhat.com>
460
461 * Makefile.in (SFILES): Add `probe' and `stap-probe'.
462 (COMMON_OBS): Likewise.
463 (HFILES_NO_SRCDIR): Add `probe'.
464 * NEWS: Mention support for static and SystemTap probes.
465 * amd64-tdep.c (amd64_init_abi): Initializing proper fields used by
466 SystemTap probes' arguments parser.
467 * arm-linux-tdep.c: Including headers needed to perform the parsing
468 of SystemTap probes' arguments.
469 (arm_stap_is_single_operand): New function.
470 (arm_stap_parse_special_token): Likewise.
471 (arm_linux_init_abi): Initializing proper fields used by SystemTap
472 probes' arguments parser.
473 * ax-gdb.c (require_rvalue): Removing static declaration.
474 (gen_expr): Likewise.
475 * ax-gdb.h (gen_expr): Declaring function.
476 (require_rvalue): Likewise.
477 * breakpoint.c: Include `gdb_regex.h' and `probe.h'.
478 (bkpt_probe_breakpoint_ops): New variable.
479 (momentary_breakpoint_from_master): Set the `probe' value.
480 (add_location_to_breakpoint): Likewise.
481 (break_command_1): Using proper breakpoint_ops according to the
482 argument passed by the user in the command line.
483 (bkpt_probe_insert_location): New function.
484 (bkpt_probe_remove_location): Likewise.
485 (bkpt_probe_create_sals_from_address): Likewise.
486 (bkpt_probe_decode_linespec): Likewise.
487 (tracepoint_probe_create_sals_from_address): Likewise.
488 (tracepoint_probe_decode_linespec): Likewise.
489 (tracepoint_probe_breakpoint_ops): New variable.
490 (trace_command): Using proper breakpoint_ops according to the
491 argument passed by the user in the command line.
492 (initialize_breakpoint_ops): Initializing breakpoint_ops for
493 static probes on breakpoints and tracepoints.
494 * breakpoint.h (struct bp_location) <probe>: New field.
495 * cli-utils.c (skip_spaces_const): New function.
496 (extract_arg): Likewise.
497 * cli-utils.h (skip_spaces_const): Likewise.
498 (extract_arg): Likewise.
499 * coffread.c (coff_sym_fns): Add `sym_probe_fns' value.
500 * configure.ac: Append `stap-probe.o' to be generated when ELF
501 support is present.
502 * configure: Regenerate.
503 * dbxread.c (aout_sym_fns): Add `sym_probe_fns' value.
504 * elfread.c: Include `probe.h' and `arch-utils.h'.
505 (probe_key): New variable.
506 (elf_get_probes): New function.
507 (elf_get_probe_argument_count): Likewise.
508 (elf_evaluate_probe_argument): Likewise.
509 (elf_compile_to_ax): Likewise.
510 (elf_symfile_relocate_probe): Likewise.
511 (stap_probe_key_free): Likewise.
512 (elf_probe_fns): New variable.
513 (elf_sym_fns): Add `sym_probe_fns' value.
514 (elf_sym_fns_lazy_psyms): Likewise.
515 (elf_sym_fns_gdb_index): Likewise.
516 (_initialize_elfread): Initialize objfile cache for static
517 probes.
518 * gdb_vecs.h (struct probe): New forward declaration.
519 (probe_p): New VEC declaration.
520 * gdbarch.c: Regenerate.
521 * gdbarch.h: Regenerate.
522 * gdbarch.sh (stap_integer_prefix): New variable.
523 (stap_integer_suffix): Likewise.
524 (stap_register_prefix): Likewise.
525 (stap_register_suffix): Likewise.
526 (stap_register_indirection_prefix): Likewise.
527 (stap_register_indirection_suffix): Likewise.
528 (stap_gdb_register_prefix): Likewise.
529 (stap_gdb_register_suffix): Likewise.
530 (stap_is_single_operand): New function.
531 (stap_parse_special_token): Likewise.
532 (struct stap_parse_info): Forward declaration.
533 * i386-tdep.c: Including headers needed to perform the parsing
534 of SystemTap probes' arguments.
535 (i386_stap_is_single_operand): New function.
536 (i386_stap_parse_special_token): Likewise.
537 (i386_elf_init_abi): Initializing proper fields used by SystemTap
538 probes' arguments parser.
539 * i386-tdep.h (i386_stap_is_single_operand): New function.
540 (i386_stap_parse_special_token): Likewise.
541 * machoread.c (macho_sym_fns): Add `sym_probe_fns' value.
542 * mipsread.c (ecoff_sym_fns): Likewise.
543 * objfiles.c (objfile_relocate1): Support relocation for static
544 probes.
545 * parse.c (prefixify_expression): Remove static declaration.
546 (initialize_expout): Likewise.
547 (reallocate_expout): Likewise.
548 * parser-defs.h (initialize_expout): Declare function.
549 (reallocate_expout): Likewise.
550 (prefixify_expression): Likewise.
551 * ppc-linux-tdep.c: Including headers needed to perform the parsing
552 of SystemTap probes' arguments.
553 (ppc_stap_is_single_operand): New function.
554 (ppc_stap_parse_special_token): Likewise.
555 (ppc_linux_init_abi): Initializing proper fields used by SystemTap
556 probes' arguments parser.
557 * probe.c: New file, for generic statically defined probe support.
558 * probe.h: Likewise.
559 * s390-tdep.c: Including headers needed to perform the parsing of
560 SystemTap probes' arguments.
561 (s390_stap_is_single_operand): New function.
562 (s390_gdbarch_init): Initializing proper fields used by SystemTap
563 probes' arguments parser.
564 * somread.c (som_sym_fns): Add `sym_probe_fns' value.
565 * stap-probe.c: New file, for SystemTap probe support.
566 * stap-probe.h: Likewise.
567 * symfile.h: Include `gdb_vecs.h'.
568 (struct sym_probe_fns): New struct.
569 (struct sym_fns) <sym_probe_fns>: New field.
570 * symtab.c (init_sal): Initialize `probe' field.
571 * symtab.h (struct probe): Forward declaration.
572 (struct symtab_and_line) <probe>: New field.
573 * tracepoint.c (start_tracing): Adjust semaphore on breakpoints
574 locations.
575 (stop_tracing): Likewise.
576 * xcoffread.c (xcoff_sym_fns): Add `sym_probe_fns' value.
577
22d2b532
SDJ
5782012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
579 Tom Tromey <tromey@redhat.com>
580
581 * ax-gdb.c (gen_expr): Clean up code to handle internal variables
582 and to compile agent expressions.
583 * infrun.c (siginfo_make_value): New argument `ignore'.
584 (siginfo_funcs): New struct.
585 (_initialize_infrun): New argument when calling
586 `create_internalvar_type_lazy'.
587 * thread.c (thread_id_make_value): New argument `ignore'.
588 (thread_funcs): New struct.
589 (_initialize_thread): New argument when calling
590 `create_internalvar_type_lazy'.
591 * tracepoint.c (sdata_make_value): New argument `ignore'.
592 (sdata_funcs): New struct.
593 (_initialize_tracepoint): New argument when calling
594 `create_internalvar_type_lazy'.
595 * value.c (make_value): New struct.
596 (create_internalvar_type_lazy): New argument `data'.
597 (compile_internalvar_to_ax): New function.
598 (value_of_internalvar): Properly handling `make_value' case.
599 (clear_internalvar): Likewise.
600 (show_convenience): Adding `TRY_CATCH' block.
601 * value.h (internalvar_make_value): Delete, replace by...
602 (struct internalvar_funcs): ... this.
603 (create_internalvar_type_lazy) <fun>: Delete argument.
604 (create_internalvar_type_lazy) <funcs>, <data>: New arguments.
605 (compile_internalvar_to_ax): New function.
606 * windows-tdep.c (tlb_make_value): New argument `ignore'.
607 (tlb_funcs): New struct.
608 (_initialize_windows_tdep): New argument when calling
609 `create_internalvar_type_lazy'.
610
91da1414
MW
6112012-04-27 Mark Wielaard <mjw@redhat.com>
612
613 * dwarf2read.c (dwarf2_get_pc_bounds): Check DW_AT_high_pc form to
614 see whether it is an address or a constant offset from DW_AT_low_pc.
615 (dwarf2_record_block_ranges): Likewise.
616 (read_partial_die): Likewise.
617
4ab9d8ec
MW
6182012-04-26 Mark Wielaard <mjw@redhat.com>
619
620 * MAINTAINERS (Write After Approval): Add myself to the list.
621
a0911fd0
MR
6222012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
623
624 * proc-utils.h (proc_prettyprint_signalset): New prototype.
625 (proc_prettyprint_signal): Likewise.
626 (proc_prettyprint_faultset): Likewise.
627 (proc_prettyprint_fault): Likewise.
628 (proc_prettyprint_actionset): Likewise.
629 (proc_prettyprint_flags): Move to new proc-flags.c section.
630 (proc_prettyfprint_flags): New prototype.
631 * procfs.c (proc_nsysarg, proc_sysargs): Add prototypes.
632 (proc_syscall, proc_cursig): Likewise.
633 (proc_set_kill_on_last_close): Likewise.
634 (proc_unset_kill_on_last_close): Likewise.
635 (proc_set_watchpoint): Make static.
636 (proc_delete_dead_threads): Likewise.
637 (procfs_set_watchpoint): Likewise.
638 (_initialize_procfs): Add prototype.
639 * proc-events.c: Include proc-utils.h.
640 (init_syscall_table): Make static.
641 * proc-api.c (_initialize_proc_api): Add prototype.
642 * proc-flags.c: Include proc-utils.h.
643
9009e1ae
MR
6442012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
645
646 * configure.ac: Add AC_ARG_PROGRAM.
647 * configure: Regenerate.
648
4fae6e18
JK
6492012-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
650
651 Fix DW_AT_lower_bound defaults for DWARF-4+.
652 * dwarf2read.c (read_subrange_type): Remove initialization of low and
653 high. New variable low_default_is_valid. Implement DWARF-4+
654 DW_AT_lower_bound defaults. Print complaint for DW_AT_lower_bound with
655 no default by the DWARF standard.
656
14132e89
MR
6572012-04-26 Maciej W. Rozycki <macro@mips.com>
658 Maciej W. Rozycki <macro@codesourcery.com>
659
660 * infrun.c (handle_inferior_event): Move the check for return
661 trampolines ahead of the check for function trampolines.
662 * mips-tdep.h (MIPS_S2_REGNUM, MIPS_GP_REGNUM): New macros.
663 * mips-tdep.c (mips_str_mips16_call_stub): New variable.
664 (mips_str_mips16_ret_stub): Likewise.
665 (mips_str_call_fp_stub): Likewise.
666 (mips_str_call_stub): Likewise.
667 (mips_str_fn_stub): Likewise.
668 (mips_str_pic): Likewise.
669 (mips_in_frame_stub): New function.
670 (mips_unwind_pc): Return the return address rather than the PC
671 if the PC of an intermediate frame is inside a call thunk.
672 (mips_is_stub_suffix): New function.
673 (mips_is_stub_mode): Likewise.
674 (mips_get_mips16_fn_stub_pc): Likewise.
675 (mips_skip_mips16_trampoline_code): Update to handle all the
676 currently generated stub types. Don't recurse into __fn_stub
677 thunks. Remove heuristics to handle stubs beyond etext/_etext.
678 Use cooked register accesses.
679 (mips_in_return_stub): Reintroduce function.
680 (mips_skip_trampoline_code): Traverse trampolines recursively.
681 (mips_gdbarch_init): Handle MIPS16 return trampolines.
682
518f0db5 6832012-04-26 Joel Brobecker <brobecker@adacore.com>
684
685 GDB 7.4.1 released.
686
3184d3f9
JL
6872012-04-26 Jonathan Larmour <jifl@eCosCentric.com>
688
689 * arm-tdep.h (VFP_REGISTER_SIZE): Define.
690 * features/arm-with-m-vfp-d16.xml: New file. Describes
691 Cortex-M with VFPv4-sp-d16 FPU register layout.
692 * features/Makefile (WHICH): Add arm-with-m-vfp-d16.
693 * features/arm-with-m-vfp-d16.c: New. Generated from above.
694 * arm-tdep.c: Include arm-with-m-vfp-d16.c.
695 (arm-register_g_packet_guesses): Add vfp-d16 guess.
696 (_initialise_arm_tdep): Initialize arm-with-m-vfp-d16 tdesc.
697
b6201d44
DE
6982012-04-25 Doug Evans <dje@google.com>
699
700 * cli/cli-decode.c (print_doc_line): Use stream instead of
701 current_uiout.
702
4e2f8df6
SDJ
7032012-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
704
705 * features/arm-with-iwmmxt.c: Regenerate.
706 * features/arm-with-m-fpa-layout.c: Likewise.
707 * features/arm-with-m.c: Likewise.
708 * features/arm-with-neon.c: Likewise.
709 * features/arm-with-vfpv2.c: Likewise.
710 * features/arm-with-vfpv3.c: Likewise.
711 * features/mips-dsp-linux.c: Likewise.
712 * features/mips-linux.c: Likewise.
713 * features/mips64-dsp-linux.c: Likewise.
714 * features/mips64-linux.c: Likewise.
715 * features/s390-linux32.c: Likewise.
716 * features/s390-linux32v1.c: Likewise.
717 * features/s390-linux32v2.c: Likewise.
718 * features/s390-linux64.c: Likewise.
719 * features/s390-linux64v1.c: Likewise.
720 * features/s390-linux64v2.c: Likewise.
721 * features/s390x-linux64.c: Likewise.
722 * features/s390x-linux64v1.c: Likewise.
723 * features/s390x-linux64v2.c: Likewise.
724 * features/tic6x-c62x-linux.c: Likewise.
725 * features/tic6x-c62x.c: Likewise.
726 * features/tic6x-c64x-linux.c: Likewise.
727 * features/tic6x-c64x.c: Likewise.
728 * features/tic6x-c64xp-linux.c: Likewise.
729 * features/tic6x-c64xp.c: Likewise.
730 * target-descriptions.c: Only generate `field_type' and `type'
731 variables when needed.
732
2def3e66
JB
7332012-04-25 Fredrik Hederstierna <fredrikh.hederstierna@securitas-direct.com>
734
735 * cli/cli-cmds.c (cd_command): Use memmove instead of strcpy.
736
a766d390
DE
7372012-04-25 Doug Evans <dje@google.com>
738
739 Initial pass at Go language support.
740 * NEWS: Mention Go.
741 * Makefile.in (SFILES): Add go-exp.y, go-lang.c, go-typeprint.c,
742 go-valprint.c.
743 (COMMON_OBS): Add go-lang.o, go-val.print.o, go-typeprint.o.
744 (YYFILES): Add go-exp.c.
745 (YYOBJ): Add go-exp.o.
746 (local-maintainer-clean): Delete go-exp.c.
747 * defs.h (enum language): Add language_go.
748 * dwarf2read.c: #include "go-lang.h".
749 (fixup_go_packaging): New function.
750 (process_full_comp_unit): Call it when processing Go CUs.
751 (dwarf2_physname): Add Go support.
752 (read_file_scope): Handle missing language spec for GNU Go.
753 (set_cu_language): Handle DW_LANG_Go.
754 * go-exp.y: New file.
755 * go-lang.h: New file.
756 * go-lang.c: New file.
757 * go-typeprint.c: New file.
758 * go-valprint.c: New file.
759 * symtab.c: #include "go-lang.h".
760 (symbol_set_language): Handle language_go.
761 (symbol_find_demangled_name, symbol_set_names): Ditto.
762 (symbol_natural_name, demangle_for_lookup, find_main_name): Ditto.
763
4e2af517
JM
7642012-04-24 Jim Meyering <meyering@redhat.com>
765
766 avoid a few strncpy-induced buffer overruns
767 * procfs.c (procfs_make_note_section): Be sure to NUL-terminate
768 fname and psargs before trying to concatenate.
769 * tui/tui-stack.c (tui_get_function_from_frame): NUL-terminate
770 "name" before applying strchr.
771
b77b7f52
SCR
7722012-04-25 Siva Chandra Reddy <sivachandra@google.com>
773
774 * CONTRIBUTE: Use unified diff instead of context diff when
775 generating patches.
776
6321c22a
MR
7772012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
778
779 * mips-tdep.c (mips_about_to_return): Remove dead MIPS16 support
780 code. Handle JR.HB correctly.
781
742c84f6
MR
7822012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
783
784 * mips-tdep.c
785 (is_mips16_addr, unmake_mips16_addr, make_mips16_addr): Group
786 with the other MIPS16 helpers.
787
7fc7e0c3
SDJ
7882012-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
789
790 * observer.sh: Conditionally declare `args', thus cleaning up
791 unused instances of this variable.
792
20388dd6
YQ
7932012-04-24 Yao Qi <yao@codesourcery.com>
794
795 Revert this patch to allow breakpoint always-inserted
796 in record target.
797 2011-12-05 Pedro Alves <pedro@codesourcery.com>
798 * breakpoint.c: Include record.h.
799 (breakpoints_always_inserted_mode): Return false when the record
800 target is in use.
801
802 * breakpoint.c (iterate_over_bp_locations): New.
803 * breakpoint.h: Declare.
804 New typedef walk_bp_location_callback.
805 * record.c (record_open): Call record_init_record_breakpoints.
806 (record_sync_record_breakpoints): New.
807 (record_init_record_breakpoints): New.
808 * NEWS: Mention supporting breakpoint always-inserted mode in
809 record target.
810
4734f50e
MK
8112012-04-24 Marc Khouzam <marc.khouzam@ericsson.com>
812
813 * mi/mi-main.c (mi_cmd_execute): Choose a live thread not just
814 any thread.
815
c326b90e
YQ
8162012-04-24 Yao Qi <yao@codesourcery.com>
817
818 * breakpoint.c (ep_is_catchpoint): Renamed to ...
819 (is_catchpoint): ... it.
820 (print_one_breakpoint_location): Caller update.
821 * breakpoint.h: Update declaration.
822
d8fb5a1e
DM
8232012-04-23 David S. Miller <davem@davemloft.net>
824
825 * configure.tgt (sparc-*-linux*): Set build_gdbserver to yes.
826
34431a2a
TT
8272012-04-23 Tom Tromey <tromey@redhat.com>
828
829 * buildsym.c (add_free_pendings): Remove.
830 * buildsym.h (add_free_pendings): Remove.
831
4568ecf9
DE
8322012-04-23 Doug Evans <dje@google.com>
833
834 * dwarf2read.c (partial_die_full_name): Record DW_FORM_ref_addr in
835 attr.u.unsnd instead of attr.u.addr.
836 (read_attribute_value) Ditto for cases DW_FORM_ref_addr,
837 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4, DW_FORM_reg8,
838 DW_FORM_ref_udata.
839 (dump_die_shallow): Update cases DW_FORM_ref_addr,
840 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4. Add cases DW_FORM_ref8,
841 DW_FORM_ref_udata.
842 (dwarf2_get_ref_die_offset): Use DW_UNSND for reference attributes.
843
dca9aa3a
MR
8442012-04-23 Maciej W. Rozycki <macro@codesourcery.com>
845
846 * mips-tdep.c (mips_n32n64_return_value): Fix coding style.
847 (mips_o32_return_value): Likewise.
848 (mips_o64_return_value): Likewise.
849
c8ea1972
PH
8502012-04-21 Paul Hilfinger <hilfinger@adacore.com>
851
852 * ada-lang.c (ada_evaluate_subexp): Add cases for
853 TYPE_CODE_INTERNAL_FUNCTION and for TYPE_GNU_IFUNC, following
854 their treatment in eval.c.
855
8d1b3521
DM
8562012-04-21 David S. Miller <davem@davemloft.net>
857
858 * sparc-tdep.c (X_DISP10): Define.
859 (sparc_analyze_control_transfer): Handle compare-and-branch.
860
03145bf4
JL
8612012-04-21 Jonathan Larmour <jifl@eCosCentric.com>
862
863 * features/Makefile (WHICH): Add arm-with-m and arm-with-m-fpa-layout.
864 * arm-tdep.c (arm_register_g_packet_guesses): Fix comment.
865
004159a2
MR
8662012-04-20 Nigel Stephens <nigel@mips.com>
867 Maciej W. Rozycki <macro@codesourcery.com>
868
869 * mips-tdep.c (mips_float_register_p): New function.
870 (mips_convert_register_float_case_p): Use mips_float_register_p.
871 (mips_register_type): Likewise.
872 (mips_print_register): Likewise.
873 (print_gp_register_row): Likewise.
874 (mips_print_registers_info): Likewise.
875
7f0e6aae
MR
8762012-04-20 Shun-Yen Lu <dark.asparagus@gmail.com>
877
878 * mips-tdep.c (mips_elf_make_msymbol_special): Fix identification
879 of mips16 symbols.
880
bc17beea
AP
8812012-04-20 Andrew Pinski <apinski@cavium.com>
882
883 * MAINTAINERS (Write After Approval): Add myself to the list.
884
1730a5a5
SDJ
8852012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
886
887 * MAINTAINERS: Update my e-mail address.
888
38ea300a
PA
8892012-04-20 Pedro Alves <palves@redhat.com>
890
891 * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Handle absolute
892 $srcdir.
893 * configure: Regenerate.
894
111dfaae
SDJ
8952012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
896
897 * cp-support.h: Include `gdb_vecs.h'. Delete `const_char_ptr' VEC
898 declaration.
899 * gdb_vecs.h: Declare `const_char_ptr' VEC.
900
4fb2c64a
JK
9012012-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
902
903 Fix compilation compatibility with python-2.4
904 * python/py-type.c (convert_field): Cast ADDRSTRING for
905 PyObject_SetAttrString as non-const. New comment.
906
6328eb38
TT
9072012-04-19 Tom Tromey <tromey@redhat.com>
908
909 * top.c (quit_target): Use all_cleanups.
910 * main.c (captured_command_loop): Use all_cleanups.
911 * exceptions.c (throw_exception): Use all_cleanups.
912
c971b7fa
PA
9132012-04-19 Pedro Alves <palves@redhat.com>
914
915 * Makefile.in (GNULIB_BUILDDIR): New.
916 (LIBGNU, INCGNU, GNULIB_H): Adjust.
917 (SUBDIRS): Add $(GNULIB_BUILDDIR).
918 (CLEANDIRS). Remove gnulib/import.
919 (REQUIRED_SUBDIRS): Replace gnulib/import with $(GNULIB_BUILDDIR).
920 (all-lib): Ditto.
921 (distclean): Remove the $(GNULIB_BUILDDIR) directory.
922 (gnulib/import/Makefile): Replace gnulib/import with
923 $(GNULIB_BUILDDIR). Set CONFIG_FILES to just Makefile.
924 (ACLOCAL_AMFLAGS): Remove '-I gnulib/import/m4'.
925 (aclocal_m4_deps): Remove the gnulib dependencies. Add
926 acx_configure_dir.m4.
927 * acinclude.m4: Include acx_configure_dir.m4.
928 * acx_configure_dir.m4: New file.
929 * aclocal.m4: Regenerate.
a09130f9
PA
930 * configure.ac: Remove gl_EARLY, gl_INIT and AM_INIT_AUTOMAKE
931 calls. Configure gnulib using ACX_CONFIGURE_DIR.
932 (GNULIB): New variable.
933 (GNULIB_STDINT_H): Adjust.
934 (AC_OUTPUT): Don't output gnulib/Makefile.
935 * gdb/defs.h: Include build-gnulib/config.h.
936 * aclocal.m4: Regenerate.
937 * config.in: Regenerate.
938 * configure: Regenerate.
939
940 * gnulib/Makefile.in: New file.
941 * gnulib/configure.ac: New file.
942 * gnulib/aclocal.m4: New file.
943 * gnulib/config.in: New file.
944 * gnulib/configure: New file.
c971b7fa
PA
945 * gnulib/: Re-run gnulib-tool to adjust.
946
b10faa68
DE
9472012-04-19 Doug Evans <dje@google.com>
948
949 * cleanups.h (struct cleanup): Move to cleanups.c.
950 (make_cleanup_dtor_ftype): New typedef.
951 (make_cleanup_dtor): Use it.
952 (ALL_CLEANUPS): Replace with ...
953 (all_cleanups): ... this. Declare. All uses updated.
954 * cleanups.c: #include "gdb_assert.h".
955 (sentinel_cleanup): New static global.
956 (SENTINEL_CLEANUP): Define.
957 (cleanup_chain, final_cleanup_chain): Initialize to SENTINEL_CLEANUP.
958 (make_my_cleanup2): Assert result is non-NULL.
959 (all_cleanups): New function.
960 (save_my_cleanups): Initialize new chain to SENTINEL_CLEANUP instead
961 of NULL.
962
d8c267cc
PA
9632012-04-19 Pedro Alves <palves@redhat.com>
964
965 * Makefile.in (HFILES_NO_SRCDIR): Remove gnulib/wchar.in.h.
966 Adjust paths to gnulib imported files.
967
809277f8
PA
9682012-04-19 Pedro Alves <palves@redhat.com>
969
970 * gnulib/: Move whole directory ...
971 * gnulib/import/: ... here, and re-rerun gnulib-tool to adjust.
972 * Makefile.in (LIBGNU, INCGNU, GNULIB_H, CLEANDIRS)
973 (REQUIRED_SUBDIRS, all-lib, gnulib/Makefile, ACLOCAL_AMFLAGS)
974 (aclocal_m4_deps): Adjust.
975 * aclocal.m4: Regenerate.
976 * configure: Regenerate.
977 * configure.ac: Adjust AC_OUTPUT output.
978
aad9eab9
YQ
9792012-04-19 Yao Qi <yao@codesourcery.com>
980
981 * Makefile.in (SFILES): Add common/vec.c and remove vec.c.
982 (vec.o): New rule.
983 * vec.c: Move it ...
984 * common/vec.c: ... here.
985 * vec.h: Move it ...
986 * common/vec.h: ... here.
987
48fe4669
YQ
9882012-04-19 Yao Qi <yao@codesourcery.com>
989
990 * gdb-code-style.el: New.
991
770d76d7
PA
9922012-04-18 Pedro Alves <palves@redhat.com>
993
994 Update gnulib from latest git.
995 (639ea5ae15e39fe48d43e04864b2997301e4b969)
996
997 * gnulib/Makefile.am: Update.
998 * gnulib/dummy.c: Update.
999 * gnulib/extra/arg-nonnull.h: Update.
1000 * gnulib/extra/c++defs.h: Update.
1001 * gnulib/extra/update-copyright: Update.
1002 * gnulib/extra/warn-on-use.h: Update.
1003 * gnulib/inttypes.in.h: Update.
1004 * gnulib/m4/00gnulib.m4: Update.
1005 * gnulib/m4/extensions.m4: Update.
1006 * gnulib/m4/gnulib-cache.m4: Update.
1007 * gnulib/m4/gnulib-common.m4: Update.
1008 * gnulib/m4/gnulib-comp.m4: Update.
1009 * gnulib/m4/gnulib-tool.m4: Update.
1010 * gnulib/m4/include_next.m4: Update.
1011 * gnulib/m4/inttypes-pri.m4: Update.
1012 * gnulib/m4/inttypes.m4: Update.
1013 * gnulib/m4/longlong.m4: Update.
1014 * gnulib/m4/memchr.m4: Update.
1015 * gnulib/m4/memmem.m4: Update.
1016 * gnulib/m4/mmap-anon.m4: Update.
1017 * gnulib/m4/multiarch.m4: Update.
1018 * gnulib/m4/onceonly.m4: Update.
1019 * gnulib/m4/stddef_h.m4: Update.
1020 * gnulib/m4/stdint.m4: Update.
1021 * gnulib/m4/string_h.m4: Update.
1022 * gnulib/m4/warn-on-use.m4: Update.
1023 * gnulib/m4/wchar_h.m4: Update.
1024 * gnulib/m4/wchar_t.m4: Update.
1025 * gnulib/m4/wint_t.m4: Update.
1026 * gnulib/memchr.c: Update.
1027 * gnulib/memmem.c: Update.
1028 * gnulib/stddef.in.h: Update.
1029 * gnulib/stdint.in.h: Update.
1030 * gnulib/str-two-way.h: Update.
1031 * gnulib/string.in.h: Update.
1032 * gnulib/wchar.in.h: Update.
1033
1034 * gnulib/extra/arg-nonnull.h: Delete.
1035 * gnulib/extra/c++defs.h: Delete.
1036 * gnulib/extra/warn-on-use.h: Delete.
1037 * gnulib/m4/wchar_h.m4: Delete.
1038 * gnulib/m4/wint_t.m4: Delete.
1039 * gnulib/wchar.in.h: Delete.
1040
1041 * gnulib/extra/snippets/arg-nonnull.h: New.
1042 * gnulib/extra/snippets/c++defs.h: New.
1043 * gnulib/extra/snippets/warn-on-use.h: New.
1044
1045 * aclocal.m4: Regenerate.
1046 * config.in: Regenerate.
1047 * configure: Regenerate.
1048 * gnulib/Makefile.in: Regenerate.
1049
174e088e
PA
10502012-04-18 Pedro Alves <palves@redhat.com>
1051
1052 Reimport the update-copyright module from gnulib
1053 (250b80067c1e1d8faa0c42fb572f721975b929c5).
1054
1055 * configure: Regenerate.
1056 * gnulib/Makefile.am: Update.
1057 * gnulib/Makefile.in: Regenerate.
1058 * gnulib/extra/update-copyright: Update.
1059 * gnulib/m4/gnulib-cache.m4: Update.
1060 * gnulib/m4/gnulib-comp.m4: Update.
1061
7f533142
JB
10622012-04-18 Tristan Gingold <gingold@adacore.com>
1063
1064 * configure.ac (aix): Put -lpthread into libs.
1065 * configure: Regenerate.
1066
001822aa
TT
10672012-04-18 Tom Tromey <tromey@redhat.com>
1068
1069 * linespec.c (convert_linespec_to_sals): Don't use
1070 SYMBOL_OBJ_SECTION.
1071 (compare_msymbols): Arguments are minsym_and_objfile, not
1072 minimal_symbol*. Don't use SYMBOL_OBJ_SECTION.
1073
db026a31
PA
10742012-04-18 Pedro Alves <palves@redhat.com>
1075
1076 Revert gnulib/ part of:
1077 2011-01-01 Joel Brobecker <brobecker@adacore.com>
1078 Copyright year update in most files (performed by copyright.sh).
1079
12df843f
JK
10802012-04-18 Jan Kratochvil <jan.kratochvil@redhat.com>
1081
1082 Fix 64-bit constants on 32-bit hosts.
1083 * dwarf2read.c (read_unsigned_leb128): Change declaration return type
1084 from unsigned long to ULONGEST.
1085 (read_signed_leb128): Change declaration return type from long to
1086 LONGEST.
1087 (dwarf2_const_value_attr): Change declaration parameter value from long
1088 to LONGEST.
1089 (dwarf2_compute_name): Change variable value from long to LONGEST.
1090 (read_unsigned_leb128): Change return type, variable result and some
1091 casts from unsigned long to ULONGEST.
1092 (read_signed_leb128): Change return type, variable result and some
1093 casts from long to LONGEST.
1094 (dwarf2_const_value_data, dwarf2_const_value_attr): Change parameter
1095 value from long to LONGEST.
1096 (dwarf2_const_value): Change variable value from long to LONGEST.
1097 * symmisc.c (print_symbol): Change SYMBOL_VALUE format strings to use
1098 plongest and hex_string.
1099 * symtab.h (struct general_symbol_info): Change ivalue from long to
1100 LONGEST, remove the comment.
1101 * tracepoint.c (validate_actionline, collect_symbol, scope_info):
1102 Change SYMBOL_VALUE format strings to use plongest and hex_string.
1103
14e75d8e
JK
11042012-04-18 Siddhesh Poyarekar <siddhesh@redhat.com>
1105
1106 PR symtab/7259:
1107 * ada-exp.y (convert_char_literal): Use TYPE_FIELD_ENUMVAL.
1108 * ada-lang.c (ada_discrete_type_high_bound)
ac4ea3c2
JK
1109 (ada_discrete_type_low_bound): Fix function comment. Use
1110 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
14e75d8e
JK
1111 (ada_identical_enum_types_p): Use TYPE_FIELD_ENUMVAL.
1112 (pos_atr, value_val_atr): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
1113 * ada-typeprint.c (print_enum_type): Change variable lastval to LONGEST.
1114 Use TYPE_FIELD_ENUMVAL.
1115 * ada-valprint.c (print_optional_low_bound, ada_print_scalar)
1116 (ada_val_print_1): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
1117 * c-typeprint.c (c_type_print_base): Move variable lastval to inner
1118 block, change it to LONGEST. Use TYPE_FIELD_ENUMVAL for
1119 TYPE_CODE_ENUM.
1120 * coffread.c (coff_read_enum_type): Use SET_FIELD_ENUMVAL.
1121 * dwarf2read.c (process_enumeration_scope): Likewise.
1122 * gdb-gdb.py (TypeFlagsPrinter): Use field.enumval instead of
1123 field.bitpos.
1124 (class StructMainTypePrettyPrinter): Support also
1125 FIELD_LOC_KIND_ENUMVAL.
1126 * gdbtypes.c (get_discrete_bounds): Use TYPE_FIELD_ENUMVAL for
1127 TYPE_CODE_ENUM.
1128 (recursive_dump_type): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
1129 (copy_type_recursive): Support also FIELD_LOC_KIND_ENUMVAL.
1130 * gdbtypes.h (enum field_loc_kind): New FIELD_LOC_KIND_ENUMVAL.
1131 (struct main_type.flds_bnds.fields.loc): Adjust bitpos comment. New
1132 field enumval.
1133 (struct main_type.flds_bnds.bields): Adjust loc_kind and bitsize to
1134 accommodate enumval.
1135 (struct call_site): Adjust loc_kind to accommodate enumval.
1136 (FIELD_ENUMVAL, FIELD_ENUMVAL_LVAL, SET_FIELD_ENUMVAL)
1137 (TYPE_FIELD_ENUMVAL): New macros.
1138 * m2-typeprint.c (m2_enum): Use TYPE_FIELD_ENUMVAL.
1139 * mdebugread.c (parse_symbol): Use TYPE_FIELD_ENUMVAL for
1140 TYPE_CODE_ENUM.
1141 * p-typeprint.c (pascal_type_print_base): Likewise.
1142 * python/lib/gdb/printing.py (class FlagEnumerationPrinter): Use
1143 enumval.
1144 * python/lib/gdb/types.py (make_enum_dict): Likewise.
1145 * python/py-type.c (convert_field): New variable addrstring. Use
1146 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
1147 (check_types_equal): Support also FIELD_LOC_KIND_ENUMVAL.
1148 * stabsread.c (read_enum_type): Use SET_FIELD_ENUMVAL.
1149 * typepint.c (print_type_scalar): Use TYPE_FIELD_ENUMVAL for
1150 TYPE_CODE_ENUM.
1151 * valprint.c (generic_val_print): Likewise.
1152
380bca97
DE
11532012-04-17 Doug Evans <dje@google.com>
1154
dcc07052
DE
1155 * dwarf2read.c (lookup_signatured_type): Return NULL instead of 0.
1156
380bca97
DE
1157 * dwarf2read.c: Whitespace fixes.
1158 (lookup_signatured_type): Tweak comment.
1159 (get_die_type_at_offset): Fix comment.
1160
ec92004f
JB
11612012-04-17 Joel Brobecker <brobecker@adacore.com>
1162
1163 * xcoffread.c (xcoff_secnum_to_sections): New function.
1164 (secnum_to_section, secnum_to_bfd_section): Reimplement
1165 using xcoff_secnum_to_sections. Rename "secnum" parameter
1166 into "n_scnum".
1167 (RECORD_MINIMAL_SYMBOL): Delete.
1168 (record_minimal_symbol): New function.
1169 (scan_xcoff_symtab): Replace uses of RECORD_MINIMAL_SYMBOL
1170 by call to record_minimal_symbol and set misc_func_recorded
1171 to 1. Set last_csect_sec to the XCOFF section index instead
1172 of GDB's section_offset index. Update calls to
1173 prim_record_minimal_symbol_and_info to pass the BFD section
1174 as well.
1175
40301fb7
JB
11762012-04-17 Joel Brobecker <brobecker@adacore.com>
1177
1178 * xcoffread.c (read_xcoff_symtab): Delete variables
1179 last_csect_val and last_csect_sec and associated code.
1180
e0088cfd
DE
11812012-04-17 Doug Evans <dje@google.com>
1182
58d5e2c3
DE
1183 * cleanups.c (make_my_cleanup,make_my_cleanup2): Make static.
1184 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
1185 * cleanups.h (make_my_cleanup,make_my_cleanup2): Delete
1186 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Delete.
1187
c27f5738
DE
1188 * cleanups.h: New file.
1189 * cleanups.c: New file.
1190 * Makefile.in (SFILES): Add cleanups.c.
1191 (HFILES_NO_SRCDIR): Add cleanups.h.
1192 (COMMON_OBS): Add cleanups.o.
1193 * defs.h (struct cleanup): Moved to cleanups.h.
1194 (do_cleanups,do_final_cleanups): Ditto.
1195 (discard_cleanups,discard_final_cleanups): Ditto
1196 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
1197 (save_cleanups,save_final_cleanups): Ditto.
1198 (restore_cleanups,restore_final_cleanups): Ditto.
1199 (null_cleanup): Ditto.
1200 (make_my_cleanup,make_my_cleanup2): Ditto.
1201 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
1202 * utils.c (cleanup_chain,final_cleanup_chain): Moved to cleanups.c.
1203 (do_cleanups,do_final_cleanups): Ditto.
1204 (discard_cleanups,discard_final_cleanups): Ditto
1205 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
1206 (save_cleanups,save_final_cleanups): Ditto.
1207 (restore_cleanups,restore_final_cleanups): Ditto.
1208 (null_cleanup): Ditto.
1209 (make_my_cleanup,make_my_cleanup2): Ditto.
1210 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
1211
e0088cfd
DE
1212 * utils.c (make_cleanup_freeargv): Use make_cleanup instead of
1213 make_my_cleanup.
1214 (make_cleanup_dyn_string_delete): Ditto.
1215 (make_cleanup_ui_file_delete): Ditto.
1216 (make_cleanup_ui_out_redirect_pop): Ditto.
1217 (make_cleanup_free_section_addr_info): Ditto.
1218 (make_cleanup_restore_integer): Ditto.
1219 (make_cleanup_unpush_target): Ditto.
1220 (make_cleanup_value_free_to_mark): Ditto.
1221 (make_cleanup_value_free): Ditto.
1222 (make_cleanup_free_so): Ditto.
1223
4dc84fd1
JK
12242012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1225
1226 New option "set debug auto-load".
1227 * NEWS: New commands "set debug auto-load" and "show debug auto-load".
1228 * auto-load.c (debug_auto_load, show_debug_auto_load: New.
1229 (auto_load_safe_path_vec_update)
1230 (filename_is_in_auto_load_safe_path_vec): Call fprintf_unfiltered
1231 if DEBUG_AUTO_LOAD.
1232 (file_is_auto_load_safe): New parameters debug_fmt and ....
1233 Call fprintf_unfiltered if DEBUG_AUTO_LOAD.
1234 (source_gdb_script_for_objfile): Extend the file_is_auto_load_safe
1235 caller by explanatory string.
1236 (_initialize_auto_load): Register "set debug auto-load".
1237 * auto-load.h (file_is_auto_load_safe): New parameters debug_fmt
1238 and ....
1239 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
1240 (try_thread_db_load_from_dir): Extend the file_is_auto_load_safe caller
1241 by explanatory string.
1242 * main.c (captured_main): Likewise.
1243 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
1244 (source_section_scripts): Likewise.
1245
bccbefd2
JK
12462012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1247
1248 New option "set auto-load safe-path".
1249 * NEWS: New commands "set auto-load safe-path"
1250 and "show auto-load safe-path".
1251 * auto-load.c: Include gdb_vecs.h, readline/tilde.h and completer.h.
1252 (auto_load_safe_path, auto_load_safe_path_vec)
1253 (auto_load_safe_path_vec_update, set_auto_load_safe_path)
1254 (show_auto_load_safe_path, add_auto_load_safe_path, filename_is_in_dir)
1255 (filename_is_in_auto_load_safe_path_vec, file_is_auto_load_safe): New.
1256 (source_gdb_script_for_objfile): New variable is_safe. Call
1257 file_is_auto_load_safe. Return if it is not.
1258 (struct loaded_script): New field loaded.
1259 (maybe_add_script): Add parameter loaded. Initialize SLOT with it.
1260 (print_script): Use LOADED indicator instead of FULL_PATH. Change
1261 output "Missing" to "No".
1262 (_initialize_auto_load): New variable cmd. Initialize
1263 auto_load_safe_path. Register "set auto-load safe-path",
1264 "show auto-load safe-path" and "add-auto-load-safe-path".
1265 * auto-load.h (maybe_add_script): Add parameter loaded.
1266 (file_is_auto_load_safe): New declaration.
1267 * config.in: Regenerate.
1268 * configure: Regenerate.
1269 * configure.ac: New parameters --with-auto-load-safe-path
1270 and --without-auto-load-safe-path.
1271 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
1272 (try_thread_db_load_from_dir): Check file_is_auto_load_safe first.
1273 * main.c (captured_main): Check file_is_auto_load_safe for
1274 LOCAL_GDBINIT.
1275 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile): New
1276 variable is_safe. Call file_is_auto_load_safe. Return if it is not.
1277 (source_section_scripts): Call file_is_auto_load_safe. Return if it is
1278 not.
1279
bf88dd68
JK
12802012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1281
1282 auto-load: Implementation.
1283 * NEWS: New descriptions for "info auto-load",
1284 "info auto-load gdb-scripts", "info auto-load python-scripts",
1285 "info auto-load local-gdbinit" and "info auto-load libthread-db".
1286 Deprecate "info auto-load-scripts", "set auto-load-scripts on|off"
1287 and "show auto-load-scripts". New description for "set auto-load",
1288 "show auto-load", "set auto-load gdb-scripts",
1289 "show auto-load gdb-scripts", "set auto-load python-scripts",
1290 "show auto-load python-scripts", "set auto-load local-gdbinit",
1291 "show auto-load local-gdbinit", "set auto-load libthread-db" and
1292 "show auto-load libthread-db".
1293 * auto-load.c: Remove include python/python-internal.h. Add includes
1294 exceptions.h, cli/cli-script.h, gdbcmd.h, cli/cli-decode.h and
1295 cli/cli-setshow.h.
1296 (GDB_AUTO_FILE_NAME, source_gdb_script_for_objfile)
1297 (auto_load_gdb_scripts, show_auto_load_gdb_scripts): New.
1298 (gdbpy_global_auto_load): Rename to ...
1299 (global_auto_load): ... here.
1300 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
1301 (auto_load_local_gdbinit_loaded, show_auto_load_local_gdbinit)
1302 (script_language_gdb, source_gdb_script_for_objfile): New.
1303 (struct loaded_script): New field language.
1304 (hash_loaded_script_entry, eq_loaded_script_entry): Calculate also
1305 LANGUAGE.
1306 (maybe_add_script): Add parameter language. Drop redundant
1307 entry.full_path initialization. Initialize entry.language and
1308 (*slot)->language.
1309 (auto_load_objfile_script): Change parameter suffix to language.
1310 Remove the call of maybe_add_script.
1311 Call language->source_script_for_objfile.
1312 (load_auto_scripts_for_objfile, struct collect_matching_scripts_data):
1313 New.
1314 (collect_matching_scripts): Adjust it for
1315 struct collect_matching_scripts_data.
1316 (auto_load_info_scripts_pattern_nl): New variable.
1317 (info_auto_load_scripts): Rename to ...
1318 (auto_load_info_scripts): ... here, add parameter language. Adjust it
1319 for struct collect_matching_scripts_data.
1320 (info_auto_load_gdb_scripts, info_auto_load_local_gdbinit)
1321 (set_auto_load_cmd, auto_load_set_cmdlist_get, show_auto_load_cmd)
1322 (auto_load_show_cmdlist_get, info_auto_load_cmd)
1323 (auto_load_info_cmdlist_get): New.
1324 (_initialize_auto_load): Move add_info of "auto-load-scripts" to
1325 python/py-auto-load.c. New installment for "set auto-load gdb-scripts",
1326 "info auto-load gdb-scripts", "set auto-load local-gdbinit" and
1327 "info auto-load local-gdbinit".
1328 * auto-load.h (struct script_language): New.
1329 (gdbpy_global_auto_load): Rename to ...
1330 (global_auto_load): ... here.
1331 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
1332 (auto_load_local_gdbinit_loaded): New declarations.
1333 (maybe_add_script): New parameter language.
1334 (auto_load_objfile_script): Change parameter suffix to language.
1335 (load_auto_scripts_for_objfile, auto_load_info_scripts_pattern_nl)
1336 (auto_load_info_scripts, auto_load_set_cmdlist_get)
1337 (auto_load_show_cmdlist_get, auto_load_info_cmdlist_get): New
1338 declarations.
1339 * linux-thread-db.c: Include auto-load.h and ctype.h.
1340 (auto_load_thread_db, show_auto_load_thread_db): New.
1341 (struct thread_db_info): New field filename.
1342 (delete_thread_db_info): Call xfree for FILENAME.
1343 (try_thread_db_load): Initialize FILENAME.
1344 (try_thread_db_load_from_pdir, try_thread_db_load_from_dir): Return
1345 if !AUTO_LOAD_THREAD_DB.
1346 (info_auto_load_libthread_db_compare, info_auto_load_libthread_db): New.
1347 (_initialize_thread_db): Install auto_load_thread_db
1348 as "set auto-load libthread-db" and install info_auto_load_libthread_db
1349 as "info auto-load libthread-db".
1350 * main.c (captured_main): Rename gdbpy_global_auto_load to
1351 global_auto_load. Initialize AUTO_LOAD_LOCAL_GDBINIT_PATHNAME and
1352 AUTO_LOAD_LOCAL_GDBINIT_LOADED.
1353 (print_gdb_help): Extend the help for 'local init file'.
1354 * python/py-auto-load.c: Remove a comment about gdb scripts extension.
1355 (GDBPY_AUTO_SECTION_NAME): Extend the comment it is Python specific.
1356 (auto_load_scripts): Rename to ...
1357 (auto_load_python_scripts): ... here, update the comment.
1358 (gdbpy_load_auto_script_for_objfile): New declaration.
1359 (show_auto_load_python_scripts, script_language_python)
1360 (gdbpy_load_auto_script_for_objfile): New.
1361 (source_section_scripts): Refactor the code.
1362 (load_auto_scripts_for_objfile): Rename to ...
1363 (gdbpy_load_auto_scripts_for_objfile): ... here, update the
1364 auto_load_objfile_script caller, drop GDBPY_GLOBAL_AUTO_LOAD checking.
1365 (info_auto_load_python_scripts): New.
1366 (gdbpy_initialize_auto_load): New variables cmd and cmd_name.
1367 Rename "set auto-load-scripts" to "set auto-load python-scripts".
1368 Register "set auto-load-scripts" as its deprecated alias. Register
1369 "info auto-load python-scripts". Register "info auto-load-scripts" as
1370 its deprecated alias.
1371 (load_auto_scripts_for_objfile): Rename to ...
1372 (gdbpy_load_auto_scripts_for_objfile): ... here.
1373 * python/python.h (load_auto_scripts_for_objfile): Rename to ...
1374 (gdbpy_load_auto_scripts_for_objfile): ... here.
1375
e2207b9a
JK
13762012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1377
1378 auto-load: Move files.
1379 * Makefile.in (SFILES): Add auto-load.c.
1380 (HFILES_NO_SRCDIR): Add auto-load.h.
1381 (COMMON_OBS): Add auto-load.o.
1382 (distclean): Change .gdbinit for gdb-gdb.gdb.
1383 * auto-load.c: New file, with parts from python/py-auto-load.c.
1384 * auto-load.h: New file, with parts from python/python.h.
1385 * configure: Regenerate.
1386 * configure.ac (AC_OUTPUT): Change .gdbinit for gdb-gdb.gdb.
1387 * gdb-gdb.gdb.in: New file, renamed from gdbinit.in.
1388 * gdbinit.in: Remove file, rename it to gdb-gdb.gdb.in.
1389 * main.c: Include auto-load.h.
1390 * python/py-auto-load.c: Move include filenames.h, gdb_regex.h,
1391 command.h, observer.h and progspace.h to auto-load.c. Add include
1392 auto-load.h.
1393 (gdbpy_global_auto_load, struct auto_load_pspace_info)
1394 (struct loaded_script, auto_load_pspace_data)
1395 (auto_load_pspace_data_cleanup, get_auto_load_pspace_data)
1396 (hash_loaded_script_entry, eq_loaded_script_entry)
1397 (init_loaded_scripts_info, get_auto_load_pspace_data_for_loading)
1398 (maybe_add_script): Move to auto-load.c.
1399 (source_section_scripts): Change maybe_add_script parameters passing,
1400 use script_not_found_warning_print.
1401 (clear_section_scripts, auto_load_objfile_script)
1402 (auto_load_new_objfile, loaded_script_ptr)
1403 (DEF_VEC_P (loaded_script_ptr), collect_matching_scripts, print_script)
1404 (sort_scripts_by_name, info_auto_load_scripts): Move to auto-load.c.
1405 (gdbpy_initialize_auto_load): Move auto_load_pspace_data,
1406 auto_load_new_objfile and info_auto_load_scripts initizations to
1407 auto-load.c.
1408 * python/python.h (gdbpy_global_auto_load): Move to auto-load.h.
1409
e4ab2fad
JK
14102012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1411
1412 Code cleanup.
1413 * charset.c (find_charset_names): Remove variables ix and elt.
1414 Use free_char_ptr_vec.
1415 * elfread.c (build_id_to_debug_filename): New variables debugdir_vec,
1416 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
1417 debugdir_end. New variable debugdir_len.
1418 * gdb_vecs.h (free_char_ptr_vec, make_cleanup_free_char_ptr_vec)
1419 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): New
1420 declarations.
1421 * progspace.c (clear_program_space_solib_cache): Remove variables ix
1422 and elt. Use free_char_ptr_vec.
1423 * source.c (add_path): Remove variables argv, arg and argv_index.
1424 New variables dir_vec, back_to, ix and name.
1425 Use dirnames_to_char_ptr_vec_append. Use freeargv instead of
1426 make_cleanup_freeargv. Remove variable separator. Simplify the code
1427 no longer expecting DIRNAME_SEPARATOR.
1428 (openp): Remove variable p, p1 and len. New variables dir_vec,
1429 back_to, ix and dir. Use dirnames_to_char_ptr_vec. Simplify the code
1430 no longer expecting DIRNAME_SEPARATOR.
1431 * symfile.c (find_separate_debug_file): New variables debugdir_vec,
1432 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
1433 debugdir_end.
1434 * utils.c (free_char_ptr_vec, do_free_char_ptr_vec)
1435 (make_cleanup_free_char_ptr_vec, dirnames_to_char_ptr_vec_append)
1436 (dirnames_to_char_ptr_vec): New functions.
1437
5ee4ed9f
JK
14382012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1439
1440 Code cleanup.
1441 * source.c (add_path): Remove always true conditional 'p == 0' and
1442 unindent its code block.
1443
f41f5e61
PA
14442012-04-17 Pedro Alves <palves@redhat.com>
1445
1446 * gdbtypes.h (FIELD_BITPOS): Rename to ...
1447 (FIELD_BITPOS_LVAL): ... this.
1448 (FIELD_BITPOS): New.
1449 (SET_FIELD_BITPOS): Adjust to use FIELD_BITPOS_LVAL.
1450 * dwarf2read.c (dwarf2_add_field): Use SET_FIELD_BITPOS.
1451 * gdbtypes.c (append_composite_type_field_aligned): Adjust to use
1452 SET_FIELD_BITPOS.
1453 * gnu-v3-abi.c (build_gdb_vtable_type): Adjust to use
1454 SET_FIELD_BITPOS.
1455 * stabsread.c (read_cpp_abbrev, read_one_struct_field)
1456 (read_baseclasses): Adjust to use SET_FIELD_BITPOS.
1457 * target-descriptions.c (tdesc_gdb_type): Adjust to use
1458 SET_FIELD_BITPOS.
1459
945b3a32
JK
14602012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1461
1462 Do not rely on FIELD_LOC_KIND_BITPOS being zero.
1463 * ada-lang.c (ada_template_to_fixed_record_type_1): Replace
1464 TYPE_FIELD_BITPOS used as lvalue by SET_FIELD_BITPOS.
1465 * gdbtypes.c (append_flags_type_flag): Likewise, twice.
1466 * jv-lang.c (java_link_class_type): Likewise, once.
1467 * stabsread.c (read_enum_type): Likewise.
1468
42476b70
YQ
14692012-04-16 Yao Qi <yao@codesourcery.com>
1470
1471 * common/agent.c (agent_run_command): Add one more parameter `len'.
1472 Update callers.
1473 * common/agent.h: Update declaration.
1474 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
1475 Update.
1476 (linux_child_static_tracepoint_markers_by_strid): Ditto.
1477
8264ba82
AG
14782012-04-14 Anton Gorenkov <xgsa@yandex.ru>
1479
1480 PR mi/13393
1481 * value.c (value_actual_type): New function.
1482 * value.h (value_actual_type): New declaration.
1483 * varobj.c (update_type_if_necessary): New function.
1484 (varobj_create): Call value_actual_type instead of
1485 value_type.
1486 (install_dynamic_child): distinct changed and type changed MI variable
1487 objects.
1488 (update_dynamic_varobj_children): Updated for install_dynamic_child
1489 change. All callers updated.
a09130f9 1490 (varobj_update): Support for MI variable object type change if
8264ba82
AG
1491 the value changed and RTTI is used to determine the type.
1492 (create_child_with_value): Call value_actual_type instead of
1493 value_type.
a09130f9 1494 (adjust_value_for_child_access): Extended with a new parameter which
8264ba82
AG
1495 specify whether the given value should be casted to enclosing type.
1496 All callers updated.
1497
55a8c076
YQ
14982012-04-14 Yao Qi <yao@codesourcery.com>
1499
1500 Import gnulib module inttypes from git
1501 (250b80067c1e1d8faa0c42fb572f721975b929c5)
1502 * Makefile.in (HFILES_NO_SRCDIR): Add gnulib/inttypes.in.h.
a09130f9
PA
1503 (aclocal_m4_deps): Add gnulib/m4/inttypes.m4 and
1504 gnulib/m4/inttypes-pri.m4
55a8c076
YQ
1505 * aclocal.m4, config.in, configure: Regenerated.
1506 * gnulib/Makefile.am: Update.
1507 * gnulib/Makefile.in: Update.
1508 * gnulib/m4/gnulib-cache.m4: Update.
1509 * gnulib/m4/gnulib-comp.m4: Update.
1510 * gnulib/inttypes.in.h: New.
1511 * gnulib/m4/inttypes-pri.m4: New.
a09130f9 1512 * gnulib/m4/inttypes.m4: New.
55a8c076 1513
ca7781d2
LM
15142012-04-13 Luis Machado <lgustavo@codesourcery.com>
1515
1516 * infrun.c (resume): Update PC address to the real PC after
1517 preparing to do displaced stepping.
1518
e319fa28
DE
15192012-04-12 Doug Evans <dje@google.com>
1520
1521 * dwarf2read.c (lookup_signatured_type): Remove arg "objfile", unused.
1522 All callers updated.
1523
15add3f5
MK
15242012-04-12 Mark Kettenis <kettenis@gnu.org>
1525
1526 * i386bsd-nat.c (_initialize_i386bsd_nat): Add missing prototype.
1527
52dc124a
DE
15282012-04-12 Doug Evans <dje@google.com>
1529
0e50663e
DE
1530 * dwarf2read.c (create_all_type_units): Renamed from
1531 create_debug_types_hash_table. All callers updated.
1532
52dc124a
DE
1533 * dwarf2read.c (create_signatured_type_table_from_index): Rename
1534 local type_sig to sig_type, type_offset to type_offset_in_tu.
1535 (hash_signatured_type): Renamed from hash_type_signature,
1536 all callers updated.
1537 (eq_signatured_type): Renamed from eq_type_signature,
1538 all callers updated.
1539 (create_debug_types_hash_table): Rename local type_sig to sig_type.
1540 (process_enumeration_scope): Ditto.
1541 (lookup_signatured_type_at_offset): Ditto.
1542 (load_full_type_unit, read_signatured_type): Ditto.
1543
248fd3bf
YQ
15442012-04-12 Yao Qi <yao@codesourcery.com>
1545
1546 * remote.c (async_remote_interrupt): Correct function name in
1547 debug message.
1548 (async_remote_interrupt_twice): Ditto.
1549
bc3aa6c3
DE
15502012-04-11 Yuanhui Zhang <asmwarrior@gmail.com>
1551
1552 * source.c (find_and_open_source): Consistently pass resulting
1553 full path through xfullpath.
1554
9e529e1d
JK
15552012-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1556
1557 Provide more specific displaced-stepping memory error message.
1558 * infrun.c (displaced_step_prepare): New variable status. Call
1559 target_read_memory instead of read_memory, provide more specific
1560 error message.
1561
82e0cec1
TG
15622012-04-11 Tristan Gingold <gingold@adacore.com>
1563
1564 PR gdb/13901
1565 * darwin-nat.c (darwin_execvp): Revert previous patch.
1566
d987a266
TG
15672012-04-11 Tristan Gingold <gingold@adacore.com>
1568
1569 PR gdb/13901
1570 * darwin-nat.c (darwin_resume_thread): Call darwin_set_sstep only
1571 in case of change.
1572
016b7430
TG
15732012-04-11 Tristan Gingold <gingold@adacore.com>
1574
1575 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
1576 warning.
1577
06fc020f
SCR
15782012-04-11 Siva Chandra Reddy <sivachandra@google.com>
1579
1580 New command 'explore' which helps explore values and types in
1581 scope.
1582 * NEWS: Add an entry about the new 'explore' command.
1583 * data-directory/Makefile.in: Add gdb/command/explore.py
1584 * python/lib/gdb/command/explore.py: Implemention of the 'explore'
a09130f9 1585 command using the GDB Python API.
06fc020f 1586
de0919f8 15872012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
34b192ce
MR
1588
1589 * mips-tdep.c (mips_skip_pic_trampoline_code): Correct sign
1590 extension in jump target calculation.
1591
de0919f8 15922012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
9e8da49c
MR
1593
1594 * mips-tdep.c (mips32_next_pc): Handle JALX.
1595
2f26ef89
YQ
15962012-04-10 Yao Qi <yao@codesourcery.com>
1597
1598 * Makefile.in (gnulib/Makefile): Remove duplicated dependency.
1599
2e505b66
YQ
16002012-04-10 Yao Qi <yao@codesourcery.com>
1601
1602 * Makefile.in (aclocal_m4_deps): Add gnulib/m4/gnulib-cache.m4
1603 and gnulib/m4/gnulib-tool.m4.
1604
0d99eb77
DE
16052012-04-10 Doug Evans <dje@google.com>
1606
1607 * dwarf2read.c (dwarf2_per_cu_data). Clarify comment.
1608 (load_partial_dies): Clarify comment.
1609 (find_partial_die): Support rereading type units.
1610 Clarify CU handling, if we know offset is in CU, don't search for the
1611 containing CU. Add comment regarding memory waste.
1612
9a82b8ff
L
16132012-04-10 H.J. Lu <hongjiu.lu@intel.com>
1614
1615 * features/Makefile (WHICH): Add i386/x32, i386/x32-linux,
1616 i386/x32-avx and i386/x32-avx-linux.
1617 (i386/x32-expedite): New.
1618 (i386/x32-linux-expedite): Likewise.
1619 (i386/x32-avx-expedite): Likewise.
1620 (i386/x32-avx-linux-expedite): Likewise.
1621 ($(outdir)/i386/x32.dat): Likewise.
1622 ($(outdir)/i386/x32-linux.dat): Likewise.
1623 ($(outdir)/i386/x32-avx.dat): Likewise.
1624 ($(outdir)/i386/x32-avx-linux.dat): Likewise.
1625
1626 * features/i386/x32-avx-linux.xml: New file.
1627 * features/i386/x32-avx.xml: Likewise.
1628 * features/i386/x32-core.xml: Likewise.
1629 * features/i386/x32-linux.xml: Likewise.
1630 * features/i386/x32.xml: Likewise.
1631
1632 * features/i386/x32-avx-linux.c: New. Generated.
1633 * features/i386/x32-avx.c: Likewise.
1634 * features/i386/x32-linux.c: Likewise.
1635 * features/i386/x32.c: Likewise.
1636 * regformats/i386/x32-avx-linux.dat: Likewise.
1637 * regformats/i386/x32-avx.dat: Likewise.
1638 * regformats/i386/x32-linux.dat: Likewise.
1639 * regformats/i386/x32.dat: Likewise.
1640
ee41036f
TG
16412012-04-10 Tristan Gingold <gingold@adacore.com>
1642
1643 * darwin-nat.c (darwin_kill_inferior): Always use the no ptrace
1644 code to kill the inferior.
1645
a7aa5b8a
MK
16462012-04-09 Mark Kettenis <kettenis@gnu.org>
1647
1648 * ada-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
1649 defines.
1650 * c-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
1651 defines.
a09130f9 1652 * cp-name-parser.y (yyss, yysslim, yyssp, yystacksize, yyvs)
a7aa5b8a
MK
1653 (yyvsp): New defines.
1654 * f-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
1655 defines.
1656 * jv-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
1657 defines.
1658 * m2-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
1659 defines.
1660 * objc-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
1661 defines.
1662 * p-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
1663 defines.
1664
fb57d452
MK
16652012-04-09 Mark Kettenis <kettenis@gnu.org>
1666
a09130f9 1667 * sparc64-tdep.c (sparc64_store_arguments)
fb57d452
MK
1668 (sparc64_store_arguments): Fix coding style.
1669
cdc7b32f
MK
16702012-04-07 Mark Kettenis <kettenis@gnu.org>
1671
1672 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
1673 complex floats, adjust some related comments and tighten a related
1674 assertion.
1675 (sparc64_extract_return_value): Handle complex floats.
1676
7adf1e79
DE
16772012-04-07 Doug Evans <dje@google.com>
1678
1679 * dwarf2read.c (load_partial_dies): Change condition to assert.
1680
50f1ae7b
DE
16812012-04-06 Doug Evans <dje@google.com>
1682
1683 * amd64-tdep.c (amd64_analyze_prologue): Recognize both variations of
1684 "mov %rsp,%rbp".
1685
55fa75c3
KB
16862012-04-05 Kevin Buettner <kevinb@redhat.com>
1687
1688 * v850-tdep.c (E_NUM_OF_V850_REGS, E_NUM_OF_V850E_REGS): Fix
1689 fencepost error.
1690 (v850_frame_cache): Use gdbarch_num_regs() instead of E_NUM_REGS.
1691 (v850_gdbarch_init): Set `num_regs' as appropriate for the
1692 architecture.
1693
40e084e1
KS
16942012-04-05 Keith Seitz <keiths@redhat.com>
1695
1696 * linespec.c (decode_compound): Remove.
1697 (enum offset_relative_sign): New enum.
1698 (struct line_offset): New struct.
1699 (struct linespec): New struct.
1700 (struct linespec_state): Move file_symtabs,
1701 user_filename, and user_function into struct linespec.
1702 Make result an anonymous struct holding vectors of
1703 symbolp and minsym_and_objfile_d.
1704 Add language member.
1705 (enum ls_token_type): New enum.
1706 (linespec_keywords): New array.
1707 (struct ls_token): New struct.
1708 (struct ls_parser): New struct.
1709 (linespec_lexer_lex_number): New function.
1710 (linespec_lexer_lex_keyword): New function.
1711 (is_ada_operator): New function.
1712 (skip_quote_char): New function.
1713 (copy_token_string): New function.
1714 (is_closing_quote_enclosed): New function.
1715 (find_parameter_list_end): New function.
1716 (linespec_lexer_lex_string): New function.
1717 (linespec_lexer_lex_one): New function.
1718 (linespec_lexer_consume_token): New function.
1719 (linespec_lexer_peek_token): New function.
1720 (cplusplus_error): Remove unused function.
1721 (find_methods): Update comment.
1722 (find_toplevel_char): Return const.
1723 (is_objc_method_format): Remove unused function.
1724 (find_toplevel_string): New function.
1725 (is_linespec_boundary): Remove.
1726 (symbol_not_found_error): New function.
1727 (find_method_overload_end): Remove function.
1728 (unexpected_linespec_error): New function.
1729 (keep_name_info): Remove.
1730 (linespec_parse_line_offset): New function.
1731 (linespec_parse_basic): New function.
1732 (canonicalize_linespec): New function.
1733 (decode_line_internal): Remove.
1734 (create_sals_line_offset): New function adapted from
1735 decode_all_digits.
1736 (convert_linespec_to_sals): New function.
1737 (parse_linespec): New function.
1738 (linespec_parser_new): New function.
1739 (linespec_state_destructor): Change parameter type to
1740 struct linespec_state *.
1741 Add language parameter.
1742 Remove freeing of moved members.
1743 (linespec_parser_delete): New function.
1744 (decode_line_full): Use parse_linespec and linespec_parser_new.
1745 (decode_line_1): Likewise.
1746 (decode_indirect): Rename to ...
1747 (linespec_expression_to_pc): ... this and rewrite
1748 to simply find CORE_ADDR, storing this result for later
1749 conversion to SALs.
1750 (locate_first_half): Remove.
1751 (deocde_objc): Add parameter LS.
1752 Initialize new struct collect_info members.
1753 Handle minimal symbols, too.
1754 (decode_compound): Delete.
1755 (lookup_prefix_sym): Rewrite.
1756 (compare_msymbols): New function.
1757 (find_method): Rewrite.
1758 Do not call cplusplus_error.
1759 (symtabs_from_filename): Rewrite.
1760 (collect_function_symbols): Delete.
1761 (find_function_symbols): Rewrite without ARGPTR-style
1762 processing.
1763 (decode_all_digits): Delete. (Rewritten as create_sals_line_offset.)
1764 (decode_dollar): Adapted and renamed to ...
1765 (linespec_parse_variable): ... this.
1766 (find_linespec_symbols): New function.
1767 (decode_label): Adapted and renamed to ...
1768 (find_label_symbols): ... this.
1769 (decode_digits_list_mode): Add and use LS argument.
1770 (decode_digits_ordinary): Likewise.
1771 (collect_symbols): Do not collect SALs, just symbols and msymbols.
1772 If in list mode, allow any symbol class. Otherwise, only
1773 permit LOC_BLOCK symbols.
1774 (minsym_found): Update comments.
1775 (search_minsyms_for_name): Do not convert the matching symbol
1776 into a SAL. Simply push the symbol and objfile into the
1777 result vector.
1778 (decode_variable): Delete. Contents adapted into
1779 find_linespec_symbols.
1780
1781 * cp-support.c (SKIP_SPACE): Remove.
1782 (operator_tokens): Remove unused global.
1783 (cp_validate_operator): Remove.
1784 * cp-support.h (cp_validate_operator): Remove declaration.
1785
a72c8f6a
JK
17862012-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
1787
1788 * cp-valprint.c (cp_print_value_fields): Check valprint_check_validity
1789 for TYPE_VPTR_FIELDNO.
1790 * valprint.c (valprint_check_validity): Make it global, move the
1791 function comment ...
1792 * value.h (valprint_check_validity): ... to this new declaration.
1793
cf9bb588
TG
17942012-04-02 Tristan Gingold <gingold@adacore.com>
1795
1796 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Use
1797 the STATE32 api for i386 state.
1798 (i386_darwin_store_inferior_registers): Likewise.
1799
17092398
TG
18002012-04-02 Tristan Gingold <gingold@adacore.com>
1801
1802 * i386-darwin-tdep.c (i386_darwin_thread_state_reg_offset): Fix
1803 SS offset.
1804 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
1805 format_string.
1806
ece0061f
TG
18072012-04-02 Tristan Gingold <gingold@adacore.com>
1808
1809 PR gdb/13901
d987a266 1810 * darwin-nat.c (darwin_execvp): Set binary preference.
ece0061f 1811
cf65ecd3
JK
18122012-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1813
1814 * NEWS (set breakpoint condition-evaluation): Use imperative mood.
1815
9bc3523d
TT
18162012-03-30 Tom Tromey <tromey@redhat.com>
1817
1818 * python/python.c (gdbpy_decode_line): Move cleanup creation out
1819 of TRY_CATCH. Fix error handling.
1820 * python/py-value.c (convert_value_from_python): Move 'old'
1821 declaration to innermost scope.
1822
b1ed564a
JB
18232012-03-29 Joel Brobecker <brobecker@adacore.com>
1824 Andrey Smirnov <andrew.smirnov@gmail.com>
1825
1826 -Wshadow warning fix.
1827 * ada-lang.c (ada_make_symbol_completion_list): Rename parameters
1828 "wild_match" and "encoded" into "wild_match_p" and "encoded_p".
1829 Adjust code accordingly.
1830
cb8e9b97
JB
18312012-03-29 Joel Brobecker <brobecker@adacore.com>
1832
1833 * ada-lang.c (symbol_completion_add): Rename parameter
1834 "encoded" into "encoded_p". Ajust code and documentation
1835 accordingly.
1836
c0af1706
JB
18372012-03-29 Joel Brobecker <brobecker@adacore.com>
1838 Andrey Smirnov <andrew.smirnov@gmail.com>
1839
1840 -Wshadow warning fix.
1841 * ada-lang.c (symbol_completion_add): Rename parameter
1842 "wild_match" into wild_match_p. Update code and documentation
1843 accordingly.
1844
6ea35997
JB
18452012-03-29 Joel Brobecker <brobecker@adacore.com>
1846
1847 * ada-lang.c (symbol_completion_match): Rename parameter
1848 "encoded" into "encoded_p". Ajust code and documentation
1849 accordingly.
1850
e701b3c0
JB
18512012-03-29 Joel Brobecker <brobecker@adacore.com>
1852 Andrey Smirnov <andrew.smirnov@gmail.com>
1853
1854 -Wshadow warning fix.
1855 * ada-lang.c (symbol_completion_match): Rename parameter
1856 "wild_match" into "wild_match_p". Adjust code and function
1857 documentation accordingly.
1858
5e2336be
JB
18592012-03-29 Joel Brobecker <brobecker@adacore.com>
1860 Andrey Smirnov <andrew.smirnov@gmail.com>
1861
1862 -Wshadow warning fix.
1863 * ada-lang.c (ada_lookup_encoded_symbol): Rename parameter
1864 "symbol_info" into "info". Adjust code accordingly.
1865 (ada_lookup_symbol): Likewise.
1866
9f88c959
JB
18672012-03-29 Joel Brobecker <brobecker@adacore.com>
1868
1869 * ada-lang.c (ada_lookup_symbol_list): Minor reformatting
1870 of this function's documentation.
1871
82ccd55e
JB
18722012-03-29 Joel Brobecker <brobecker@adacore.com>
1873 Andrey Smirnov <andrew.smirnov@gmail.com>
1874
1875 -Wshadow warning fix.
1876 * ada-lang.c (ada_lookup_symbol_list): Rename "wild_match"
1877 variable into "wild_match_p". Adjust code accordingly.
1878
d0a8ab18
JB
18792012-03-29 Joel Brobecker <brobecker@adacore.com>
1880 Andrey Smirnov <andrew.smirnov@gmail.com>
1881
1882 -Wshadow warning fix.
1883 * ada-lang.c (ada_add_local_symbols): Rename "wild_match"
1884 parameter into "wild_match_p". Adjust code accordingly.
1885 Document this parameter in the function description.
1886
48b78332
JB
18872012-03-29 Joel Brobecker <brobecker@adacore.com>
1888 Andrey Smirnov <andrew.smirnov@gmail.com>
1889
1890 -Wshadow warning fix.
1891 * ada-lang.c (add_symbols_from_enclosing_procs): Rename
1892 "wild_match" parameter to "wild_match_p" (-Wshadow).
1893
2e6e0353
JB
18942012-03-29 Joel Brobecker <brobecker@adacore.com>
1895
1896 * ada-lang.c (ada_lookup_simple_minsym): Remove trailing spaces
1897 in function documentation.
1898
dc4024cd
JB
18992012-03-29 Joel Brobecker <brobecker@adacore.com>
1900 Andrey Smirnov <andrew.smirnov@gmail.com>
1901
1902 -Wshadow warning fix.
1903 * ada-lang.c (ada_lookup_simple_minsym): Rename wild_match local
1904 variable into wild_match_p. Adjust code accordingly.
1905
6c88661c
JB
19062012-03-29 Joel Brobecker <brobecker@adacore.com>
1907 Andrey Smirnov <andrew.smirnov@gmail.com>
1908
1909 * ada-valprint.c (ada_val_print_1): Move the code handling
1910 TYPE_CODE_ENUM inside its own lexical block. Declare
1911 variables len and val there, instead of in the function's
1912 top level block. Avoid declaring deref_val again in a way
1913 that shadows another variable of the same name declared
1914 in one of the up-level blocks. Just re-use the up-level
1915 variable instead.
1916
4e5c77fe
JB
19172012-03-29 Joel Brobecker <brobecker@adacore.com>
1918
1919 * ada-lang.c (ada_lookup_encoded_symbol): Now returns void.
1920 Replace block_found argument by symbol_info. Adjust
1921 implementation accordingly. Add function documentation.
1922 (ada_lookup_symbol): Adjust to new ada_lookup_encoded_symbol.
1923 Fix documentation.
1924 * ada-lang.h (ada_lookup_encoded_symbol): Update declaration.
1925 * ada-exp.y (write_object_renaming): Adjust to new
1926 ada_lookup_encoded_symbol API.
1927
1c0ac8c7
JB
19282012-03-29 Joel Brobecker <brobecker@adacore.com>
1929
1930 * ada-lang.h (struct ada_symbol_info): Reformat. Improve
1931 documentation.
1932
2aaed979
KB
19332012-03-28 Rathish C <rathish.c@kpitcummins.com>
1934
1935 * v850-tdep.c: Add the enum values for mpu and fpu registers.
1936 (v850_register_name): Add the mpu and fpu register names.
1937 (v850e_register_name): Add the mpu and fpu register names.
1938 (v850e2_register_name): New function.
a09130f9 1939 (v850_gdbarch_init): Add case for bfd_mach_v850e2 and
2aaed979
KB
1940 bfd_mach_v850e2v3.
1941
927fbba6
JB
19422012-03-28 Joel Brobecker <brobecker@adacore.com>
1943
1944 * NEWS: Add entry for Ada varobj support.
1945
d32cafc7
JB
19462012-03-28 Joel Brobecker <brobecker@adacore.com>
1947
1948 * varobj.c (default_value_is_changeable_p): New function,
1949 extracted from varobj_value_is_changeable_p. Add declaration.
1950 (ada_value_is_changeable_p): New function, extracted from
1951 varobj_value_is_changeable_p. Add declaration.
1952 (struct language_specific): New field "value_is_changeable_p".
1953 (languages): Add entries for new field.
1954 (varobj_create): Set language before calling install_new_value.
1955 (varobj_value_is_changeable_p): Reimplement to call the varobj's
1956 "value_is_changeable_p" language callback.
1957
181875a4
JB
19582012-03-28 Joel Brobecker <brobecker@adacore.com>
1959
1960 * ada-varobj.h, ada-varobj.c: New files.
1961 * Makefile.in (SFILES): Add ada-varobj.c.
1962 (HFILES_NO_SRCDIR): Add ada-varobj.h.
1963 (COMMON_OBS): Add ada-varobj.o.
1964
7a290c40
JB
19652012-03-28 Joel Brobecker <brobecker@adacore.com>
1966
1967 * varobj.c (ada_value_has_mutated): Add declaration. New function.
1968 (struct language_specific): New field "value_has_mutated".
1969 (languages): Set field "value_has_mutated" in each entry of array.
1970 (varobj_value_has_mutated): New function.
1971 (varobj_udpdate): Add handling of type mutation.
1972 (value_of_root): Add handling of type mutation.
1973 (ada_value_has_mutated): New function.
1974
ca9b8b9c
PA
19752012-03-28 Pedro Alves <palves@redhat.com>
1976
1977 * ia64-linux-nat.c (supply_fpregset, ia64_linux_fetch_register):
1978 Always supply $fr0 as 0.0 and $fr1 as 1.0.
1979
cc0265cd
TT
19802012-03-28 Tom Tromey <tromey@redhat.com>
1981
1982 * python/py-inferior.c (infpy_read_memory): Remove cleanups and
1983 explicitly free 'buffer' on exit paths. Decref 'membuf_object'
1984 before returning.
1985
3ad2ec6f
TT
19862012-03-28 Tom Tromey <tromey@redhat.com>
1987
1988 * .dir-locals.el: New file.
1989
4a6510ba
PA
19902012-03-28 Pedro Alves <palves@redhat.com>
1991
1992 * ia64-linux-nat.c (u_offsets): Map IA64_EC_REGNUM to PT_AR_EC.
1993
5a75128f
JB
19942012-03-28 Joel Brobecker <brobecker@adacore.com>
1995
1996 * ia64-linux-nat.c (ia64_linux_fetch_register): Add special
1997 handling for r0.
1998
f99d8bf4
PA
19992012-03-27 Pedro Alves <palves@redhat.com>
2000
2001 Eliminate struct ui_stream.
2002
2003 * ui-out.h (struct ui_stream): Delete.
2004 (ui_out_field_stream): Adjust prototype.
2005 (ui_out_stream_new, ui_out_stream_delete)
2006 (make_cleanup_ui_out_stream_delete): Delete declarations.
2007 * ui-out.c (ui_out_field_stream): Change prototype to take a
2008 ui_file instead of a ui_stream. Adjust.
2009 (ui_out_stream_new, ui_out_stream_delete, do_stream_delete)
2010 (make_cleanup_ui_out_stream_delete): Delete.
2011 * breakpoint.c (print_breakpoint_location)
2012 (print_one_detail_ranged_breakpoint, print_it_watchpoint): Use
2013 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
2014 * disasm.c (dump_insns): Ditto.
2015 (do_mixed_source_and_assembly, do_assembly_only): Adjust
2016 prototype.
2017 (gdb_disassembly): Use ui_file/mem_fileopen instead of
2018 ui_stream/ui_out_stream_new.
2019 * infcmd.c (print_return_value): Ditto.
2020 * osdata.c (info_osdata_command): Don't allocate a local
2021 ui_stream.
2022 * stack.c (print_frame_arg, print_frame_args, print_frame): Use
2023 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
2024 * tracepoint.c (print_one_static_tracepoint_marker): Don't
2025 allocate a local ui_stream.
2026 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_file/mem_fileopen
2027 instead of ui_stream/ui_out_stream_new.
2028 (list_args_or_locals): Don't allocate a local ui_stream.
2029 * mi/mi-main.c (get_register, mi_cmd_data_evaluate_expression)
2030 (mi_cmd_data_read_memory): Use ui_file/mem_fileopen instead of
2031 ui_stream/ui_out_stream_new.
2032 * cli/cli-setshow.c (do_setshow_command): Ditto.
2033
6350a066 20342012-03-27 Oza Pawandeep <oza.pawandeep@gmail.com>
72508ac0 2035
6350a066
PA
2036 * arm-linux-tdep.c (arm_linux_init_abi): Call
2037 set_gdbarch_process_record. Initialize `arm_swi_record' field.
2038 * arm-tdep.c (arm_process_record): New function.
2039 (deallocate_reg_mem): New function.
2040 (decode_insn): New function.
2041 (thumb_record_branch): New function.
2042 (thumb_record_ldm_stm_swi(): New function.
2043 (thumb_record_misc): New function.
2044 (thumb_record_ld_st_stack): New function.
2045 (thumb_record_ld_st_imm_offset): New function.
2046 (thumb_record_ld_st_reg_offset(): New function.
2047 (thumb_record_add_sub_cmp_mov): New function.
2048 (thumb_record_shift_add_sub): New function.
2049 (arm_record_coproc_data_proc): New function.
2050 (arm_record_coproc): New function.
2051 (arm_record_b_bl): New function.
2052 (arm_record_ld_st_multiple): New function.
2053 (arm_record_ld_st_reg_offset): New function.
2054 (arm_record_ld_st_imm_offset): New function.
2055 (arm_record_data_proc_imm): New function.
2056 (arm_record_data_proc_misc_ld_str): New function.
2057 (arm_record_extension_space): New function.
2058 (arm_record_strx): New function.
2059 (sbo_sbz): New function.
2060 (struct insn_decode_record): New structure for arm insn record.
2061 (REG_ALLOC): New macro for reg allocations.
2062 (MEM_ALLOC): New macro for memory allocations.
2063 * arm-tdep.h (struct gdbarch_tdep): New field 'arm_swi_record'.
72508ac0 2064
89e028e2
AS
20652012-03-27 Andreas Schwab <schwab@linux-m68k.org>
2066
2067 * m68klinux-nat.c (fetch_register): Fix strict-aliasing violation.
2068 (store_register): Likewise.
2069
6350a066 20702012-03-26 Oza Pawandeep <oza.pawandeep@gmail.com>
3d9a9eb0 2071
6350a066 2072 * MAINTAINERS (Write After Approval): Add myself to the list.
3d9a9eb0 2073
5b43fab2
JK
20742012-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
2075
2076 * NEWS (set breakpoint condition-evaluation): Change "gdb" to "host".
2077 Describe also the option "auto".
2078
b5453b95
RH
20792012-03-22 Richard Henderson <rth@redhat.com>
2080
2081 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Fix prototype.
2082 * sparc-nat.c (sparc_xfer_wcookie): Make static.
2083
227ee7fc
RH
20842012-03-22 Richard Henderson <rth@redhat.com>
2085
2086 * jit.c (jit_read_code_entry): Compute alignment and offset of
2087 int64_t member before computing entry_size.
2088
7b282c5a
SCR
20892012-03-22 Siva Chandra Reddy <sivachandra@google.com>
2090
2091 Python scripting: Add new method Value.referenced_value to
2092 gdb.Value which can dereference pointer as well as reference
2093 values.
2094 * NEWS: Add entry under 'Python scripting' about the new method
2095 Value.referenced_value on gdb.Value objects.
2096 * python/py-value.c (valpy_referenced_value): New function
2097 defining a new method on gdb.Value objects which can dereference
2098 pointer and reference values.
2099
0c83539f
SCR
21002012-03-22 Siva Chandra Reddy <sivachandra@google.com>
2101
2102 * MAINTAINERS (Write After Approval): Add myself to the list.
2103
7ccffd7c
KB
21042012-03-21 Kevin Buettner <kevinb@redhat.com>
2105
2106 * symtab.c (skip_prologue_sal): Change test to check for "main()"
2107 in addition to "main".
2108
bd0b9f9e
JB
21092012-03-21 Joel Brobecker <brobecker@adacore.com>
2110
2111 * expression.h (op_name): Add declaration.
2112 * expprint.c (op_name): Remove declaration. Make non-static.
2113 * ax-gdb.c (gen_expr): Use op_name instead of op_string.
2114
a5362b9a
TS
21152012-03-21 Thomas Schwinge <thomas@codesourcery.com>
2116
2117 * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Use siginfo_t instead
2118 of struct siginfo.
2119 * arm-linux-nat.c (arm_linux_stopped_data_address): Likewise.
2120 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
2121 * linux-nat.c (linux_nat_siginfo_fixup, siginfo_fixup)
2122 (linux_xfer_siginfo, linux_nat_set_siginfo_fixup)
2123 (linux_nat_get_siginfo): Likewise.
2124 * linux-nat.h (struct lwp_info, linux_nat_set_siginfo_fixup)
2125 (linux_nat_get_siginfo): Likewise.
2126 * linux-tdep.c (linux_get_siginfo_type): Likewise.
2127 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Likewise.
2128 * procfs.c (gdb_siginfo_t): Likewise.
2129
adcadaab
MF
21302012-03-21 Mike Frysinger <vapier@gentoo.org>
2131
2132 * .gitignore: Ignore more files.
2133
e278ad5b
PA
21342012-03-20 Pedro Alves <palves@redhat.com>
2135
2136 * remote.c (remote_start_remote): Clear `rs->starting_up' on early
2137 returns.
2138
741e63d7
YQ
21392012-03-20 Yao Qi <yao@codesourcery.com>
2140
2141 * amd64-tdep.c (amd64_displaced_step_copy_insn): Complete missing "}" in
2142 comment.
2143
b64f50a1
JK
21442012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
2145
2146 Code cleanupp: Use cu_offset and sect_offset compile time type checking.
2147 * dwarf2expr.c (add_piece, dwarf_get_base_type, execute_stack_op)
2148 (ctx_no_dwarf_call, ctx_no_get_base_type): Use cu_offset and
2149 sect_offset.
2150 * dwarf2expr.h (cu_offset, sect_offset): New types.
2151 (struct dwarf_expr_context_funcs) <dwarf_call>
2152 (struct dwarf_expr_context_funcs) <get_base_type>: Use cu_offset and
2153 sect_offset.
2154 (struct dwarf_expr_context) <len>: Improve the comment.
2155 (struct dwarf_expr_piece, ctx_no_dwarf_call, ctx_no_get_base_type): Use
2156 cu_offset and sect_offset.
2157 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call)
2158 (dwarf_expr_get_base_type, needs_frame_dwarf_call)
2159 (dwarf2_compile_expr_to_ax, disassemble_dwarf_expression): Likewise.
2160 * dwarf2loc.h: Include dwarf2expr.h.
2161 (dwarf2_fetch_die_location_block, dwarf2_get_die_type): Use cu_offset
2162 and sect_offset.
2163 * dwarf2read.c (struct dwarf2_per_objfile) <debug_types_type_hash>:
2164 Improve the comment.
2165 (struct comp_unit_head, struct dwarf2_cu, struct dwarf2_per_cu_data)
2166 (struct signatured_type, struct line_header, struct partial_die_info)
2167 (struct die_info, find_partial_die, dwarf2_get_ref_die_offset)
2168 (lookup_signatured_type_at_offset, dwarf2_find_containing_comp_unit)
2169 (get_die_type_at_offset, create_cus_from_index)
2170 (create_signatured_type_table_from_index, dw2_get_file_names)
2171 (offset_in_cu_p, read_comp_unit_head, error_check_comp_unit_head)
2172 (read_and_check_comp_unit_head, read_and_check_type_unit_head)
2173 (create_debug_types_hash_table, process_psymtab_comp_unit)
2174 (load_partial_comp_unit, create_all_comp_units)
2175 (partial_die_parent_scope, partial_die_full_name, skip_one_die)
2176 (load_full_comp_unit, dwarf2_physname, read_import_statement)
2177 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
2178 (dwarf2_add_member_fn, process_enumeration_scope, read_module_type)
2179 (read_typedef, die_hash, die_eq, read_full_die, dwarf2_read_abbrevs)
2180 (load_partial_dies, read_partial_die, find_partial_die_in_comp_unit)
2181 (find_partial_die, read_attribute_value, lookup_die_type)
2182 (dump_die_shallow, store_in_ref_table): Use cu_offset and sect_offset.
2183 (is_ref_attr): New function comment.
2184 (dwarf2_get_ref_die_offset): New function comment, new variable retval.
2185 Use cu_offset and sect_offset.
2186 (follow_die_offset, follow_die_ref, dwarf2_fetch_die_location_block)
2187 (dwarf2_get_die_type, follow_die_sig, lookup_signatured_type_at_offset)
2188 (load_full_type_unit, read_signatured_type, per_cu_header_read_in)
2189 (dwarf2_find_containing_comp_unit, struct dwarf2_offset_and_type)
2190 (offset_and_type_hash, offset_and_type_eq, set_die_type)
2191 (get_die_type_at_offset, partial_die_hash, partial_die_eq)
2192 (write_one_signatured_type, write_psymtabs_to_index): Use cu_offset and
2193 sect_offset.
2194
e97a38f7
JK
21952012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
2196
2197 Code cleanup.
2198 * python/py-auto-load.c (source_section_scripts): New variable back_to.
2199 Turn fclose and xfree calls into make_cleanup_fclose and make_cleanup
2200 with xfree.
2201 (auto_load_objfile_script): Turn fclose into make_cleanup_fclose.
2202
8320cc4f
JK
22032012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
2204
2205 * NEWS: Describe new options --init-command=FILE, -ix and
2206 --init-eval-command=COMMAND, -iex.
2207 * main.c (struct cmdarg): New enum items CMDARG_INIT_FILE and
2208 CMDARG_INIT_COMMAND.
2209 (captured_main): New enum items OPT_IX and OPT_IEX. Add
2210 "init-command", "init-eval-command", "ix" and "iex" to the variable
2211 long_options. Handle OPT_IX and OPT_IEX. Process them from CMDARG_VEC.
2212 New comment for CMDARG_FILE and CMDARG_COMMAND processing.
2213 (print_gdb_help): Describe --init-command=FILE, -ix and
2214 --init-eval-command=COMMAND, -iex.
2215
26743505
JK
22162012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
2217
2218 Code cleanup.
2219 * main.c (struct cmdarg): Move it here from main. Add more comments.
2220 (cmdarg_s, VEC (cmdarg_s)): New.
2221 (main): Move struct cmdarg from here. New variables cmdarg_vec and
2222 cmdarg_p. Remove variables cmdsize and ncmd and their initialization.
2223 Install cleanup for cmdarg_vec. Update filling for options 'x' and
2224 'X'. Replace cmdarg processing by cmdarg_vec processing. Remove xfree
2225 of CMDARG.
2226
5ff5c7b4
TT
22272012-03-19 Tom Tromey <tromey@redhat.com>
2228
2229 * gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'.
2230
ab260dad
JK
22312012-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
2232
2233 PR symtab/13777
2234 * dwarf2read.c (process_full_comp_unit): Set LOCATIONS_VALID only for
2235 GCC >=4.5.
2236
c366c1f0
TT
22372012-03-16 Chris January <chris.january@allinea.com>
2238
2239 * tui-tui.win.c (tui_resize_all): Use erase and clearok instead
2240 of clear.
2241
e16edb45
TT
22422012-03-16 Chris January <chris.january@allinea.com>
2243
2244 * source.c (add_path): Use memmove instead of strcpy because the
2245 strings overlap.
2246
53ba8333
JB
22472012-03-16 Joel Brobecker <brobecker@adacore.com>
2248
2249 * value.h (set_value_parent): Add declaration.
2250 * value.c (set_value_parent): New function.
2251 (value_address): If VALUE->PARENT is not NULL, then use it as
2252 the base address instead of VALUE->LOCATION.address.
2253 * ada-lang.c (ada_value_primitive_packed_val): Keep V's address
2254 the same as OBJ's address. Adjust V's offset accordingly.
2255 Set V's parent.
2256
481860b3
GB
22572012-03-16 Gary Benson <gbenson@redhat.com>
2258
2259 PR breakpoints/10738
2260 * dwarf2read.c (use_deprecated_index_sections): New global.
2261 (struct partial_die_info): New member may_be_inlined.
2262 (read_partial_die): Set may_be_inlined where appropriate.
2263 (add_partial_subprogram): Add partial symbols for partial
2264 DIEs that may be inlined.
2265 (new_symbol_full): Add inlined subroutines to the current
2266 scope.
2267 (write_psymtabs_to_index): Bump version number.
2268 (dwarf2_read_index): Read only version 6 indices unless
2269 use_deprecated_index_sections is set.
2270 * linespec.c (symbol_and_data_callback): New structure.
2271 (iterate_inline_only): New function.
2272 (iterate_over_all_matching_symtabs): New argument
2273 "include_inline". If nonzero, also call the callback for
2274 symbols representing inlined subroutines.
2275 (lookup_prefix_sym): Pass extra argument to the above.
2276 (find_function_symbols): Likewise.
2277 (add_matching_symbols_to_info): Likewise.
2278 * NEWS: Mention that GDB can now set breakpoints on inlined
2279 functions.
2280
d0e7e15a
PM
22812012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
2282
2283 * p-typeprint.c (pascal_type_print_method_args):
2284 Fix display of parameter of methods.
2285
3d354654
PM
22862012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
2287
2288 * amd64-windows-nat.c (_initialize_amd64_windows_nat):
2289 Add missing prototype.
2290
cafe75b0
JK
22912012-03-16 Yao Qi <yao@codesourcery.com>
2292 Jan Kratochvil <jan.kratochvil@redhat.com>
2293
2294 Fix false compilation warning.
2295 * gnu-v3-abi.c (print_one_vtable): Initialize ADDR.
2296
25f8c692
JL
22972012-03-15 Jonathan Larmour <jifl@eCosCentric.com>
2298 Pedro Alves <pedro@codesourcery.com>
2299
2300 * arm-tdep.c: Include "remote.h" and "features/arm-with-m-fpa-layout.c".
2301 (arm_register_g_packet_guesses): New function.
2302 (arm_gdbarch_init): Don't force a target description with
2303 registers when the executable is detected as M-profile. Instead
2304 set gdbarch->tdep->is_m. Register `g' packet guesses.
2305 (_initialize_arm_tdep): Initialize the new target description.
2306 * features/arm-with-m-fpa-layout.xml: New description.
2307 * features/arm-with-m-fpa-layout.c: New, generated.
2308
35c63cd8
JB
23092012-03-15 Joel Brobecker <brobecker@adacore.com>
2310
2311 * breakpoint.c (breakpoint_xfer_memory): Add assertion.
2312 Update function description.
2313 (insert_bp_location): Do not wipe bl->target_info out.
2314 * mem-break.c: #include "gdb_string.h".
2315 (default_memory_insert_breakpoint): Do not call target_read_memory
2316 with a pointer to the breakpoint's shadow_contents buffer. Use
2317 a local buffer instead.
2318 * m32r-tdep.c (m32r_memory_insert_breakpoint): Ditto.
2319
57651221
TT
23202012-03-15 Tom Tromey <tromey@redhat.com>
2321
2322 * NEWS: Mention "info vtbl", not "info vtable".
2323 * cp-support.c (info_vtbl_command): Fix comment.
2324 (_initialize_cp_support): Fix text.
2325
410528f0
TT
23262012-03-15 Tom Tromey <tromey@redhat.com>
2327
2328 * cp-valprint.c (cp_print_value_fields): Use
2329 print_function_pointer_address for vtable slot.
2330
c4aeac85
TT
23312012-03-15 Tom Tromey <tromey@redhat.com>
2332
2333 * gnu-v3-abi.c (struct value_and_voffset): New.
2334 (hash_value_and_voffset, eq_value_and_voffset)
2335 (compare_value_and_voffset, compute_vtable_size)
2336 (print_one_vtable, gnuv3_print_vtable): New functions.
2337 (init_gnuv3_ops): Initialize 'print_vtable' field.
2338 * cp-support.c (info_vtbl_command): New function.
2339 (_initialize_cp_support): Add "info vtbl".
2340 * cp-abi.h (cplus_print_vtable): Declare.
2341 (struct cp_abi_ops) <print_vtable>: New field.
2342 * cp-abi.c (cplus_print_vtable): New function.
2343 * NEWS: Update.
2344
95cbceff
TT
23452012-03-15 Tom Tromey <tromey@redhat.com>
2346
2347 * d-lang.c (d_language_defn) <la_iterate_over_symbols>: Set to
2348 iterate_over_symbols.
2349
589b4a32
DE
23502012-03-14 Doug Evans <dje@google.com>
2351
2352 * dwarf2read.c (dwarf_stack_op_name): Add DW_OP_GNU_encoded_addr,
2353 DW_OP_GNU_parameter_ref.
2354
e837f12a
JK
23552012-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
2356
2357 Fix double prompt of 'interpreter-exec mi'.
2358 * mi/mi-interp.c (mi_execute_command_input_handler): New prototype.
2359 (mi_interpreter_resume): use it.
2360 (mi_execute_command_input_handler): New function.
2361 * mi/mi-main.c (mi_execute_command): Move prompt printing to
2362 mi_execute_command_input_handler.
2363
ff1e4526 23642012-03-13 Josh Matthews <josh@joshmatthews.net> (tiny change)
c381a3f6
JB
2365
2366 * darwin-nat-info.c (_initialize_darwin_info_commands): Add
2367 prototype.
2368 (darwin_debug_port_info): Make static.
2369 * darwin-nat.c (_initialize_darwin_inferior): Add prototype.
2370 * machoread.c (_initialize_machoread): Add prototype.
2371 * i386-darwin-nat.c (i386_darwin_dr_set, i386_darwin_dr_get)
2372 (i386_darwin_set_control, i386_darwin_get_control)
2373 i386_darwin_dr_set_addr, i386_darwin_get_addr)
2374 i386_darwin_get_status, i386_darwin_get_control):
2375 Comment out with HW_WATCHPOINT_NOT_YET_ENABLED macro.
2376
d8a5d6ee
JB
23772012-03-13 Joel Brobecker <brobecker@adacore.com>
2378
2379 * ax-gdb.c (gen_usual_unary): Remove special handling of
2380 enum and bool types.
2381
af381b8c
JB
23822012-03-13 Joel Brobecker <brobecker@adacore.com>
2383
2384 * ax-gdb.c (gen_fetch): Add handling for TYPE_CODE_RANGE types.
2385
786c562f
JB
23862012-03-13 Joel Brobecker <brobecker@adacore.com>
2387
2388 * aix-thread.c (supply_fprs): Make more consistent with fill_fprs.
2389
e3ebf1bb
JB
23902012-03-13 Chris January <chris.january@allinea.com>
2391
2392 * aix-thread.c (fill_sprs): Store the floating point registers
2393 at the correct offsets into vals.
2394
c5b7e1cb
DE
23952012-03-13 Doug Evans <dje@google.com>
2396
16899756
DE
2397 * NEWS: Mention symbol-reloading has been deleted.
2398 * symfile.c (symbol_reloading): Delete.
2399 (show_symbol_reloading): Delete.
2400 (_initialize_symfile): Delete set/show symbol-reloading.
2401
c5b7e1cb
DE
2402 * dwarf2read.c (load_partial_comp_unit): Defer adding cu to
2403 read_in_chain until we have successfully read it in.
2404 (load_full_comp_unit): Ditto.
2405 (read_signatured_type): Add comment.
2406
46cb6474
JB
24072012-03-13 Chris January <chris.january@allinea.com>
2408
2409 * stabsread.c (fix_common_block): Change type of valu argument
2410 to CORE_ADDR.
2411
76219d77
JB
24122012-03-13 Chris January <chris.january@allinea.com>
2413
2414 * rs6000-tdep.c (skip_prologue): Support the oril r29, r1, 0x0
2415 instruction.
2416
87b0bb13
JK
24172012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2418
2419 * common/linux-procfs.c (linux_proc_get_int): New, from
2420 linux_proc_get_tgid, change its LWPID type to pid_t, add parameter
2421 field.
2422 (linux_proc_get_tgid): Only call linux_proc_get_int.
2423 (linux_proc_get_tracerpid): New.
2424 (linux_proc_pid_has_state): New, from linux_proc_pid_is_zombie.
2425 (linux_proc_pid_is_stopped, linux_proc_pid_is_zombie): Only call
2426 linux_proc_pid_has_state.
2427 * common/linux-procfs.h (linux_proc_get_tracerpid): New declaration.
2428 * common/linux-ptrace.c: Include linux-procfs.h and buffer.h.
2429 (linux_ptrace_attach_warnings): New.
2430 * common/linux-ptrace.h (struct buffer, linux_ptrace_attach_warnings):
2431 New declaration.
2432 * linux-nat.c: Include exceptions.h, linux-ptrace.h and buffer.h.
2433 (linux_nat_attach): New variables ex, buffer, message and message_s.
2434 Wrap to_attach by TRY_CATCH and call linux_ptrace_attach_warnings.
2435
5f572dec
JK
24362012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2437
2438 * Makefile.in (linux-ptrace.o): New.
2439 * common/linux-procfs.c (linux_proc_pid_is_zombie): New,
2440 from linux-nat.c.
2441 * common/linux-procfs.h (linux_proc_pid_is_zombie): New declaration.
2442 * common/linux-ptrace.c: New file.
2443 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-ptrace.o.
2444 * config/arm/linux.mh: Likewise.
2445 * config/i386/linux.mh: Likewise.
2446 * config/i386/linux64.mh: Likewise.
2447 * config/ia64/linux.mh: Likewise.
2448 * config/m32r/linux.mh: Likewise.
2449 * config/m68k/linux.mh: Likewise.
2450 * config/mips/linux.mh: Likewise.
2451 * config/pa/linux.mh: Likewise.
2452 * config/powerpc/linux.mh: Likewise.
2453 * config/powerpc/ppc64-linux.mh: Likewise.
2454 * config/powerpc/spu-linux.mh: Likewise.
2455 * config/s390/s390.mh: Likewise.
2456 * config/sparc/linux.mh: Likewise.
2457 * config/sparc/linux64.mh: Likewise.
2458 * config/xtensa/linux.mh: Likewise.
2459 * linux-nat.c (linux_lwp_is_zombie): Remove, move it to
2460 common/linux-procfs.c.
2461 (wait_lwp): Rename linux_lwp_is_zombie to linux_proc_pid_is_zombie.
2462
44f238bb
PA
24632012-03-13 Hui Zhu <teawater@gmail.com>
2464 Pedro Alves <palves@redhat.com>
2465
2466 * breakpoint.c (init_breakpoint_sal): New flags parameter. Handle
2467 CREATE_BREAKPOINT_FLAGS_INSERTED.
2468 (create_breakpoint_sal, create_breakpoints_sal)
2469 (base_breakpoint_create_breakpoints_sal)
2470 (tracepoint_create_breakpoints_sal)
2471 (strace_marker_create_breakpoints_sal): New flags parameter. Pass
2472 down.
2473 (break_command_1, handle_gnu_v3_exceptions, trace_command)
2474 (ftrace_command, strace_command): Adjust.
2475 (create_tracepoint_from_upload): Pass
2476 CREATE_BREAKPOINT_FLAGS_INSERTED.
2477 * breakpoint.h (enum breakpoint_create_flags): New.
2478 (create_breakpoint): New flags parameter.
2479 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
2480 * python/py-breakpoint.c (bppy_init): Adjust.
2481 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust.
2482 * spu-tdep.c (spu_catch_start): Adjust.
2483
1e51243a
PA
24842012-03-13 Pedro Alves <palves@redhat.com>
2485 Hui Zhu <teawater@gmail.com>
2486 Yao Qi <yao@codesourcery.com>
2487
2488 * remote.c (struct remote_state): New field `starting_up'.
2489 (remote_start_remote): Set and clear it.
2490 (remote_can_download_tracepoint): If starting up, return false.
2491
fa3064dd
YQ
24922012-03-13 Yao Qi <yao@codesourcery.com>
2493
2494 * inferior.h (struct inferior): Remove fields any_syscall_count,
2495 syscalls_counts and total_syscalls_count. Move them to new
2496 struct catch_syscall_inferior_data in breakpoint.c.
2497 * breakpoint.c: Call DEF_VEC_I(int).
2498 (struct catch_syscall_inferior_data): New.
2499 (get_catch_syscall_inferior_data): New.
2500 (catch_syscall_inferior_data_cleanup): New.
2501 (insert_catch_syscall): Update to access data in
2502 struct catch_syscall_inferior_data.
2503 (insert_catch_syscall): Likewise.
2504 (remove_catch_syscall): Likewise.
2505 (remove_catch_syscall): Likewise.
2506 (is_syscall_catchpoint_enabled): Likewise.
2507 (add_catch_command): Likewise.
2508 (_initialize_breakpoint): Register cleanup.
2509 * breakpoint.h: Removed DEF_VEC_I(int).
2510 * dwarf2loc.c: Call DEF_VEC_I(int).
2511 * mi/mi-main.c: Likewise.
2512
460fac3c
MK
25132012-03-12 Mark Kettenis <kettenis@gnu.org>
2514
2515 * inf-ptrace.c (inf_ptrace_post_attach): Make static.
2516
e1aca11e
JB
25172012-03-12 Chris January <chris.january@allinea.com>
2518
2519 * aix-thread.c (_initialize_aix_thread): Add prototype.
2520 * rs6000-nat.c (_initialize_rs6000_nat): Ditto.
2521 * xcoffsolib.c (_initialize_xcoffsolib): Ditto.
2522
649c7061
JB
25232012-03-12 Joel Brobecker <brobecker@adacore.com>
2524
2525 * amd64bsd-nat.c: Move #include of "amd64bsd-nat.h" after
2526 include of "amd64-nat.h".
2527
0b49e518
TT
25282012-03-12 Tom Tromey <tromey@redhat.com>
2529
2530 * buildsym.c (record_pending_block): Now static.
2531 * buildsym.h: (record_pending_block): Remove.
2532
fd24fa94
AT
25332012-03-12 Andreas Tobler <andreast@fgznet.ch>
2534
2535 * amd64bsd-nat.c: Include amd64bsd-nat.h.
2536
ba919b58
TT
25372012-03-09 Tom Tromey <tromey@redhat.com>
2538
2539 * dwarf2read.c (struct dwarf2_cu) <checked_producer,
2540 producer_is_gxx_lt_4_6>: New fields.
2541 (producer_is_gxx_lt_4_6): Use and update producer cache fields.
2542
a48e046c
TT
25432012-03-09 Tom Tromey <tromey@redhat.com>
2544
2545 * dwarf2read.c (dwarf2_attr): Avoid tail-recursive call.
2546
6f5e9362
JB
25472012-03-08 Joel Brobecker <brobecker@adacore.com>
2548
2549 * ravenscar-sparc-thread.c (_initialize_ravenscar_sparc): Add
2550 prototype.
2551
8d037db9
JB
25522012-03-08 Joel Brobecker <brobecker@adacore.com>
2553
2554 * ravenscar-thread.c (_initialize_ravenscar): Add prototype.
2555
4e841acf
JK
25562012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2557
2558 Fix -Wmissing-prototypes build.
2559 * arm-linux-nat.c (get_thread_id): Make it static.
2560 * xtensa-linux-nat.c (get_thread_id): Likewise.
2561
c6030312
JB
25622012-03-08 Joel Brobecker <brobecker@adacore.com>
2563
2564 * server.c (process_point_options): If a conditional expression
2565 is found, only print a message if remote_debug is nonzero.
2566
52323be9
LM
25672012-03-08 Luis Machado <lgustavo@codesourcery.com>
2568
2569 * ax-gdb.c (gen_fetch): Fail gracefully and use error instead
2570 of internal error for unknown/unsupported types.
2571
7fe25d9b
JK
25722012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2573
2574 Fix CU relative vs. absolute DIE offsets.
2575 * dwarf2loc.h (dwarf2_fetch_die_location_block): Rename parameter
2576 offset to offset_in_cu.
2577 * dwarf2read.c (process_enumeration_scope): Add CU offset to
2578 TYPE_OFFSET.
2579 (dwarf2_fetch_die_location_block): Rename parameter offset to
2580 offset_in_cu. New variable offset, add CU offset to OFFSET_IN_CU.
2581
05e7c244
JK
25822012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2583
2584 * libunwind-frame.c: Rename to ...
2585 * ia64-libunwind-tdep.c: ... here.
2586 * libunwind-frame.h: Rename to ...
2587 * ia64-libunwind-tdep.h: ... here.
2588 * Makefile.in (HFILES_NO_SRCDIR): Rename libunwind-frame.h to
2589 ia64-libunwind-tdep.h.
2590 (ALLDEPFILES): Rename libunwind-frame.c to ia64-libunwind-tdep.c.
2591 * README (--with-libunwind): Rename to ...
2592 (--with-libunwind-ia64): ... here, note it is ia64 specific now.
2593 * config.in: Regenerate.
2594 * configure: Regenerate.
2595 * configure.ac: New option --with-libunwind-ia64, make the
2596 AS_HELP_STRING ia64 specific. Deprecate option --with-libunwind.
2597 Remove AC_DEFINE for HAVE_LIBUNWIND.
2598 * ia64-libunwind-tdep.c: Make the file top comment ia64 specific.
2599 Rename libunwind-frame.h #include to ia64-libunwind-tdep.h.
2600 Rename libunwind-frame in the general comment.
2601 * ia64-libunwind-tdep.h: Make the file top comment ia64 specific.
2602 Rename symbol LIBUNWIND_FRAME_H to IA64_TDEP_LIBUNWIND_FRAME_H.
2603 Move forward declarations inside #ifndef. Rename libunwind-frame in
2604 the general comment.
2605 * ia64-tdep.c: Rename libunwind-frame.h #include to
2606 ia64-libunwind-tdep.h.
2607 (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum, ia64_is_fpreg)
2608 (ia64_libunwind_descr): Rename libunwind-frame to
2609 ia64-libunwind-tdep in these function comments.
2610 * ia64-tdep.h: Rename libunwind-frame.h #include to
2611 ia64-libunwind-tdep.h.
2612 * ia64-vms-tdep.c (ia64_vms_libunwind_descr): Rename libunwind-frame to
2613 ia64-libunwind-tdep in that data comment.
2614
3755cbfd
JK
26152012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2616
2617 * libunwind-frame.h (struct frame_unwind): New declaration.
2618
d1cda5d9
JB
26192012-03-08 Joel Brobecker <brobecker@adacore.com>
2620
2621 * breakpoint.c (_initialize_breakpoint): Fix error in help of
2622 "set breakpoint condition-evaluation" command.
2623
a0ba0aa2
TG
26242012-03-08 Tristan Gingold <gingold@adacore.com>
2625
2626 * sparc-stub.c: Move to stubs/
2627 * sh-stub.c: Likewise.
2628 * m68k-stub.c: Likewise.
2629 * m32r-stub.c: Likewise.
2630 * i386-stub.c: Likewise.
2631
7b8b6d6d
AS
26322012-03-08 Andreas Schwab <schwab@linux-m68k.org>
2633
007cafee
AS
2634 * m68klinux-tdep.c (m68k_linux_init_abi): Register
2635 linux_get_siginfo_type.
2636
7b8b6d6d
AS
2637 * m68klinux-nat.c: Include "gdb_proc_service.h".
2638 (PTRACE_GET_THREAD_AREA): Define.
2639 (ps_get_thread_area): New function.
2640
bba74b36
YQ
26412012-03-08 Yao Qi <yao@codesourcery.com>
2642
2643 * remote.c (remote_get_noisy_reply): Replace `sprintf' with
2644 `xsnprintf'.
2645 (remote_query_attached): Likewise.
2646 (remote_static_tracepoint_marker_at): Likewise.
2647 (remote_set_permissions): Likewise.
2648 (remote_detach_1, extended_remote_attach_1): Likewise.
2649 (send_g_packet, remote_vkill): Likewise.
2650 (extended_remote_disable_randomization): Likewise.
2651 (remote_add_target_side_condition): Likewise.
2652 (remote_insert_breakpoint): Likewise.
2653 (remote_remove_breakpoint): Likewise.
2654 (remote_insert_watchpoint): Likewise.
2655 (remote_remove_watchpoint): Likewise.
2656 (remote_insert_hw_breakpoint): Likewise.
2657 (remote_insert_hw_breakpoint): Likewise.
2658 (remote_remove_hw_breakpoint): Likewise.
2659 (remote_download_command_source): Likewise.
2660 (remote_download_tracepoint): Likewise.
2661 (remote_download_trace_state_variable): Likewise.
2662 (remote_disable_tracepoint): Likewise.
2663 (remote_trace_set_readonly_regions): Likewise.
2664 (remote_get_tracepoint_status): Likewise.
2665 (remote_trace_find): Likewise.
2666 (remote_get_trace_state_variable_value): Likewise.
2667 (remote_set_disconnected_tracing): Likewise.
2668 (remote_set_circular_trace_buffer): Likewise.
2669 (remote_get_min_fast_tracepoint_insn_len): Likewise.
2670 (remote_use_agent): Likewise.
2671 (remote_add_target_side_condition): Add one parameter BUF_SIZE.
2672 Update callers.
2673
9b224c5e
PA
26742012-03-07 Pedro Alves <palves@redhat.com>
2675
2676 * NEWS: Mention QProgramSignals.
2677 * inferior.h (update_signals_program_target): Declare.
2678 * infrun.c: (update_signals_program_target): New.
2679 (handle_command): Update the target of the new program signals
2680 array changes.
2681 * remote.c (PACKET_QProgramSignals): New enum.
2682 (last_program_signals_packet): New global.
2683 (remote_program_signals): New.
2684 (remote_start_remote): Update the target with the program signals
2685 list.
2686 (remote_protocol_features): Add entry for QPassSignals.
2687 (remote_open_1): Free anc clear last_program_signals_packet.
2688 (init_remote_ops): Install remote_program_signals.
2689 * target.c (update_current_target): Adjust.
2690 (target_program_signals): New.
2691 * target.h (struct target_ops) <to_program_signals>: New field.
2692 (target_program_signals): Declare.
2693
74c48cbb
PA
26942012-03-07 Pedro Alves <palves@redhat.com>
2695
2696 * NEWS: Add subtitle for new z0/z1 conditional breakpoint
2697 extensions.
2698
0c13fc49
AS
26992012-03-07 Andreas Schwab <schwab@linux-m68k.org>
2700
2701 * m68klinux-nat.c (getregs_supplies): Make static.
2702 (getfpregs_supplies): Likewise.
2703 (have_ptrace_getregs): Likewise.
2704
1281d2a3
JB
27052012-03-06 Joel Brobecker <brobecker@adacore.com>
2706
2707 * dwarf2read.c (dwarf2_get_die_type): Pass absolute offset
2708 in call to get_die_type_at_offset.
2709
2b03b41d
SS
27102012-03-06 Stan Shebs <stan@codesourcery.com>
2711
2712 * mi/mi-cmd-break.c: Enforce coding standards, fix comments.
2713 * mi/mi-cmd-disas.c: Ditto.
2714 * mi/mi-cmd-env.c: Ditto.
2715 * mi/mi-cmd-file.c: Ditto.
2716 * mi/mi-cmd-stack.c: Ditto.
2717 * mi/mi-cmd-target.c: Ditto.
2718 * mi/mi-cmd-var.c: Ditto.
2719 * mi/mi-cmds.c: Ditto.
2720 * mi/mi-cmds.h: Ditto.
2721 * mi/mi-console.c: Ditto.
2722 * mi/mi-getopt.c: Ditto.
2723 * mi/mi-getopt.h: Ditto.
2724 * mi/mi-interp.c: Ditto.
2725 * mi/mi-main.c: Ditto.
2726 * mi/mi-out.c: Ditto.
2727 * mi/mi-parse.c: Ditto.
2728 * mi/mi-parse.h: Ditto.
2729 * mi/mi-symbol-cmds.c: Ditto.
2730
2731 * mi/mi-getopt.h: Move mi_opt struct up.
2732 * mi/mi-main.c (captured_mi_execute_command): Remove redundant
2733 return.
2734 * mi/mi-out.c (_initialize_mi_out): Remove empty initialize.
2735
c988ad87
TT
27362012-03-06 Tom Tromey <tromey@redhat.com>
2737
2738 * proc-service.c (ps_pglobal_lookup): Set the current program
2739 space.
2740
1b7c1b10
PA
27412012-03-06 Pedro Alves <palves@redhat.com>
2742
2743 * gregset.h [HAVE_SYS_PROCFS_H]: Include <sys/procfs.h>.
2744
3c182069
JB
27452012-03-05 Joel Brobecker <brobecker@adacore.com>
2746
2747 * MAINTAINERS: List Maciej W. Rozycki as the mips maintainer.
2748
2e794194
JK
27492012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
2750
2751 Code cleanup.
2752 * common/linux-osdata.c (linux_common_core_of_thread): New function
2753 comment.
2754 * linux-nat.c (linux_nat_wait_1): Replace linux_nat_core_of_thread_1
2755 call by linux_common_core_of_thread.
2756 (linux_nat_core_of_thread_1): Remove.
2757 * linux-nat.h (linux_nat_core_of_thread_1): Remove declaration.
2758 * linux-thread-db.c: Include linux-osdata.h.
2759 (update_thread_core): Replace linux_nat_core_of_thread_1 call by
2760 linux_common_core_of_thread.
2761
9f9f1f31
TT
27622012-03-05 Tom Tromey <tromey@redhat.com>
2763
2764 * value.c (value_primitive_field): Don't fetch contents for
2765 non-virtual bases.
2766
b7b189f3
TT
27672012-03-05 Tom Tromey <tromey@redhat.com>
2768
2769 * jv-valprint.c (java_value_print): Correctly compute 'obj_addr'.
2770
05b8a789 27712012-03-05 Andreas Arnez <arnez@linux.vnet.ibm.com>
5538f557 2772
5538f557
JB
2773 * s390-nat.c: Include "gregset.h".
2774
75528772
JK
27752012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
2776
2777 * libunwind-frame.c (LIBUNWIND_SO): Change .7 to .8.
2778 [!LIBUNWIND_SO] (LIBUNWIND_SO_7): New #define.
2779 (libunwind_load): New variable so_error, use it for dlerror. Try to
2780 load also LIBUNWIND_SO_7.
2781
275418ae
PA
27822012-03-05 Pedro Alves <palves@redhat.com>
2783
2784 * i387-tdep.c (i387_supply_xsave): Assert the xsave section buffer
2785 is not NULL, and remove resulting dead code.
2786
5cbb9812
TS
27872012-03-05 Thomas Schwinge <thomas@codesourcery.com>
2788
2789 * sh-tdep.c (sh_skip_prologue): Provide an upper limit on the function
2790 prologue to sh_analyze_prologue.
2791 (sh_analyze_prologue): Make better use of such an upper limit, and
2792 generally be more cautious about accessing memory.
2793
541515ad
TT
27942012-03-05 Tom Tromey <tromey@redhat.com>
2795
2796 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from
2797 _initialize_ia64_hpux_tdep.
2798
b4d36fb8
PA
27992012-03-05 Pedro Alves <palves@redhat.com>
2800
24490249
PA
2801 PR gdb/13766
2802
b4d36fb8
PA
2803 * i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and
2804 the register state is clear, supply explicit zero, instead of
2805 marking the register unavailable.
2806
60c9a3c0
TG
28072012-03-05 Tristan Gingold <gingold@adacore.com>
2808
2809 * NEWS: Mention OpenVMS ia64 new target.
2810
696759ad
TG
28112012-03-05 Tristan Gingold <gingold@adacore.com>
2812
2813 * ia64-tdep.h: Include libunwind-frame.h and libunwind-ia64.h.
2814 (ia64_unw_accessors, ia64_unw_rse_accessors)
2815 (ia64_libunwind_descr): Declare.
2816 * ia64-vms-tdep.c: New file.
2817 * ia64-tdep.c (ia64_unw_accessors, ia64_unw_rse_accessors)
2818 (ia64_libunwind_descr): Make them public.
2819 * configure.tgt: Add ia64-*-*vms*.
2820 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-vms-tdep.o
2821 (ALLDEPFILES): Add ia64-vms-tdep.c
2822
34864976
TG
28232012-03-05 Tristan Gingold <gingold@adacore.com>
2824
169081d0
TG
2825 * target.h (target_object): Add TARGET_OBJECT_OPENVMS_UIB.
2826 * remote.c (PACKET_qXfer_uib): New enum value.
2827 (remote_protocol_features): Add entry for PACKET_qXfer_uib.
2828 (remote_xfer_partial): Handle TARGET_OBJECT_OPENVMS_UIB.
2829 (_initialize_remote): Call add_packet_config_cmd for
2830 xfer:uib packet.
2831
28322012-03-05 Tristan Gingold <gingold@adacore.com>
2833
2834 * osabi.c (gdb_osabi_names): Add OpenVMS.
2835 (generic_elf_osabi_sniffer): Likewise.
2836 * defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS.
34864976 2837
6597b100
JK
28382012-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
2839
2840 Removed unused code.
2841 * libunwind-frame.c (libunwind_frame_unwind)
2842 (libunwind_frame_base_address): Remove.
2843 * libunwind-frame.h (libunwind_frame_base_address): Remove declaration.
2844
87399aa1
YQ
28452012-03-04 Yao Qi <yao@codesourcery.com>
2846
2847 * common/agent.c (gdb_connect_sync_socket): Add _ markup and
2848 remove trailing new line.
2849 (agent_run_command, agent_run_command): Add _ markup.
2850 (agent_capability_check): Likewise.
2851
abf1152a
JK
28522012-03-03 Jan Kratochvil <jan.kratochvil@redhat.com>
2853
2854 * breakpoint.c (set_condition_evaluation_mode): Set
2855 CONDITION_EVALUATION_MODE unconditionally.
2856
5808517f
YQ
28572012-03-03 Yao Qi <yao@codesourcery.com>
2858
2859 * common/agent.c (agent_look_up_symbols): Add one parameter 'arg'.
2860 * common/agent.h: Update declaration.
2861 * inf-child.c (inf_child_use_agent): New.
2862 (inf_child_can_use_agent): New.
2863 (inf_child_target): Initialize fields `to_use_agent'
2864 and `to_can_use_agent'.
2865 * agent.c (agent_new_objfile): New.
89b7509a 2866 (_initialize_agent): Add agent_new_objfile to new_objfile
5808517f
YQ
2867 observer.
2868
2869 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
2870 New.
89b7509a 2871 (linux_target_install_ops): Initialize field
5808517f
YQ
2872 `to_static_tracepoint_markers_by_strid'.
2873 * remote.c (free_current_marker): Move it to ...
2874 * tracepoint.c (free_current_marker): ... here. New.
2875 (cleanup_target_stop): New.
2876 * tracepoint.h: Declare free_current_marker.
2877 * NEWS: Add one entry about `info static-tracepoint-marker'.
2878
58b4daa5
YQ
28792012-03-03 Yao Qi <yao@codesourcery.com>
2880
2881 * common/agent.c (agent_loaded_p): New.
89b7509a 2882 (agent_look_up_symbols): New global.
58b4daa5
YQ
2883 * common/agent.h: Declare agent_loaded_p.
2884
8ffcbaaf
YQ
28852012-03-03 Yao Qi <yao@codesourcery.com>
2886
2887 * common/agent.c (struct ipa_sym_addresses) <addr_capability>: New.
2888 (agent_capability_check, agent_capability_invalidate): New.
2889 (symbol_list): New array element.
2890 * common/agent.h (enum agent_capa): New.
2891 * target.c (target_pre_inferior): Call agent_capability_invalidate.
2892
d1feda86
YQ
28932012-03-03 Yao Qi <yao@codesourcery.com>
2894
2895 * target.h (struct target_ops) <to_use_agent>: New field.
2896 (struct target_ops) <to_can_use_agent>: New field.
2897 (target_use_agent, target_can_use_agent): New macro.
2898 * target.c (update_current_target): Update.
2899 * remote.c: New enum `PACKET_QAgent'.
2900 (remote_protocol_features): Add a new element.
2901 (remote_use_agent, remote_can_use_agent): New.
2902 (init_remote_ops): Initialize field `can_use_agent' with
2903 remote_can_use_agent. Intiailize field `use_agent' with
2904 remote_use_agent.
2905 * common/agent.c (use_agent): New global.
2906 * common/agent.h: Declare it.
2907 * tracepoint.c (info_static_tracepoint_markers_command): Add
2908 comment.
2909 * Makefile.in (SFILES): Add common/agent.c and agent.c.
2910 (COMMON_OBS): Add common/agent.o and agent.o
2911 (common-agent.o): New rule.
2912 * agent.c: New.
2913
2fa291ac
YQ
29142012-03-03 Yao Qi <yao@codesourcery.com>
2915
2916 * common/agent.c: New.
2917 * common/agent.h: New.
2918 * configure.ac: Add `sys/socket.h' and `sys/un.h' to
2919 AC_CHECK_HEADERS.
2920 * configure, configh.in: Regenerated.
2921
9fc05685
KB
29222012-03-02 Kevin Buettner <kevinb@redhat.com>
2923
2924 * sh-tdep.c (sh_frame_cache): Don't fetch the FPSCR register
2925 unless it exists for this architecture.
2926
a5ee536b
JB
29272012-03-02 Joel Brobecker <brobecker@adacore.com>
2928
2929 * language.h (struct language_defn): New "method" la_read_var_value.
2930 * findvar.c: #include "language.h".
2931 (default_read_var_value): Renames read_var_value. Rewrite
2932 function description.
2933 (read_var_value): New function.
2934 * value.h (default_read_var_value): Add prototype.
2935 * ada-lang.c (ada_read_renaming_var_value, ada_read_var_value):
2936 New functions.
2937 (ada_language_defn): Add entry for la_read_var_value.
2938 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, language.c,
2939 * m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Update
2940 language_defn structures to add entry for new la_read_var_value
2941 field.
2942
f59f708a
PA
29432012-03-02 Tom Tromey <tromey@redhat.com>
2944 Pedro Alves <palves@redhat.com>
2945
2946 PR breakpoints/13776:
2947 * breakpoint.c (breakpoint_init_inferior): Delete step-resume
2948 breakpoints.
2949 (delete_longjmp_breakpoint_at_next_stop): New.
2950 * breakpoint.h (delete_longjmp_breakpoint_at_next_stop): Declare.
2951 * target.c (generic_mourn_inferior): Call mark_breakpoints_out
2952 before deleting the inferior. Add comments.
2953 * thread.c (clear_thread_inferior_resources): Don't delete lonjmp
2954 breakpoints immediately, but only on next stop. Move that code
2955 next to where we mark other breakpoints for deletion.
2956
44099a67
JB
29572012-03-02 Joel Brobecker <brobecker@adacore.com>
2958
2959 * mips-linux-nat.c (mips_linux_read_description): Add missing i18n
2960 marker.
2961 * mips-tdep.c (mips_linux_reg_names): Improve comment to avoid ARI
2962 violation.
2963
2a2ef594
PA
29642012-03-02 Pedro Alves <palves@redhat.com>
2965
2966 * linux-thread-db.c (attach_thread): Avoid in_thread_list call.
2967
b261e0c5
UW
29682012-03-02 Ulrich Weigand <uweigand@de.ibm.com>
2969
2970 Fix -Wmissing-prototypes build.
2971 * ppc-linux-nat.c (ppc_linux_get_hwcap): Make static.
2972 * remote-sim.c (gdbsim_has_all_memory): Likewise.
2973 (gdbsim_has_memory): Likewise.
2974
a95babbf
YQ
29752012-03-02 Yao Qi <yao@codesourcery.com>
2976
2977 Fix -Wmissing-prototypes build.
2978 * charset.c (phony_iconv_open): Make static.
2979 (phony_iconv_close, phony_iconv): Likewise.
2980 * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype.
2981 * i386-windows-nat.c (_initialize_i386_windows_nat): New
2982 prototype.
2983 * mingw-hdep.c (_initialize_mingw_hdep): New prototype.
2984 * ser-mingw.c (create_select_thread): Make static.
2985 * windows-termcap.c (tgetent): New prototype.
2986 (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
2987
d603d4b3
JK
29882012-03-02 Zhang Yuanhui <asmwarrior@gmail.com>
2989
2990 Fix -Wmissing-prototypes build.
2991 * windows-nat.c (dll_symbol_command, ctrl_c_handler): Make them static.
2992 (_initialize_windows_nat, _initialize_check_for_gdb_ini)
2993 (_initialize_loadable): New prototypes.
2994
7fb3ad1f
DE
29952012-03-02 Doug Evans <dje@google.com>
2996
2997 * dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
2998 abbrev table, read_comp_unit will do it.
2999
693be288
JK
30002012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3001
3002 Fix -Wmissing-prototypes build.
3003 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Make it static.
3004 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): New prototype.
3005 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Likewise.
3006 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code): Make it static.
3007 (_initialize_arm_symbian_tdep): New prototype.
3008 * arm-wince-tdep.c (arm_wince_skip_main_prologue): Make it static.
3009 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): New prototype.
3010 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Make it
3011 static.
3012 * lm32-tdep.c (_initialize_lm32_tdep): New prototype.
3013 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): New
3014 prototype.
3015 * microblaze-tdep.c (microblaze_debug, microblaze_fetch_instruction)
3016 (microblaze_skip_prologue, microblaze_frame_cache): Make them static.
3017 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Make it
3018 static.
3019 * moxie-tdep.c (moxie_process_record): Likewise.
3020 * remote-mips.c (mips_can_use_watchpoint, mips_insert_watchpoint)
3021 (mips_remove_watchpoint, mips_stopped_by_watchpoint): Make them static.
3022 * rl78-tdep.c (rl78_breakpoint_from_pc): Make it static.
3023 (_initialize_rl78_tdep): New prototype.
3024 * rx-tdep.c (rx_breakpoint_from_pc): Make it static.
3025 (_initialize_rx_tdep): New prototype.
3026 * solib-darwin.c (darwin_in_dynsym_resolve_code): Make it static.
3027 (_initialize_darwin_solib): New prototype.
3028 * solib-spu.c: Include solib-spu.h.
3029 (_initialize_spu_solib): New prototype.
3030 * spu-multiarch.c (_initialize_spu_multiarch): New prototype.
3031 * tic6x-tdep.c (tic6x_analyze_prologue, tic6x_skip_prologue)
3032 (tic6x_breakpoint_from_pc, tic6x_frame_unwind_cache)
3033 (tic6x_software_single_step): Make it static.
3034 (_initialize_tic6x_tdep): New prototype.
3035
638234e5
JK
30362012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3037
3038 Fix -Wmissing-prototypes build.
3039 * cris-tdep.c (cris_can_use_hardware_watchpoint)
3040 (cris_region_ok_for_watchpoint, cris_stopped_data_address): Remove.
3041
f4a6f16d
JK
30422012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3043
3044 Fix -Wmissing-prototypes build.
3045 * frv-tdep.c (frv_check_watch_resources, frv_stopped_data_address)
3046 (frv_have_stopped_data_address): Remove.
3047
04dcf5fa
JK
30482012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3049
3050 Fix -Wmissing-prototypes build.
3051 * Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h.
3052 * sh-tdep.c: Include sh64-tdep.h.
3053 * sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations.
3054 * sh64-tdep.c: Include sh64-tdep.h.
3055 * sh64-tdep.h: New file.
3056
19080931
MR
30572012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
3058
3059 * mips-tdep.c (mips32_scan_prologue): Correct indentation.
3060
9aac7884
MR
30612012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
3062
3063 * mips-tdep.c (mips_gdbarch_init): Only set pc_regnum and
3064 sp_regnum once the gdbarch_init_osabi hook has been called.
3065
a385295e
MR
30662012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
3067
3068 * mips-tdep.c (mips32_bc1_pc): New function.
3069 (mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T,
3070 BPOSGE32 and BPOSGE64 instructions.
3071 (deal_with_atomic_sequence): Likewise.
3072 (mips32_instruction_has_delay_slot): Likewise.
3073
1faeff08 30742012-03-01 Maciej W. Rozycki <macro@mips.com>
a09130f9
PA
3075 Chris Dearman <chris@mips.com>
3076 Maciej W. Rozycki <macro@codesourcery.com>
3077 Joseph Myers <joseph@codesourcery.com>
1faeff08
MR
3078
3079 * features/mips-dsp.xml: New file.
3080 * features/mips64-dsp.xml: New file.
3081 * features/mips-dsp-linux.xml: New file.
3082 * features/mips64-dsp-linux.xml: New file.
3083 * features/Makefile (WHICH): Add mips-dsp-linux and
3084 mips64-dsp-linux.
3085 (mips-dsp-expedite, mips64-dsp-expedite): New variables.
3086 * features/mips-dsp-linux.c: New file.
3087 * features/mips64-dsp-linux.c: New file.
3088 * regformats/mips-dsp-linux.dat: New file.
3089 * regformats/mips64-dsp-linux.dat: New file.
3090 * mips-linux-nat.c (mips_linux_register_addr): Handle DSP
3091 registers.
3092 (mips64_linux_register_addr): Likewise.
3093 (mips64_linux_regsets_fetch_registers): Likewise.
3094 (mips64_linux_regsets_store_registers): Likewise.
3095 (mips64_linux_fetch_registers): Update call to
3096 mips64_linux_regsets_fetch_registers.
3097 (mips64_linux_store_registers): Update call to
3098 mips64_linux_regsets_store_registers.
3099 (mips_linux_read_description): Probe for DSP registers.
3100 (_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux
3101 and initialize_tdesc_mips64_dsp_linux.
3102 * mips-linux-tdep.c (supply_gregset, mips64_supply_gregset):
3103 Remove padding of no longer used embedded register slots.
3104 * mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros.
3105 (MIPS_RESTART_REGNUM): Redefine enum value.
3106 * mips-tdep.c (mips_generic_reg_names): Remove trailing null
3107 strings.
3108 (mips_tx39_reg_names): Likewise.
3109 (mips_linux_reg_names): New array of register names for Linux
3110 targets.
3111 (mips_register_name): Check for a null pointer in
3112 mips_processor_reg_names and return an empty string.
3113 (mips_register_type): Exclude embedded registers for the IRIX
3114 and Linux ABIs.
3115 (mips_pseudo_register_type): Likewise. Use dynamic numbers to
3116 refer to FP registers, LO, HI, BadVAddr, Cause and PC. Handle
3117 DSP registers.
3118 (mips_stab_reg_to_regnum): Handle DSP accumulators.
3119 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
3120 (mips_gdbarch_init): Likewise. Initialize internal register
3121 indices for the Linux ABI. Use dynamic numbers to refer to
3122 registers, as applicable, while parsing the target description.
3123 * mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets.
3124
263689d8
JB
31252012-03-01 Joel Brobecker <brobecker@adacore.com>
3126
3127 * frame.h (read_frame_register_unsigned): Fix typo in function
3128 description.
3129
f3b4f45c
PA
31302012-03-01 Pedro Alves <palves@redhat.com>
3131
3132 * jit-reader.in [!__cplusplus]
3133 (GDB_DECLARE_GPL_COMPATIBLE_READER): Add missing backslash.
3134
b03a2011
PA
31352012-03-01 Pedro Alves <palves@redhat.com>
3136
3137 * configure.ac (build_warnings): Add -Wmissing-prototypes.
3138 * configure: Regenerate.
3139
70221824
PA
31402012-03-01 Pedro Alves <palves@redhat.com>
3141
3142 * amd64-linux-tdep.c (amd64_linux_record_signal): Make static.
3143 * breakpoint.c (create_exception_master_breakpoint, trace_command)
3144 (ftrace_command, strace_command): Make static.
3145 * d-lang.c (_initialize_d_language): Declare.
3146 * dwarf2expr.c (_initialize_dwarf2expr): Declare.
3147 * dwarf2loc.c (_initialize_dwarf2loc):
3148 * dwarf2read.c (process_psymtab_comp_unit): Make static.
3149 * exec.c (exec_get_section_table): Make static.
3150 * i386-linux-tdep.c (i386_linux_record_signal): Make static.
3151 * infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static.
3152 * inferior.c (remove_inferior_command, add_inferior_command)
3153 (clone_inferior_command): Make static.
3154 * linux-nat.c (linux_nat_thread_address_space)
3155 (linux_nat_core_of_thread): Make static.
3156 * linux-tdep.c (_initialize_linux_tdep): Declare.
3157 * objc-lang.c (_initialize_objc_lang): Declare.
3158 * opencl-lang.c (builtin_opencl_type, opencl_language_arch_info):
3159 Make static.
3160 (_initialize_opencl_language): Declare.
3161 * record.c (_initialize_record): Declare.
3162 * remote.c (demand_private_info, remote_get_tib_address)
3163 (remote_supports_cond_tracepoints)
3164 (remote_supports_fast_tracepoints, remote_get_tracepoint_status):
3165 Make static.
3166 * skip.c (_initialize_step_skip): Declare.
3167 * symtab.c (skip_prologue_using_lineinfo): Make static.
3168 * tracepoint.c (delete_trace_state_variable)
3169 (trace_variable_command, delete_trace_variable_command)
3170 (get_uploaded_tsv, find_matching_tracepoint_location)
3171 (find_matching_tsv, create_tsv_from_upload, get_traceframe_info):
3172 Make static.
3173 * value.c (pack_unsigned_long): Make static.
3174 * varobj.c (varobj_ensure_python_env): Make static.
3175 * windows-tdep.c (_initialize_windows_tdep): Declare.
3176 * xml-syscall.c (make_cleanup_free_syscalls_info): Make static.
3177
33fbcbee
PA
31782012-03-01 Pedro Alves <palves@redhat.com>
3179
3180 * linux-tdep.c (linux_has_shared_address_space): Make static. Add
3181 gdbarch parameter.
3182 (linux_init_abi): Install it as has_shared_address_space gdbarch
3183 callback.
3184
44d0cd3b
PA
31852012-03-01 Pedro Alves <palves@redhat.com>
3186
3187 * observer.c (observer_test_first_notification_function)
3188 (observer_test_second_notification_function)
3189 (observer_test_third_notification_function): Add declarations.
3190
ed01b82c
PA
31912012-03-01 Pedro Alves <palves@redhat.com>
3192
3193 * common/signals.c (default_target_signal_to_host)
3194 (default_target_signal_from_host): Move ...
3195 * arch-utils.c: ... here.
3196 * arch-utils.h (default_target_signal_to_host)
3197 (default_target_signal_from_host): Declare.
3198
3199 * common/signals.c (target_signal_from_command): Move ...
3200 * infrun.c: ... here.
3201 * inferior.h (target_signal_from_command): Declare.
3202 * target.h (target_signal_from_command)
3203 (default_target_signal_from_host, default_target_signal_to_host):
3204 Delete declarations.
3205
3206 * common/signals.c (_initialize_signals): Delete.
3207
c9b87335
PA
32082012-03-01 Pedro Alves <palves@redhat.com>
3209
3210 * jit-reader.in (plugin_is_GPL_compatible): Add declarations for
3211 both __cplusplus and !__cplusplus.
3212
9340a6c0
PA
32132012-03-01 Pedro Alves <palves@redhat.com>
3214
3215 * psymtab.c (find_and_open_source): Delete declaration.
3216 * source.c (find_and_open_source): Move comment ...
3217 * source.h (find_and_open_source): ... to this new declaration.
3218
e451c4a1
PA
32192012-03-01 Pedro Alves <palves@redhat.com>
3220
3221 * inline-frame.c: Include inline-frame.h.
3222
983fb104
PA
32232012-03-01 Pedro Alves <palves@redhat.com>
3224
3225 * tui/tui-data.c (set_gen_win_origin): Delete.
3226 * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration.
3227 * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete.
3228
5fbce5df
PA
32292012-03-01 Pedro Alves <palves@redhat.com>
3230
3231 * remote.c (encode_actions): Delete declaration.
3232 * tracepoint.c (encode_actions): Make extern.
3233 * tracepoint.h (encode_actions): Declare.
3234
49a8461d
PA
32352012-03-01 Pedro Alves <palves@redhat.com>
3236
3237 * python/py-breakpoint.c: Include python.h.
3238 * python/py-continueevent.c (create_continue_event_object): Make
3239 static.
3240 * python/py-lazy-string.c (stpy_get_type): Make static.
3241 * python/py-newobjfileevent.c (create_new_objfile_event_object):
3242 Make static.
3243 * python/py-utils.c (unicode_to_target_python_string): Make
3244 static.
3245 * python/py-value.c: Include python.h.
3246
9079102f
PA
32472012-03-01 Pedro Alves <palves@redhat.com>
3248
3249 * inferior.c (delete_threads_of_inferior): Delete.
3250
a298c5e8
PA
32512012-03-01 Pedro Alves <palves@redhat.com>
3252
3253 Import fallback definitions from glibc.
3254
3255 * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
3256 ps_prochandle): Forward declare.
3257 (ps_err_e): Use glibc's comments.
3258 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
3259 (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
3260 (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup)
3261 (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize)
3262 (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare.
3263 (struct ps_prochandle): Adjust comment.
3264
e3084549
PA
32652012-03-01 Pedro Alves <palves@redhat.com>
3266
3267 * ada-lang.c (ada_modulus_from_name): Delete.
3268 * ada-lex.l (lexer_init): Make static.
3269
ad5f7d6e
PA
32702012-03-01 Pedro Alves <palves@redhat.com>
3271
3272 PR gdb/13767
3273
3274 * frame.c (read_frame_register_unsigned): New.
3275 * frame.h (read_frame_register_unsigned): Declare.
3276 * i387-tdep.c (print_i387_status_word): New parameter `status_p'.
3277 Handle it.
3278 (print_i387_control_word): New parameter `control_p'. Handle it.
3279 (i387_print_float_info): Handle unavailable float registers.
3280
e0a4d108
KS
32812012-03-01 Keith Seitz <keiths@redhat.com>
3282
3283 * linespec.c (decode_line_2): Sort the list of methods
3284 alphabetically before presenting the user with a selection
3285 menu.
3286
122d1940
DE
32872012-03-01 Doug Evans <dje@google.com>
3288
3289 * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
3290 has_namespace_info.
3291 (dwarf2_read_abbrevs): Remove corresponding initialization.
3292
7d74f244
DE
32932012-03-01 Scott J. Goldman <scottjg@vmware.com>
3294
3295 * NEWS: Mention new python command class gdb.COMMAND_USER.
3296 * cli/cli-cmds.c (show_user): Print error when used on a python
3297 command.
3298 (init_cli_cmds): Update documentation strings for "show user" and
3299 "set/show max-user-call-depth" to clarify that it does not apply to
3300 python commands.
3301 * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in
3302 error check.
3303 (gdbpy_initialize_commands): Add COMMAND_USER as a constant in
3304 gdb python api.
3305 * top.c (execute_command): Only execute a user-defined command as a
3306 legacy macro if c->user_commands is set.
3307
e88acd96
TT
33082012-03-01 Tom Tromey <tromey@redhat.com>
3309
3310 * valprint.h (struct generic_val_print_decorations): New.
3311 (generic_val_print): Declare.
3312 * valprint.c (generic_val_print): New function.
3313 * p-valprint.c (p_decorations): New global.
3314 (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM,
3315 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT,
3316 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF,
3317 TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print.
3318 * m2-valprint.c (m2_decorations): New global.
3319 (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC,
3320 TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR,
3321 TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF,
3322 TYPE_CODE_ERROR>: Call generic_val_print.
3323 * f-valprint.c (f_decorations): New global.
3324 (f_val_print): Use print_function_pointer_address.
3325 <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS,
3326 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE,
3327 TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call
3328 generic_val_print.
3329 * c-valprint.c (c_decorations): New global.
3330 (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM,
3331 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL,
3332 TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT,
3333 TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR,
3334 TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print.
3335 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove
3336 case.
3337
d3eab38a
TT
33382012-03-01 Tom Tromey <tromey@redhat.com>
3339
3340 * valprint.c (val_print): Update.
3341 * p-valprint (pascal_val_print): Return void.
3342 * p-lang.h (pascal_val_print): Return void.
3343 * m2-valprint.c (m2_val_print): Return void.
3344 * m2-lang.h (m2_val_print): Return void.
3345 * language.h (struct language_defn) <la_val_print>: Return void.
3346 * language.c (unk_lang_val_print): Return void.
3347 * jv-valprint.c (java_val_print): Return void.
3348 * jv-lang.h (java_val_print): Return void.
3349 * f-valprint.c (f_val_print): Return void.
3350 * f-lang.h (f_val_print): Return void.
3351 * d-valprint.c (d_val_print): Return void.
3352 (dynamic_array_type): Update.
3353 * d-lang.h (d_val_print): Return void.
3354 * c-valprint.c (c_val_print): Return void.
3355 * c-lang.h (c_val_print): Return void.
3356 * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
3357 void.
3358 * ada-lang.h (ada_val_print): Return void.
3359
35c0084b
TT
33602012-03-01 Tom Tromey <tromey@redhat.com>
3361
3362 * value.h (val_print): Return void.
3363 * valprint.c (val_print): Return void.
3364
a1f5dd1b
TT
33652012-03-01 Tom Tromey <tromey@redhat.com>
3366
3367 * value.h (common_val_print): Return void.
3368 * valprint.c (common_val_print): Return void.
3369
8e069a98
TT
33702012-03-01 Tom Tromey <tromey@redhat.com>
3371
3372 * value.h (value_print): Return void.
3373 * valprint.c (value_print): Return void.
3374 * p-valprint.c (pascal_value_print): Return void.
3375 * p-lang.h (pascal_value_print): Return void.
3376 * language.h (struct language_defn) <la_value_print>: Return
3377 void.
3378 * language.c (unk_lang_value_print): Return void.
3379 * jv-valprint.c (java_value_print): Return void.
3380 * jv-lang.h (java_value_print): Return void.
3381 * f-valprint.c (c_value_print): Don't declare.
3382 Include c-lang.h.
3383 * c-valprint.c (c_value_print): Return void.
3384 * c-lang.h (c_value_print): Return void.
3385 * ada-valprint.c (ada_value_print): Return void.
3386 * ada-lang.h (ada_value_print): Return void.
3387
be335936
TT
33882012-03-01 Tom Tromey <tromey@redhat.com>
3389
3390 * value.c (value_primitive_field): Handle virtual base classes.
3391
b0db66a7
TT
33922012-03-01 Tom Tromey <tromey@redhat.com>
3393
3394 * gdbtypes.h (struct vbase): Remove.
3395
132c57b4
TT
33962012-03-01 Tom Tromey <tromey@redhat.com>
3397
3398 * c-valprint.c (print_function_pointer_address): Move...
3399 * valprint.c: ... here. Make non-static.
3400 * m2-valprint.c (print_function_pointer_address): Remove.
3401 * valprint.h (print_function_pointer_address): Declare.
3402
e41eec66
JB
34032012-03-01 Joel Brobecker <brobecker@adacore.com>
3404
3405 * NEWS: Document the fact that one can provide a condition when
3406 creating an Ada exception catchpoint.
3407
19c37f24
TT
34082012-03-01 Tom Tromey <tromey@redhat.com>
3409
3410 * valprint.c (val_print_type_code_flags): Fix placement of
3411 trailing brace.
3412
f0fed3a3
JB
34132012-03-01 Joel Brobecker <brobecker@adacore.com>
3414
3415 * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
3416 (update_files): Do not set MULTILINE_COMMENT_PREFIXES
3417 environment variable before calling update-copyright.
3418
8ba85d85
JB
34192012-03-01 Joel Brobecker <brobecker@adacore.com>
3420
3421 * gnulib/extra/update-copyright: Update to the latest from
3422 gnulib's git repository.
3423 * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
3424 variable to 2 instead of 1.
3425
8219b1e8
JB
34262012-02-29 Joel Brobecker <brobecker@adacore.com>
3427
3428 * varobj.c (c_value_of_variable): Remove dead code.
3429
718cb7da
JB
34302012-02-29 Joel Brobecker <brobecker@adacore.com>
3431
3432 * ada-lex.p (processId): Do not modify already encoded IDs.
3433 Update function documentation.
3434
739593e0
JB
34352012-02-29 Joel Brobecker <brobecker@adacore.com>
3436
3437 * ada-lang.h (ada_find_renaming_symbol): Replace parameter
3438 "name" with "struct symbol *name_sym".
3439 * ada-exp.y (write_var_or_type): Update call to
3440 ada_find_renaming_symbol.
3441 "name" with "struct symbol *name_sym". Adjust Implementation
3442 accordingly. Adjust the function documentation.
3443
852dff6c
JB
34442012-02-29 Joel Brobecker <brobecker@adacore.com>
3445
3446 * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
3447 * ada-lang.c (ada_find_any_type): Add advance declaration.
3448 Make static. Replace ada_find_any_symbol by
3449 ada_find_any_type_symbol.
3450 (ada_find_any_type_symbol): Renames ada_find_any_symbol.
3451 Improve function description. Make static.
3452 (ada_find_renaming_symbol, find_old_style_renaming_symbol):
3453 Replace ada_find_any_symbol by ada_find_any_type_symbol.
3454
1b611343
JB
34552012-02-29 Joel Brobecker <brobecker@adacore.com>
3456
3457 * ada-lang.c (struct tag_args): Delete.
3458 (ada_get_tsd_type): Function body moved up in source file.
3459 (ada_tag_name_1, ada_tag_name_2): Delete.
3460 (ada_get_tsd_from_tag): New function.
3461 (ada_tag_name_from_tsd): New function.
3462 (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
3463 to determine the tag name.
3464
41246937
JB
34652012-02-29 Joel Brobecker <brobecker@adacore.com>
3466
3467 * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
3468 declaration.
3469 * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
3470 function.
3471
ffde82bf
JB
34722012-02-29 Joel Brobecker <brobecker@adacore.com>
3473
3474 * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
3475
2ad01556
JB
34762012-02-29 Joel Brobecker <brobecker@adacore.com>
3477
3478 * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
3479 full searches.
3480
99b1c762
JB
34812012-02-29 Joel Brobecker <brobecker@adacore.com>
3482
3483 * ada-lang.c (constrained_packed_array_type): If there is a
3484 parallel XA type, use it to determine the array index type.
3485
2d4a02ee
JB
34862012-02-29 Joel Brobecker <brobecker@adacore.com>
3487
3488 * ada-valprint.c (ada_val_print_1): If our value is a reference
3489 to an array descriptor, dereference it before converting it
3490 to a simple array.
3491
c48db5ca
JB
34922012-02-29 Joel Brobecker <brobecker@adacore.com>
3493
3494 * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
3495 creating fixed value.
3496 (ada_value_ind, ada_coerce_ref, assign_component)
3497 (ada_evaluate_subexp): Remove call to unwrap_value before
3498 call to ada_to_fixed_value.
3499
2e6fda7d
JB
35002012-02-29 Joel Brobecker <brobecker@adacore.com>
3501
3502 * ada-lang.c (to_fixed_array_type): Set result's type name.
3503
5845583d
JB
35042012-02-29 Joel Brobecker <brobecker@adacore.com>
3505
3506 * ada-lang.c (catch_ada_exception_command_split): Add new
3507 argument cond_string. Add support for condition at end of
3508 "catch exception" commands.
3509 (ada_decode_exception_location): Add new argument cond_string.
3510 Update call to catch_ada_exception_command_split.
3511 (create_ada_exception_catchpoint): Add new argument cond_string.
3512 Set the breakpoint condition if needed.
3513 (catch_ada_exception_command): Update call to
3514 ada_decode_exception_location.
3515 (ada_decode_assert_location): Add function documentation.
3516 Add support for condition at end of "catch assert" command.
3517 (catch_assert_command): Update calls to ada_decode_assert_location
3518 and create_ada_exception_catchpoint.
3519
9a7f938f
JK
35202012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
3521
3522 Fix disp-step-syscall.exp: fork: single step over fork.
3523 * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
3524 (i386_linux_get_syscall_number_from_regcache): ... here, new function
3525 comment, change parameters gdbarch and ptid to regcache. Remove
3526 parameter regcache, initialize gdbarch from regcache here.
3527 (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
3528 New functions.
3529 (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
3530 instead.
3531 * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
3532 'syscall'. Make the 'int' check more strict.
3533
ffdf6de5
JK
35342012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
3535
3536 Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
3537 * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
3538 (i386_linux_intx80_sysenter_syscall_record): ... here.
3539 (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
3540 Use the renamed function name.
3541
c70a6932
JK
35422012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
3543
3544 * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
3545 * breakpoint.c (until_break_command): Likewise.
3546 * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
3547 * infcall.c (call_function_by_hand): Likewise.
3548 * infcmd.c (finish_forward): Likewise.
3549 * infrun.c (insert_exception_resume_breakpoint): Likewise.
3550
05b8a789 35512012-02-28 Tristan Gingold <gingold@adacore.com>
d4cd3da9 3552
d4cd3da9
JB
3553 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
3554 avoid variable assignments inside condition.
3555
6425366c
JK
35562012-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3557
3558 Fix static analysis issue found by cppcheck.
3559 * microblaze-tdep.c (microblaze_extract_return_value): Fix
3560 uninitialized BUF for size 2.
3561
c8cef75f 35622012-02-27 Chris Dearman <chris@mips.com>
a09130f9
PA
3563 Nathan Froyd <froydnj@codesourcery.com>
3564 Maciej W. Rozycki <macro@codesourcery.com>
c8cef75f
MR
3565
3566 * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
3567 (mips16_instruction_has_delay_slot): Likewise.
3568 (mips_segment_boundary): Likewise.
3569 (mips_adjust_breakpoint_address): Likewise.
3570 (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
3571
473347ad 35722012-02-27 Maciej W. Rozycki <macro@mips.com>
a09130f9 3573 Maciej W. Rozycki <macro@codesourcery.com>
473347ad
MR
3574
3575 * infrun.c (handle_inferior_event): Don't proceed through
3576 shared library trampolines if stepping at the machine
3577 instruction level.
3578
cf233303
MR
35792012-02-27 Maciej W. Rozycki <macro@codesourcery.com>
3580
3581 * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
3582 too.
3583
cb2cf4ce
TS
35842012-02-27 Thomas Schwinge <thomas@codesourcery.com>
3585
3586 * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
3587 (sh_stub_unwind_sniffer): New functions.
3588 (sh_stub_unwind): New variable.
3589 (sh_gdbarch_init): Wire everything.
3590
644cebc9
PA
35912012-02-27 Pedro Alves <palves@redhat.com>
3592
3593 * linux-nat.c (pid_is_stopped): Delete, moved to common/.
3594 (linux_nat_post_attach_wait): Adjust to use
3595 linux_proc_pid_is_stopped.
3596 * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
3597 * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
3598 based on pid_is_stopped from both linux-nat.c and
3599 gdbserver/linux-low.c, and renamed.
3600
283002cf
MR
36012012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
3602
3603 * remote.c (remote_watchpoint_addr_within_range): New function.
3604 (init_remote_ops): Use it.
3605
9b3e86b1
MR
36062012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
3607
3608 * target.h (target_watchpoint_addr_within_range): Document macro.
3609
e36930bb
PA
36102012-02-24 Pedro Alves <palves@redhat.com>
3611
3612 * stack.c (set_last_displayed_sal): Issue internal_error instead
3613 of warning, and issue it after clearing the last displayed sal.
3614
883bc8d1
PA
36152012-02-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3616 Pedro Alves <palves@redhat.com>
3617
3618 * breakpoint.c (until_break_command): Install breakpoints after
3619 all frame manipulations.
3620
b775012e
LM
36212012-02-24 Luis Machado <lgustavo@codesourcery.com>
3622
3623 * remote.c (remote_supports_cond_breakpoints): New forward
3624 declaration.
3625 (remote_add_target_side_condition): New function.
3626 (remote_insert_breakpoint): Add target-side breakpoint
3627 conditional if supported.
3628 (remote_insert_hw_breakpoint): Likewise.
3629 (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
3630 hook.
3631
3632 * target.c (update_current_target): Inherit
3633 to_supports_evaluation_of_breakpoint_conditions.
3634 Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
3635
3636 * target.h (struct target_ops)
3637 <to_supports_evaluation_of_breakpoint_conditions>: New field.
3638 (target_supports_evaluation_of_breakpoint_conditions): New #define.
3639
3640 * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
3641 (condition_evaluation_both, condition_evaluation_auto,
3642 condition_evaluation_host, condition_evaluation_target,
3643 condition_evaluation_enums, condition_evaluation_mode_1,
3644 condition_evaluation_mode): New static globals.
3645 (translate_condition_evaluation_mode): New function.
3646 (breakpoint_condition_evaluation_mode): New function.
3647 (gdb_evaluates_breakpoint_condition_p): New function.
3648 (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
3649 (mark_breakpoint_modified): New function.
3650 (mark_breakpoint_location_modified): New function.
3651 (set_condition_evaluation_mode): New function.
3652 (show_condition_evaluation_mode): New function.
3653 (bp_location_compare_addrs): New function.
3654 (get_first_location_gte_addr): New helper function.
3655 (set_breakpoint_condition): Free condition bytecode if locations
3656 has become unconditional. Call mark_breakpoint_modified (...).
3657 (condition_command): Call update_global_location_list (1) for
3658 breakpoints.
3659 (breakpoint_xfer_memory): Use is_breakpoint (...).
3660 (is_breakpoint): New function.
3661 (parse_cond_to_aexpr): New function.
3662 (build_target_condition_list): New function.
3663 (insert_bp_location): Handle target-side conditional
3664 breakpoints and call build_target_condition_list (...).
3665 (update_inserted_breakpoint_locations): New function.
3666 (insert_breakpoint_locations): Handle target-side conditional
3667 breakpoints.
3668 (bpstat_check_breakpoint_conditions): Add comment.
3669 (bp_condition_evaluator): New function.
3670 (bp_location_condition_evaluator): New function.
3671 (print_breakpoint_location): Print information on where the condition
3672 will be evaluated.
3673 (print_one_breakpoint_location): Likewise.
3674 (init_bp_location): Call mark_breakpoint_location_modified (...) for
3675 breakpoint location.
3676 (force_breakpoint_reinsertion): New functions.
3677 (update_global_location_list): Handle target-side breakpoint
3678 conditions.
3679 Reinsert locations that are already inserted if conditions have
3680 changed.
3681 (bp_location_dtor): Free agent expression bytecode.
3682 (disable_breakpoint): Call mark_breakpoint_modified (...).
3683 Call update_global_location_list (...) with parameter 1 for breakpoints.
3684 (disable_command): Call mark_breakpoint_location_modified (...).
3685 Call update_global_location_list (...) with parameter 1 for breakpoints.
3686 (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
3687 (enable_command): mark_breakpoint_location_modified (...).
3688 (_initialize_breakpoint): Update documentation and add
3689 condition-evaluation breakpoint subcommand.
3690
3691 * breakpoint.h: Include ax.h.
3692 (condition_list): New data structure.
3693 (condition_status): New enum.
3694 (bp_target_info) <cond_list>: New field.
3695 (bp_location) <condition_changed, cond_bytecode>: New fields.
3696 (is_breakpoint): New prototype.
3697
3788aec7
LM
36982012-02-24 Luis Machado <lgustavo@codesourcery.com>
3699
3700 * remote.c (remote_state) <cond_breakpoints>: New field.
3701 (PACKET_ConditionalBreakpoints): New enum.
3702 (remote_cond_breakpoint_feature): New function.
3703 (remote_protocol_features): Add new ConditionalBreakpoints entry.
3704 (remote_supports_cond_breakpoints): New function.
3705 (_initialize_remote): Add new packet configuration for
3706 target-side conditional breakpoints.
3707
72895ff6
LM
37082012-02-24 Luis Machado <lgustavo@codesourcery.com>
3709
3710 * NEWS: Mention target-side conditional breakpoint support,
3711 new condition-evaluation breakpoint subcommand and remote
3712 packet extensions.
3713
dea2aa5f
LM
37142012-02-24 Luis Machado <lgustavo@codesourcery.com>
3715
3716 * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
3717 number.
3718
8a8bc27f
TS
37192012-02-24 Thomas Schwinge <thomas@codesourcery.com>
3720
3721 * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
3722 (after_prologue): Remove.
3723
6b446fdf
TT
37242012-02-23 Tom Tromey <tromey@redhat.com>
3725
3726 * jv-valprint.c (java_val_print): Remove dead code.
3727
ef59abfb
TG
37282012-02-23 Tristan Gingold <gingold@adacore.com>
3729
a09130f9
PA
3730 * ada-tasks.c (struct ada_tasks_inferior_data): Add
3731 known_tasks_element and known_tasks_length fields.
3732 (read_known_tasks_array): Change argument type. Use pointer type
3733 and number of elements from DATA. Adjust.
3734 (read_known_tasks_list): Likewise.
3735 (get_known_tasks_addr): Remove.
3736 (ada_set_current_inferior_known_tasks_addr): Renamed to ...
3737 (ada_tasks_inferior_data_sniffer): ... this. Use symtab for element
3738 type and array length. Merge former get_known_tasks_addr code.
ef59abfb 3739
def166f6
JK
37402012-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
3741
3742 PR backtrace/13716
3743 * infcmd.c (finish_forward): New variable frame_id, initialize it, use
3744 it after set_momentary_breakpoint.
3745
aeaa2474
SA
37462012-02-22 Sterling Augustine <saugustine@google.com>
3747
3748 PR 13689:
3749 * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
3750
feea76c2
GB
37512012-02-22 Gary Benson <gbenson@redhat.com>
3752
3753 * dwarf2read.c (dwarf2_read_index): Correct misspelling.
3754 (find_slot_in_mapped_hash): Likewise.
3755
f06e05e0
JK
37562012-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3757
3758 PR build/13638
3759 * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
3760 (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
3761 * configure: Regenerate.
3762
b54a8fd7
PA
37632012-02-21 Tristan Gingold <gingold@adacore.com>
3764 Pedro Alves <palves@redhat.com>
3765
3766 * ia64-tdep.c: Do not include libunwind-ia64.h.
3767 * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
3768 Include libunwind-ia64.h instead of libunwind.h.
3769 * configure.ac (--with-libunwind, $enable_libunwind): Don't check
3770 for libunwind.h existence.
3771 * configure, config.in: Regenerate.
3772
dfcee124
AG
37732012-02-21 Anton Gorenkov <xgsa@yandex.ru>
3774
3775 * c-valprint.c (c_value_print): Use value_rtti_indirect_type
3776 instead of value_rtti_target_type.
3777 * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
3778 instead of value_rtti_target_type.
3779 * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
3780 value_rtti_target_type.
3781 * valops.c (value_ind): Extract function readjust_indirect_value_type.
3782 (value_rtti_target_type): Rename to ...
3783 (value_rtti_indirect_type): ... here and make it indirect. Update
3784 function comment.
3785 * value.c (readjust_indirect_value_type): New function.
3786 (coerce_ref): Support for enclosing type setting for references
3787 with readjust_indirect_value_type.
3788 * value.h (readjust_value_type): New declaration.
3789 (value_rtti_target_type): Rename to ...
3790 (value_rtti_indirect_type): ... here.
3791
02568277
AG
37922012-02-21 Anton Gorenkov <xgsa@yandex.ru>
3793
3794 * MAINTAINERS (Write After Approval): Add myself to the list.
3795
10c07b7e 37962012-02-20 Doug Evans <dje@google.com>
28ee876a 3797
d82ea6a8
DE
3798 * objfiles.c (add_to_objfile_sections): Remove outdated comments.
3799 Rename objfile_p_char parameter to objfilep.
3800 (build_objfile_section_table): Result is now void. All callers
3801 updated.
3802 * objfiles.h (struct objfile): Tweak comments, whitespace.
3803 (build_objfile_section_table): Update.
3804
28ee876a
DE
3805 * elfread.c (elf_symfile_segments): Fix warning text.
3806
24c79950
TT
38072012-02-20 Tom Tromey <tromey@redhat.com>
3808
3809 PR gdb/13498:
3810 * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
3811 particular set of file names once.
3812 (dw2_map_symbol_filenames): Likewise.
3813
3a9b40b6
JK
38142012-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3815
3816 Code cleanup.
3817 * main.c (write_files): Remove the declaration.
3818 (external_editor_command): Move the declaration ...
3819 [GDBTK] (external_editor_command): ... here. Fix the comment.
3820
4d0795ca
TT
38212012-02-20 Tom Tromey <tromey@redhat.com>
3822
3823 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
3824 extraneous block.
3825
637fd620
TG
38262012-02-20 Tristan Gingold <gingold@adacore.com>
3827
3828 * darwin-nat.h (enum darwin_msg_state): Add comments.
3829
6f124894
TG
38302012-02-20 Tristan Gingold <gingold@adacore.com>
3831
3832 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
3833 value.
3834
2e6e3d9c
JB
38352012-20-18 Joel Brobecker <brobecker@adacore.com>
3836
3837 * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
3838 between function description and implementation.
3839
2e8265fd
TT
38402012-02-17 Tom Tromey <tromey@redhat.com>
3841
3842 PR python/12070:
3843 * python/py-event.c (event_object_getset): New global.
3844 (event_object_type): Reference it.
3845 * python/py-type.c (field_object_getset): New global.
3846 (field_object_type): Reference it.
3847 * python/python-internal.h (gdb_py_generic_dict): Declare.
3848 * python/py-utils.c (gdb_py_generic_dict): New function.
3849
8544a150 38502012-02-17 Tristan Gingold <gingold@adacore.com>
6f124894 3851
8544a150 3852 * solib-darwin.c (darwin_current_sos): Check magic and filetype
6f124894 3853
ca193e27
TS
38542012-02-17 Thomas Schwinge <thomas@codesourcery.com>
3855
3856 * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
3857 TYPE_CALLING_CONVENTION annotation.
3858
e5586183
KB
38592012-02-16 Kevin Buettner <kevinb@redhat.com>
3860
3861 * MAINTAINERS: Add rx to target ISA section.
3862 * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
3863 (ALLDEPFILES): Add rx-tdep.c.
3864
7dcd53a0
TT
38652012-02-16 Tom Tromey <tromey@redhat.com>
3866
3867 * symfile.c (symbol_file_add_main_1): Use inferior's
3868 symfile_flags.
3869 * solib.c (solib_read_symbols): Use inferior's symfile_flags.
3870 * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
3871 inferior.
3872 * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
3873 inferior.
3874 (follow_exec): Use inferior's symfile_flags.
3875 * inferior.h (struct inferior) <symfile_flags>: New field.
3876
ddd60447
MF
38772012-02-16 Mike Frysinger <vapier@gentoo.org>
3878
3879 PR gdb/9734:
3880 * remote-sim.c (gdbsim_create_inferior): Call error() when
3881 sim_create_inferior() fails.
3882
b0d32fb6
TG
38832012-02-16 Josh Matthews <josh@joshmatthews.net>
3884
3885 * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
3886
9addecb9
TT
38872012-02-16 Tom Tromey <tromey@redhat.com>
3888
3889 PR c++/13653:
3890 * thread.c (struct current_thread_cleanup) <was_removable>: New
3891 field.
3892 (restore_current_thread_cleanup_dtor): Restore 'removable' field.
3893 (make_cleanup_restore_current_thread): Initialize new field.
3894
a58b110a
KB
38952012-02-15 Kevin Buettner <kevinb@redhat.com>
3896
3897 * MAINTAINERS: Add rl78 to target ISA section.
3898 * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
3899 (ALLDEPFILES): Add rl78-tdep.c.
3900 * NEWS: Mention rl78 as a new target.
3901
4cb6da1c
AR
39022012-02-15 Aleksandar Ristovski <aristovski@qnx.com>
3903
3904 * frame.c (find_frame_sal): Initialize sal->pspace field from frame
3905 data.
3906 * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
3907
3af2590d
TT
39082012-02-15 Tom Tromey <tromey@redhat.com>
3909
3910 PR gdb/12659:
3911 * infcmd.c (registers_info): Print just the current register's
3912 name.
3913
c6910659
TT
39142012-02-15 Tom Tromey <tromey@redhat.com>
3915
3916 * python/py-symbol.c (sympy_value): Use _().
3917
7cee1e54
PA
39182012-02-15 Pedro Alves <palves@redhat.com>
3919
3920 * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
3921 output to be like native targets'.
3922 (remote_pid_to_str): Special case the null ptid.
3923
816338b5
SS
39242012-02-14 Stan Shebs <stan@codesourcery.com>
3925
3926 * NEWS: Mention enable count command.
3927 * breakpoint.h (struct breakpoint): New field enable_count.
3928 * breakpoint.c (enable_breakpoint_disp): Add count argument.
3929 (enable_breakpoint): Add arg to call.
3930 (struct disp_data): New struct.
3931 (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
3932 (do_map_enable_once_breakpoint): Create a struct and pass it.
3933 (do_map_enable_delete_breakpoint): Ditto.
3934 (do_map_enable_count_breakpoint): New function.
3935 (enable_count_command): New function.
3936 (bpstat_stop_status): Decrement enable_count.
3937 (print_one_breakpoint_location): Report enable count.
3938 (_initialize_breakpoint): Add enable count command.
3939
c47a44f4
KB
39402012-02-14 Kevin Buettner <kevinb@redhat.com>
3941
3942 * rl78-tdep.c (reggroups.h): Include.
3943 (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
3944 (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
3945 (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
3946 (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
3947 (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
3948 (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
3949 (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
3950 (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
3951 (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
3952 (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
3953 (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
3954 (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
3955 (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
3956 (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
3957 (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
3958 (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
3959 beginning of register list.
3960 (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
3961 (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
3962 (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
3963 (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
3964 (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
3965 (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
3966 (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
3967 (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
3968 (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
3969 (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
3970 (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
3971 the pseudo registers. Rearrange other pseudo registers too so
3972 that the bank registers appear at the end.
3973 (rl78_register_type): Account for the fact that the byte sized
3974 bank registers are now pseudo-registers.
3975 (rl78_register_name): Rearrange the register name array. Make
3976 initial set of raw banked registers inaccessible.
3977 (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
3978 (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
3979 case for copying bytes back and forth between raw and pseudo
3980 versions of the banked registers. Update other cases to reflect
3981 the changed names.
3982 (rl78_return_value): Update to account for changed names of
3983 raw registers.
3984 (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
3985 rl78_register_sim_regno().
3986
e4569f1e
KB
39872012-02-14 Kevin Buettner <kevinb@redhat.com>
3988
3989 * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
3990 the name parameter being passed to find_pc_partial_function().
3991
7a05aae7
JK
39922012-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
3993
3994 * MAINTAINERS: Step down from being ia64 target maintainer.
3995
11fde611
JK
39962012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
3997
3998 * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
3999 compilation warning.
4000
57008375
JK
40012012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
4002
4003 Fix crash on loaded shlibs without loaded exec_bfd.
4004 * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
4005 (set_section_command): Replace exec_bfd by p->bfd.
4006
ff3c9849
TT
40072012-02-10 Tom Tromey <tromey@redhat.com>
4008
4009 * linespec.c (decode_line_internal): Skip symtabs_from_filename
4010 when we have a C++ qualified name.
4011
db2b9fdd
PA
40122012-02-10 Pedro Alves <palves@redhat.com>
4013
4014 * inferior.c (inferior_pid_to_str): New.
4015 (print_inferior, inferior_command): Use it.
4016
12cd34f3
PA
40172012-02-10 Pedro Alves <palves@redhat.com>
4018
4019 * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
4020 the test CFLAGS.
4021 * configure: Regenerate.
4022
e871429d
JK
40232012-02-10 Jan Kratochvil <jan.kratochvil@redhat.com>
4024
4025 * linespec.c (decode_line_internal): Fix comment correctness.
4026
1916efaf
PA
40272012-02-09 Valery Khromov <valery.khromov@gmail.com>
4028
4029 PR gdb/12953
4030 * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
4031 * amd64bsd-nat.c: Add support for debug registers (adapted from
4032 i386bsd-nat.c).
4033 [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
4034 (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
4035 (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
4036 (amd64bsd_dr_get_control): New functions.
4037 * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
4038 * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
4039 [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
4040 watchpoints initialization.
4041 * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
4042
f4859d94
JK
40432012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
4044
4045 * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
4046 flds_bnds.fields.
4047 (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
4048
c56a97f9
JK
40492012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
4050
4051 * breakpoint.c (bp_location_compare): Fix comment. Reindent the code.
4052
1a119f36
JB
40532012-02-08 Joel Brobecker <brobecker@adacore.com>
4054
4055 * language.h (symbol_name_cmp_ftype): Renames
4056 symbol_name_match_p_ftype.
4057 (struct language_defn)[la_get_symbol_name_cmp]: Renames
4058 la_get_symbol_name_match_p.
4059 * ada-lang.c (ada_get_symbol_name_cmp): Renames
4060 ada_get_symbol_name_match_p. Update comment.
4061 (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
4062 * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
4063 Renames symbol_name_match_p. Update field type.
4064 (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
4065 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
4066 opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
4067 "la_get_symbol_name_cmp" in comments.
4068 * language.c: Likewise.
4069
c71bb1cf
RO
40702012-02-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4071
4072 * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
4073 %eflags offset.
4074 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
4075 (amd64_sol2_gregset32_reg_offs): Likewise.
4076
4b2d20a5
TG
40772012-02-08 Joel Brobecker <brobecker@adacore.com>
4078
4079 * solib-darwin.c (darwin_bfd_open): Make sure that the filename
4080 of the returned BFD is allocated by GDB.
4081
f0823d2c
TT
40822012-02-07 Tom Tromey <tromey@redhat.com>
4083
4084 PR python/12027:
4085 * python/python-internal.h (frame_object_type): Declare.
4086 * python/py-symbol.c (sympy_needs_frame): New function.
4087 (sympy_value): New function.
4088 (symbol_object_getset): Add "needs_frame".
4089 (symbol_object_methods): Add "value".
4090 * python/py-frame.c (frame_object_type): No longer static.
4091
64e7d9dd
TT
40922012-02-07 Tom Tromey <tromey@redhat.com>
4093
4094 PR python/13599:
4095 * python/py-symbol.c (sympy_line): New function.
4096 (symbol_object_getset): Add "line".
4097
1d6b2d2b
TT
40982012-02-07 Tom Tromey <tromey@redhat.com>
4099
4100 * charset.c (find_charset_names): Check 'in' against NULL.
4101
0d5cff50
DE
41022012-02-06 Doug Evans <dje@google.com>
4103
4104 * gdbtypes.h (struct main_type): Change type of name,tag_name,
4105 and fields.name members from char * to const char *. All uses updated.
4106 (struct cplus_struct_type): Change type of fn_fieldlists.name member
4107 from char * to const char *. All uses updated.
4108 (type_name_no_tag): Update.
4109 (lookup_unsigned_typename, lookup_signed_typename): Update.
4110 * gdbtypes.c (type_name_no_tag): Change result type
4111 from char * to const char *. All callers updated.
4112 (lookup_unsigned_typename, lookup_signed_typename): Change type of
4113 name parameter from char * to const char *.
4114 * symtab.h (struct cplus_specific): Change type of demangled_name
4115 member from char * to const char *. All uses updated.
4116 (struct general_symbol_info): Change type of name and
4117 mangled_lang.demangled_name members from char * to const char *.
4118 All uses updated.
4119 (symbol_get_demangled_name, symbol_natural_name): Update.
4120 (symbol_demangled_name, symbol_search_name): Update.
4121 * symtab.c (symbol_get_demangled_name): Change result type
4122 from char * to const char *. All callers updated.
4123 (symbol_natural_name, symbol_demangled_name): Ditto.
4124 (symbol_search_name): Ditto.
4125 (completion_list_add_name): Change type of symname,sym_text,
4126 text,word parameters from char * to const char *.
4127 (completion_list_objc_symbol): Change type of sym_text,
4128 text,word parameters from char * to const char *.
4129 * ada-lang.c (find_struct_field): Change type of name parameter
4130 from char * to const char *.
4131 (encoded_ordered_before): Similarly for N0,N1 parameters.
4132 (old_renaming_is_invisible): Similarly for function_name parameter.
4133 (ada_type_name): Change result type from char * to const char *.
4134 All callers updated.
4135 * ada-lang.h (ada_type_name): Update.
4136 * buildsym.c (hashname): Change type of name parameter
4137 from char * to const char *.
4138 * buildsym.h (hashname): Update.
4139 * dbxread.c (end_psymtab): Change type of include_list parameter
4140 from char ** to const char **.
4141 * dwarf2read.c (determine_prefix): Change result type
4142 from char * to const char *. All callers updated.
4143 * f-lang.c (find_common_for_function): Change type of name, funcname
4144 parameters from char * to const char *.
4145 * f-lang.c (find_common_for_function): Update.
4146 * f-valprint.c (list_all_visible_commons): Change type of funcname
4147 parameters from char * to const char *.
4148 * gdbarch.sh (static_transform_name): Change type of name parameter
4149 and result from char * to const char *.
4150 * gdbarch.c: Regenerate.
4151 * gdbarch.h: Regenerate.
4152 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
4153 of name parameter from char * to const char *.
4154 * jv-lang.c (java_primitive_type_from_name): Ditto.
4155 (java_demangled_signature_length): Similarly for signature parameter.
4156 (java_demangled_signature_copy): Ditto.
4157 (java_demangle_type_signature): Ditto.
4158 * jv-lang.h (java_primitive_type_from_name): Update.
4159 (java_demangle_type_signature): Update.
4160 * objc-lang.c (specialcmp): Change type of a,b parameters
4161 from char * to const char *.
4162 * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
4163 from char * to const char *. All callers updated.
4164 * p-lang.h (is_pascal_string_type): Update.
4165 * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
4166 of name parameter from char * to const char *.
4167 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
4168 * utils.c (fprintf_symbol_filtered): Ditto.
4169 * defs.h (fprintf_symbol_filtered): Update.
4170 * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
4171 * stabsread.h (end_psymtab): Update.
4172 * stack.c (find_frame_funname): Change type of funname parameter
4173 from char ** to const char **.
4174 * stack.h (find_frame_funname): Update.
4175 * typeprint.c (type_print): Change type of varstring parameter
4176 from char * to const char *.
4177 * value.h (type_print): Update.
4178 * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
4179 from char * to const char *. All callers updated.
4180 (xcoff_end_psymtab): Change type of include_list parameter
4181 from char ** to const char **. All callers updated.
4182 (swap_sym): Similarly for name parameter. All callers updated.
4183 * coffread.c (patch_type): Add (char*) cast to xfree parameter.
4184 Use xstrdup.
4185 (process_coff_symbol): Use xstrdup.
4186 * stabsread.c (stabs_method_name_from_physname): Renamed from
4187 update_method_name_from_physname. Change result type from void
4188 to char *. All callers updated.
4189 (read_member_functions): In has_destructor case, store name in objfile
4190 obstack instead of malloc space. In !has_stub case, fix mem leak.
4191
5579a92e
TT
41922012-02-06 Luca Pizzamiglio <luca.pizzamiglio@gmail.com>
4193
4194 * configure: Rebuild.
4195 * configure.ac: Put -L../bfd and -L../libiberty at the front of
4196 LDFLAGS.
4197
9058f767
KB
41982012-02-03 Kevin Buettner <kevinb@redhat.com>
4199
4200 * configure.tgt (rl78-*-elf): New target.
4201 * rl78-tdep.c: New file.
4202
5b37825d
PW
42032012-02-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4204
4205 * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
4206 and continue the loop. Add QUIT statement.
4207
e009ee71
TT
42082012-02-03 Tom Tromey <tromey@redhat.com>
4209
4210 PR gdb/13596:
4211 * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
4212 bfd_lookup_symbol_from_symtab.
4213 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
4214 gdb_bfd_lookup_symbol_from_symtab.
4215
f7e44f65
JB
42162012-02-03 Joel Brobecker <brobecker@adacore.com>
4217
4218 * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
4219 use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
4220 symbol. Add assertion that sym2 is never NULL.
4221
2c02bd72
DE
42222012-02-02 Doug Evans <dje@google.com>
4223
4224 * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
4225 "name" parameter to const char ** from char **. All callers updated.
4226 (find_pc_partial_function): Ditto.
4227 (cache_pc_function_name): Change type to const char * from char *.
4228 * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
4229 (find_pc_partial_function): Update.
4230 * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
4231 type of "name" parameter to const char * from char *.
4232 All uses updated.
4233 * arch-utils.c (generic_in_solib_return_trampoline): Change
4234 type of "name" parameter to const char * from char *.
4235 * arch-utils.h (generic_in_solib_return_trampoline): Update.
4236 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
4237 type of "name" parameter to const char * from char *.
4238 * gdbarch.sh (in_solib_return_trampoline): Ditto.
4239 * gdbarch.c: Regenerate.
4240 * gdbarch.h: Regenerate.
4241 * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
4242 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
4243 * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
4244 type of "name" parameter to const char * from char *.
4245 * skip.c (skip_function_pc): Ditto.
4246 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
4247 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
4248 * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
4249 * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
4250 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
4251 * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
4252 * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
4253 * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
4254 * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
4255
e886a173
PA
42562012-02-02 Pedro Alves <palves@redhat.com>
4257
4258 * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
4259 the current inferior has no execution. Make sure the current
4260 remote process matches gdb's current inferior.
4261
c709a7c2
TT
42622012-02-02 Tom Tromey <tromey@redhat.com>
4263
4264 PR gdb/13405:
4265 * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
4266 read-only memory.
4267
f149aabd
TT
42682012-02-02 Tom Tromey <tromey@redhat.com>
4269
4270 PR gdb/9307:
4271 * symtab.c (lookup_language_this): Set block_found.
4272
03bef283
TT
42732012-02-01 Tom Tromey <tromey@redhat.com>
4274
4275 PR gdb/13431:
4276 * jit.c (struct jit_inferior_data): Rewrite.
4277 (struct jit_objfile_data): New.
4278 (get_jit_objfile_data): New function.
4279 (add_objfile_entry): Update.
4280 (jit_read_descriptor): Return int. Replace descriptor_addr
4281 argument with inf_data. Update. Don't call error.
4282 (jit_breakpoint_re_set_internal): Reorder logic. Update. Look up
4283 descriptor here.
4284 (jit_inferior_init): Don't look up descriptor. Don't call error.
4285 (jit_reset_inferior_data_and_breakpoints)
4286 (jit_inferior_created_observer): Remove.
4287 (jit_inferior_exit_hook): Update.
4288 (jit_executable_changed_observer): Remove.
4289 (jit_event_handler): Update.
4290 (free_objfile_data): Reset inferior data if needed.
4291 (_initialize_jit): Update.
4292
f0bbc364
TT
42932012-02-01 Tom Tromey <tromey@redhat.com>
4294
4295 * jit.c (bfd_open_from_target_memory): Move higher in file.
4296
47c1316c
TG
42972012-02-01 Tristan Gingold <gingold@adacore.com>
4298
4299 * libunwind-frame.c (libunwind_load): Display message if dlopen
4300 failed.
4301
8e704927
GB
43022012-02-01 Gary Benson <gbenson@redhat.com>
4303
09c7a31f 4304 * symtab.h (symbol_found_callback_ftype): New typedef.
8e704927
GB
4305 (iterate_over_symbols): Use the above.
4306 * symtab.c (iterate_over_symbols): Likewise.
4307 * language.h (language_defn->la_iterate_over_symbols): Likewise.
4308 * ada-lang.c (ada_iterate_over_symbols): Likewise.
4309 * linespec.c (iterate_over_all_matching_symtabs): Likewise.
4310 (iterate_name_matcher): Document return values.
4311 (collect_one_symbol): Likewise.
4312 (collect_function_symbols): Likewise.
4313 (collect_symbols): Likewise.
4314
d9680e73
TT
43152012-02-01 Tom Tromey <tromey@redhat.com>
4316
4317 * ada-lang.c (resolve_subexp): Update.
4318 (ada_lookup_symbol_list): Add 'full_search' argument.
4319 (ada_iterate_over_symbols): Pass 0 as full_search argument to
4320 ada_lookup_symbol_list.
4321 (ada_lookup_encoded_symbol): Update.
4322 (get_var_value): Update.
4323 * ada-exp.y (block_lookup): Update.
4324 (write_var_or_type): Update.
4325 (write_name_assoc): Update.
4326 * ada-lang.h (ada_lookup_symbol_list): Update.
4327
72e1143f
TT
43282012-01-31 Tom Tromey <tromey@redhat.com>
4329
4330 * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
4331 comment.
4332
ab2d2ad3
DE
43332012-01-31 Doug Evans <dje@google.com>
4334
4335 * symtab.h: Remove outdated comment.
e9111bf7 4336 (SYMBOL_MATCHES_NATURAL_NAME): Delete.
ab2d2ad3 4337
bc884eba
JB
43382012-02-01 Josh Matthews <josh@joshmatthews.net> (tiny change)
4339
4340 Fix build error in Darwin port.
4341 * i386-darwin-nat.c: Include i386-nat.h.
4342
8fc3fc34
TT
43432012-01-30 Tom Tromey <tromey@redhat.com>
4344
4345 PR breakpoints/13568:
4346 * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
4347 argument. Check for recursive includes.
4348 (dwarf_decode_macros): Create an include hash.
4349
5d853008
ME
43502012-01-30 Michael Eager <eager@eagercon.com>
4351
4352 * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
4353 * ppc-linux-tdep.c: Include glibc-tdep.h.
ab2d2ad3 4354 (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
5d853008
ME
4355 (powerpc_linux_in_plt_stub): New function.
4356 (powerpc_linux_in_dynsym_resolve_code): New function.
4357 (ppc_skip_trampoline_code): New function.
4358 (ppc_linux_init_abi): Use PPC specific functions rather than generic.
4359 Use glibc_skip_solib_resolver.
4360
40478521
JK
43612012-01-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4362
4363 Code cleanup: Make 1440 bytes of data segment read-only.
4364 * arch-utils.c (endian_enum): Make it const char *const [].
4365 * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
4366 Likewise.
4367 * breakpoint.c (always_inserted_enums): Likewise.
4368 * cli/cli-cmds.c (script_ext_enums): Likewise.
4369 * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
4370 enumlist parameter const char *const *.
4371 * cli/cli-decode.h (struct cmd_list_element): Make the enums field
4372 const char *const *.
4373 * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
4374 parameter const char *const *.
4375 * cris-tdep.c (cris_modes): Make it const char *const [].
4376 * filesystem.c (target_file_system_kinds): Likewise.
4377 * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
4378 * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
4379 (can_use_displaced_stepping_enum, scheduler_enums)
4380 (exec_direction_names): Likewise.
4381 * language.c (_initialize_language): Make the type_or_range_names and
4382 case_sensitive_names variables const char *const [].
4383 * mips-tdep.c (mips_abi_strings): Make it const char *const [].
4384 * python/python.c (python_excp_enums): Likewise.
4385 * remote.c (interrupt_sequence_modes): Likewise.
4386 * rs6000-tdep.c (powerpc_vector_strings): Likewise.
4387 * serial.c (logbase_enums): Likewise.
4388 * sh-tdep.c (sh_cc_enum): Likewise.
4389 * stack.c (print_frame_arguments_choices, print_entry_values_choices):
4390 Likewise.
4391 * symtab.c (multiple_symbols_modes): Likewise.
4392 * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
4393 Likewise.
4394 * utils.c (internal_problem_modes): Likewise.
4395
b3b8b934
JK
43962012-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
4397
4398 Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
4399 * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
4400 result.
4401
8c85a4e2
DE
44022012-01-27 Doug Evans <dje@google.com>
4403
4404 * configure.ac (with_python): Fix absolute path handling for win32.
4405 * configure: Regenerate.
4406
78d8b4d7
DE
44072012-01-26 Doug Evans <dje@google.com>
4408
eca864fe
DE
4409 * symtab.c: Whitespace cleanup, no code changes.
4410
7e082072
DE
4411 * symtab.c (lookup_symbol_in_language): Improve comment.
4412 (lookup_symbol_aux): Fix comment.
4413
7dc25483
DE
4414 * psymtab.c (add_psymbol_to_list): Result is now "void".
4415 * psympriv.h (add_psymbol_to_list): Update.
4416
78d8b4d7
DE
4417 * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
4418
4c63965b
JK
44192012-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
4420
4421 Do not open script filenames twice.
4422 * cli/cli-cmds.c (source_script_from_stream): Pass to
4423 source_python_script also STREAM.
4424 * python/py-auto-load.c (source_section_scripts): Pass to
4425 source_python_script_for_objfile also STREAM.
4426 (auto_load_objfile_script): Pass to source_python_script_for_objfile
4427 also INPUT.
4428 * python/python-internal.h (source_python_script_for_objfile): New
4429 parameter file, rename parameter file to filename.
4430 * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
4431 instead if !_WIN32. Update the function comment.
4432 (source_python_script, source_python_script_for_objfile)
4433 (source_python_script): New parameter file, rename parameter file to
4434 filename. Pass FILENAME to python_run_simple_file.
4435 * python/python.h (source_python_script): New parameter file, rename
4436 parameter file to filename.
4437
88f38a04
PA
44382012-01-26 Pedro Alves <palves@redhat.com>
4439
4440 * corelow.c (core_has_fake_pid): Delete.
4441 (core_close): Delete references to `core_has_fake_pid'.
4442 (add_to_thread_list): Adjust to mark the inferior's pid as fake.
4443 (core_open): Delete references to `core_has_fake_pid'.
4444 (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
4445 the removed global.
4446
e078317b
JB
44472012-01-26 Joel Brobecker <brobecker@adacore.com>
4448
4449 * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
4450 Remove language parameter from name_matcher. Adjust the comment.
4451 * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
4452 Remove language parameter.
4453 * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
4454 * linespec.c (iterate_name_matcher): Likewise.
4455 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
4456 name_matcher. Adjust call accordingly.
4457 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
4458 (maintenance_check_symtabs): Adjust type of parameter "fun".
4459 * psymtab.h (maintenance_check_symtabs): Likewise.
4460
74ccd7f5
JB
44612012-01-26 Joel Brobecker <brobecker@adacore.com>
4462
4463 * language.h (symbol_name_match_p_ftype): New typedef.
4464 (struct language_defn): Replace field la_symbol_name_compare
4465 by la_get_symbol_name_match_p.
4466 * ada-lang.c (ada_get_symbol_name_match_p): New function.
4467 (ada_language_defn): Use it.
4468 * linespec.c (struct symbol_matcher_data): New type.
4469 (iterate_name_matcher): Rewrite.
4470 (iterate_over_all_matching_symtabs): Pass a pointer to
4471 a symbol_matcher_data struct to expand_symtabs_matching
4472 instead of just the lookup name.
4473 * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
4474 opencl-lang.c, p-lang.c, language.c: Delete field
4475 la_symbol_name_compare, and replace by NULL for new field
4476 la_get_symbol_name_match_p.
4477 * symfile.h (struct quick_symbol_functions): Update comment.
4478
5d268276
TT
44792012-01-25 Tom Tromey <tromey@redhat.com>
4480
4481 * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
4482 dereferencing.
4483
edcc5120
TT
44842012-01-24 Tom Tromey <tromey@redhat.com>
4485
4486 PR symtab/12406:
4487 * solib.c (update_solib_list): Update the program space's
4488 added_solibs and deleted_solibs fields.
4489 * progspace.h (struct program_space) <added_solibs,
4490 deleted_solibs>: New fields.
4491 (clear_program_space_solib_cache): Declare.
4492 * progspace.c (release_program_space): Call
4493 clear_program_space_solib_cache.
4494 (clear_program_space_solib_cache): New function.
4495 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
4496 bpstat_stop_status. Use handle_solib_event.
4497 * breakpoint.c: Include gdb_regex.h.
4498 (print_solib_event): New function.
4499 (bpstat_print): Use print_solib_event.
4500 (bpstat_stop_status): Add special case for bp_shlib_event.
4501 (handle_solib_event): New function.
4502 (bpstat_what): Use handle_solib_event.
4503 (struct solib_catchpoint): New.
4504 (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
4505 (breakpoint_hit_catch_solib, check_status_catch_solib)
4506 (print_it_catch_solib, print_one_catch_solib)
4507 (print_mention_catch_solib, print_recreate_catch_solib): New
4508 functions.
4509 (catch_solib_breakpoint_ops): New global.
4510 (catch_load_or_unload, catch_load_command_1)
4511 (catch_unload_command_1): New functions.
4512 (internal_bkpt_check_status): Add special case for
4513 bp_shlib_event.
4514 (internal_bkpt_print_it): Use print_solib_event.
4515 (initialize_breakpoint_ops): Initialize
4516 catch_solib_breakpoint_ops.
4517 (_initialize_breakpoint): Register "catch load" and "catch
4518 unload".
4519 * breakpoint.h (handle_solib_event): Declare.
4520 * NEWS: Add entry for "catch load" and "catch unload".
4521
fa864999
TT
45222012-01-24 Tom Tromey <tromey@redhat.com>
4523
4524 * ada-lang.c: Include gdb_vecs.h.
4525 * charset.c: Include gdb_vecs.h.
4526 * tracepoint.h: Include gdb_vecs.h.
4527 * gdb_vecs.h: New file.
4528
f90263c1
TT
45292012-01-24 Pedro Alves <pedro@codesourcery.com>
4530
4531 * breakpoint.c (breakpoint_hit_catch_fork)
4532 (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
4533 (breakpoint_hit_catch_exec): Make use of the `ws' argument.
4534 * infrun.c (inferior_has_forked, inferior_has_vforked)
4535 (inferior_has_execd, inferior_has_called_syscall): Delete.
4536 (handle_syscall_event): Get syscall_number from the execution
4537 control state's wait status.
4538 (wait_for_inferior): Don't clear syscall_number.
4539
09ac7c10
TT
45402012-01-24 Pedro Alves <palves@redhat.com>
4541
4542 * breakpoint.c (bpstat_check_location, bpstat_stop_status,
4543 pc_at_non_inline_function): Add `ws' parameter, and pass it down.
4544 (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
4545 (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
4546 `ws' parameter.
4547 (breakpoint_hit_ranged_breakpoint): Add `ws' parameter. Return
4548 false for events other than TARGET_SIGNAL_TRAP.
4549 (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
4550 Add `ws' parameter.
4551 (bkpt_breakpoint_hit): Add `ws' parameter. Return false for
4552 events other than TARGET_SIGNAL_TRAP.
4553 (tracepoint_breakpoint_hit): Add `ws' parameter.
4554 * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
4555 parameter.
4556 (bpstat_stop_status): Same.
4557 (pc_at_non_inline_function): Same.
4558 * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
4559 to pass the current event's waitstatus to bpstat_stop_status
4560 and pc_at_non_inline_function.
4561
86eb7e95
JK
45622012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
4563
4564 Code cleanup.
4565 * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
4566 Update the function comment for it.
4567 (source_script_with_search): Call make_cleanup_fclose for STREAM.
4568 * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
4569 for STREAM.
4570
a9b3a50f
PA
45712012-01-24 Pedro Alves <palves@redhat.com>
4572
4573 * breakpoint.c (bpstat_stop_status): Moving clearing print_it
4574 outside `bs->stop' block.
4575 (bpstat_what): Rework bp_shlib_event handling.
4576 (internal_bkpt_check_status): If the breakpoint is a
4577 bp_shlib_event, then set bs->stop and bs->print if
4578 stop_on_solib_events is set.
4579
53fe1783
GB
45802012-01-24 Gary Benson <gbenson@redhat.com>
4581
4582 Delete #if 0'd out code.
4583 * stack.c (print_frame_label_vars): Remove.
4584 (catch_info): Likewise.
4585 (_initialize_stack): Remove "info catch" command.
4586 * NEWS: Mention the above.
4587
49c62f2e
PA
45882012-01-24 Pedro Alves <palves@redhat.com>
4589
4590 * remote.c (remote_add_inferior): New `fake_pid_p' parameter. Use
4591 it.
4592 (remote_notice_new_inferior): If the remote end doesn't support
4593 the multiprocess extensions, then the PID is fake.
4594 (add_current_inferior_and_thread): New.
4595 (remote_start_remote): Use it.
4596 (extended_remote_attach_1): Adjust.
4597 (extended_remote_create_inferior_1): Use
4598 add_current_inferior_and_thread.
4599
d0d8b0c6
JK
46002012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
4601
4602 Fix watchpoints to be specific for each inferior.
4603 * breakpoint.c (watchpoint_in_thread_scope): Verify also
4604 current_program_space.
4605 * i386-nat.c (i386_inferior_data_cleanup): New.
4606 (i386_inferior_data_get): Replace variable inf_data_local by an
4607 inferior_data call.
4608 (i386_use_watchpoints): Initialize i386_inferior_data.
4609 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
4610 specific iterate_over_lwps.
4611
4403d8e9
JK
46122012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
4613
4614 Fix watchpoints across inferior fork.
4615 * amd64-linux-nat.c (update_debug_registers_callback): Update the
4616 comment for linux_nat_iterate_watchpoint_lwps.
4617 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
4618 linux_nat_iterate_watchpoint_lwps.
4619 (amd64_linux_prepare_to_resume): New comment on Linux kernel.
4620 * i386-linux-nat.c (update_debug_registers_callback): Update the
4621 comment for linux_nat_iterate_watchpoint_lwps.
4622 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
4623 linux_nat_iterate_watchpoint_lwps.
4624 (i386_linux_prepare_to_resume): New comment on Linux kernel.
4625 * i386-nat.c: Include inferior.h.
4626 (dr_mirror): Remove.
4627 (i386_inferior_data, struct i386_inferior_data)
4628 (i386_inferior_data_get): New.
4629 (i386_debug_reg_state): Use i386_inferior_data_get.
4630 (i386_cleanup_dregs, i386_update_inferior_debug_regs)
4631 (i386_insert_watchpoint, i386_remove_watchpoint)
4632 (i386_stopped_data_address, i386_insert_hw_breakpoint)
4633 (i386_remove_hw_breakpoint): New variable state, use
4634 i386_debug_reg_state instead of DR_MIRROR.
4635 * linux-nat.c (delete_lwp): New declaration.
4636 (num_lwps): Move here from downwards.
4637 (delete_lwp_cleanup): New.
4638 (linux_child_follow_fork): Create new child_lp, call
4639 linux_nat_new_thread and linux_nat_prepare_to_resume before calling
4640 PTRACE_DETACH.
4641 (num_lwps): Move upwards.
4642 (linux_nat_iterate_watchpoint_lwps): New.
4643 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
4644 (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
4645
2992c9a7 46462012-01-24 Joel Brobecker <brobecker@adacore.com>
4647
4648 GDB 7.4 released.
4649
e360902b
PA
46502012-01-23 Pedro Alves <palves@redhat.com>
4651
4652 * top.c (caution): Rename to ...
4653 (confirm): ... this.
4654 (show_caution): Rename to ...
4655 (show_confirm): ... this.
4656 (quit_cover): Adjust.
4657 (init_main): Adjust.
4658 * top.h (caution): Rename to ...
4659 (confirm): ... this.
4660 * utils.c (internal_vproblem, defaulted_query): Adjust.
4661
050a2e1d
PA
46622012-01-23 Pedro Alves <palves@redhat.com>
4663
4664 * top.c (caution): Update comment.
4665 (execute_command): Don't consider the current value of `caution'.
4666
77a35dd8
JK
46672012-01-23 Jan Kratochvil <jan.kratochvil@redhat.com>
4668
4669 * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
4670
a71b5a38
UW
46712012-01-23 Ulrich Weigand <ulrich.weigand@linaro.org>
4672
4673 * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
4674 * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
4675 * target.c (target_fileio_pwrite): Remove buffer address from
4676 debug output.
4677 (target_fileio_pread): Likewise.
4678
d99bd577
UW
46792012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
4680
4681 * NEWS: Document remote "info proc" and "generate-core-file".
4682
35c2fab7
UW
46832012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
4684
4685 * gdbarch.sh (find_memory_regions): New callback.
4686 * gdbarch.c, gdbarch.h: Regenerate.
4687
4688 * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
4689 callback before falling back to target method.
4690
4691 * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
4692 (linux_target_install_ops): No longer install it.
4693
4694 * linux-tdep.c (linux_find_memory_regions): New function.
4695 (linux_init_abi): Install it.
4696
6432734d
UW
46972012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
4698
4699 * gdbarch.sh (make_corefile_notes): New architecture callback.
4700 * gdbarch.c: Regenerate.
4701 * gdbarch.h: Likewise.
4702
4703 * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
4704 before target_make_corefile_notes. If NULL is returned, the
4705 target does not support core file generation.
4706
4707 * linux-nat.c: Include "linux-tdep.h".
4708 (find_signalled_thread, find_stop_signal): Remove.
4709 (linux_nat_do_thread_registers): Likewise.
4710 (struct linux_nat_corefile_thread_data): Likewise.
4711 (linux_nat_corefile_thread_callback): Likewise.
4712 (iterate_over_spus): Likewise.
4713 (struct linux_spu_corefile_data): Likewise.
4714 (linux_spu_corefile_callback): Likewise.
4715 (linux_spu_make_corefile_notes): Likewise.
4716 (linux_nat_collect_thread_registers): New function.
4717 (linux_nat_make_corefile_notes): Replace contents by call to
4718 linux_make_corefile_notes passing linux_nat_collect_thread_registers
4719 as native-only callback.
4720
4721 * linux-tdep.h: Include "bfd.h".
4722 (struct regcache): Add forward declaration.
4723 (linux_collect_thread_registers_ftype): New typedef.
4724 (linux_make_corefile_notes): Add prototype.
4725 * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
4726 "regset.h", and "elf-bfd.h".
4727 (find_signalled_thread, find_stop_signal): New functions.
4728 (linux_spu_make_corefile_notes): Likewise.
4729 (linux_collect_thread_registers): Likewise.
4730 (struct linux_corefile_thread_data): New data structure.
4731 (linux_corefile_thread_callback): New funcion.
4732 (linux_make_corefile_notes): Likewise.
4733 (linux_make_corefile_notes_1): Likewise.
4734 (linux_init_abi): Install it.
4735
3030c96e
UW
47362012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
4737
4738 * gdbarch.sh (info_proc): New callback.
4739 * gdbarch.c, gdbarch.h: Regenerate.
4740
4741 * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
4742 before falling back to the target info_proc callback.
4743
4744 * linux-nat.c: Do not include "cli/cli-utils.h".
4745 (linux_nat_info_proc): Remove.
4746 (linux_target_install_ops): No longer install it.
4747
4748 * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
4749 (read_mapping): New function.
4750 (linux_info_proc): Likewise.
4751 (linux_init_abi): Install it.
4752
145b16a9
UW
47532012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
4754
4755 * defs.h (enum info_proc_what): Moved here from linux-nat.c
4756 * infcmd.c: (info_proc_cmd_1): New function.
4757 (info_proc_cmd): New function, moved here from equivalent routine
4758 orignally in linux-nat.c.
4759 (info_proc_cmd_mappings): Likewise.
4760 (info_proc_cmd_stat): Likewise.
4761 (info_proc_cmd_status): Likewise.
4762 (info_proc_cmd_cwd): Likewise.
4763 (info_proc_cmd_cmdline): Likewise.
4764 (info_proc_cmd_exe): Likewise.
4765 (info_proc_cmd_all): Likewise.
4766 (_initialize_infcmd): Install "info proc" command and subcommands.
4767
4768 * target.h (struct target_ops): Add to_info_proc.
4769 (target_info_proc): Add prototype.
4770 * target.c (target_info_proc): New function.
4771
4772 * procfs.c (procfs_info_proc): Add prototype.
4773 (info_proc_cmd): Rename into ...
4774 (procfs_info_proc): ... this. Update argument types as appropriate
4775 for a to_info_proc implementation. Handle "what" argument.
4776 (procfs_target): Install procfs_info_proc.
4777 (_initialize_procfs): No longer install "info proc" command.
4778
4779 * linux-nat.c: (enum info_proc_what): Remove.
4780 (linux_nat_info_proc_cmd_1): Rename into ...
4781 (linux_nat_info_proc): ... this. Update argument types as appropriate
4782 for a to_info_proc implementation.
4783 (linux_nat_info_proc_cmd): Remove.
4784 (linux_nat_info_proc_cmd_mappings): Likewise.
4785 (linux_nat_info_proc_cmd_stat): Likewise.
4786 (linux_nat_info_proc_cmd_status): Likewise.
4787 (linux_nat_info_proc_cmd_cwd): Likewise.
4788 (linux_nat_info_proc_cmd_cmdline): Likewise.
4789 (linux_nat_info_proc_cmd_exe): Likewise.
4790 (linux_nat_info_proc_cmd_all): Likewise.
4791 (linux_target_install_ops): Install linux_nat_info_proc.
4792 (_initialize_linux_nat): No longer install "info proc" command
4793 and subcommands.
4794
b9e7b9c3
UW
47952012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
4796
4797 * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
4798 * config.in, configure: Regenerate.
4799
4800 * target.h (struct target_ops): Add to_fileio_readlink.
4801 (target_fileio_readlink): Add prototype.
4802 * target.c (target_fileio_readlink): New function.
4803
4804 * inf-child.c: Conditionally include <sys/param.h>.
4805 (inf_child_fileio_readlink): New function.
4806 (inf_child_target): Install it.
4807
4808 * remote.c (PACKET_vFile_readlink): New enum value.
4809 (remote_hostio_readlink): New function.
4810 (init_remote_ops): Install it.
4811 (_initialize_remote): Handle vFile:readlink packet type.
4812
7313baad
UW
48132012-01-20 Pedro Alves <palves@redhat.com>
4814 Ulrich Weigand <ulrich.weigand@linaro.org>
4815
4816 * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
4817 * config.in, configure: Regenerate.
4818
4819 * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
4820 to_fileio_pread, to_fileio_close, to_fileio_unlink.
4821 (target_fileio_open): Add prototype.
4822 (target_fileio_pwrite): Likewise.
4823 (target_fileio_pread): Likewise.
4824 (target_fileio_close): Likewise.
4825 (target_fileio_unlink): Likewise.
4826 (target_fileio_read_alloc): Likewise.
4827 (target_fileio_read_stralloc): Likewise.
4828
4829 * target.c: Include "gdb/fileio.h".
4830 (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
4831 (default_fileio_target): New function.
4832 (target_fileio_open): Likewise.
4833 (target_fileio_pwrite): Likewise.
4834 (target_fileio_pread): Likewise.
4835 (target_fileio_close): Likewise.
4836 (target_fileio_unlink): Likewise.
4837 (target_fileio_close_cleanup): Likewise.
4838 (target_fileio_read_alloc_1): Likewise.
4839 (target_fileio_read_alloc): Likewise.
4840 (target_fileio_read_stralloc): Likewise.
4841
4842 * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
4843 <fcntl.h>, and <unistd.h>.
4844 (inf_child_fileio_open_flags_to_host): New function.
4845 (inf_child_errno_to_fileio_error): Likewise.
4846 (inf_child_fileio_open): Likewise.
4847 (inf_child_fileio_pwrite): Likewise.
4848 (inf_child_fileio_pread): Likewise.
4849 (inf_child_fileio_close): Likewise.
4850 (inf_child_fileio_unlink): Likewise.
4851 (inf_child_target): Install to_fileio routines.
4852
4853 * remote.c (init_remote_ops): Install to_fileio routines.
4854
901f9912
UW
48552012-01-20 Pedro Alves <palves@redhat.com>
4856 Ulrich Weigand <ulrich.weigand@linaro.org>
4857
4858 * remote.c (remote_multi_process_p): Only check for multi-process
4859 protocol feature, do not check for extended protocol.
4860 (remote_supports_multi_process): Check for extended protocol here.
4861 (set_general_process): Likewise.
4862 (extended_remote_kill): Likewise.
4863 (remote_pid_to_str): Likewise.
4864 (remote_query_supported): Always query multiprocess mode.
4865
e714e1bf
UW
48662012-01-20 Pedro Alves <palves@redhat.com>
4867 Ulrich Weigand <ulrich.weigand@linaro.org>
4868
4869 * inferior.h (struct inferior): Add fake_pid_p.
4870 * inferior.c (exit_inferior_1): Clear fake_pid_p.
4871 * remote.c (remote_start_remote): Set fake_pid_p if we have to use
4872 magic_null_ptid since the remote side doesn't provide a real PID.
4873
50897289
TT
48742012-01-19 Tom Tromey <tromey@redhat.com>
4875
4876 * NEWS: Combine the two Python sections.
4877
1afc2033
JK
48782012-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
4879
4880 * target.h (target_close): Update comment on the target's unpush state.
4881
305436e0
PA
48822012-01-19 Pedro Alves <palves@redhat.com>
4883
4884 * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
4885 linux_nat_async directly instead of going through the target
4886 vector.
4887 * target.c (unpush_target): Close target after unpushing it, not
4888 before.
4889
49323895
GB
48902012-01-19 Gary Benson <gbenson@redhat.com>
4891
4892 * mdebugread.c (sort_blocks): Replace integer constants with ones
4893 derived from FIRST_LOCAL_BLOCK.
4894
1db33378
PP
48952012-01-18 Paul Pluzhnikov <ppluzhnikov@google.com>
4896 Jan Kratochvil <jan.kratochvil@redhat.com>
4897
4898 PR gdb/9538
4899 * symfile.c (find_separate_debug_file): New function.
4900 (terminate_after_last_dir_separator): Likewise.
4901 (find_separate_debug_file_by_debuglink): Also try realpath.
4902 * configure.ac (AC_CHECK_FUNCS): Add lstat.
4903 * configure: Regenerate.
4904 * config.in: Regenerate.
4905
f83d8a90
DE
49062012-01-18 Doug Evans <dje@google.com>
4907
4908 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
4909 (main.o): Remove rule.
4910 * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
4911 (--with-sysroot): Rewrite.
4912 * configure: Regenerate.
4913 * config.in: Regenerate.
4914
2dbca4d6
SDJ
49152012-01-18 Sergio Durigan Junior <sergiodj@redhat.com>
4916
4917 * parse.c (initialize_expout): New function.
4918 (reallocate_expout): Likewise.
4919 (parse_exp_in_context): Use `initialize_expout' and
4920 `reallocate_expout' when appropriate.
4921
0695b514
PA
49222012-01-18 Pedro Alves <palves@redhat.com>
4923
4924 * record.c (struct record_breakpoint, record_breakpoint_p)
4925 (record_breakpoints): New.
4926 (record_insert_breakpoint, record_remove_breakpoint): Manage
4927 record breakpoints list. Only remove breakpoints from the
4928 inferior if they had been inserted there in the first place.
4929
136e1c30
DE
49302012-01-17 Doug Evans <dje@google.com>
4931
4932 * linespec.c (decode_line_internal): Don't call symtabs_from_filename
4933 if we know we don't have a file name to look for.
4934
c0bf857d
PA
49352012-01-17 Pedro Alves <palves@redhat.com>
4936
4937 * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
4938 the frame's stop reason is UNWIND_UNAVAILABLE.
4939
b486de60
JK
49402012-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4941
4942 Fix compilation error.
4943 * m2-exp.y (yyerror): Use ANSI C prototype.
4944
d04550a6
SDJ
49452012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
4946
4947 * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
4948 (growbuf_by_size): Likewise.
4949 (yyerror): Likewise.
4950 * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
4951 (modblock): Remove variable (was #if 0'ed).
4952 (parse_number): Convert prototype from K&R to ANSI C.
4953 (yyerror): Likewise.
4954 * objc-exp.y (parse_number): Likewise.
4955 (yyerror): Likewise.
4956 (yylex): Remove #if 0'ed code.
4957 * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
4958 (yyerror): Likewise.
4959
4aac40c8
TT
49602012-01-16 Tom Tromey <tromey@redhat.com>
4961
4962 * NEWS: Add item.
4963 * symtab.h (compare_filenames_for_search): Declare.
4964 * symtab.c (compare_filenames_for_search): New function.
4965 (iterate_over_some_symtabs): Use it.
4966 * symfile.h (struct quick_symbol_functions)
4967 <map_symtabs_matching_filename>: Change spec.
4968 * psymtab.c (partial_map_symtabs_matching_filename): Use
4969 compare_filenames_for_search. Update for new spec.
4970 * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
4971 compare_filenames_for_search. Update for new spec.
4972 * breakpoint.c (clear_command): Use compare_filenames_for_search.
4973
cafec441
TT
49742012-01-16 Tom Tromey <tromey@redhat.com>
4975
4976 PR python/13281:
4977 * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
4978 (struct main_type) <flag_flag_enum>: New field.
4979 * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
4980 * NEWS: Add entries.
4981 * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
4982 enums.
4983 * python/lib/gdb/printing.py (_EnumInstance): New class.
4984 (FlagEnumerationPrinter): Likewise.
4985
983af33b
SDJ
49862012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
4987
4988 * breakpoint.c (create_sals_from_address_default): New function.
4989 (create_breakpoints_sal_default): Likewise.
4990 (decode_linespec_default): Likewise.
4991 (is_marker_spec): Removed.
4992 (strace_marker_p): New function.
4993 (init_breakpoint_sal): Using `strace_marker_p' instead of
4994 `is_marker_spec'.
4995 (create_breakpoint): Call method `create_sals_from_address' from
4996 breakpoint_ops, replacing code that created SALs conditionally
4997 on the type of the breakpoint. Call method `create_breakpoints_sal',
4998 replacing code that created breakpoints conditionally on the type
4999 wanted.
5000 (base_breakpoint_create_sals_from_address): New function.
5001 (base_breakpoint_create_breakpoints_sal): Likewise.
5002 (base_breakpoint_decode_linespec): Likewise.
5003 (base_breakpoint_ops): Add methods
5004 `base_breakpoint_create_sals_from_address',
5005 `base_breakpoint_create_breakpoints_sal' and
5006 `base_breakpoint_decode_linespec'.
5007 (bkpt_create_sals_from_address): New function.
5008 (bkpt_create_breakpoints_sal): Likewise.
5009 (bkpt_decode_linespec): Likewise.
5010 (tracepoint_create_sals_from_address): Likewise.
5011 (tracepoint_create_breakpoints_sal): Likewise.
5012 (tracepoint_decode_linespec): Likewise.
5013 (strace_marker_create_sals_from_address): Likewise.
5014 (strace_marker_create_breakpoints_sal): Likewise.
5015 (strace_marker_decode_linespec): Likewise.
5016 (strace_marker_breakpoint_ops): New variable.
5017 (addr_string_to_sals): Remove `marker_spec'. Call method
5018 `decode_linespec' from breakpoint_ops, replacing code that decoded
5019 an address string into a SAL. Use `strace_marker_p' instead of
5020 `marker_spec'.
5021 (strace_command): Decide whether we are dealing with a static
5022 tracepoint with marker or not. Use the appropriate breakpoint_ops.
5023 (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
5024 * breakpoint.h (linespec_result, linespec_sals): New forward
5025 declarations.
5026 (breakpoint_ops) <create_sals_from_address>,
5027 <create_breakpoints_sal>, <decode_linespec>: New methods.
5028
4795f398
DE
50292012-01-14 Doug Evans <dje@google.com>
5030
5031 * NEWS: Update text for "maint set python print-stack".
5032 It is deprecated in gdb 7.4 and deleted in 7.5.
5033
ee5106fe
EZ
50342012-01-13 Eli Zaretskii <eliz@gnu.org>
5035
5036 * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
5037 including curses.h.
5038
b161e06f
JK
50392012-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
5040
5041 * configure: Regenerate.
5042 * config.in: Regenerate.
5043
85254831
KS
50442012-01-12 Keith Seitz <keiths@redhat.com>
5045
5046 PR mi/10586
5047 * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
5048 (ANONYMOUS_UNION_NAME): Define.
5049 (is_path_expr_parent): New function.
5050 (get_path_expr_parent): New function.
5051 (is_anonymous_child): New function.
5052 (create_child_with_value): If the child is anonymous and without
5053 a name, assign an object name to it.
5054 (c_describe_child): Use get_path_expr_parent to determine
5055 the parent expression.
5056 If there field represents an anonymous struct or union and
5057 has no name, set an appropriate display name and expression.
5058 (cplus_describe_child): Likewise.
5059
620fa63a
PA
50602012-01-12 Pedro Alves <palves@redhat.com>
5061
5062 * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
5063 available when %ebp is found to be zero (outermost).
5064
2efa2c79
AT
50652012-01-11 Andreas Tobler <andreast@fgznet.ch>
5066
5067 * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
5068 an internal gdb_static_assert.
5069 * mi/mi-common.c: Rename static_assert to gdb_static_assert.
5070
88e7d25d
TT
50712012-01-11 Tom Tromey <tromey@redhat.com>
5072
5073 PR gdb/9598:
5074 * breakpoint.c (_initialize_breakpoint): Fix help for "catch
5075 catch" and "catch throw".
5076
72384ba3
PH
50772012-01-11 Paul Hilfinger <hilfingr@adacore.com>
5078
5079 * blockframe.c (block_innermost_frame): Start search from selected
5080 frame, if present, or otherwise the current frame.
5081
5082 * c-exp.y (variable): Update innermost_block for
5083 'block COLONCOLON NAME' clause.
5084 * m2-exp.y (variable): Ditto.
5085 * objc-exp.y (variable): Ditto.
5086
065a711f
TT
50872012-01-10 Tom Tromey <tromey@redhat.com>
5088
5089 PR python/13199:
5090 * python/python.c (finish_python_initialization): Set sys.argv.
5091
f3f5162e
DE
50922012-01-10 Doug Evans <dje@google.com>
5093
5094 * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd". New arg
5095 "want_line_info". All callers updated.
5096 (dwarf_decode_lines_1): New function.
5097 (handle_DW_AT_stmt_list): Add function comment.
5098 New arg "want_line_info". All callers updated.
5099 (read_file_scope,read_type_unit_scope): Move comment from
5100 handle_DW_AT_stmt_list to here.
5101
9934703b
JK
51022012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
5103
5104 Fix regression after libiberty/ update for GCC PR 6057 and others.
5105 * c-exp.y (operator) <OPERATOR DELETE>
5106 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
5107 * cp-name-parser.y (fill_comp, make_operator, make_dtor)
5108 (make_builtin_type, make_name): New variable i, add gdb_assert.
5109 (operator) <OPERATOR NEW>: Update ARGS to 3.
5110 (operator) <OPERATOR DELETE>: Add trailing space.
5111 (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
5112 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
5113 * cp-support.c (cp_canonicalize_string): Check NULL from
5114 cp_comp_to_string, call warning and return.
5115
06b9f45f
JK
51162012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
5117
5118 Fix duplicate .o files after omitting libbfd.a.
5119 * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
5120 (SFILES): Add corelow.c.
5121 (COMMON_OBS): Add corelow.o.
5122 (ALLDEPFILES): Remove corelow.c.
5123 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
5124 * config/alpha/alpha-osf3.mh: Likewise.
5125 * config/alpha/fbsd.mh: Likewise.
5126 * config/arm/nbsdaout.mh: Likewise.
5127 * config/arm/nbsdelf.mh: Likewise.
5128 * config/i386/i386gnu.mh: Likewise.
5129 * config/ia64/hpux.mh: Likewise.
5130 * config/ia64/linux.mh: Likewise.
5131 * config/m32r/linux.mh: Likewise.
5132 * config/m68k/linux.mh: Likewise.
5133 * config/mips/irix5.mh: Likewise.
5134 * config/mips/irix6.mh: Likewise.
5135 * config/pa/hpux.mh: Likewise.
5136 * config/pa/linux.mh: Likewise.
5137 * config/powerpc/aix.mh: Likewise.
5138 * config/sparc/linux.mh: Likewise.
5139 * config/sparc/linux64.mh: Likewise.
5140 * config/sparc/sol2.mh: Likewise.
5141 * config/vax/vax.mh: Likewise.
5142 * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
5143 (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
5144 (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
5145 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
5146 (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
5147 (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
5148 (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
5149 (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
5150 (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
5151 (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
5152 (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
5153 (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
5154 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
5155 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
5156 (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
5157 (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
5158 (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
5159 (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
5160 (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
5161 (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
5162 (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
5163 (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
5164 corelow.o from gdb_target_obs.
5165 * corefile.c (core_target): Update the comment on NULL value.
5166 (core_file_command): Replace error by gdb_assert on CORE_TARGET.
5167 * corelow.c (sniff_core_bfd): Call error instead of warning on zero
5168 MATCHES. Drop YUMMY set on NULL.
5169 (core_close): Do not call exit_inferior_silent on zero PID. Do not
5170 reclaim CORE_DATA if it is already NULL.
5171
34365054
DE
51722012-01-09 Doug Evans <dje@google.com>
5173
5174 * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
5175 * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
5176
696166a3
KS
51772012-01-09 Keith Seitz <keiths@redhat.com>
5178
5179 * breakpoint.c (wrapper.h): Don't include.
5180
8e7b59a5
KS
51812012-01-09 Keith Seitz <keiths@redhat.com>
5182
5183 * Makefile.in (SFILES): Remove wrapper.c.
5184 (HFILES_NO_SRCDIR): Remove wrapper.h.
5185 (COMMON_OBS): Remove wrapper.o.
5186 * cli/cli-interp.c: Don't inlude wrapper.h.
5187 * corelow.c: Likewise.
5188 (core_open): Replace gdb_target_find_new_threads with
5189 TRY_CATCH around target_find_new_threads.
5190 * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
5191 * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
5192 * varobj.c (varobj_create): Likewise for parse_exp_1 and
5193 evaluate_expression.
5194 (varobj_set_value): Likewise for evaluate_expression and
5195 value_assign.
5196 (install_new_variable): Likewise for value_fetch_lazy.
5197 (adjust_value_for_child_access): Likewise for value_ind.
5198 (c_describe_child): Likewise for value_subscript and
5199 value_ind.
5200 (c_value_of_root): Likewise for evaluate_expression.
5201 * wrapper.c: Remove.
5202 * wrapper.h: Remove.
5203
1a4eeb98
DE
52042012-01-09 Doug Evans <dje@google.com>
5205
9ff913ba
DE
5206 * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
5207 partial_read_comp_unit_head. Replace "buffer", "buffer_size" and
5208 "abfd" args with "section". All callers updated.
5209 Error checking code moved ...
5210 (error_check_comp_unit_head): ... here. New function.
5211 (read_and_check_type_unit_head): Renamed from read_type_unit_head.
5212 Delete arg "abfd". New arg "type_offset". All callers updated.
5213 (create_debug_types_hash_table): Simplify by using
5214 read_and_check_type_unit_head.
5215
1a4eeb98
DE
5216 * parser-defs.h (namecopy): Delete.
5217 * parse.c (namecopy, namecopy_size): Move into copy_name.
5218
2e6af8c0
JK
52192012-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
5220
5221 Partially fix duplicate .o files after omitting libbfd.a.
5222 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
5223 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
5224 * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
5225 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
5226 * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
5227 * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
5228 * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
5229
9f2f828a
PA
52302012-01-09 Pedro Alves <palves@redhat.com>
5231
5232 * MAINTAINERS: Update my email address.
5233
4d72c0bc
DE
52342012-01-08 Doug Evans <dje@google.com>
5235
d467dd73
DE
5236 * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
5237 n_type_units. Rename type_comp_units to all_type_units.
5238 All uses updated.
5239 (add_signatured_type_cu_to_table): Renamed from
5240 add_signatured_type_cu_to_list. All callers updated.
5241
4d72c0bc
DE
5242 * gdbtypes.h (struct cplus_struct_type): Delete member
5243 nfn_fields_total. All uses removed.
5244
21b2bd31
DE
52452012-01-06 Doug Evans <dje@google.com>
5246
5247 * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
5248 to top of file.
5249 (dwarf2_find_comp_unit): Delete.
5250 (process_psymtab_comp_unit): Make result "void".
5251 Delete args buffer, info_ptr, buffer_size, and replace with
5252 "section". All callers updated.
5253 (dwarf2_build_psymtabs_hard): Simplify.
5254
bfd189b1
SDJ
52552012-01-06 Sergio Durigan Junior <sergiodj@redhat.com>
5256 Thiago Jung Bauermann <bauerman@br.ibm.com>
5257
5258 * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
5259 before `struct gdb_exception'.
5260 * breakpoint.c (update_global_location_list_nothrow)
5261 (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
5262 * cp-abi.c (value_rtti_type): Likewise.
5263 * cp-support.c (cp_validate_operator): Likewise.
5264 * infrun.c (insert_exception_resume_breakpoint)
5265 (check_exception_resume, keep_going): Likewise.
5266 * mi-interp.c (mi_breakpoint_created)
5267 (mi_breakpoint_modified): Likewise.
5268 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
5269 * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
5270 (ia64_hpux_handle_dld_breakpoint_1): Likewise.
5271
6b07635f
DE
52722012-01-05 Doug Evans <dje@google.com>
5273
0b30b85c
DE
5274 * dwarf2read.c (statement_prologue): Delete, unused.
5275
98714339
DE
5276 * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
5277 * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
5278
6b07635f
DE
5279 * dwarf2read.c (comp_unit_header): Delete, unused.
5280
761f4555
UW
52812012-01-05 Ulrich Weigand <uweigand@de.ibm.com>
5282
5283 * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
5284 * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
5285
2ca0b532
PA
52862012-01-05 Khoo Yit Phang <khooyp@cs.umd.edu>
5287
5288 * infrun.c (normal_stop): Don't skip calling the normal_stop
5289 observers if the thread was doing a multi-step, but stopped for
5290 some reason other than stepping.
5291
50aeff07
PA
52922012-01-05 Pedro Alves <alves.ped@gmail.com>
5293
5294 * cli/cli-decode.h: Add comments.
5295 (CMD_LIST_AMBIGUOUS): Moved to command.h
5296 (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
5297 (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
5298 (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
5299 (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
5300 (add_com, add_com_alias, add_info, add_info_alias)
5301 (complete_on_cmdlist, complete_on_enum, help_list): Remove
5302 declarations.
5303 * command.h: Add and adjust comments.
5304 (CMD_LIST_AMBIGUOUS): Moved here.
5305 (help_cmd, help_cmd_list): Delete declarations.
5306
5953832c
DE
53072012-01-04 Doug Evans <dje@google.com>
5308
e5fe5e75
DE
5309 * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
5310 All callers updated.
5311 (load_full_type_unit): Renamed from read_signatured_type_at_offset.
5312 Replace all arguments with "per_cu". All callers updated.
5313
28dee7f5
DE
5314 * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
5315
23745b47
DE
5316 * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
5317 New arg "per_cu". All callers updated.
5318
5953832c
DE
5319 Delete #if 0'd out code.
5320 * language.c (binop_result_type): Delete.
5321 (simple_type, ordered_type, same_type, integral_type): Delete.
5322 (numeric_type, character_type, string_type, boolean_type): Delete.
5323 (float_type, structured_type): Delete.
5324 * language.h: Update.
5325
0f5b7562
TT
53262012-01-04 Tom Tromey <tromey@redhat.com>
5327
5328 * python/py-value.c (valpy_binop): Initialize 'res_val'.
5329
78218f56
JB
53302012-01-04 Joel Brobecker <brobecker@adacore.com>
5331
5332 * corefile.c (close_exec_file): Delete.
5333 (reopen_exec_file): Remove commented out code that seems related
5334 to close_exec_file, which is being deleted here.
5335 * inferior.h (close_exec_file): Delete.
5336 * fork-child.c (fork_inferior): Remove call to fork_inferior.
5337
0fcd72ba
JB
53382012-01-04 Joel Brobecker <brobecker@adacore.com>
5339
5340 * ada-lang.c: #include "cli/cli-utils.h".
5341 (get_selections): Use skip_spaces.
5342 (ada_get_next_arg): Use skip_spaces and skip_to_space.
5343 (catch_ada_exception_command_split): Use skip_spaces.
5344 (ada_decode_assert_location): Likewise.
5345
1dabb4c4
JB
53462012-01-04 Joel Brobecker <brobecker@adacore.com>
5347
5348 * linespec.c (decode_line_internal): Check for C++ or Java
5349 compound constructs only if the current language is C, C++
5350 or Java.
5351
5931a2fa
JK
53522012-01-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5353
5354 Revert:
5355 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5356 Joel Brobecker <brobecker@adacore.com>
5357 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
5358 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
5359 3 times.
5360 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
5361 fall through into AT_ENTRY_POINT.
5362 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
5363 DUMMY_ADDR with it.
5364 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
5365 PPC_INSN_SIZE skip to 3 times.
5366
1a2da5ee
JB
53672012-01-04 Joel Brobecker <brobecker@adacore.com>
5368
5369 * linespec.c (add_minsym): Preserve function descriptors.
5370
8645ff69
UW
53712012-01-04 Ulrich Weigand <uweigand@de.ibm.com>
5372
5373 * breakpoint.c (all_locations_are_pending): Consider locations
5374 in program spaces executing during startup pending as well.
5375
0b302171
JB
53762012-01-04 Joel Brobecker <brobecker@adacore.com>
5377
5378 Copyright year update in most files of the GDB Project.
5379
8ba098ad
JB
53802012-01-04 Joel Brobecker <brobecker@adacore.com>
5381
5382 * copyright.sh: Delete.
5383 * copyright.py: Rewrite.
5384
09c01c30
JB
53852012-01-04 Joel Brobecker <brobecker@adacore.com>
5386
5387 * gnulib/extra/update-copyright: New file, imported from gnulib.
5388
3c36c0af
JB
53892012-01-04 Joel Brobecker <brobecker@adacore.com>
5390
5391 * README (Copyright and License Notices): New section.
5392
888fe1e1
TT
53932012-01-03 Tom Tromey <tromey@redhat.com>
5394
5395 PR python/12533:
5396 * python/py-value.c (valpy_dereference, valpy_get_address
5397 valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
5398 (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
5399 (valpy_absolute, valpy_richcompare): Free intermediate values.
5400
6e681866
JB
54012011-01-03 Joel Brobecker <brobecker@adacore.com>
5402
5403 * ada-lang.c: Reformat the copyright notice.
5404
0cd09acb
JK
54052012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5406
5407 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
5408 * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
5409 (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
5410 (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
5411 Revert this part of:
5412 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5413 Build gdb directly from *.o files not using libgdb.a.
5414 * Makefile.in (COMMON_OBS): Remove solib-target.o.
5415
12c3e59c
JB
54162012-01-02 Joel Brobecker <brobecker@adacore.com>
5417
5418 * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
5419 gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
5420 Reformat the copyright header.
5421
11bf1490
JK
54222012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5423
5424 Revert this part of:
5425 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5426 Remove the gdbtui binary.
5427 * gdb.c (main): Remove args.interpreter_p initialization.
5428 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
5429 * main.h (struct captured_main_args): Remove interpreter_p.
5430
1fef196f
JB
54312012-01-02 Joel Brobecker <brobecker@adacore.com>
5432
5433 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
5434
67827812
JB
54352012-01-02 Joel Brobecker <brobecker@adacore.com>
5436
5437 * top.c (print_gdb_version): Update copyright year.
5438
a4d0b831
YQ
54392012-01-02 Yao Qi <yao@codesourcery.com>
5440
5441 * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
5442
b5914469
JK
54432012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5444 Joel Brobecker <brobecker@adacore.com>
5445
5446 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
5447 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
5448 3 times.
5449 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
5450 fall through into AT_ENTRY_POINT.
5451 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
5452 DUMMY_ADDR with it.
5453 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
5454 PPC_INSN_SIZE skip to 3 times.
5455
8da828f7
JK
54562012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5457
5458 * amd64-linux-nat.c (update_debug_registers_callback): New comment on
5459 the return value.
5460 * i386-linux-nat.c (update_debug_registers_callback): Likewise.
5461
8574e74b
JK
54622012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5463
5464 Build gdb directly from *.o files not using libgdb.a.
5465 * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
5466 (COMMON_OBS): Remove solib-target.o.
5467 (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
5468 (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
5469 (LIBGDB_OBS, libgdb.a): Move it above.
5470 * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
5471 (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
5472 (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
5473 (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
5474 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
5475 (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
5476 (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
5477 (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
5478 (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
5479 (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
5480 (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
5481 (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
5482 (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
5483 (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
5484 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
5485 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
5486 (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
5487 (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
5488 (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
5489 (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
5490 (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
5491 (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
5492 (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
5493 (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
5494 (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
5495 (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
5496 (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
5497
217bff3e
JK
54982012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5499
5500 Remove the gdbtui binary.
5501 * .gitignore (/gdbtui): Remove.
5502 * Makefile.in (TUI): Remove.
5503 (SUBDIR_TUI_OBS): Remove tui-main.o.
5504 (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
5505 (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
5506 (tui-main.o): Remove.
5507 (all_object_files): Remove tui-main.o.
5508 * NEWS: New note for the gdbtui removal.
5509 * configure: Rebuilt.
5510 * configure.ac: No longer add all-tui, clean-tui, install-tui and
5511 uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
5512 CONFIG_UNINSTALL respectively.
5513 * gdb.c (main): Remove args.interpreter_p initialization.
5514 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
5515 * main.h (struct captured_main_args): Remove interpreter_p.
5516 * tui/tui-main.c: Remove.
5517
9cdd5dbd
DE
55182012-01-01 Doug Evans <dje@google.com>
5519
bb5ed363
DE
5520 * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
5521 (dwarf2_physname, read_import_statement): Ditto.
5522 (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
5523 (process_structure_scope read_subroutine_type): Ditto.
5524 (read_typedef, load_partial_dies, read_partial_die): Ditto.
5525 (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
5526 (dwarf2_fetch_die_location_block): Ditto.
5527 (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
5528
a0f42c21
DE
5529 * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
5530 All callers updated.
5531 (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
5532 (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
5533 (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
5534
2dc860c0
DE
5535 * dwarf2read.c (load_cu): Move assert to more useful location.
5536
68dc6402
DE
5537 * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
5538 All callers updated.
5539
9cdd5dbd
DE
5540 * dwarf2read.c (dwarf2_per_objfile): Add comment.
5541 (dwarf2_elf_names): Minor reformat.
5542 (dwarf2_per_cu_data): Tweak comment.
5543 (dwarf2_read_section): Fix comment.
5544 (create_all_comp_units): Fix comment.
5545 (load_full_comp_unit): Fix comment.
5546 (process_full_comp_unit): Fix comment.
5547 (read_signatured_type): Fix comment.
5548
0c10e53e 5549For older changes see ChangeLog-2011.
c906108c
SS
5550\f
5551Local Variables:
5552mode: change-log
5553left-margin: 8
5554fill-column: 74
5555version-control: never
57da7796 5556coding: utf-8
c906108c 5557End:
This page took 1.806665 seconds and 4 git commands to generate.