gdb/
[binutils-gdb.git] / gdb / ChangeLog
1 2013-02-14 Yao Qi <yao@codesourcery.com>
2
3 * infcmd.c (breakpoint_proceeded): Remove it.
4
5 2013-02-14 Yao Qi <yao@codesourcery.com>
6
7 * tracepoint.c (end_actions_pseudocommand): Make it static.
8 (while_stepping_pseudocommand): Likewise.
9 * tracepoint.h (end_actions_pseudocommand): Remove the
10 declaration.
11 (while_stepping_pseudocommand): Likewise.
12
13 2013-02-14 Yao Qi <yao@codesourcery.com>
14
15 * cli/cli-decode.c (help_cmd): Remove the declaration of
16 "cmdlist".
17 (help_all): Likewise.
18
19 2013-02-13 Pedro Alves <palves@redhat.com>
20
21 * amd64-linux-nat.c (update_debug_registers_callback):
22 Update comment.
23 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
24 iterate_over_lwps.
25 (amd64_linux_prepare_to_resume): Pass the lwp's pid to
26 i386_debug_reg_state.
27 (amd64_linux_new_fork): New function.
28 (_initialize_amd64_linux_nat): Install amd64_linux_new_fork as
29 linux_nat_new_fork hook, and i386_forget_process as
30 linux_nat_forget_process hook.
31 * i386-linux-nat.c (update_debug_registers_callback):
32 Update comment.
33 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
34 iterate_over_lwps.
35 (i386_linux_prepare_to_resume): Pass the lwp's pid to
36 i386_debug_reg_state.
37 (i386_linux_new_fork): New function.
38 (_initialize_i386_linux_nat): Install i386_linux_new_fork as
39 linux_nat_new_fork hook, and i386_forget_process as
40 linux_nat_forget_process hook.
41 * i386-nat.c (i386_init_dregs): Delete.
42 (i386_inferior_data, struct i386_inferior_data):
43 Delete.
44 (struct i386_process_info): New.
45 (i386_process_list): New global.
46 (i386_find_process_pid, i386_add_process, i386_process_info_get):
47 New functions.
48 (i386_inferior_data_get): Delete.
49 (i386_process_info_get): New function.
50 (i386_debug_reg_state): New parameter 'pid'. Reimplement.
51 (i386_forget_process): New function.
52 (i386_cleanup_dregs): Rewrite.
53 (i386_update_inferior_debug_regs, i386_insert_watchpoint)
54 (i386_remove_watchpoint, i386_region_ok_for_watchpoint)
55 (i386_stopped_data_address, i386_insert_hw_breakpoint)
56 (i386_remove_hw_breakpoint): Adjust to pass the current process id
57 to i386_debug_reg_state.
58 (i386_use_watchpoints): Don't register inferior data.
59 * i386-nat.h (i386_debug_reg_state): Add new 'pid' parameter, and
60 adjust comment.
61 (i386_forget_process): Declare.
62 * linux-fork.c (delete_fork): Call linux_nat_forget_process.
63 * linux-nat.c (linux_nat_new_fork, linux_nat_forget_process_hook):
64 New static globals.
65 (linux_child_follow_fork): Don't call linux_nat_new_thread here.
66 (add_initial_lwp): New, factored out from ...
67 (add_lwp): ... this. Don't check the number of lwps before
68 calling linux_nat_new_thread.
69 (linux_nat_iterate_watchpoint_lwps): Delete.
70 (linux_nat_attach): Use add_initial_lwp instead of add_lwp.
71 (linux_handle_extended_wait): Call the linux_nat_new_fork hook on
72 forks and vforks.
73 (linux_nat_wait_1): Use add_initial_lwp instead of add_lwp for the
74 initial lwp.
75 (linux_nat_kill, linux_nat_mourn_inferior): Call
76 linux_nat_forget_process.
77 (linux_nat_set_new_fork, linux_nat_set_forget_process)
78 (linux_nat_forget_process): New functions.
79 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): Delete
80 type.
81 (linux_nat_iterate_watchpoint_lwps): Delete declaration.
82 (linux_nat_new_fork_ftype, linux_nat_forget_process_ftype): New
83 types.
84 (linux_nat_set_new_fork, linux_nat_set_forget_process)
85 (linux_nat_forget_process): New declarations.
86
87 * amd64fbsd-nat.c (super_mourn_inferior): New global.
88 (amd64fbsd_mourn_inferior): New function.
89 (_initialize_amd64fbsd_nat): Override to_mourn_inferior.
90 * windows-nat.c (windows_detach): Call i386_cleanup_dregs.
91
92 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
93
94 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
95 Adding _().
96
97 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
98
99 * aarch64-linux-nat.c (debug_reg_change_callback)
100 (aarch64_linux_get_debug_reg_capacity): ARI fix: Replace %llx with
101 %s and phex().
102
103 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
104
105 * aarch64-linux-nat.c (dr_changed_t): ARI fix: Replace long long
106 with LONGEST.
107
108 2013-02-13 Pedro Alves <palves@redhat.com>
109 Hafiz Abid Qadeer <abidh@codesourcery.com>
110
111 * c-lang.c (c_op_print_tab): Add entry for UNOP_PLUS.
112
113 2013-02-12 Tom Tromey <tromey@redhat.com>
114
115 PR symtab/11464:
116 * c-exp.y (lex_one_token): Initialize other fields of yylval on
117 NAME return.
118 (classify_inner_name): Remove 'first_name' argument, add
119 'context'. Remove unused variable.
120 (yylex): Explicitly maintain the context type. Exit loop earlier
121 if NAME result is seen.
122
123 2013-02-12 Pedro Alves <palves@redhat.com>
124
125 * amd64-darwin-tdep.c: Add (C) after Copyright.
126 * cli/cli-cmds.h: Ditto.
127 * cli/cli-decode.c: Ditto.
128 * cli/cli-decode.h: Ditto.
129 * cli/cli-dump.c: Ditto.
130 * cli/cli-dump.h: Ditto.
131 * cli/cli-interp.c: Ditto.
132 * cli/cli-logging.c: Ditto.
133 * cli/cli-script.c: Ditto.
134 * cli/cli-script.h: Ditto.
135 * cli/cli-setshow.c: Ditto.
136 * cli/cli-setshow.h: Ditto.
137 * cli/cli-utils.c: Ditto.
138 * cli/cli-utils.h: Ditto.
139 * config/alpha/nm-osf3.h: Ditto.
140 * config/djgpp/djconfig.sh: Ditto.
141 * config/i386/nm-fbsd.h: Ditto.
142 * config/i386/nm-i386gnu.h: Ditto.
143 * config/nm-linux.h: Ditto.
144 * config/nm-nto.h: Ditto.
145 * config/rs6000/nm-rs6000.h: Ditto.
146 * config/sparc/nm-sol2.h: Ditto.
147 * darwin-nat-info.c: Ditto.
148 * dfp.c: Ditto.
149 * dfp.h: Ditto.
150 * gdb-demangle.h: Ditto.
151 * i386-darwin-nat.c: Ditto.
152 * i386-darwin-tdep.c: Ditto.
153 * linux-fork.h: Ditto.
154 * m32c-tdep.c: Ditto.
155 * microblaze-linux-tdep.c: Ditto.
156 * microblaze-rom.c: Ditto.
157 * microblaze-tdep.c: Ditto.
158 * microblaze-tdep.h: Ditto.
159 * mips-linux-tdep.h: Ditto.
160 * ppc-ravenscar-thread.c: Ditto.
161 * ppc-ravenscar-thread.h: Ditto.
162 * prologue-value.c: Ditto.
163 * prologue-value.h: Ditto.
164 * ravenscar-thread.c: Ditto.
165 * ravenscar-thread.h: Ditto.
166 * sparc-ravenscar-thread.c: Ditto.
167 * sparc-ravenscar-thread.h: Ditto.
168 * tilegx-linux-tdep.c: Ditto.
169 * unwind_stop_reasons.def: Ditto.
170 * windows-nat.h: Ditto.
171 * xtensa-linux-tdep.c: Ditto.
172 * xtensa-xtregs.c: Ditto.
173 * regformats/regdat.sh: Ditto.
174 * regformats/regdef.h: Ditto.
175
176 2013-02-12 Pedro Alves <palves@redhat.com>
177
178 * break-catch-sig.c: Update copyright years.
179
180 2013-02-11 Siva Chandra Reddy <sivachandra@google.com>
181
182 Add support for a destructor for ui_out data and use it to
183 provide a ui_out destructor.
184 * ui-out.h: Declare the new ui_out destructor.
185 (ui_out_impl): Add a field for data destructor in ui_out_impl.
186 * ui-out.c (default_data_destroy): Add a default data destructor
187 which does nothing.
188 (default_ui_out_impl): Set the new data_destroy field to
189 default_data_destroy
190 (uo_data_destroy): Local function which invokes the data
191 destructor if present.
192 (clear_table): Local function which clears the table data of a
193 ui_out object.
194 (ui_out_destroy): Public function which frees a ui_out object.
195 (ui_out_table_end): Use the new clear_table function.
196 * cli-out.c (cli_ui_out_impl): Set the new data_destroy field to
197 NULL.
198 * mi/mi-out.c (mi_ui_out_impl): Set the new data_destroy field
199 to NULL.
200
201 2013-02-11 Doug Evans <dje@google.com>
202
203 * printcmd.c (printf_c_string,printf_wide_c_string): New functions.
204 (printf_decfloat): New function. Broken out from ui_printf.
205 Remove unnecessary code to shift the entire format string down.
206 (printf_pointer): New function.
207 (ui_printf): Code to print C strings, wide C strings, decfloats,
208 and pointers moved to separate functions.
209
210 2013-02-11 Sergio Durigan Junior <sergiodj@redhat.com>
211
212 * valops.c (value_assign): Handling bitfield offset in
213 `lval_internalvar_component' case.
214
215 2013-02-08 Doug Evans <dje@google.com>
216
217 * common/format.c (parse_format_string): Fix whitespace.
218
219 2013-02-08 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
220
221 * stack.c (return_command): Work around uninitialized variable
222 warning.
223
224 2013-02-08 Yufeng Zhang <yufeng.zhang@arm.com>
225
226 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET): Change the
227 number of the registers from 36 to 34.
228
229 2013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
230
231 * NEWS: Mention new AArch64 native and target support.
232
233 2013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
234
235 * MAINTAINERS (Write After Approval): Add myself.
236
237 2013-02-08 Jim MacArthur <jim.macarthur@arm.com>
238 Marcus Shawcroft <marcus.shawcroft@arm.com>
239 Nigel Stephens <nigel.stephens@arm.com>
240 Yufeng Zhang <yufeng.zhang@arm.com>
241
242 * aarch64-linux-nat.c: New file.
243 * config/aarch64/linux.mh: New file.
244 * configure.host: Add AArch64.
245 * Makefile.in (ALLDEPFILES): Add aarch64-linux-nat.c.
246
247 2013-02-07 Doug Evans <dje@google.com>
248
249 * cli/cli-cmds.c (_initialize_cli_cmds): Clarify argument to
250 disassemble command.
251
252 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
253
254 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
255 set_gdbarch_fetch_tls_load_module_address.
256
257 2013-02-06 David S. Miller <davem@davemloft.net>
258
259 * sparc-tdep.c (sparc32_return_value): Handle writing return value when
260 using RETURN_VALUE_ABI_PRESERVES_ADDRESS.
261 * value.c (struct_return_convention): New function.
262 (using_struct_return): Implement in terms of struct_return_convention.
263 * value.h (struct_return_convention): Declare.
264 * stack.c (return_command): Allow successful overriding of the return
265 value when RETURN_VALUE_ABI_PRESERVES_ADDRESS.
266
267 2013-02-06 Tom Tromey <tromey@redhat.com>
268
269 * python/py-type.c (typy_strip_typedefs): Don't call check_typedef
270 outside of TRY_CATCH.
271
272 2013-02-06 Yao Qi <yao@codesourcery.com>
273
274 * mi/mi-interp.c: Include "tracepoint.h".
275 (mi_tsv_modified): Declare.
276 (mi_tsv_created, mi_tsv_deleted): Update declaration.
277 (mi_interpreter_init): Call observer_attach_tsv_modified.
278 (mi_tsv_modified): New.
279 (mi_tsv_created, mi_tsv_deleted): Update.
280 * tracepoint.c (trace_variable_command): Call
281 observer_notify_tsv_modified if the initial value of tsv is
282 changed.
283 (delete_trace_state_variable): Call
284 observer_notify_tsv_deleted earlier.
285 (trace_variable_command): Caller update.
286 (create_tsv_from_upload): Likewise.
287 * observer.sh: Declare "struct trace_state_variable".
288
289 * NEWS: Mention the new MI notification "=tsv-modified".
290
291 2013-02-05 Doug Evans <dje@google.com>
292
293 * completer.c (location_completer): Fix typo in comment.
294
295 2013-02-05 Jan Kratochvil <jan.kratochvil@redhat.com>
296
297 * breakpoint.c (add_location_to_breakpoint): Insert the location with
298 ADDRESS sorted.
299
300 2013-02-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
301
302 * aarch64-tdep.c (aarch64_analyze_prologue): ARI fix:
303 Refactor if statement to avoid trailing || operator.
304
305 2013-02-05 Andreas Tobler <andreast@fgznet.ch>
306
307 * NEWS: Add PowerPC FreeBSD as a new native configuration.
308
309 2013-02-04 Andreas Tobler <andreast@fgznet.ch>
310
311 * Makefile.in (ALL_TARGET_OBS): Add powerpc FreeBSD files.
312 * configure.host: Add powerpc*-*-freebsd* target.
313 * configure.tgt: Add target info for powerpc*-*-freebsd*.
314 * ppcfbsd-nat.c, ppcfbsd-tdep.h, ppcfbsd-tdep.c: New files.
315 * config/powerpc/fbsd.mh: New file.
316
317 2013-02-04 Sergio Durigan Junior <sergiodj@redhat.com>
318 Denys Vlasenko <dvlasenk@redhat.com>
319 Pedro Alves <palves@redhat.com>
320
321 * gdbarch.sh (elfcore_write_linux_prpsinfo): New F hook.
322 (struct elf_internal_linux_prpsinfo): Forward declare.
323 * gdbarch.h, gdbarch.c: Regenerate.
324 * linux-tdep.c: Include `cli/cli-utils.h'.
325 (linux_fill_prpsinfo): New function.
326 (linux_make_corefile_notes): Use linux_fill_prpsinfo. If there's
327 an elfcore_write_linux_prpsinfo hook, use it, otherwise, use
328 elfcore_write_linux_prpsinfo32 or elfcore_write_linux_prpsinfo64
329 depending on gdbarch pointer bitness.
330 * ppc-linux-tdep.c: Include elf-bfd.h.
331 (ppc_linux_init_abi): Hook in elfcore_write_ppc_linux_prpsinfo32
332 on 32-bit.
333
334 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
335 Marcus Shawcroft <marcus.shawcroft@arm.com>
336 Nigel Stephens <nigel.stephens@arm.com>
337 Yufeng Zhang <yufeng.zhang@arm.com>
338
339 * configure.tgt (aarch64*-*-linux*): Set build_gdbserver=yes.
340
341 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
342 Marcus Shawcroft <marcus.shawcroft@arm.com>
343 Nigel Stephens <nigel.stephens@arm.com>
344 Yufeng Zhang <yufeng.zhang@arm.com>
345
346 * aarch64-newlib-tdep.c: New file.
347 * configure.tgt: Add aarch64-newlib-tdep.o to gdb_target_obs of
348 aarch64*-*-elf.
349 * defs.h (enum gdb_osabi): Add GDB_OSABI_NEWLIB.
350 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-newlib-tdep.o.
351 (ALLDEPFILES): Add aarch64-newlib-tdep.c.
352 * osabi.c (gdb_osabi_names): Add "Newlib".
353
354 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
355 Marcus Shawcroft <marcus.shawcroft@arm.com>
356 Nigel Stephens <nigel.stephens@arm.com>
357 Yufeng Zhang <yufeng.zhang@arm.com>
358
359 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-linux-tdep.o.
360 (ALLDEPFILES): Add aarch64-linux-tdep.c.
361 * aarch64-linux-tdep.c: New file.
362 * aarch64-linux-tdep.h: New file.
363 * aarch64-tdep.h (gdbarch_tdep): Define gregset and fpregset.
364 * configure.tgt: Add aarch64-none-linux-gnu.
365
366 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
367 Marcus Shawcroft <marcus.shawcroft@arm.com>
368 Nigel Stephens <nigel.stephens@arm.com>
369 Yufeng Zhang <yufeng.zhang@arm.com>
370
371 * Makefile.in (ALL_64_TARGET_OBS): Add arch64-tdep.o.
372 (HFILES_NO_SRCDIR): Add aarch64-tdep.h.
373 (ALLDEPFILES): Add aarch64-tdep.c.
374 * aarch64-tdep.c: New file.
375 * aarch64-tdep.h: New file.
376 * configure.tgt: Add AArch64.
377 * features/Makefile (WHICH): Add aarch64 and aarch64-without-fpu.
378 (aarch64-expedite): New definition.
379 * features/aarch64-core.xml: New file.
380 * features/aarch64-fpu.xml: New file.
381 * features/aarch64-without-fpu.c: New file (generated).
382 * features/aarch64-without-fpu.xml: New file.
383 * features/aarch64.c: New file (generated).
384 * features/aarch64.xml: New file.
385 * regformats/aarch64-without-fpu.dat: New file (generated).
386 * regformats/aarch64.dat: New file (generated).
387
388 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
389
390 * contrib/expect-read1.c: New file.
391 * contrib/expect-read1.sh: New file.
392
393 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
394
395 * dwarf2read.c (file_file_name): New function with code from
396 file_full_name.
397 (file_full_name): Move most of the code to file_file_name.
398 (macro_start_file): Rename variable full_name to file_name and use
399 file_file_name for it. Add comp_dir parameter to new_macro_table.
400 * macrocmd.c (show_pp_source_pos): New variable fullname. Replace any
401 macro_source_file->filename access by macro_source_fullname call.
402 * macroscope.c (_initialize_macroscope): Update the new_macro_table
403 caller.
404 * macrotab.c (struct macro_table): New field comp_dir.
405 (macro_include): New variables link_fullname and source_fullname.
406 Replace any macro_source_file->filename access by macro_source_fullname
407 call.
408 (macro_lookup_inclusion): Remove the partial filenames checking code.
409 (check_for_redefinition): New variables source_fullname and
410 found_key_fullname. Replace any macro_source_file->filename access by
411 macro_source_fullname call.
412 (macro_undef): New variables source_fullname and key_fullname. Replace
413 any macro_source_file->filename access by macro_source_fullname call.
414 (macro_lookup_definition): New variables retval and source_fullname.
415 Replace any macro_source_file->filename access by macro_source_fullname
416 call.
417 (foreach_macro): New variable key_fullname. Replace any
418 macro_source_file->filename access by macro_source_fullname call.
419 (foreach_macro_in_scope): New variable datum_fullname. Replace any
420 macro_source_file->filename access by macro_source_fullname call.
421 (new_macro_table): Add parameter comp_dir. Initialize T with it.
422 (macro_source_fullname): New function.
423 * macrotab.h (struct macro_source_file): Extent the filename field
424 comment.
425 (new_macro_table): New parameter comp_dir, add a comment for it.
426 (macro_source_fullname): new declaration.
427
428 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
429
430 * dwarf2read.c (dw2_map_symtabs_matching_filename): Move variable
431 this_real_name to outer block. Use it also for
432 compare_filenames_for_search.
433 (dw2_expand_symtabs_matching): New variable this_real_name. Use it
434 with dw2_get_real_path for file_matcher, considering also
435 BASENAMES_MAY_DIFFER.
436 (file_full_name): Prepend COMP_DIR even for relative lh->INCLUDE_DIRS.
437
438 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
439
440 * dwarf2read.c (dw2_expand_symtabs_matching): Add basenames parameter
441 to the file_matcher parameter. Pass 0 to it.
442 (dwarf2_create_include_psymtab): Copy also DIRNAME.
443 * psymtab.c (partial_map_symtabs_matching_filename): Drop handling of
444 NULL psymtab_to_fullname result.
445 (psymtab_to_fullname): Remove variable r. Never return NULL, assemble
446 an expected filename instead.
447 (expand_symtabs_matching_via_partial): Add basenames parameter to the
448 file_matcher parameter. Call also psymtab_to_fullname, after newly
449 considering BASENAMES_MAY_DIFFER.
450 * source.c (rewrite_source_path): Remove static.
451 * source.h (rewrite_source_path): New declaration.
452 * symfile.h (struct quick_symbol_functions): Add basenames parameter to
453 the expand_symtabs_matching field. Comment it.
454 * symtab.c (file_matches): New function comment. Add parameter
455 basenames, implement it.
456 (search_symbols_file_matches): Add basenames parameter. Update the
457 file_matches caller.
458 (search_symbols): Match FILES also against symtab_to_fullname.
459 Optimize it for BASENAMES_MAY_DIFFER.
460
461 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
462
463 * source.c (print_source_lines_base): Print for TUI also "fullname".
464 * tui/tui-data.c (init_content_element): Change tui_locator_element
465 field to full_name.
466 * tui/tui-data.h (struct tui_locator_element): Likewise.
467 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Rename
468 tui_update_locator_filename calls to tui_update_locator_fullname.
469 Replace symtab->filename refererence by symtab_to_fullname call.
470 * tui/tui-out.c (tui_field_string): Check for "fullname" now.
471 * tui/tui-source.c (tui_set_source_content): Change tui_locator_element
472 field to full_name. Replace symtab->filename refererence by
473 symtab_to_fullname call.
474 (tui_show_symtab_source): Rename parameter to fullname. Change
475 tui_locator_element field to full_name.
476 * tui/tui-stack.c: Include source.h.
477 (tui_set_locator_filename): Rename the declaration to ...
478 (tui_set_locator_fullname): ... here. Rename its parameter to
479 fullname, updates its comment.
480 (tui_set_locator_info): Rename its parameter to fullname.
481 (tui_set_locator_filename): Rename the definition to ...
482 (tui_set_locator_fullname): ... here. Rename its parameter to
483 fullname, updates its comment. Change tui_locator_element field to
484 full_name.
485 (tui_set_locator_info): Rename its parameter to fullname.
486 (tui_set_locator_info): Rename callee to tui_set_locator_fullname.
487 (tui_update_locator_filename): Rename to ...
488 (tui_update_locator_fullname): ... here. Rename callee to
489 tui_set_locator_fullname.
490 (tui_show_frame_info): Replace symtab->filename refererence by
491 symtab_to_fullname call.
492 * tui/tui-stack.h (tui_update_locator_filename): Rename to ...
493 (tui_update_locator_fullname): ... here.
494 * tui/tui-winsource.c (tui_display_main): Rename the callee to
495 tui_update_locator_fullname. Replace symtab->filename refererence by
496 symtab_to_fullname call.
497 * tui/tui.c (tui_show_source): Rename its parameter to fullname.
498 Rename the callee to tui_update_locator_fullname.
499 * tui/tui.h (tui_show_source): Rename its parameter to fullname.
500
501 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
502
503 * ada-lang.c (user_select_syms): Replace symtab->filename refererences
504 by symtab_to_filename_for_display calls.
505 * breakpoint.c (print_breakpoint_location, resolve_sal_pc): Likewise.
506 (clear_command): New variable sal_fullname, initialize it. Replace
507 compare_filenames_for_search by filename_cmp with sal_fullname.
508 (say_where, update_static_tracepoint): Replace symtab->filename
509 refererences by symtab_to_filename_for_display calls.
510 * cli/cli-cmds.c (edit_command, list_command, ambiguous_line_spec):
511 Likewise.
512 * dwarf2read.c: Include source.h.
513 (fixup_go_packaging): Replace symtab->filename refererences by
514 symtab_to_filename_for_display calls.
515 * linespec.c (add_sal_to_sals): Rename variable filename to fullname.
516 Replace symtab->filename refererences by symtab_to_filename_for_display
517 calls.
518 (create_sals_line_offset, convert_linespec_to_sals): New variable
519 fullname, initialize it, replace symtab->filename reference by the
520 variable.
521 * linux-fork.c: Include source.h.
522 (info_checkpoints_command): Replace symtab->filename refererences by
523 symtab_to_filename_for_display calls.
524 * macroscope.c (sal_macro_scope): Replace symtab->filename refererences
525 by symtab_to_filename_for_display calls.
526 * mdebugread.c: Include source.h.
527 (psymtab_to_symtab_1): Replace symtab->filename refererences by
528 symtab_to_filename_for_display calls.
529 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
530 (mi_cmd_file_list_exec_source_files): Likewise.
531 * printcmd.c: Include source.h.
532 (build_address_symbolic): Replace symtab->filename refererences by
533 symtab_to_filename_for_display calls.
534 * psymtab.c (partial_map_symtabs_matching_filename)
535 (read_psymtabs_with_fullname): Call compare_filenames_for_search also
536 with psymtab_to_fullname.
537 * python/py-symtab.c (stpy_str): Replace symtab->filename refererences
538 by symtab_to_filename_for_display calls.
539 (stpy_get_filename): New variable filename, initialize it, use instead
540 of symtab->filename refererences.
541 (salpy_str): Make variable filename const char *. Replace
542 symtab->filename refererences by symtab_to_filename_for_display calls.
543 * skip.c: Include source.h and filenames.h.
544 (skip_file_command): Remove const from the symtab variable. Replace
545 symtab->filename refererences by symtab_to_fullname call.
546 (function_name_is_marked_for_skip): New variables searched_for_fullname
547 and fullname. Use them to search also with symtab's fullname.
548 * source.c (find_source_lines): Replace symtab->filename refererences
549 by symtab_to_filename_for_display calls.
550 (print_source_lines_base): New variable filename, use it instead of
551 symtab->filename. Replace symtab->filename refererences by
552 symtab_to_filename_for_display calls.
553 (line_info, forward_search_command): Replace symtab->filename
554 refererences by symtab_to_filename_for_display calls.
555 (reverse_search_command): Replace symtab->filename refererences by
556 symtab_to_filename_for_display calls. New variable filename for it.
557 * stack.c (frame_info): Likewise.
558 * symmisc.c: Include source.h.
559 (dump_objfile, dump_symtab_1, maintenance_print_symbols)
560 (maintenance_info_symtabs): Replace symtab->filename refererences by
561 symtab_to_filename_for_display calls.
562 * symtab.c (iterate_over_some_symtabs): Call
563 compare_filenames_for_search also with symtab_to_fullname.
564 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Replace
565 symtab->filename refererences by symtab_to_filename_for_display calls.
566 (find_line_symtab): Replace symtab->filename refererences by
567 symtab_to_filename_for_display calls.
568 (file_matches): Replace filename_cmp by compare_filenames_for_search.
569 (print_symbol_info): Make the last parameter const char *. New
570 variable s_filename. Use it in the function.
571 (symtab_symbol_info): Make the last_filename variable const char *.
572 Replace symtab->filename refererences by symtab_to_filename_for_display
573 calls.
574 (rbreak_command): New variable fullname. Use it. Replace
575 symtab->filename refererence by symtab_to_filename_for_display call.
576 * tracepoint.c (set_traceframe_context, trace_find_line_command)
577 (print_one_static_tracepoint_marker): Replace symtab->filename
578 refererences by symtab_to_filename_for_display calls.
579 * tui/tui-source.c (tui_set_source_content): New variables filename and
580 s_filename. Replace symtab->filename refererences by this variable.
581 Replace other symtab->filename refererences by
582 symtab_to_filename_for_display calls.
583
584 2013-02-03 Eldar Gaynetdinov <hal9000ed2k@gmail.com>
585 Jan Kratochvil <jan.kratochvil@redhat.com>
586
587 Add a new variable that controls a way in which filenames are
588 displayed.
589 * NEWS (set filename-display): New entry.
590 * source.c (filename_display_basename, filename_display_relative)
591 (filename_display_absolute, filename_display_kind_names)
592 (filename_display_string, show_filename_display_string)
593 (symtab_to_filename_for_display): New.
594 (_initialize_source): Added initialization of 'filename-display'
595 variable.
596 * source.h (symtab_to_filename_for_display): Added declaration.
597 * stack.c (print_frame): Added new variable and calling of a new
598 function and condition with this variable. Changed third argument of
599 calling of a function.
600
601 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
602
603 * tui/tui-data.c (init_win_info, tui_del_window, tui_free_window):
604 Rename field reference filename to fullname.
605 * tui/tui-data.h (struct tui_source_info): Rename field filename to
606 fullname. New comment for it.
607 * tui/tui-source.c (tui_set_source_content): Rename field reference
608 filename to fullname. Initialize field by symtab_to_fullname now.
609 * tui/tui-winsource.c (tui_update_breakpoint_info): Rename field
610 reference filename to fullname. Use symtab_to_fullname during
611 comparison.
612
613 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
614
615 Code cleanup.
616 * dwarf2read.c (dw2_expand_symtabs_with_filename): Rename to ...
617 (dw2_expand_symtabs_with_fullname): ... here. Rename parameter
618 filename to fullname. Rename variable this_name to this_fullname.
619 Lowercase FILENAME_CMP call.
620 (dw2_find_symbol_file): New comment for the returned string.
621 (dwarf2_gdb_index_functions): Rename the function to
622 dw2_expand_symtabs_with_fullname.
623 * psymtab.c (read_psymtabs_with_filename): Rename to ...
624 (read_psymtabs_with_fullname): ... here. Rename parameter filename to
625 fullname.
626 (psym_functions): Rename the function to read_psymtabs_with_fullname.
627 * symfile.h (struct quick_symbol_functions): Rename field
628 expand_symtabs_with_filename to expand_symtabs_with_fullname and its
629 parameter filename to fullname. Document returned string meaning for
630 find_symbol_file.
631 * symtab.c (find_line_symtab): Rename the called function to
632 expand_symtabs_with_fullname.
633
634 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
635
636 Code cleanup.
637 * breakpoint.c (clear_command): Remove variable is_abs, unify the
638 call of filename_cmp with compare_filenames_for_search.
639 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove variable
640 is_abs, unify the call of FILENAME_CMP with
641 compare_filenames_for_search. New gdb_asserts for real_path and name.
642 Unify the call of compare_filenames_for_search with FILENAME_CMP.
643 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
644 * symfile.h (struct quick_symbol_functions): Extend the comment for
645 map_symtabs_matching_filename.
646 * symtab.c (compare_filenames_for_search): Remove the function comment
647 relative path requirement. Handle absolute filenames, with a comment.
648 (iterate_over_some_symtabs): Remove variable is_abs, unify the call of
649 FILENAME_CMP with compare_filenames_for_search. New gdb_asserts for
650 real_path and name. Unify the call of compare_filenames_for_search
651 with FILENAME_CMP.
652 (iterate_over_symtabs): New gdb_assert on REAL_PATH.
653
654 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
655
656 Code cleanup.
657 * breakpoint.c (print_breakpoint_location): Replace bp_location field
658 source_file references by symtab field references. Remove variables
659 sal and fullname.
660 (momentary_breakpoint_from_master, add_location_to_breakpoint):
661 (clear_command, say_where): Replace bp_location field source_file
662 references by symtab field references.
663 (bp_location_dtor): Remove the source_file reference.
664 (update_static_tracepoint): Replace bp_location field source_file
665 references by symtab field references.
666 (breakpoint_free_objfile): New function.
667 * breakpoint.h (struct bp_location): Extend the comment for line_number.
668 Replace the field source_file by field symtab, extend its comment.
669 (breakpoint_free_objfile): New declaration.
670 * objfiles.c (free_objfile): Call breakpoint_free_objfile.
671 * tui/tui-winsource.c (tui_update_breakpoint_info): Replace bp_location
672 field source_file references by symtab field references.
673
674 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
675
676 Replace xfullpath calls by gdb_realpath calls.
677 * cli/cli-cmds.c (find_and_open_script): Remove xfullpath from the
678 function comment.
679 * dwarf2read.c (dw2_map_expand_apply): Remove parameter full_path.
680 Remove it from the iterate_over_some_symtabs call.
681 (dw2_map_symtabs_matching_filename): Remove parameter full_path.
682 Remove it from the dw2_map_expand_apply calls, remove a block handling
683 it.
684 * psymtab.c (partial_map_expand_apply): Remove parameter full_path.
685 Remove it from the iterate_over_some_symtabs call.
686 (partial_map_symtabs_matching_filename): Remove parameter full_path.
687 Remove it from the partial_map_expand_apply calls, remove a block
688 handling it. Drop gdb_realpath call and cleanups from the real_path
689 handling.
690 * source.c (openp): Drop the comment part about xfullpath. Replace
691 xfullpath calls by gdb_realpath calls.
692 (find_and_open_source): Replace xfullpath call by gdb_realpath call.
693 * symfile.h (struct quick_symbol_functions): Remove parameter full_path
694 from method map_symtabs_matching_filename and its comment.
695 * symmisc.c (maintenance_print_msymbols): Replace xfullpath call by
696 gdb_realpath call.
697 * symtab.c (iterate_over_some_symtabs): Remove parameter full_path,
698 remove it also from the function comment, remove a block handling it.
699 Drop gdb_realpath call and cleanups from the real_path handling.
700 (iterate_over_symtabs): Drop variable full_path and its use.
701 * symtab.h (iterate_over_some_symtabs): Remove parameter full_path.
702 * utils.c (xfullpath): Remove.
703 * utils.h (xfullpath): Remove.
704
705 2013-02-01 Andreas Tobler <andreast@fgznet.ch>
706
707 * Makefile.in (ALL_TARGET_OBS): Add ppc64-tdep.o.
708 (HFILES_NO_SRCDIR): Add ppc64-tdep.h.
709 (ALLDEPFILES): Add ppc64-tdep.c.
710 * configure.tgt (powerpc-*-linux* | powerpc64-*-linux*): Add
711 ppc64-tdep.o to gdb_target_obs.
712 * ppc64-tdep.h: New file.
713 * ppc64-tdep.c: New file.
714 (insn_d, insn_ds, insn_xfx, ppc64_desc_entry_point): Move from
715 ppc-linux-tdep.c to here.
716 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN)
717 (PPC64_STANDARD_LINKAGE2_LEN): Likewise and use ARRAY_SIZE macro.
718 (ppc64_standard_linkage1_target, ppc64_standard_linkage2_target)
719 (ppc64_standard_linkage3_target, ppc64_skip_trampoline_code): Move
720 from ppc-linux-tdep.c to here.
721 (ppc64_convert_from_func_ptr_addr): Rename from
722 ppc64_linux_convert_from_func_ptr_addr to
723 ppc64_convert_from_func_ptr_addr and move from ppc-linux-tdep.c to
724 here.
725 * rs6000-tdep.c:
726 (read_insn): Move from ppc-linux-tdep.c to here.
727 (insns_match_pattern, insn_d_field, insn_ds_field): Move
728 from ppc-linux-tdep.c to here and rename them with the ppc_ prefix.
729 * ppc-linux-tdep.c: Include ppc64-tdep.h.
730 Removed above functions.
731 (ppc_linux_init_abi): Adjust.
732
733 2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
734
735 * ada-valprint.c (ada_print_floating): Remove unused 'len'.
736
737 2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
738
739 * ada-lang.c (assign_aggregate): Remove unused 'is_array_aggregate'.
740
741 2013-02-01 Pedro Alves <palves@redhat.com>
742
743 * dummy-frame.c (deprecated_pc_in_call_dummy): Delete function.
744 * frame.h (deprecated_pc_in_call_dummy): Delete declaration.
745
746 2013-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
747
748 * elfread.c (elf_symfile_read): Limit separate debug info additions to
749 files with no separate debug info.
750 * objfiles.c (add_separate_debug_objfile): Add gdb_assert calls.
751 * symfile.c (read_symbols): Call find_separate_debug_file_in_section
752 only for files with no separate debug info.
753
754 2013-01-31 Tom Tromey <tromey@redhat.com>
755
756 * jit.c (jit_program_space_data): Rename from jit_inferior_data;
757 change type.
758 (struct jit_program_space_data): Rename from jit_inferior_data.
759 Update comments.
760 (get_jit_program_space_data): Rename from get_jit_inferior_data.
761 Change return type. Attach data to program space.
762 (jit_program_space_data_cleanup): Rename from
763 jit_inferior_data_cleanup; change argument type.
764 (jit_read_descriptor): Change 'inf_data' argument to 'ps_data',
765 change type.
766 (jit_register_code): Update.
767 (jit_update_inferior_cache): Remove.
768 (jit_breakpoint_deleted): Get jit data from the location's program
769 space.
770 (jit_breakpoint_re_set_internal): Rename 'inf_data' argument to
771 'ps_data', change type.
772 (jit_inferior_init, jit_breakpoint_re_set_internal)
773 (jit_event_handler): Update.
774 (free_objfile_data): Get data from objfile's program space.
775 (_initialize_jit): Update.
776
777 2013-01-31 Tom Tromey <tromey@redhat.com>
778
779 PR gdb/13987:
780 * jit.c (struct jit_inferior_data) <cached_code_address,
781 jit_breakpoint>: New fields.
782 (jit_breakpoint_re_set_internal): Fix logging. Only create
783 breakpoint if cached address has changed.
784 (jit_update_inferior_cache, jit_breakpoint_deleted): New
785 functions.
786 (_initialize_jit): Register breakpoint deleted observer.
787
788 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
789
790 * infrun.c (handle_syscall_event): Remove unused gdbarch.
791 (save_infcall_suspend_state): Ifdef out unused inf.
792 (restore_infcall_suspend_state): Ifdef out unused inf.
793 * jit.c (jit_register_code): Remove unused i, b, inf_data.
794 (jit_frame_sniffer): Remove unused inf_data.
795
796 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
797
798 * c-exp.y (classify_inner_name): Remove unused type.
799 * c-lang.c (c_printstr): Remove unused byte_order, i, things_printed,
800 in_quotes, need_comma, wchar_buf, output, cleanup, iter, finished,
801 need_escape.
802 (c_get_string): Remove unused kind.
803 * c-typeprint.c (c_type_print_args): Remove unused i, len, args, table2.
804
805 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
806
807 * charset.c (intermediate_encoding): Remove unused i.
808 * completer.c (signal_completer): Remove unused i.
809 * continuations.c (discard_my_continuations_1): Remove unused
810 continuation_ptr.
811 * corelow.c (core_close): Remove unuseD name.
812 (get_core_siginfo): Remove unused pid.
813 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Remove unused
814 i, cps.
815 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove unused base_offset.
816 (loclist_describe_location): Remove unused first.
817 * event-top.c (command_line_handler): Remove unused got_eof.
818 * exec.c (exec_close_1): Remove unused need_symtab_cleanup.
819 (resize_section_table): Remove unused old_value.
820 * gdb_bfd.c (gdb_bfd_map_section): Remove unused header.
821 * gnu-v3-abi.c (compute_vtable_size): Remove unused addr.
822 * i386-tdep.c (i386_process_record): Remove unused rex.
823 * infcmd.c (get_return_value): Remove unused uiout.
824 * jv-lang.c (type_from_class): Remove unused is_array.
825 * jv-valprint.c (java_val_print): Remove unused i.
826 * linux-nat.c (linux_nat_stop_lwp): Remove unused ptid.
827 * linux-thread-db.c (thread_db_find_new_threads_2): Remove unuseD pid.
828 * m2-typeprint.c (m2_print_type): Remove unused code.
829 * macroexp.c (get_character_constant): Remove unused body_start.
830 (macro_stringify): Remove unused result.
831 * objc-lang.c (find_methods): Remove unused gdbarch.
832 * objfiles.c (filter_overlapping_sections): Remove unused abfd1, abfd2.
833 * regcache.c (regcache_cooked_read): Remove unused gdbarch.
834 * stack.c (print_frame_args): Remove unused summary.
835 * thread.c (thread_apply_command): Remove unused p.
836 * valarith.c (value_x_unop): Remove unused mangle_ptr.
837 * valops.c (search_struct_method): Remove unused skip.
838 * valprint.c (generic_val_print): Remove unused byte_order.
839 * varobj.c (varobj_update): Remove unused changed.
840 * cli/cli-cmds.c (complete_command): Remove unused next_item.
841 (alias_command): Remove unused c.
842 * mi/mi-cmd-catch.c (mi_catch_load_unload): Remove unused c.
843 * mi/mi-main.c (mi_cmd_data_write_register_values): Remove unused
844 format.
845 (mi_cmd_data_write_memory): Remove unused word_format.
846 (mi_cmd_data_write_memory_bytes): Remove unused r.
847 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Remove unused
848 p_start, p_end.
849 * python/python.c (_initialize_python): Remove unused cmd_name, cmd.
850 * tui/tui-disasm.c (tui_set_disassem_content): Remove unused
851 line_width.
852
853 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
854
855 * dwarf2-frame.c (dwarf2_compile_cfa_to_ax): Remove unused num_regs.
856 * symtab.c (iterate_over_symtabs): Remove unused s.
857 (find_pc_sect_symtab): Remove unused pspAce.
858 (find_pc_sect_line): Remove unused alt_symtab.
859 (find_pcs_for_symtab_line): Remove unused ix, previous_function.
860 (completion_list_add_name): Remove unused newsize.
861
862 2013-01-31 Tom Tromey <tromey@redhat.com>
863
864 PR c++/14998:
865 * dwarf2read.c (read_tag_ptr_to_member_type): Handle
866 TYPE_CODE_FUNC.
867
868 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
869
870 * target.c (target_read_string): Remove unused origlen.
871
872 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
873
874 * auto-load.c (auto_load_expand_dir_vars): Remove unused dir_vec.
875 * ax-gdb.c (gen_printf): Remove unused expr, i, bot, fr, flen, fmt.
876 * ax-general.c (ax_print): Remove unused is_float.
877 * blockframe.c (block_innermost_frame): Remove unused start, end.
878 * break-catch-sig.c (catch_signal_command): Remove unused gdbarch.
879
880 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
881
882 * solib-svr4.c (svr4_keep_data_in_core): Remove unused lmo.
883 (svr4_read_so_list): Remove unused lmo.
884 * solib-target.c (solib_target_relocate_section_addresses): Remove
885 unused flags.
886
887 2013-01-30 Tom Tromey <tromey@redhat.com>
888
889 * hppa-tdep.c (read_unwind_info): Use SECT_OFF_TEXT, not "0".
890
891 2013-01-30 Tom Tromey <tromey@redhat.com>
892
893 * symfile.c (get_file_crc): Use bfd_calc_gnu_debuglink_crc32.
894 * utils.c (gnu_debuglink_crc32): Remove.
895 * utils.h (gnu_debuglink_crc32): Don't declare.
896
897 2013-01-30 Tom Tromey <tromey@redhat.com>
898
899 * dwarf2read.c (compute_delayed_physnames, read_call_site_scope)
900 (read_structure_type, read_enumeration_type): Remove cast.
901
902 2013-01-30 Tom Tromey <tromey@redhat.com>
903
904 * dwarf2read.c (read_namespace_type): Remove cast.
905 (read_typedef): Likewise.
906
907 2013-01-29 Tom Tromey <tromey@redhat.com>
908
909 * dwarf2read.c (free_dwo_file): Remove assert.
910
911 2013-01-29 Tom Tromey <tromey@redhat.com>
912
913 * value.c (deprecated_set_value_modifiable): Remove.
914 * value.h (deprecated_set_value_modifiable): Remove.
915
916 2013-01-28 Doug Evans <dje@google.com>
917
918 * dwarf2loc.c (dwarf2_find_location_expression): Don't add base address
919 to addresses from dwo files.
920
921 2013-01-25 Siva Chandra Reddy <sivachandra@google.com>
922
923 * valops.c (find_overload_match): Remove unused argument 'lax'.
924 * value.h: Remove unused argument 'lax' from the declaration of
925 find_overload_match.
926 * eval.c (value_subexp_standard): Do not pass a 'lax' argument
927 to find_overload_match.
928 * valarith.c (value_user_defined_cpp_op): Do not pass a 'lax'
929 argument to find_overload_match.
930
931 2013-01-25 Tom Tromey <tromey@redhat.com>
932
933 * dwarf2read.c (processing_has_namespace_info): Remove.
934 (struct dwarf2_cu) <processing_has_namespace_info>: New field.
935 (process_die, read_func_scope, dwarf2_start_symtab)
936 (new_symbol_full): Update.
937
938 2013-01-25 Tom Tromey <tromey@redhat.com>
939
940 * cp-namespace.c (cp_set_block_scope): Remove.
941 * cp-support.h (cp_set_block_scope): Remove.
942 * dbxread.c: Include block.h.
943 (cp_set_block_scope): New function.
944 (process_one_symbol): Update.
945 * dwarf2read.c (read_func_scope): Use block_set_scope.
946
947 2013-01-25 Pedro Alves <palves@redhat.com>
948
949 * remote.c (add_current_inferior_and_thread): Tweak comment.
950
951 2013-01-25 Tom Tromey <tromey@redhat.com>
952
953 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
954 (cp_add_using_directive): Add 'copy_names' argument.
955 * cp-support.h (cp_add_using_directive): Update.
956 (struct using_direct) <import_src, import_dest, alias,
957 declaration>: Now const.
958 * dwarf2read.c (read_import_statement): Use obconcat.
959 Don't copy names passed to cp_add_using_directive.
960
961 2013-01-25 Tom Tromey <tromey@redhat.com>
962
963 * c-exp.y (qualified_name): Use TYPE_SAFE_NAME.
964
965 2013-01-25 Pedro Alves <palves@redhat.com>
966
967 * remote.c (stop_reply_extract_thread): New.
968 (add_current_inferior_and_thread): New parameter 'wait_status'.
969 Handle it.
970 (remote_start_remote): Pass wait status to
971 add_current_inferior_and_thread.
972 (extended_remote_run): Update comment.
973 (extended_remote_create_inferior_1): Pass wait status to
974 add_current_inferior_and_thread.
975
976 2013-01-25 Andrew Burgess <aburgess@broadcom.com>
977 Ulrich Weigand <uweigand@de.ibm.com>
978
979 * valarith.c (value_vector_widen): New function for replicating a
980 scalar into a vector.
981 (value_binop): Use value_vector_widen to widen scalar to vector
982 rather than casting, this better matches gcc C behaviour.
983 * valops.c (value_casst): Update logic for casting between vector
984 types, and for casting from scalar to vector, try to match gcc C
985 behaviour.
986 * value.h (value_vector_widen): Declare.
987 * opencl-lang.c (opencl_value_cast): New opencl specific casting
988 function, handle special case for casting scalar to vector.
989 (opencl_relop): Use opencl_value_cast.
990 (evaluate_subexp_opencl): Use opencl_value_cast instead of
991 value_cast, and handle BINOP_ASSIGN, UNOP_CAST, and UNOP_CAST_TYPE
992 in order to use opencl_value_cast.
993
994 2013-01-25 Yao Qi <yao@codesourcery.com>
995
996 * event-loop.c: Include "queue.h".
997 (gdb_event_p): New typedef.
998 (DECLARE_QUEUE_P): Use.
999 (DEFINE_QUEUE_P): Use.
1000 (async_queue_event): Remove.
1001 (gdb_event_xfree): New.
1002 (initialize_event_loop): New.
1003 (process_event): Use QUEUE macros.
1004 (event_queue): Remove.
1005 (gdb_wait_for_event): Caller update.
1006 (check_async_event_handlers): Likewise.
1007 (poll_timers): Likewise.
1008 * event-loop.h (initialize_event_loop): Declare.
1009 * event-loop.c (gdb_event_xfree): New.
1010 * top.c (gdb_init): Call initialize_event_loop.
1011
1012 2013-01-25 Yao Qi <yao@codesourcery.com>
1013
1014 * event-loop.c (async_queue_event): Remove one parameter
1015 'position'. Remove code handling 'position' == TAIL.
1016 (gdb_wait_for_event): Caller update.
1017 (check_async_event_handlers): Caller update.
1018 (poll_timers): Caller update.
1019 * event-loop.h (enum queue_position): Remove.
1020
1021 2013-01-25 Maxim Kuvyrkov <maxim@kugelworks.com>
1022
1023 * MAINTAINERS: Update my email.
1024
1025 2013-01-25 Yao Qi <yao@codesourcery.com>
1026
1027 * main.c (print_gdb_help): Remove "--epoch" from the help
1028 message.
1029
1030 2013-01-24 Ulrich Weigand  <uweigand@de.ibm.com>
1031
1032 * symtab.c (skip_prologue_using_sal): Consider a file
1033 change the same as an increased line number
1034
1035 2013-01-24 Tiago Stürmer Daitx  <tdaitx@linux.vnet.ibm.com>
1036
1037 * MAINTAINERS (Write After Approval): Add myself to the list.
1038
1039 2013-01-24 Tom Tromey <tromey@redhat.com>
1040
1041 * ada-lang.h (ada_decode_symbol): Make return type const.
1042 * ada-lang.c (ada_decode_symbol): Likewise.
1043
1044 2013-01-23 Doug Evans <dje@google.com>
1045
1046 * linespec.c (find_linespec_symbols): Make static.
1047
1048 2013-01-23 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
1049
1050 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Set correct
1051 type on float conversion for complex type.
1052
1053 2013-01-23 Siva Chandra Reddy <sivachandra@google.com>
1054
1055 Add a new class gdb.Architecture which exposes GDB's
1056 internal representation of architecture via GDB Python API.
1057 * Makefile.in: Add entries corresponding to the new file
1058 python/py-arch.c.
1059 * NEWS (Python Scripting): Add entries for the new class
1060 gdb.Architecture and the new method gdb.Frame.architecture.
1061 * python/py-arch.c: Implement gdb.Architecture class.
1062 * python/py-frame.c (frapy_arch): Implement the method
1063 gdb.Frame.architecture().
1064 (frame_object_methods): Add 'architecture' to the method table.
1065 * python/python-internal.h: Add declarations of new utility
1066 functions.
1067 * python/python.c (_initialize_python): Initialize
1068 gdb.Architecture class.
1069
1070 2013-01-23 Doug Evans <dje@google.com>
1071
1072 Work around binutils/15021.
1073 * dwarf2read.c (dwarf2_per_cu_data): Split imported_symtabs and
1074 type_unit_group out of union s. All uses updated.
1075 (read_index_from_section): Watch for index version 8.
1076 (follow_die_sig): If using .gdb_index version <= 7, record the TU as
1077 an imported symtab.
1078 (write_psymtabs_to_index): Increment version number to 8.
1079
1080 2013-01-22 Pedro Alves <palves@redhat.com>
1081
1082 * annotate.c (breakpoint_changed): Skip if breakpoint is not
1083 user-visible.
1084
1085 2013-01-22 Pedro Alves <palves@redhat.com>
1086
1087 * annotate.c (annotate_breakpoints_changed): Rename to ...
1088 (annotate_breakpoints_invalid): ... this. Make static.
1089 (breakpoint_changed): Adjust.
1090 (_initialize_annotate): Always install the observers. Install a
1091 "breakpoint_created" observer.
1092 * annotate.h (annotate_breakpoints_changed): Delete declaration.
1093 * breakpoint.c (set_breakpoint_condition)
1094 (breakpoint_set_commands, do_map_commands_command)
1095 (init_raw_breakpoint, clear_command, set_ignore_count)
1096 (enable_breakpoint_disp): No longer call
1097 annotate_breakpoints_changed.
1098
1099 2013-01-22 Pedro Alves <palves@redhat.com>
1100
1101 * annotate.c: Include "inferior.h".
1102 (frames_invalid_emitted)
1103 (breakpoints_invalid_emitted): New globals.
1104 (async_background_execution_p): New function.
1105 (annotate_breakpoints_changed, annotate_frames_invalid): Skip
1106 emitting the annotation if it has already been emitted.
1107 (annotate_display_prompt): New function.
1108 * annotate.h (annotate_display_prompt): New declaration.
1109 * event-top.c: Include annotate.h.
1110 (display_gdb_prompt): Call annotate_display_prompt.
1111
1112 2013-01-22 Pedro Alves <palves@redhat.com>
1113
1114 * annotate.c (ignore_count_changed): Delete.
1115 (annotate_breakpoints_changed): Don't clear ignore_count_changed.
1116 (annotate_ignore_count_change): Delete.
1117 (annotate_stopped): Don't emit a delayed breakpoints-changed
1118 annotation.
1119 * annotate.h (annotate_ignore_count_change): Delete.
1120 * breakpoint.c (bpstat_check_breakpoint_conditions): Don't call
1121 annotate_ignore_count_change.
1122
1123 2013-01-22 Tom Tromey <tromey@redhat.com>
1124
1125 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>: Only
1126 require_rvalue for a register location.
1127
1128 2013-01-21 Marc Khouzam <marc.khouzam@ericsson.com>
1129
1130 * breakpoint.c (print_one_breakpoint_location): Add MI
1131 field 'thread-groups' when printing a breakpoint.
1132 (output_thread_groups): New function.
1133
1134 2013-01-21 Siva Chandra Reddy <sivachandra@google.com>
1135
1136 * python/lib/gdb/commands/explore.py
1137 (CompoundExplorer.explore_expr): Correct the name of a method
1138 being invoked.
1139 (ExploreTypeCommand.invoke): Add a missing 'return'.
1140
1141 2013-01-21 Tom Tromey <tromey@redhat.com>
1142
1143 * gdb_obstack.h (obconcat): Move declaration here, from...
1144 * symfile.h (obconcat): ... here.
1145 * gdb_obstack.c: New file.
1146 (obconcat): Move from...
1147 * symfile.c (obconcat): ... here.
1148 * Makefile.in (SFILES): Add gdb_obstack.c.
1149 (COMMON_OBS): Add gdb_obstack.o.
1150
1151 2013-01-21 Tom Tromey <tromey@redhat.com>
1152
1153 * symfile.h (obsavestring): Don't declare.
1154 * symfile.c (obsavestring): Remove.
1155 * ada-exp.y: Use obstack_copy0, not obsavestring.
1156 * ada-lang.c: Use obstack_copy0, not obsavestring.
1157 * coffread.c: Use obstack_copy0, not obsavestring.
1158 * cp-namespace.c: Use obstack_copy0, not obsavestring.
1159 * dbxread.c: Use obstack_copy0, not obsavestring.
1160 * dwarf2read.c: Use obstack_copy0, not obsavestring.
1161 * jit.c: Use obstack_copy0, not obsavestring.
1162 * mdebugread.c: Use obstack_copy0, not obsavestring.
1163 * psymtab.c: Use obstack_copy0, not obsavestring.
1164 * stabsread.c: Use obstack_copy0, not obsavestring.
1165 * xcoffread.c: Use obstack_copy0, not obsavestring.
1166
1167 2013-01-21 Tom Tromey <tromey@redhat.com>
1168
1169 * dwarf2read.c (fixup_go_packaging): Save package name
1170 on objfile obstack.
1171 * gdbtypes.c (init_type): Don't copy name.
1172
1173 2013-01-21 Tom Tromey <tromey@redhat.com>
1174
1175 * dwarf2read.c (struct partial_die_info) <name, scope>: Now
1176 const.
1177 (struct attribute) <u.str>: Now const.
1178 (struct fnfieldlist) <name>: Now const.
1179 (dw2_get_file_names_reader, init_cutu_and_read_dies): Update.
1180 (partial_die_parent_scope): Make return type const.
1181 (partial_die_full_name, add_partial_symbol): Update.
1182 (dwarf2_compute_name, dwarf2_full_name, dwarf2_physname): Make
1183 'name' const.
1184 (find_file_and_directory): Make 'name' and 'comp_dir' const.
1185 (read_file_scope, read_func_scope, dwarf2_add_field)
1186 (dwarf2_add_member_fn, read_structure_type)
1187 (process_enumeration_scope, read_array_type, read_module_type)
1188 (read_base_type, read_subrange_type): Update.
1189 (dwarf2_start_symtab): Make 'name' and 'comp_dir' const.
1190 (new_symbol_full, guess_full_die_structure_name): Update.
1191 (dwarf2_canonicalize_name): Return const type. Make 'name' const.
1192 (dwarf2_name): Return const type.
1193 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make 'comp_dir'
1194 const.
1195
1196 2013-01-21 Tom Tromey <tromey@redhat.com>
1197
1198 * gdbtypes.c (init_type): Make 'name' const.
1199 * gdbtypes.h (init_type): Update.
1200
1201 2013-01-21 Tom Tromey <tromey@redhat.com>
1202
1203 * buildsym.c (patch_subfile_names): Use set_last_source_file.
1204 (start_symtab): Make 'name' and 'dirname' const. Use
1205 set_last_source_file.
1206 (restart_symtab, reset_symtab_globals): Use set_last_source_file.
1207 (last_source_file): Define. Now static.
1208 (set_last_source_file, get_last_source_file): New functions.
1209 * buildsym.h (last_source_file): Don't declare.
1210 (start_symtab): Update.
1211 (set_last_source_file, get_last_source_file): Declare.
1212 * coffread.c (complete_symtab): Use set_last_source_file.
1213 (coff_end_symtab): Likewise.
1214 (coff_symtab_read): Use set_last_source_file, get_last_source_file.
1215 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Use
1216 set_last_source_file.
1217 (process_one_symbol): Use get_last_source_file.
1218 * mdebugread.c (parse_partial_symbols): Use set_last_source_file.
1219 (psymtab_to_symtab_1): Use get_last_source_file.
1220 * xcoffread.c (process_linenos): Use get_last_source_file.
1221 (complete_symtab): Use set_last_source_file.
1222 (read_xcoff_symtab): Use set_last_source_file, get_last_source_file.
1223 (scan_xcoff_symtab): Use set_last_source_file.
1224
1225 2013-01-21 Tom Tromey <tromey@redhat.com>
1226
1227 * symtab.c (struct demangled_name_entry) <mangled>: Now const.
1228 (symbol_set_names): Remove casts. Handle field const-ness.
1229
1230 2013-01-21 Tom Tromey <tromey@redhat.com>
1231
1232 * dwarf2read.c (new_symbol_full): Remove cast.
1233 * symtab.c (symbol_set_demangled_name): Make 'name' const.
1234 * symtab.h (symbol_set_demangled_name): Update.
1235
1236 2013-01-21 Tom Tromey <tromey@redhat.com>
1237
1238 * main.c (captured_main): Call bfd_init.
1239
1240 2013-01-21 Tom Tromey <tromey@redhat.com>
1241
1242 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Don't set default ABI.
1243 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Set default ABI.
1244 * minsyms.c (install_minimal_symbols): Don't check for _Z symbols.
1245 * NEWS: Update.
1246
1247 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1248
1249 * symmisc.c (maintenance_print_msymbols): Check also ST_DEV.
1250
1251 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1252
1253 Fix gdb.fortran/common-block.exp crash in PIE mode.
1254 * dwarf2read.c (new_symbol_full) <DW_TAG_common_block>: Use
1255 LOC_COMMON_BLOCK.
1256 * f-valprint.c (info_common_command_for_block): Expect
1257 LOC_COMMON_BLOCK in gdb_assert.
1258 * symtab.h (struct general_symbol_info): Update comment for the
1259 common_block member.
1260 (domain_enum): Extend comment for the COMMON_BLOCK_DOMAIN member.
1261 (enum address_class): New member LOC_COMMON_BLOCK.
1262
1263 2013-01-18 David Blaikie <dblaikie@gmail.com>
1264
1265 * MAINTAINERS (Write After Approval): Add "David Blaikie".
1266
1267 2013-01-18 Tom Tromey <tromey@redhat.com>
1268
1269 PR c++/14999:
1270 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>:
1271 Call require_rvalue.
1272
1273 2013-01-18 Yao Qi <yao@codesourcery.com>
1274
1275 * dbxread.c (dbx_psymtab_to_symtab): Delete the declaration.
1276 (dbx_read_symtab): New declaration.
1277 (dbx_psymtab_to_symtab): Delete.
1278 (dbx_read_symtab): Rename from dbx_psymtab_to_symtab.
1279 Rename parameter PST to SELF. Exchanged two parameters.
1280 (start_psymtab): Caller update.
1281 * dwarf2read.c (dwarf2_psymtab_to_symtab): Delete the declaration.
1282 (dwarf2_read_symtab): New declaration.
1283 (dwarf2_psymtab_to_symtab): Delete.
1284 (dwarf2_read_symtab): Rename from dwarf2_psymtab_to_symtab.
1285 Rename parameter PST to SELF. Exchanged two parameters.
1286 (create_partial_symtab): Caller update.
1287 * mdebugread.c (mdebug_psymtab_to_symtab): Delete.
1288 (mdebug_read_symtab): Rename from mdebug_psymtab_to_symtab.
1289 Rename parameter PST to SELF. Exchanged two parameters.
1290 (parse_partial_symbols, new_psymtab): Caller update.
1291 * psympriv.h (struct partial_symtab) <read_symtab>: Exchange
1292 two parameters.
1293 * psymtab.c (psymtab_to_symtab): Caller update.
1294 * xcoffread.c (xcoff_psymtab_to_symtab): Delete.
1295 (xcoff_read_symtab): Rename from xcoff_psymtab_to_symtab.
1296 Rename parameter PST to SELF. Exchanged two parameters.
1297 (xcoff_start_psymtab): Caller update.
1298
1299 2013-01-18 Yao Qi <yao@codesourcery.com>
1300
1301 * infrun.c (proceed): Rename local variable 'oneproc' to
1302 'force_step'.
1303
1304 2013-01-17 Doug Evans <dje@google.com>
1305
1306 * dwarf2read.c (dw2_build_type_unit_groups_reader): Delete.
1307 (dw2_build_type_unit_groups): Delete. All uses updated.
1308
1309 * symtab.h (struct symbol_search): Add comment.
1310
1311 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1312
1313 * symtab.c (compare_filenames_for_search): New comment for
1314 HAS_DRIVE_SPEC.
1315
1316 2013-01-17 Tom Tromey <tromey@redhat.com>
1317
1318 * cp-abi.c (cp_abi_completer): Fix typo in assignment.
1319
1320 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1321
1322 * symtab.c (iterate_over_some_symtabs): New variable cleanups,
1323 initialize it by existing make_cleanup. Call new do_cleanups.
1324
1325 2013-01-17 Tom Tromey <tromey@redhat.com>
1326
1327 * cp-abi.c (cp_abi_completer): New function.
1328 (_initialize_cp_abi): Set completer for "set cp-abi".
1329
1330 2013-01-17 Tom Tromey <tromey@redhat.com>
1331
1332 * mem-break.c: Remove obsolete comment.
1333 * bfin-tdep.c (bfin_breakpoint_from_pc): Fix comment.
1334
1335 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
1336
1337 * jit.c (jit_reader_load_command): Interpret the jit reader name
1338 as an absolute path if it begins with a forward slash.
1339
1340 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
1341
1342 PR gdb/14550
1343
1344 * jit.c (finalize_symtab): Ensure that only the global block has a
1345 NULL superblock.
1346
1347 2013-01-17 Pedro Alves <palves@redhat.com>
1348
1349 * acinclude.m4: Include ../config/plugins.m4,
1350 ../config/largefile.m4 and ../config/lead-dot.m4. Add comments.
1351 * Makefile.in (aclocal_m4_deps): Update.
1352 * aclocal.m4: Renegerate.
1353
1354 2013-01-16 Doug Evans <dje@google.com>
1355
1356 * contrib/cc-with-tweaks.sh: Add references to Fission docs.
1357
1358 2013-01-16 Pedro Alves <palves@redhat.com>
1359 Tom Tromey <tromey@redhat.com>
1360
1361 PR cli/7221:
1362 * NEWS: Add "catch signal".
1363 * breakpoint.c (base_breakpoint_ops): No longer static.
1364 (bpstat_explains_signal): New function.
1365 (init_catchpoint): No longer static.
1366 (base_breakpoint_explains_signal): New function.
1367 (base_breakpoint_ops): Initialize new field.
1368 * breakpoint.h (enum bpstat_signal_value): New.
1369 (struct breakpoint_ops) <explains_signal>: New field.
1370 (bpstat_explains_signal): Remove macro, declare as function.
1371 (base_breakpoint_ops, init_catchpoint): Declare.
1372 * break-catch-sig.c: New file.
1373 * inferior.h (signal_catch_update): Declare.
1374 * infrun.c (signal_catch): New global.
1375 (handle_syscall_event): Update for change to
1376 bpstat_explains_signal.
1377 (handle_inferior_event): Likewise. Always handle random signals
1378 via bpstats.
1379 (signal_cache_update): Check signal_catch.
1380 (signal_catch_update): New function.
1381 (_initialize_infrun): Initialize signal_catch.
1382 * Makefile.in (SFILES): Add break-catch-sig.c.
1383 (COMMON_OBS): Add break-catch-sig.o.
1384
1385 2013-01-16 Tom Tromey <tromey@redhat.com>
1386
1387 * breakpoint.c (print_one_catch_fork, print_one_catch_vfork)
1388 (print_one_catch_solib, print_one_catch_syscall)
1389 (print_one_catch_exec, print_one_exception_catchpoint): Emit
1390 "catch-type".
1391
1392 2013-01-16 Yao Qi <yao@codesourcery.com>
1393
1394 * printcmd.c (current_display_number): Make it static.
1395
1396 2013-01-16 Yao Qi <yao@codesourcery.com>
1397
1398 * infcmd.c (step_once): Don't check '!single_inst' as it was
1399 checked before.
1400
1401 2013-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1402
1403 * dwarf2read.c (psymtab_include_file_name): Extend the function comment.
1404
1405 2013-01-14 Tom Tromey <tromey@redhat.com>
1406
1407 * cli/cli-decode.c (add_setshow_string_noescape_cmd): Return the
1408 set command.
1409 * command.h (add_setshow_string_noescape_cmd): Update.
1410 * corefile.c (set_gnutarget_command): Remove trailing whitespace.
1411 (complete_set_gnutarget): New function.
1412 (_initialize_core): Set the "set gnutarget" completer.
1413
1414 2013-01-14 Tom Tromey <tromey@redhat.com>
1415
1416 PR symtab/14442:
1417 * c-typeprint.c (cp_type_print_method_args): Handle 'restrict'.
1418 (c_type_print_modifier): Likewise.
1419 * dwarf2read.c (read_tag_restrict_type): New function.
1420 (read_type_die_1): Handle DW_TAG_restrict_type.
1421 * gdbtypes.c (make_restrict_type): New function.
1422 (recursive_dump_type): Handle TYPE_RESTRICT.
1423 * gdbtypes.h (enum type_flag_values): Renumber.
1424 (enum type_instance_flag_value): Add
1425 TYPE_INSTANCE_FLAG_RESTRICT.
1426 (TYPE_RESTRICT): New macro.
1427 (make_restrict_type): Declare.
1428
1429 2013-01-14 Tom Tromey <tromey@redhat.com>
1430
1431 PR symtab/14931:
1432 * psymtab.c (struct psymtab_state): New.
1433 (discard_psymtabs_upto, make_cleanup_discard_psymtabs): New
1434 functions.
1435 * psympriv.h (make_cleanup_discard_psymtabs): Declare.
1436 * dwarf2read.c (dwarf2_build_psymtabs): Catch exceptions.
1437
1438 2013-01-14 Richard Sharman <richard_sharman@mitel.com>
1439 Pedro Alves <palves@redhat.com>
1440
1441 PR remote/14786
1442
1443 * remote.c (remote_threads_info): Make a copy of the reply from
1444 qfThreadInfo and use that instead of rs->buf.
1445
1446 2013-01-14 Yao Qi <yao@codesourcery.com>
1447
1448 * dbxread.c (dbx_psymtab_to_symtab_1): Don't check PST is NULL.
1449 (dbx_psymtab_to_symtab): Likewise.
1450 * dwarf2read.c (dwarf2_psymtab_to_symtab): Likewise.
1451 * mdebugread.c (mdebug_psymtab_to_symtab): Likewise.
1452 * xcoffread.c (xcoff_psymtab_to_symtab_1): Likewise.
1453
1454 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1455
1456 * parse.c (parse_exp_in_context): New variable inner_chain. Call
1457 make_cleanup_restore_current_language. Call set_language. Move
1458 OLD_CHAIN and INNER_CHAIN cleanups.
1459 * utils.c (do_restore_current_language)
1460 (make_cleanup_restore_current_language): New functions.
1461 * utils.h (make_cleanup_restore_current_language): New declaration.
1462
1463 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1464
1465 * source.c (symtab_to_fullname): Apply rewrite_source_path also for
1466 non-existing files.
1467
1468 * source.c (symtab_to_fullname): Do not prepend DIRNAME for
1469 non-existing files if FILENAME is already absolute.
1470
1471 2013-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1472
1473 * macrocmd.c (macro_inform_no_debuginfo): Use puts_filtered instead of
1474 fputs_filtered. Append trailing newline.
1475
1476 2013-01-11 Yao Qi <yao@codesourcery.com>
1477 Stan Shebs <stan@codesourcery.com>
1478
1479 * psymtab.c (init_psymbol_list): Clarify the comment.
1480
1481 2013-01-11 Yao Qi <yao@codesourcery.com>
1482
1483 * breakpoint.c (print_one_breakpoint_location): Remove dead code.
1484 (update_dprintf_command_list): Assert that 'printf_line' is
1485 non-null. Remove condition check.
1486
1487 2013-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
1488
1489 Code cleanup.
1490 * psymtab.c (psymtab_to_fullname, psymtab_to_fullname): Make the return
1491 type const char *.
1492 * tui/tui-source.c (tui_source_is_displayed): Make the parameter fname
1493 const char *.
1494 * tui/tui-source.h (tui_source_is_displayed): Likewise.
1495
1496 2013-01-09 Anthony Green <green@moxielogic.com>
1497
1498 * cp-abi.c (cplus_print_vtable): Don't return value from void
1499 function.
1500 * ada-lang.c (re_set_catch_assert): Ditto.
1501
1502 2013-01-09 Doug Evans <dje@google.com>
1503
1504 * symfile.h (quick_symbol_functions): Delete member
1505 pre_expand_symtabs_matching. All uses removed.
1506 * dwarf2read.c (dw2_lookup_symbol): Implement.
1507 (dw2_do_expand_symtabs_matching): Delete.
1508 (dw2_pre_expand_symtabs_matching): Delete.
1509 (struct dw2_symtab_iterator): New type.
1510 (dw2_symtab_iter_init, dw2_symtab_iter_next): New functions.
1511 (dw2_expand_symtabs_for_function): Rewrite.
1512 (dwarf2_gdb_index_functions): Update.
1513 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Delete.
1514 (psym_functions): Update.
1515
1516 2013-01-09 Tom Tromey <tromey@redhat.com>
1517
1518 * config/pa/hpux.mh (NATDEPFILES): Remove somread.o.
1519 * configure: Rebuild.
1520 * configure.ac: Add somread.o to the build if BFD has SOM
1521 support.
1522 * somread.c: Include som/aout.h, not syms.h.
1523 (som_symtab_read): Use som_external_symbol_dictionary_record.
1524 Unpack records manually.
1525 (_initialize_somread): Declare.
1526
1527 2012-01-08 Mike Frysinger <vapier@gentoo.org>
1528
1529 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx) [__x86_64__]:
1530 Cast return_address to 64bits.
1531
1532 2013-01-08 Hui Zhu <hui_zhu@mentor.com>
1533
1534 * printcmd.c: Remove define of function output_command.
1535 * tracepoint.c: Remove extern of function output_command.
1536 * valprint.h: (output_command): New extern.
1537
1538 2013-01-07 Tom Tromey <tromey@redhat.com>
1539
1540 * objc-lang.c (objc_emit_char, objc_printchar, objc_printstr):
1541 Remove.
1542 (objc_language_defn): Use c_printchar, c_printstr,
1543 c_emit_char.
1544
1545 2013-01-07 Tom Tromey <tromey@redhat.com>
1546
1547 PR cli/7719:
1548 * NEWS: Update.
1549 * ada-valprint.c (printstr, print_field_values): Remove
1550 "inspect_it" code.
1551 * cp-valprint.c (cp_print_value_fields): Remove "inspect_it"
1552 code.
1553 * jv-valprint.c (java_print_value_fields): Remove "inspect_it"
1554 code.
1555 * m2-lang.c (m2_printstr): Remove "inspect_it" code.
1556 * main.c (captured_main): Remove "epoch" argument.
1557 * objc-lang.c (objc_printstr): Remove "inspect_it" code.
1558 * p-lang.c (pascal_printstr): Remove "inspect_it" code.
1559 * p-valprint.c (pascal_object_print_value_fields): Remove
1560 "inspect_it" code.
1561 * printcmd.c (print_command_1): Remove 'inspect' argument.
1562 (print_command, call_command): Update.
1563 (inspect_command): Remove.
1564 (_initialize_printcmd): Make "inspect" an alias for "print".
1565 * top.c (epoch_interface): Remove.
1566 * top.h (epoch_interface): Remove.
1567 * valprint.c (user_print_options): Update.
1568 (print_converted_chars_to_obstack): Remove "inspect_it" code.
1569 * valprint.h (struct value_print_options) <inspect_it>: Remove
1570 field.
1571
1572 2013-01-04 Tom Tromey <tromey@redhat.com>
1573
1574 * valprint.h (read_string): Add 'extern'.
1575
1576 2013-01-07 Joel Brobecker <brobecker@adacore.com>
1577
1578 * darwin-nat.c: Fix typo in TASK_DYLD_INFO_COUNT macro test
1579 used to decide whether to define darwin_read_dyld_info or not.
1580
1581 2013-01-03 Pierre Muller <muller@sourceware.org>
1582
1583 * main.c (relocate_gdb_directory): Avoid calling stat function
1584 if DIR is empty.
1585
1586 2013-01-03 Yao Qi <yao@codesourcery.com>
1587
1588 * psymtab.c (fixup_psymbol_section): Update declaration.
1589 (fixup_psymbol_section): Remove code returning value.
1590
1591 2013-01-03 Yao Qi <yao@codesourcery.com>
1592
1593 * symtab.h: Remove some out of date comments.
1594 (enum exception_event_kind): Move it ...
1595 * breakpoint.c: ... here.
1596
1597 2013-01-02 Iain Sandoe <developer@sandoe-acoustics.co.uk>
1598
1599 PR gdb/14405
1600 * darwin-nat.c (darwin_read_dyld_info): Only build if
1601 TASK_DYLD_INFO_COUNT is defined.
1602 (darwin_xfer_partial): Call darwin_read_dyld_info only if
1603 TASK_DYLD_INFO_COUNT is defined.
1604
1605 2013-01-02 Tom Tromey <tromey@redhat.com>
1606
1607 * symfile.h (struct ecoff_debug_hack): Remove.
1608 * objfiles.c: Don't include mdebugread.h.
1609
1610 2013-01-02 Tom Tromey <tromey@redhat.com>
1611
1612 * config/i386/darwin.mh (NATDEPFILES): Remove machoread.o.
1613 * configure.ac: Check for Mach-O support in BFD. Update
1614 CONFIG_OBS.
1615 * configure: Rebuild.
1616
1617 2013-01-02 Tom Tromey <tromey@redhat.com>
1618
1619 * acinclude.m4 (GDB_AC_CHECK_BFD): New macro.
1620 * configure.ac: Use GDB_AC_CHECK_BFD.
1621 * configure: Rebuild.
1622
1623 2013-01-01 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
1624
1625 * MAINTAINERS: Update my email.
1626
1627 2013-01-01 Joel Brobecker <brobecker@adacore.com>
1628
1629 * cli/cli-script.h (make_cleanup_free_command_lines): Make extern.
1630
1631 2013-01-01 Joel Brobecker <brobecker@adacore.com>
1632
1633 * rs6000-nat.c (bss_data_overlap): New function.
1634 (vmap_symtab): Use it to adjust the .bss section's offset.
1635
1636 2013-01-01 Joel Brobecker <brobecker@adacore.com>
1637
1638 Update year range in copyright notice of all files.
1639
1640 2013-01-01, 13 Joel Brobecker <brobecker@adacore.com>
1641
1642 * top.c (print_gdb_version): Update copyright year.
1643
1644 For older changes see ChangeLog-2012.
1645 \f
1646 Local Variables:
1647 mode: change-log
1648 left-margin: 8
1649 fill-column: 74
1650 version-control: never
1651 coding: utf-8
1652 End: