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